diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 206187f13..bda139dcd 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -337,16 +337,27 @@ static int write_level_scan(int *delays, int loops, int show) /* rst delay */ write_delay_rst(i); + /* use forced delay if configured */ + if (sdrwl_delays[i] >= 0) { + delays[i] = sdrwl_delays[i]; + + /* configure write delay */ + for(j=0; j 0 && one_window_best_start > 0) { + } else if (one_window_best_count > 0 && one_window_best_start > 0) { delays[i] = one_window_best_start; /* configure write delay */ for(j=0; j