diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-02-09 09:34:58 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-02-09 09:34:58 +0100 |
commit | b3b5fac191999627b61a8f3a0e13d1ce5d97c598 (patch) | |
tree | ce78baaa348520c164ffb83616d587cdc4529548 /passes | |
parent | 039bb456cc2758db13d0f51b71603419a6de0477 (diff) | |
download | yosys-b3b5fac191999627b61a8f3a0e13d1ce5d97c598.tar.gz yosys-b3b5fac191999627b61a8f3a0e13d1ce5d97c598.tar.bz2 yosys-b3b5fac191999627b61a8f3a0e13d1ce5d97c598.zip |
Bugfix in delete command
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; + } } }; |