mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
verific: bit blast RAM if using mem2reg attribute
This commit is contained in:
parent
33c57937cd
commit
22e6ce4282
1 changed files with 19 additions and 0 deletions
|
@ -1446,6 +1446,25 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
||||||
module_name = "\\" + sha1_if_contain_spaces(module_name);
|
module_name = "\\" + sha1_if_contain_spaces(module_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
Array ram_nets ;
|
||||||
|
MapIter mem_mi;
|
||||||
|
Net *mem_net;
|
||||||
|
FOREACH_NET_OF_NETLIST(nl, mem_mi, mem_net)
|
||||||
|
{
|
||||||
|
if (!mem_net->IsRamNet()) continue ;
|
||||||
|
|
||||||
|
if (mem_net->GetAtt("mem2reg"))
|
||||||
|
ram_nets.Insert(mem_net) ;
|
||||||
|
}
|
||||||
|
unsigned i ;
|
||||||
|
FOREACH_ARRAY_ITEM(&ram_nets, i, mem_net) {
|
||||||
|
log("Bit blasting RAM for identifier '%s'\n", mem_net->Name());
|
||||||
|
mem_net->BlastNet();
|
||||||
|
}
|
||||||
|
nl->RemoveDanglingLogic(0);
|
||||||
|
}
|
||||||
|
|
||||||
netlist = nl;
|
netlist = nl;
|
||||||
|
|
||||||
if (design->has(module_name)) {
|
if (design->has(module_name)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue