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

index 289c001d3a6a49b151152461fce506a4602dacca..6d26f23e9598044a22b4eb1f5c67cd00958fa50b 100644 (file)
@@ -159,7 +159,7 @@ class ECP5DDRPHY(Peripheral, Elaboratable):
 
         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)