#if defined (USDDRPHY)
#define ERR_DDRPHY_DELAY 512
-#define ERR_DDRPHY_BITSLIP DFII_NPHASES*2
+#define ERR_DDRPHY_BITSLIP 8
+#define NBMODULES DFII_PIX_DATA_SIZE/2
#elif defined (ECP5DDRPHY)
#define ERR_DDRPHY_DELAY 8
#define ERR_DDRPHY_BITSLIP 1
+#define NBMODULES DFII_PIX_DATA_SIZE/4
#else
#define ERR_DDRPHY_DELAY 32
-#define ERR_DDRPHY_BITSLIP DFII_NPHASES*2
+#define ERR_DDRPHY_BITSLIP 8
+#define NBMODULES DFII_PIX_DATA_SIZE/2
#endif
-#define NBMODULES DFII_PIX_DATA_SIZE*DFII_NPHASES/8
-
#ifdef CSR_DDRPHY_WLEVEL_EN_ADDR
void sdrwlon(void)