aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-21 17:25:15 -0700
committerEddie Hung <eddie@fpgeh.com>2020-05-14 10:33:56 -0700
commit2946bb60e95408be1ffc5b667b6c84160f7f41e6 (patch)
tree12e29c0e4acdd4900a3d4c96cffce23eb9228055 /passes/techmap/abc9.cc
parent8cda29137e0e1c19e1115211ee695681bc901030 (diff)
downloadyosys-2946bb60e95408be1ffc5b667b6c84160f7f41e6.tar.gz
yosys-2946bb60e95408be1ffc5b667b6c84160f7f41e6.tar.bz2
yosys-2946bb60e95408be1ffc5b667b6c84160f7f41e6.zip
abc9: rework submod -- since it won't move (* keep *) cells
Diffstat (limited to 'passes/techmap/abc9.cc')
-rw-r--r--passes/techmap/abc9.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc
index 93751e0bc..147d6e572 100644
--- a/passes/techmap/abc9.cc
+++ b/passes/techmap/abc9.cc
@@ -309,9 +309,6 @@ struct Abc9Pass : public ScriptPass
run("setattr -set submod \"$abc9_flop\" t:$_DFF_?_ %ci* %co* t:$_DFF_?_ %d", " (only if -dff)");
run("submod", " (only if -dff)");
run("setattr -mod -set whitebox 1 -set abc9_flop 1 -set abc9_box 1 *_$abc9_flop", "(only if -dff)");
- run("abc9_ops -prep_dff_unmap", " (only if -dff)");
- run("design -copy-to $abc9 *_$abc9_flop", " (only if -dff)"); // copy submod out
- run("delete *_$abc9_flop", " (only if -dff)");
if (help_mode) {
run("foreach module in design");
run(" rename <module-name>_$abc9_flop _TECHMAP_REPLACE_", " (only if -dff)");
@@ -323,7 +320,11 @@ struct Abc9Pass : public ScriptPass
if (module->cell(stringf("%s_$abc9_flop", module->name.c_str())))
run(stringf("rename %s_$abc9_flop _TECHMAP_REPLACE_", module->name.c_str()));
}
+ active_design->selected_active_module.clear();
}
+ run("abc9_ops -prep_dff_unmap", " (only if -dff)");
+ run("design -copy-to $abc9 *_$abc9_flop", " (only if -dff)"); // copy submod out
+ run("delete *_$abc9_flop", " (only if -dff)");
}
}
run("design -stash $abc9_map");