Bugfix in delete command
authorClifford Wolf <clifford@clifford.at>
Sun, 9 Feb 2014 08:34:58 +0000 (09:34 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 9 Feb 2014 08:34:58 +0000 (09:34 +0100)
passes/cmds/delete.cc

index 8ed650402138b05c5903088ec0876f7dd4f58a23..d75386a953df4970f99da587884107ba7551a95e 100644 (file)
@@ -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;
+                       }
        }
 };