mirror of https://github.com/YosysHQ/yosys.git
Renamed "write_autotest" to "test_autotb" and moved to passes/tests/
This commit is contained in:
parent
e605af8a49
commit
e6df25bf74
|
@ -1,3 +0,0 @@
|
|||
|
||||
OBJS += backends/autotest/autotest.o
|
||||
|
|
@ -376,7 +376,9 @@ void Frontend::frontend_call(RTLIL::Design *design, FILE *f, std::string filenam
|
|||
design->check();
|
||||
}
|
||||
|
||||
Backend::Backend(std::string name, std::string short_help) : Pass("write_"+name, short_help), backend_name(name)
|
||||
Backend::Backend(std::string name, std::string short_help) :
|
||||
Pass(name.substr(0, 1) == "=" ? name.substr(1) : "write_"+name, short_help),
|
||||
backend_name(name.substr(0, 1) == "=" ? name.substr(1) : name)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
OBJS += passes/tests/test_autotb.o
|
||||
|
|
@ -301,13 +301,13 @@ static void autotest(FILE *f, RTLIL::Design *design)
|
|||
fprintf(f, "endmodule\n");
|
||||
}
|
||||
|
||||
struct AutotestBackend : public Backend {
|
||||
AutotestBackend() : Backend("autotest", "generate simple test benches") { }
|
||||
struct TestAutotbBackend : public Backend {
|
||||
TestAutotbBackend() : Backend("=test_autotb", "generate simple test benches") { }
|
||||
virtual void help()
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
log(" write_autotest [filename]\n");
|
||||
log(" test_autotb [filename]\n");
|
||||
log("\n");
|
||||
log("Automatically create primitive verilog test benches for all modules in the\n");
|
||||
log("design. The generated testbenches toggle the input pins of the module in\n");
|
||||
|
@ -327,9 +327,9 @@ struct AutotestBackend : public Backend {
|
|||
}
|
||||
virtual void execute(FILE *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Executing AUTOTEST backend (auto-generate pseudo-random test benches).\n");
|
||||
log_header("Executing TEST_AUTOTB backend (auto-generate pseudo-random test benches).\n");
|
||||
extra_args(f, filename, args, 1);
|
||||
autotest(f, design);
|
||||
}
|
||||
} AutotestBackend;
|
||||
} TestAutotbBackend;
|
||||
|
|
@ -93,7 +93,7 @@ do
|
|||
cd ${bn}.out
|
||||
cp ../$fn $fn
|
||||
if [ ! -f ../${bn}_tb.v ]; then
|
||||
"$toolsdir"/../../yosys -b autotest -o ${bn}_tb.v $fn
|
||||
"$toolsdir"/../../yosys -b test_autotb -o ${bn}_tb.v $fn
|
||||
else
|
||||
cp ../${bn}_tb.v ${bn}_tb.v
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue