diff options
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/delete.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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; + } } }; |