aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorTaoBi22 <beahealy22@gmail.com>2022-09-27 17:46:52 +0100
committermyrtle <gatecat@ds0.me>2022-11-17 13:34:58 +0100
commitdf5617856781aca9a09a647f72817c076e5e55fe (patch)
treec8188e641d34d9daa1f9fadcc5871669bc11e530 /techlibs
parentda32f21b5908972430e687d805bb84635f2e9b43 (diff)
downloadyosys-df5617856781aca9a09a647f72817c076e5e55fe.tar.gz
yosys-df5617856781aca9a09a647f72817c076e5e55fe.tar.bz2
yosys-df5617856781aca9a09a647f72817c076e5e55fe.zip
Reorder operations to load in primitive library before hierarchy pass
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/fabulous/synth_fabulous.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/techlibs/fabulous/synth_fabulous.cc b/techlibs/fabulous/synth_fabulous.cc
index 478569555..17c67a636 100644
--- a/techlibs/fabulous/synth_fabulous.cc
+++ b/techlibs/fabulous/synth_fabulous.cc
@@ -121,7 +121,7 @@ struct SynthPass : public ScriptPass
if (!design->full_selection())
log_cmd_error("This command only operates on fully selected designs!\n");
- log_header(design, "Executing SYNTH pass.\n");
+ log_header(design, "Executing SYNTH_FABULOUS pass.\n");
log_push();
run_script(design, run_from, run_to);
@@ -131,6 +131,11 @@ struct SynthPass : public ScriptPass
void script() override
{
+ if (plib.empty())
+ run("read_verilog -lib +/fabulous/prims.v");
+ else
+ run("read_verilog -lib " + plib);
+
if (top_module.empty()) {
if (autotop)
run("hierarchy -check -auto-top");
@@ -139,10 +144,6 @@ struct SynthPass : public ScriptPass
} else
run(stringf("hierarchy -check -top %s", top_module.c_str()));
- if (plib.empty())
- run("read_verilog -lib +/fabulous/prims.v");
- else
- run("read_verilog -lib " + plib);
run("proc");
run("tribuf -logic");
run("deminout");