mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
abc9: cleanup
This commit is contained in:
parent
edacb8f437
commit
6b3aa91a2a
|
@ -295,16 +295,13 @@ struct Abc9Pass : public ScriptPass
|
||||||
run("delete *_$abc9_flop");
|
run("delete *_$abc9_flop");
|
||||||
if (help_mode) {
|
if (help_mode) {
|
||||||
run("foreach module in design");
|
run("foreach module in design");
|
||||||
run(" cd <module-name>");
|
|
||||||
run(" rename <module-name>_$abc9_flop _TECHMAP_REPLACE_");
|
run(" rename <module-name>_$abc9_flop _TECHMAP_REPLACE_");
|
||||||
run(" cd");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Rename all submod-s to _TECHMAP_REPLACE_ to inherit name + attrs
|
// Rename all submod-s to _TECHMAP_REPLACE_ to inherit name + attrs
|
||||||
for (auto module : active_design->selected_modules()) {
|
for (auto module : active_design->selected_modules()) {
|
||||||
run(stringf("cd %s", log_id(module->name)));
|
active_design->selected_active_module = module->name.str();
|
||||||
run(stringf("rename %s_$abc9_flop _TECHMAP_REPLACE_", module->name.c_str()));
|
run(stringf("rename %s_$abc9_flop _TECHMAP_REPLACE_", module->name.c_str()));
|
||||||
run("cd");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
run("design -stash $abc9_map");
|
run("design -stash $abc9_map");
|
||||||
|
|
Loading…
Reference in a new issue