diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-04-13 13:12:45 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-05-14 10:33:56 -0700 |
commit | 6b3aa91a2a1f717ebf4ce7155b134e9d556ac1ab (patch) | |
tree | a0250be71214e423f532b21f62e0b8243b04c382 /passes | |
parent | edacb8f437bd1d3c61a12dfa35214e3a1d47af99 (diff) | |
download | yosys-6b3aa91a2a1f717ebf4ce7155b134e9d556ac1ab.tar.gz yosys-6b3aa91a2a1f717ebf4ce7155b134e9d556ac1ab.tar.bz2 yosys-6b3aa91a2a1f717ebf4ce7155b134e9d556ac1ab.zip |
abc9: cleanup
Diffstat (limited to 'passes')
-rw-r--r-- | passes/techmap/abc9.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index 7f3e6abcc..97ee57aaa 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -295,16 +295,13 @@ struct Abc9Pass : public ScriptPass run("delete *_$abc9_flop"); if (help_mode) { run("foreach module in design"); - run(" cd <module-name>"); run(" rename <module-name>_$abc9_flop _TECHMAP_REPLACE_"); - run(" cd"); } else { // Rename all submod-s to _TECHMAP_REPLACE_ to inherit name + attrs 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("cd"); } } run("design -stash $abc9_map"); |