mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-02-01 14:32:18 +00:00
[ice40] TimingPortClass of LC.O ports without any inputs now TMG_IGNORE
This commit is contained in:
@@ -866,15 +866,22 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, Id
|
|||||||
return TMG_COMB_INPUT;
|
return TMG_COMB_INPUT;
|
||||||
if (port == id_COUT || port == id_LO)
|
if (port == id_COUT || port == id_LO)
|
||||||
return TMG_COMB_OUTPUT;
|
return TMG_COMB_OUTPUT;
|
||||||
if (cell->lcInfo.dffEnable) {
|
if (port == id_O) {
|
||||||
clockPort = id_CLK;
|
// LCs with no inputs are constant drivers
|
||||||
if (port == id_O)
|
if (cell->lcInfo.inputCount == 0)
|
||||||
|
return TMG_IGNORE;
|
||||||
|
if (cell->lcInfo.dffEnable) {
|
||||||
|
clockPort = id_CLK;
|
||||||
return TMG_REGISTER_OUTPUT;
|
return TMG_REGISTER_OUTPUT;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return TMG_REGISTER_INPUT;
|
|
||||||
} else {
|
|
||||||
if (port == id_O)
|
|
||||||
return TMG_COMB_OUTPUT;
|
return TMG_COMB_OUTPUT;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (cell->lcInfo.dffEnable) {
|
||||||
|
clockPort = id_CLK;
|
||||||
|
return TMG_REGISTER_INPUT;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return TMG_COMB_INPUT;
|
return TMG_COMB_INPUT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user