mirror of https://github.com/YosysHQ/yosys.git
Bugfix in delete command
This commit is contained in:
parent
039bb456cc
commit
b3b5fac191
|
@ -29,8 +29,10 @@ struct DeleteWireWorker
|
||||||
void operator()(RTLIL::SigSpec &sig) {
|
void operator()(RTLIL::SigSpec &sig) {
|
||||||
sig.optimize();
|
sig.optimize();
|
||||||
for (auto &c : sig.chunks)
|
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.wire = module->new_wire(c.width, NEW_ID);
|
||||||
|
c.offset = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue