mirror of https://github.com/YosysHQ/yosys.git
Accommodate reversion and fix wreduce naming
This commit is contained in:
parent
06c614a010
commit
de375d6542
|
|
@ -977,7 +977,7 @@ sources = [
|
|||
WClass("IdString", link_types.ref_copy, None, "str()", ""),
|
||||
WClass("Const", link_types.ref_copy, None, "as_string()", ""),
|
||||
WClass("AttrObject", link_types.ref_copy, None, None, None),
|
||||
WClass("NamedObject", link_types.ref_copy, None, None, None),
|
||||
# WClass("NamedObject", link_types.ref_copy, None, None, None),
|
||||
WClass("Selection", link_types.ref_copy, None, None, None),
|
||||
WClass("Monitor", link_types.derive, None, None, None),
|
||||
WClass("CaseRule",link_types.ref_copy, None, None, None, True),
|
||||
|
|
|
|||
|
|
@ -511,7 +511,7 @@ struct WreduceWorker
|
|||
continue;
|
||||
|
||||
log("Removed top %d bits (of %d) from wire %s.%s.\n", unused_top_bits, GetSize(w), log_id(module), log_id(w));
|
||||
Wire *nw = module->addWire(NEW_ID, GetSize(w) - unused_top_bits);
|
||||
Wire *nw = module->addWire(module->uniquify(IdString(w->name.str() + "_wreduce")), GetSize(w) - unused_top_bits);
|
||||
module->connect(nw, SigSpec(w).extract(0, GetSize(nw)));
|
||||
module->swap_names(w, nw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue