Merge pull request #1916 from YosysHQ/eddie/kernel_makeblackbox

kernel: Module::makeblackbox() to clear connections too
This commit is contained in:
Eddie Hung 2020-04-15 08:42:39 -07:00 committed by GitHub
commit dc3d432aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}