Bugfix in delete command

This commit is contained in:
Clifford Wolf 2014-02-09 09:34:58 +01:00
parent 039bb456cc
commit b3b5fac191
1 changed files with 3 additions and 1 deletions

View File

@ -29,8 +29,10 @@ struct DeleteWireWorker
void operator()(RTLIL::SigSpec &sig) { void operator()(RTLIL::SigSpec &sig) {
sig.optimize(); sig.optimize();
for (auto &c : sig.chunks) for (auto &c : sig.chunks)
if (c.wire != NULL && delete_wires_p->count(c.wire->name)) if (c.wire != NULL && delete_wires_p->count(c.wire->name)) {
c.wire = module->new_wire(c.width, NEW_ID); c.wire = module->new_wire(c.width, NEW_ID);
c.offset = 0;
}
} }
}; };