diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-05-20 16:58:02 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-05-20 16:58:02 +0200 |
commit | 1e227caf720bc5870ea9244e6b5657cf9c9717ab (patch) | |
tree | 5a2441f68187a13f67af72ac3110f02f6e05faa1 /passes | |
parent | 884ec967871dede8d5ad6fb730a405e421a18dbe (diff) | |
download | yosys-1e227caf720bc5870ea9244e6b5657cf9c9717ab.tar.gz yosys-1e227caf720bc5870ea9244e6b5657cf9c9717ab.tar.bz2 yosys-1e227caf720bc5870ea9244e6b5657cf9c9717ab.zip |
Improvements and fixes in autotest.sh script and test_autotb
Diffstat (limited to 'passes')
-rw-r--r-- | passes/tests/test_autotb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/tests/test_autotb.cc b/passes/tests/test_autotb.cc index cf01074ea..59de111c2 100644 --- a/passes/tests/test_autotb.cc +++ b/passes/tests/test_autotb.cc @@ -73,8 +73,8 @@ static std::string idy(std::string str1, std::string str2 = std::string(), std:: static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter) { - f << stringf("`ifndef dmp_name\n"); - f << stringf("\t`define dmp_name \"not_defined.dmp\"\n"); + f << stringf("`ifndef outfile\n"); + f << stringf("\t`define outfile \"/dev/stdout\"\n"); f << stringf("`endif\n"); f << stringf("module testbench;\n\n"); @@ -301,7 +301,7 @@ static void autotest(std::ostream &f, RTLIL::Design *design, int num_iter) f << stringf("initial begin\n"); f << stringf("\t// $dumpfile(\"testbench.vcd\");\n"); f << stringf("\t// $dumpvars(0, testbench);\n"); - f << stringf("\tfile = $fopen(`dmp_name);\n"); + f << stringf("\tfile = $fopen(`outfile);\n"); for (auto it = design->modules_.begin(); it != design->modules_.end(); ++it) if (!it->second->get_bool_attribute("\\gentb_skip")) f << stringf("\t%s;\n", idy(it->first.str(), "test").c_str()); |