mirror of https://github.com/YosysHQ/yosys.git
shiftx NULL pointer check
This commit is contained in:
parent
d6d9ef0fee
commit
b94db54664
|
@ -165,15 +165,17 @@ struct ShregmapTechXilinx7 : ShregmapTech
|
|||
}
|
||||
}
|
||||
|
||||
if (shiftx) {
|
||||
// Cannot implement variable-length shift registers
|
||||
// greater than 128 since Q31 cannot be output onto
|
||||
// fabric
|
||||
if (shiftx && GetSize(taps) > 128)
|
||||
if (GetSize(taps) > 128)
|
||||
return false;
|
||||
|
||||
// Only map if $shiftx exclusively covers the shift register
|
||||
if (GetSize(taps) != shiftx->getParam("\\A_WIDTH").as_int())
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue