diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index e824d01a8..86fea89f8 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -671,9 +671,9 @@ static int sdram_write_leveling_scan(int *delays, int loops, int show) one_window_best_start = 0; one_window_best_count = -1; delays[i] = -1; - for(j=0;j one_window_best_count) { @@ -682,7 +682,7 @@ static int sdram_write_leveling_scan(int *delays, int loops, int show) } } } else { - if (taps_scan[j]) { + if (j != err_ddrphy_wdly && taps_scan[j]) { one_window_active = 1; one_window_start = j; }