phy/s7ddrphy: add assert to make sure cmd/dat phases are not identical

This commit is contained in:
Florent Kermarrec 2018-07-27 08:34:06 +02:00
parent f560b9c182
commit f0f067fe7d
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ def get_sys_phases(nphases, sys_latency, cas_latency, write=False):
diff_phase = dat_phase - cmd_phase diff_phase = dat_phase - cmd_phase
else: else:
diff_phase = cmd_phase - dat_phase diff_phase = cmd_phase - dat_phase
assert cmd_phase != dat_phase
return cmd_phase, dat_phase return cmd_phase, dat_phase