Fix pin count error (related to #9)
authorJean THOMAS <git0@pub.jeanthomas.me>
Tue, 16 Jun 2020 14:05:46 +0000 (16:05 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Tue, 16 Jun 2020 14:05:46 +0000 (16:05 +0200)
gram/phy/ecp5ddrphy.py

index 6d26f23e9598044a22b4eb1f5c67cd00958fa50b..cec4f6ea76afd3bcc894525631f98fb0c3f1058b 100644 (file)
@@ -120,13 +120,13 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
         addressbits = len(self.pads.a.o)
         bankbits = len(self.pads.ba.o)
         nranks = 1 if not hasattr(self.pads, "cs_n") else len(self.pads.cs_n)
-        databits = len(self.pads.dq.oe)
+        databits = len(self.pads.dq.o)
         self.dfi = Interface(addressbits, bankbits, nranks, 4*databits, 4)
 
         # PHY settings -----------------------------------------------------------------------------
         tck = 2/(2*2*self._sys_clk_freq)
         nphases = 2
-        databits = len(self.pads.dq.oe)
+        databits = len(self.pads.dq.o)
         nranks = 1 if not hasattr(self.pads, "cs_n") else len(self.pads.cs_n)
         addressbits = len(self.pads.a.o)
         bankbits = len(self.pads.ba.o)