diff options
author | David Shah <dave@ds0.me> | 2020-12-17 20:27:32 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-12-17 20:27:32 +0000 |
commit | c667c56bd99576391773123631751672ba4ceffb (patch) | |
tree | 0393b281db468963bb07c7a4f246a1836c87559e /ecp5 | |
parent | c8cb9895a3cdf72d95e0a2cbf7a7dc0f5373f9fe (diff) | |
download | nextpnr-c667c56bd99576391773123631751672ba4ceffb.tar.gz nextpnr-c667c56bd99576391773123631751672ba4ceffb.tar.bz2 nextpnr-c667c56bd99576391773123631751672ba4ceffb.zip |
ecp5: Fix FF timing data
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/arch.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 082f9edb..99ff59f7 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -869,8 +869,8 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in if (port == id_F0 || port == id_F1 || port == id_FCO || port == id_OFX0 || port == id_OFX1) return TMG_COMB_OUTPUT; - if (port == id_DI0 || port == id_DI1 || port == id_CE || port == id_LSR || (sd0 == 1 && port == id_M0) || - (sd1 == 1 && port == id_M1)) { + if (port == id_DI0 || port == id_DI1 || port == id_CE || port == id_LSR || (sd0 == 0 && port == id_M0) || + (sd1 == 0 && port == id_M1)) { clockInfoCount = 1; return TMG_REGISTER_INPUT; } @@ -1037,8 +1037,8 @@ TimingClockingInfo Arch::getPortClockingInfo(const CellInfo *cell, IdString port info.edge = RISING_EDGE; info.clock_port = id_WCK; getSetupHoldFromTimingDatabase(id_SDPRAME, id_WCK, port, info.setup, info.hold); - } else if (port == id_DI0 || port == id_DI1 || port == id_CE || port == id_LSR || (sd0 == 1 && port == id_M0) || - (sd1 == 1 && port == id_M1)) { + } else if (port == id_DI0 || port == id_DI1 || port == id_CE || port == id_LSR || (sd0 == 0 && port == id_M0) || + (sd1 == 0 && port == id_M1)) { info.edge = cell->sliceInfo.clkmux == id("INV") ? FALLING_EDGE : RISING_EDGE; info.clock_port = id_CLK; getSetupHoldFromTimingDatabase(id_SLOGICB, id_CLK, port, info.setup, info.hold); |