mirror of https://github.com/YosysHQ/nextpnr.git
nexus: Disconnect CCU2 CIN when it's a don't care
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
62e659ed67
commit
a435792828
|
|
@ -1602,6 +1602,12 @@ struct NexusPacker
|
|||
CellInfo *ci = cell.second.get();
|
||||
if (ci->type != id_CCU2)
|
||||
continue;
|
||||
|
||||
// For CCU2s with LUT value 0xFFFF, CIN is a don't-care
|
||||
// disconnect it so it doesn't cause an error below or during chaining
|
||||
if (str_or_default(ci->params, id_INIT0, "") == "0xFFFF")
|
||||
ci->disconnectPort(id_CIN);
|
||||
|
||||
NetInfo *cin = ci->getPort(id_CIN);
|
||||
if (cin) {
|
||||
if (cin->driver.cell && cin->driver.cell->type != id_CCU2) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue