mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-05 00:20:52 +00:00
fixup! pmgen: hold sigmap pointer instead of owning it
This commit is contained in:
parent
8bbb0acdda
commit
26a1839fb7
1 changed files with 2 additions and 3 deletions
|
|
@ -73,10 +73,9 @@ void xilinx_simd_pack(Module *module, SigMap* sigmap, const std::vector<Cell*> &
|
|||
if (!cell->type.in(ID($add), ID($sub)))
|
||||
continue;
|
||||
SigSpec Y = cell->getPort(ID::Y);
|
||||
if (!Y.is_chunk() || Y.is_wire())
|
||||
if (!Y.is_chunk())
|
||||
continue;
|
||||
Wire* wire = (*sigmap)(Y).as_wire();
|
||||
if (!wire->get_strpool_attribute(ID(use_dsp)).count("simd"))
|
||||
if (!Y.as_chunk().wire->get_strpool_attribute(ID(use_dsp)).count("simd"))
|
||||
continue;
|
||||
if (GetSize(Y) > 25)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue