diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 093bb7dc5..433c5b535 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -289,6 +289,7 @@ void sdram_write_leveling_force_cmd_delay(int taps, int show) { if (show) printf("Forcing Cmd delay to %d taps\n", taps); ddrphy_cdly_rst_write(1); + cdelay(100); for (i=0; i= 0) { delays[i] = _sdram_write_leveling_dat_delays[i]; /* configure write delay */ - for(j=0; j 0 && one_window_best_start > 0) { delays[i] = one_window_best_start; /* configure write delay */ - for(j=0; j= 0) { ddrphy_cdly_rst_write(1); + cdelay(100); for (int i = 0; i < best_cdly; ++i) { ddrphy_cdly_inc_write(1); cdelay(100);