1
0
mirror of synced 2026-04-28 21:09:08 +00:00

Reorder operations to load in primitive library before hierarchy pass

This commit is contained in:
TaoBi22
2022-09-27 17:46:52 +01:00
committed by myrtle
parent da32f21b59
commit df56178567

View File

@@ -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");