aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-04-13 20:37:22 -0700
committerEddie Hung <eddie@fpgeh.com>2020-04-13 20:37:22 -0700
commit9547d8c13eb8279d383f0efcf0ad33a54469b878 (patch)
tree76f2c5d2c23aec431f210e34cc610dd3db750dc3 /kernel
parent840bb170896c1acbbd321c4214df1f3b15108466 (diff)
downloadyosys-9547d8c13eb8279d383f0efcf0ad33a54469b878.tar.gz
yosys-9547d8c13eb8279d383f0efcf0ad33a54469b878.tar.bz2
yosys-9547d8c13eb8279d383f0efcf0ad33a54469b878.zip
kernel: Module::makeblackbox() to clear connections too
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index d9003f28c..dc368ead5 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -767,6 +767,8 @@ void RTLIL::Module::makeblackbox()
delete it->second;
processes.clear();
+ connections_.clear();
+
remove(delwires);
set_bool_attribute(ID::blackbox);
}