From: Jean THOMAS Date: Fri, 7 Aug 2020 10:24:09 +0000 (+0200) Subject: gram.phy.ecp5ddrphy: Detect burstdet on rising edge, not by logic level X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cd694205277ba71c28ad1e0c29bf90a2c5c276a;p=gram.git gram.phy.ecp5ddrphy: Detect burstdet on rising edge, not by logic level --- diff --git a/gram/phy/ecp5ddrphy.py b/gram/phy/ecp5ddrphy.py index b775af7..a7d1764 100644 --- a/gram/phy/ecp5ddrphy.py +++ b/gram/phy/ecp5ddrphy.py @@ -9,6 +9,7 @@ import math from nmigen import * +from nmigen.hdl.ast import Rose from nmigen.lib.cdc import FFSynchronizer from nmigen.utils import log2_int @@ -333,7 +334,7 @@ class ECP5DDRPHY(Peripheral, Elaboratable): o_DQSW270=dqsw270, o_DQSW=dqsw) - with m.If(burstdet): + with m.If(Rose(burstdet)): m.d.sync += burstdet_reg[i].eq(1) # DQS and DM ---------------------------------------------------------------------------