kernel: Module::makeblackbox() to clear connections too

This commit is contained in:
Eddie Hung 2020-04-13 20:37:22 -07:00
parent 840bb17089
commit 9547d8c13e
1 changed files with 2 additions and 0 deletions

View File

@ -767,6 +767,8 @@ void RTLIL::Module::makeblackbox()
delete it->second;
processes.clear();
connections_.clear();
remove(delwires);
set_bool_attribute(ID::blackbox);
}