3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-07 19:51:23 +00:00

Minor fixes in ice40_ff* passes for sloppy SB_DFF instantiations

This commit is contained in:
Clifford Wolf 2016-07-08 14:41:36 +02:00
parent 9a101dc1f7
commit 21659847a7
2 changed files with 24 additions and 13 deletions

View file

@ -81,7 +81,12 @@ struct Ice40FfssrPass : public Pass {
for (auto cell : ff_cells)
{
SigBit bit_d = sigmap(cell->getPort("\\D"));
SigSpec sig_d = cell->getPort("\\D");
if (GetSize(sig_d) < 1)
continue;
SigBit bit_d = sigmap(sig_d[0]);
if (sr_muxes.count(bit_d) == 0)
continue;