From: Jean THOMAS Date: Tue, 16 Jun 2020 14:05:46 +0000 (+0200) Subject: Fix pin count error (related to #9) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8d5a9f0ac60443b3fc380d1a4220fd25bd5d546;p=gram.git Fix pin count error (related to #9) --- diff --git a/gram/phy/ecp5ddrphy.py b/gram/phy/ecp5ddrphy.py index 6d26f23..cec4f6e 100644 --- a/gram/phy/ecp5ddrphy.py +++ b/gram/phy/ecp5ddrphy.py @@ -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)