From: Jean THOMAS Date: Tue, 4 Aug 2020 11:24:11 +0000 (+0200) Subject: Fix simulation to support diff pairs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45a14a1399322c8a6a77e7ab64983bc69f40f310;p=gram.git Fix simulation to support diff pairs --- diff --git a/gram/simulation/icarusecpix5platform.py b/gram/simulation/icarusecpix5platform.py index cb0481f..d2155b2 100644 --- a/gram/simulation/icarusecpix5platform.py +++ b/gram/simulation/icarusecpix5platform.py @@ -28,15 +28,14 @@ class IcarusECPIX5Platform(LatticeECP5Platform): Resource("ddr3", 0, Subsignal("clk", Pins("H3", dir="o")), - #Subsignal("clk", DiffPairs("H3", "J3", dir="o"), Attrs(IO_TYPE="SSTL135D_I")), + #Subsignal("clk", DiffPairs("H3", "J3", dir="o"), Attrs(IO_TYPE="SSTL135D_I")), Subsignal("clk_en", Pins("P1", dir="o")), Subsignal("we", PinsN("R3", dir="o")), Subsignal("ras", PinsN("T3", dir="o")), 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("dqs", DiffPairs("V4 V1", "U5 U2", dir="io"), Attrs(IO_TYPE="SSTL135D_I")), Subsignal("dq", Pins("T4 W4 R4 W5 R6 P6 P5 P4 R1 W3 T2 V3 U3 W1 T1 W2", dir="io")), Subsignal("dm", Pins("U4 U1", dir="o")), Subsignal("odt", Pins("P3", dir="o")), diff --git a/gram/simulation/simsoctb.v b/gram/simulation/simsoctb.v index de80082..a866cc0 100644 --- a/gram/simulation/simsoctb.v +++ b/gram/simulation/simsoctb.v @@ -79,7 +79,7 @@ module simsoctb; top simsoctop ( .ddr3_0__dq__io(dram_dq), - .ddr3_0__dqs__io(dram_dqs), + .ddr3_0__dqs__p(dram_dqs), .ddr3_0__clk__io(dram_ck), .ddr3_0__clk_en__io(dram_cke), .ddr3_0__we__io(dram_we_n),