summaryrefslogtreecommitdiff
path: root/passes/cmds/delete.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-02-09 09:34:58 +0100
committerClifford Wolf <clifford@clifford.at>2014-02-09 09:34:58 +0100
commitb3b5fac191999627b61a8f3a0e13d1ce5d97c598 (patch)
treece78baaa348520c164ffb83616d587cdc4529548 /passes/cmds/delete.cc
parent039bb456cc2758db13d0f51b71603419a6de0477 (diff)
Bugfix in delete command
Diffstat (limited to 'passes/cmds/delete.cc')
-rw-r--r--passes/cmds/delete.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/passes/cmds/delete.cc b/passes/cmds/delete.cc
index 8ed65040..d75386a9 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;
+ }
}
};