From: Clifford Wolf Date: Sun, 14 Sep 2014 15:04:39 +0000 (+0200) Subject: Fixed monitor notifications for removed cell X-Git-Tag: yosys-0.4~128 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2442eb38327f42e1e786f7dd9ddf1838bf2bf4b4;p=yosys.git Fixed monitor notifications for removed cell --- diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index ec4375f2f..6556b82ee 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -1148,6 +1148,9 @@ void RTLIL::Module::remove(const std::set &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);