From a8d5a9f0ac60443b3fc380d1a4220fd25bd5d546 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 16 Jun 2020 16:05:46 +0200 Subject: [PATCH] Fix pin count error (related to #9) --- gram/phy/ecp5ddrphy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2