From: Jean THOMAS Date: Tue, 28 Jul 2020 12:08:33 +0000 (+0200) Subject: Simplify tck expression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3467edad7d1e7cfff79996ec66b525818ed197cf;p=gram.git Simplify tck expression --- 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)