From 3bd5d6cc0ee2daaa970c9f6bba2ae1c6c095c12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Tue, 17 Nov 2020 16:25:17 +0100 Subject: [PATCH] software/liblitedram: fix issues with command/write delays not being incremented. --- litex/soc/software/liblitedram/sdram.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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);