gram.phy.ecp5ddrphy: Code cleaning
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 6 Aug 2020 09:59:26 +0000 (11:59 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 6 Aug 2020 09:59:26 +0000 (11:59 +0200)
gram/phy/ecp5ddrphy.py

index de4cbdda182fc6e8c8e220435fad77309c49a597..9bbccbd8841cc4bc2f1dc2ca0a7f0deafcd67f8e 100644 (file)
@@ -19,7 +19,7 @@ from gram.common import *
 from gram.phy.dfi import Interface
 from gram.compat import Timeline
 
-# Lattice ECP5 DDR PHY Initialization --------------------------------------------------------------
+__all__ = ["ECP5DDRPHY"]
 
 
 class ECP5DDRPHYInit(Elaboratable):
@@ -74,7 +74,6 @@ class ECP5DDRPHYInit(Elaboratable):
 
         return m
 
-# Lattice ECP5 DDR PHY -----------------------------------------------------------------------------
 
 
 class ECP5DDRPHY(Peripheral, Elaboratable):
@@ -412,8 +411,6 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
                         o_Q1=dq_i_data[1],
                         o_Q2=dq_i_data[2],
                         o_Q3=dq_i_data[3]),
-                ]
-                m.submodules += [
                     Instance("TSHX2DQA",
                         i_RST=ResetSignal("dramsync"),
                         i_ECLK=ClockSignal("sync2x"),