diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-10-24 16:54:05 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-10-24 16:54:05 +0200 |
commit | 628b994cf6223a03d0d57bad193675dc93e88d65 (patch) | |
tree | 56dad20ed7d83a6957aa738b59d957b1b89b814f /backends | |
parent | e679a5d04633e0c0626057ed2760ddb9595eea5d (diff) | |
download | yosys-628b994cf6223a03d0d57bad193675dc93e88d65.tar.gz yosys-628b994cf6223a03d0d57bad193675dc93e88d65.tar.bz2 yosys-628b994cf6223a03d0d57bad193675dc93e88d65.zip |
Added support for complex set-reset flip-flops in proc_dff
Diffstat (limited to 'backends')
-rw-r--r-- | backends/autotest/autotest.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/autotest/autotest.cc b/backends/autotest/autotest.cc index 6fd3a43cd..c59e2bd17 100644 --- a/backends/autotest/autotest.cc +++ b/backends/autotest/autotest.cc @@ -99,6 +99,10 @@ static void autotest(FILE *f, RTLIL::Design *design) std::map<std::string, int> signal_out; RTLIL::Module *mod = it->second; + + if (mod->get_bool_attribute("\\gentb_skip")) + continue; + int count_ports = 0; log("Generating test bench for module `%s'.\n", it->first.c_str()); for (auto it2 = mod->wires.begin(); it2 != mod->wires.end(); it2++) { @@ -290,7 +294,8 @@ static void autotest(FILE *f, RTLIL::Design *design) fprintf(f, "\t// $dumpfile(\"testbench.vcd\");\n"); fprintf(f, "\t// $dumpvars(0, testbench);\n"); for (auto it = design->modules.begin(); it != design->modules.end(); it++) - fprintf(f, "\t%s;\n", idy(it->first, "test").c_str()); + if (!it->second->get_bool_attribute("\\gentb_skip")) + fprintf(f, "\t%s;\n", idy(it->first, "test").c_str()); fprintf(f, "\t$finish;\n"); fprintf(f, "end\n\n"); |