From 12d66c119d93de1702a5165b19d960f08efeb8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Thu, 21 Jan 2021 16:42:04 +0100 Subject: [PATCH] phy/model: update DFITimingsChecker to new SDRAMModule timings format --- litedram/phy/model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/phy/model.py b/litedram/phy/model.py index e6fd008..93000bd 100644 --- a/litedram/phy/model.py +++ b/litedram/phy/model.py @@ -212,10 +212,10 @@ class DFITimingsChecker(Module): if val is None: val = 0 - elif key in CK_NS: - val = self.ck_ns_to_ps(val, tck) - else: + elif key == "tCK": val = self.ns_to_ps(val) + else: + val = self.ck_ns_to_ps(val, tck) new_timings[key] = val