Use DiffPairs for DQS
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 10:31:10 +0000 (12:31 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 10:31:10 +0000 (12:31 +0200)
examples/ecpix5_85.py
gram/phy/ecp5ddrphy.py

index 62f06ef38660a1d61c76233aa170eaed7afdc26a..515b4829dea4b3c83797c1f6eb91dfe6f9ea08b0 100644 (file)
@@ -63,9 +63,8 @@ class _ECPIX5Platform(LatticeECP5Platform):
             Subsignal("cas",  PinsN("P2", dir="o")),
             Subsignal("a",      Pins("T5 M3 L3 V6 K2 W6 K3 L1 H2 L2 N1 J1 M1 K1", dir="o")),
             Subsignal("ba",     Pins("U6 N3 N4", dir="o")),
-            #Subsignal("dqs",    DiffPairs("V4 V1", "U5 U2", dir="io"), Attrs(IO_TYPE="SSTL135D_I")),
-            Subsignal("dqs", Pins("V4 V1", dir="io"), Attrs(IO_TYPE="SSTL135D_I", TERMINATION="OFF", DIFFRESISTOR="100")),
-            Subsignal("dq",     Pins("T4 W4 R4 W5 R6 P6 P5 P4 R1 W3 T2 V3 U3 W1 T1 W2", dir="io")),
+            Subsignal("dqs",    DiffPairs("V4 V1", "U5 U2", dir="io"), Attrs(IO_TYPE="SSTL135D_I", TERMINATION="OFF", DIFFRESISTOR="100")),
+            Subsignal("dq",     Pins("T4 W4 R4 W5 R6 P6 P5 P4 R1 W3 T2 V3 U3 W1 T1 W2", dir="io"), Attrs(TERMINATION="75")),
             Subsignal("dm",     Pins("U4 U1", dir="o")),
             Subsignal("odt",    Pins("P3", dir="o")),
             Attrs(IO_TYPE="SSTL135_I")
index eb4c7b1b4ab57af0edb0fd96b1d8f6443bc715ee..20cd9e45e201bc2466d9ce297cac9cb85f1bc088 100644 (file)
@@ -344,7 +344,7 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
                     i_I=dqs,
                     i_T=dqs_oe_n,
                     o_O=dqs_i,
-                    io_B=self.pads.dqs.io[i]),
+                    io_B=self.pads.dqs.p[i]),
             ]
 
             for j in range(8*i, 8*(i+1)):