gram.phy.ecp5ddrphy: Remove internal signal for delay
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 10:33:06 +0000 (12:33 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 7 Aug 2020 10:33:06 +0000 (12:33 +0200)
gram/phy/ecp5ddrphy.py

index a7d176429028791a4c91a77cf9eb049ef104be60..ccea0eac1a96de623d213218b97df22f59aa136a 100644 (file)
@@ -38,13 +38,12 @@ class ECP5DDRPHYInit(Elaboratable):
 
         # DDRDLLA instance -------------------------------------------------------------------------
         _lock = Signal()
-        delay = Signal()
         m.submodules += Instance("DDRDLLA",
             i_CLK=ClockSignal("sync2x"),
             i_RST=ResetSignal("init"),
             i_UDDCNTLN=~update,
             i_FREEZE=freeze,
-            o_DDRDEL=delay,
+            o_DDRDEL=self.delay,
             o_LOCK=_lock)
         lock = Signal()
         lock_d = Signal()
@@ -70,8 +69,6 @@ class ECP5DDRPHYInit(Elaboratable):
         # Wait DDRDLLA Lock
         m.d.comb += tl.trigger.eq(new_lock)
 
-        m.d.comb += self.delay.eq(delay)
-
         return m