diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-02 16:06:39 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-01-02 16:06:39 -0800 |
commit | 32695e5032fcaa932a67f63946ae5e2a1edc8d65 (patch) | |
tree | c8192213464d62895696969a0bf830f38441436c | |
parent | 7fe268fcdb17d28dbb187d4c5c3b53e648c190ca (diff) | |
download | yosys-32695e5032fcaa932a67f63946ae5e2a1edc8d65.tar.gz yosys-32695e5032fcaa932a67f63946ae5e2a1edc8d65.tar.bz2 yosys-32695e5032fcaa932a67f63946ae5e2a1edc8d65.zip |
scc command to ignore blackboxes
-rw-r--r-- | passes/cmds/scc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/cmds/scc.cc b/passes/cmds/scc.cc index 99f4fbae8..dd26f8258 100644 --- a/passes/cmds/scc.cc +++ b/passes/cmds/scc.cc @@ -301,10 +301,10 @@ struct SccPass : public Pass { RTLIL::Selection newSelection(false); int scc_counter = 0; - for (auto &mod_it : design->modules_) - if (design->selected(mod_it.second)) + for (auto mod : design->modules()) + if (!mod->get_blackbox_attribute() && design->selected(mod)) { - SccWorker worker(design, mod_it.second, nofeedbackMode, allCellTypes, maxDepth); + SccWorker worker(design, mod, nofeedbackMode, allCellTypes, maxDepth); if (!setAttr.empty()) { |