From: Clifford Wolf Date: Sun, 9 Feb 2014 08:34:58 +0000 (+0100) Subject: Bugfix in delete command X-Git-Tag: yosys-0.2.0~30 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3b5fac191999627b61a8f3a0e13d1ce5d97c598;p=yosys.git Bugfix in delete command --- diff --git a/passes/cmds/delete.cc b/passes/cmds/delete.cc index 8ed650402..d75386a95 100644 --- a/passes/cmds/delete.cc +++ b/passes/cmds/delete.cc @@ -29,8 +29,10 @@ struct DeleteWireWorker void operator()(RTLIL::SigSpec &sig) { sig.optimize(); 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.offset = 0; + } } };