kernel/yosys.h: undef CONST on WIN32
[yosys.git] / kernel / rtlil.cc
index a9f5856160f636d2dccb9ea40a2cf44950e8038d..1faf376e7fd67fc1c3822c4afcdd5924b96dd3c8 100644 (file)
@@ -1826,7 +1826,7 @@ void RTLIL::Module::remove(const pool<RTLIL::Wire*> &wires)
                        sig.pack();
                        for (auto &c : sig.chunks_)
                                if (c.wire != NULL && wires_p->count(c.wire)) {
-                                       c.wire = module->addWire(NEW_ID, c.width);
+                                       c.wire = module->addWire(stringf("$delete_wire$%d", autoidx++), c.width);
                                        c.offset = 0;
                                }
                }