From b3b5fac191999627b61a8f3a0e13d1ce5d97c598 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 9 Feb 2014 09:34:58 +0100 Subject: [PATCH] Bugfix in delete command --- passes/cmds/delete.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } }; -- 2.30.2