phy/model: update DFITimingsChecker to new SDRAMModule timings format

This commit is contained in:
Jędrzej Boczar 2021-01-21 16:42:04 +01:00
parent 436bfc4fbd
commit 12d66c119d
1 changed files with 3 additions and 3 deletions

View File

@ -212,10 +212,10 @@ class DFITimingsChecker(Module):
if val is None: if val is None:
val = 0 val = 0
elif key in CK_NS: elif key == "tCK":
val = self.ck_ns_to_ps(val, tck)
else:
val = self.ns_to_ps(val) val = self.ns_to_ps(val)
else:
val = self.ck_ns_to_ps(val, tck)
new_timings[key] = val new_timings[key] = val