From 9a57c4e88cf0dd11fe5cbb4dc017104cf548f341 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 21 Aug 2018 09:02:57 +0200 Subject: [PATCH] phy/s7ddrphy: add DDR3-800 timings --- litedram/phy/s7ddrphy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litedram/phy/s7ddrphy.py b/litedram/phy/s7ddrphy.py index 4f39a20..f0b97ab 100644 --- a/litedram/phy/s7ddrphy.py +++ b/litedram/phy/s7ddrphy.py @@ -1,6 +1,6 @@ # 1:4, 1:2 frequency-ratio DDR2/DDR3 PHY for Xilinx's Series7 # DDR2: 400, 533, 667, 800 and 1066 MT/s -# DDR3: 1066, 1333 and 1600 MT/s +# DDR3: 800, 1066, 1333 and 1600 MT/s import math @@ -32,8 +32,11 @@ def get_cl_cw(memtype, tck): else: raise ValueError elif memtype == "DDR3": + # ddr3-800 + if tck >= 2/800e6: + cl, cwl = 6, 5 # ddr3-1066 - if tck >= 2/1066e6: + elif tck >= 2/1066e6: cl, cwl = 7, 6 # ddr3-1333 elif tck >= 2/1333e6: