From 5b3375cdec2503a7d0d8b38d5092b0ebfe6b3a07 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Mon, 3 Aug 2020 12:31:10 +0200 Subject: [PATCH] Use DiffPairs for DQS --- examples/ecpix5_85.py | 5 ++--- gram/phy/ecp5ddrphy.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/ecpix5_85.py b/examples/ecpix5_85.py index 62f06ef..515b482 100644 --- a/examples/ecpix5_85.py +++ b/examples/ecpix5_85.py @@ -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") diff --git a/gram/phy/ecp5ddrphy.py b/gram/phy/ecp5ddrphy.py index eb4c7b1..20cd9e4 100644 --- a/gram/phy/ecp5ddrphy.py +++ b/gram/phy/ecp5ddrphy.py @@ -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)): -- 2.30.2