From 0cd694205277ba71c28ad1e0c29bf90a2c5c276a Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Fri, 7 Aug 2020 12:24:09 +0200 Subject: [PATCH] gram.phy.ecp5ddrphy: Detect burstdet on rising edge, not by logic level --- gram/phy/ecp5ddrphy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 --------------------------------------------------------------------------- -- 2.30.2