mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #70 from gaomy3832/bugfix
Remove unused blackbox modules in opt_clean.
This commit is contained in:
commit
667b015018
|
@ -350,6 +350,11 @@ struct OptCleanPass : public Pass {
|
|||
ct.setup_stdcells();
|
||||
ct.setup_stdcells_mem();
|
||||
|
||||
for (auto module : design->modules()) {
|
||||
if (module->get_bool_attribute("\\blackbox"))
|
||||
ct.setup_module(module);
|
||||
}
|
||||
|
||||
ct_reg.setup_internals_mem();
|
||||
ct_reg.setup_stdcells_mem();
|
||||
|
||||
|
@ -409,6 +414,11 @@ struct CleanPass : public Pass {
|
|||
ct.setup_stdcells();
|
||||
ct.setup_stdcells_mem();
|
||||
|
||||
for (auto module : design->modules()) {
|
||||
if (module->get_bool_attribute("\\blackbox"))
|
||||
ct.setup_module(module);
|
||||
}
|
||||
|
||||
ct_reg.setup_internals_mem();
|
||||
ct_reg.setup_stdcells_mem();
|
||||
|
||||
|
|
Loading…
Reference in New Issue