From 3467edad7d1e7cfff79996ec66b525818ed197cf Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 28 Jul 2020 14:08:33 +0200 Subject: [PATCH] Simplify tck expression --- 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 f477a73..e573cac 100644 --- a/gram/phy/ecp5ddrphy.py +++ b/gram/phy/ecp5ddrphy.py @@ -106,7 +106,7 @@ class ECP5DDRPHY(Peripheral, Elaboratable): self.dfi = Interface(addressbits, bankbits, nranks, 4*databits, 4) # PHY settings ----------------------------------------------------------------------------- - tck = 2/(2*2*self._sys_clk_freq) + tck = 1/(2*self._sys_clk_freq) nphases = 2 databits = len(self.pads.dq.io) nranks = 1 if not hasattr(self.pads, "cs") else len(self.pads.cs.o0) @@ -137,7 +137,7 @@ class ECP5DDRPHY(Peripheral, Elaboratable): m.submodules.bridge = self._bridge - tck = 2/(2*2*self._sys_clk_freq) + tck = 1/(2*self._sys_clk_freq) nphases = 2 databits = len(self.pads.dq.io) -- 2.30.2