projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7815f81
)
Fixed monitor notifications for removed cell
author
Clifford Wolf
<clifford@clifford.at>
Sun, 14 Sep 2014 15:04:39 +0000
(17:04 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sun, 14 Sep 2014 15:04:39 +0000
(17:04 +0200)
kernel/rtlil.cc
patch
|
blob
|
history
diff --git
a/kernel/rtlil.cc
b/kernel/rtlil.cc
index ec4375f2fb7c0e78c363f27a86d5168f0df411d1..6556b82ee973465519c978527481fae32a69cb6b 100644
(file)
--- a/
kernel/rtlil.cc
+++ b/
kernel/rtlil.cc
@@
-1148,6
+1148,9
@@
void RTLIL::Module::remove(const std::set<RTLIL::Wire*> &wires)
void RTLIL::Module::remove(RTLIL::Cell *cell)
{
+ while (!cell->connections_.empty())
+ cell->unsetPort(cell->connections_.begin()->first);
+
log_assert(cells_.count(cell->name) != 0);
log_assert(refcount_cells_ == 0);
cells_.erase(cell->name);