mirror of https://github.com/YosysHQ/yosys.git
proc_rom: Set `src` on the emitted memory
This commit is contained in:
parent
118b2829db
commit
7ee685a0b0
|
@ -183,6 +183,12 @@ struct RomWorker
|
||||||
mem.rd_ports.push_back(std::move(rd));
|
mem.rd_ports.push_back(std::move(rd));
|
||||||
|
|
||||||
mem.emit();
|
mem.emit();
|
||||||
|
|
||||||
|
if (sw->has_attribute(ID::src)) {
|
||||||
|
mem.inits[0].cell->attributes[ID::src] = sw->attributes[ID::src];
|
||||||
|
mem.rd_ports[0].cell->attributes[ID::src] = sw->attributes[ID::src];
|
||||||
|
}
|
||||||
|
|
||||||
for (auto cs: sw->cases)
|
for (auto cs: sw->cases)
|
||||||
delete cs;
|
delete cs;
|
||||||
sw->cases.clear();
|
sw->cases.clear();
|
||||||
|
|
Loading…
Reference in New Issue