Merge pull request #70 from gaomy3832/bugfix

Remove unused blackbox modules in opt_clean.
This commit is contained in:
Clifford Wolf 2015-08-12 08:45:04 +02:00
commit 667b015018
1 changed files with 10 additions and 0 deletions

View File

@ -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();