mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 05:43:40 +00:00
Updating Yosys
This commit is contained in:
parent
5038bfa2af
commit
dd487ca8a1
6 changed files with 36 additions and 8 deletions
|
@ -458,6 +458,8 @@ 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));
|
||||
// SILIMATE: Use uniquified ID with $
|
||||
// TODO: improve this
|
||||
IdString nw_name = IdString("$" + w->name.str());
|
||||
while (module->count_id(nw_name)) nw_name = IdString("$" + nw_name.str());
|
||||
Wire *nw = module->addWire(nw_name, GetSize(w) - unused_top_bits);
|
||||
|
|
|
@ -67,4 +67,4 @@ passes/pmgen/peepopt_pm.h: passes/pmgen/pmgen.py $(PEEPOPT_PATTERN)
|
|||
OBJS += passes/pmgen/xilinx_srl.o
|
||||
GENFILES += passes/pmgen/xilinx_srl_pm.h
|
||||
passes/pmgen/xilinx_srl.o: passes/pmgen/xilinx_srl_pm.h
|
||||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_srl_pm.h))
|
||||
$(eval $(call add_extra_objs,passes/pmgen/xilinx_srl_pm.h))
|
||||
|
|
|
@ -75,6 +75,8 @@ struct BmuxmapPass : public Pass {
|
|||
module->addEq(NEW_ID, sel, SigSpec(val, GetSize(sel)), new_s[val]);
|
||||
}
|
||||
IdString new_id = IdString("$" + cell->name.str());
|
||||
// SILIMATE: Use uniquified ID with $
|
||||
// TODO: improve this
|
||||
while (module->count_id(new_id) > 0) new_id = IdString("$" + new_id.str());
|
||||
RTLIL::Cell *pmux = module->addPmux(new_id, new_a, data, new_s, new_data);
|
||||
pmux->add_strpool_attribute(ID::src, cell->get_strpool_attribute(ID::src));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue