From f0f067fe7d4cdc56b97d66833f923dfe4cab4276 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 27 Jul 2018 08:34:06 +0200 Subject: [PATCH] phy/s7ddrphy: add assert to make sure cmd/dat phases are not identical --- litedram/phy/s7ddrphy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litedram/phy/s7ddrphy.py b/litedram/phy/s7ddrphy.py index abdc926..4e94587 100644 --- a/litedram/phy/s7ddrphy.py +++ b/litedram/phy/s7ddrphy.py @@ -61,6 +61,7 @@ def get_sys_phases(nphases, sys_latency, cas_latency, write=False): diff_phase = dat_phase - cmd_phase else: diff_phase = cmd_phase - dat_phase + assert cmd_phase != dat_phase return cmd_phase, dat_phase