mirror of https://github.com/YosysHQ/yosys.git
Fixed monitor notifications for removed cell
This commit is contained in:
parent
7815f81c32
commit
2442eb3832
|
@ -1148,6 +1148,9 @@ void RTLIL::Module::remove(const std::set<RTLIL::Wire*> &wires)
|
||||||
|
|
||||||
void RTLIL::Module::remove(RTLIL::Cell *cell)
|
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(cells_.count(cell->name) != 0);
|
||||||
log_assert(refcount_cells_ == 0);
|
log_assert(refcount_cells_ == 0);
|
||||||
cells_.erase(cell->name);
|
cells_.erase(cell->name);
|
||||||
|
|
Loading…
Reference in New Issue