diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 8d8284649..8415d21f2 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -325,10 +325,10 @@ static void sdram_write_leveling_rst_delay(int module) { int i; #endif - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << module); - /* rst delay */ + /* Reset delay */ ddrphy_wdly_dq_rst_write(1); ddrphy_wdly_dqs_rst_write(1); cdelay(100); @@ -339,19 +339,19 @@ static void sdram_write_leveling_rst_delay(int module) { } #endif - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); } static void sdram_write_leveling_inc_delay(int module) { - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << module); - /* inc delay */ + /* Increment delay */ ddrphy_wdly_dq_inc_write(1); ddrphy_wdly_dqs_inc_write(1); - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); } @@ -379,11 +379,11 @@ static int sdram_write_leveling_scan(int *delays, int loops, int show) if (show) printf(" m%d: |", i); - /* rst delay */ + /* Reset delay */ sdram_write_leveling_rst_delay(i); cdelay(100); - /* scan write delay taps */ + /* Scan write delay taps */ for(j=0;j= 0) { delays[i] = _sdram_write_leveling_dat_delays[i]; - /* configure write delay */ + /* Configure write delay */ for(j=0; j 0 && one_window_best_start > 0) { delays[i] = one_window_best_start; - /* configure write delay */ + /* Configure write delay */ for(j=0; j= 0) { ddrphy_cdly_rst_write(1); cdelay(100); @@ -579,7 +579,7 @@ int sdram_write_leveling(void) printf(" Data scan:\n"); - /* re-run write leveling the final time */ + /* Re-run write leveling the final time */ if (!sdram_write_leveling_scan(delays, 128, 1)) return 0; @@ -593,13 +593,13 @@ int sdram_write_leveling(void) /*-----------------------------------------------------------------------*/ static void sdram_read_leveling_rst_delay(int module) { - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << module); - /* rst delay */ + /* Reset delay */ ddrphy_rdly_dq_rst_write(1); - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); #ifdef SDRAM_PHY_ECP5DDRPHY @@ -610,13 +610,13 @@ static void sdram_read_leveling_rst_delay(int module) { } static void sdram_read_leveling_inc_delay(int module) { - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << module); - /* inc delay */ + /* Increment delay */ ddrphy_rdly_dq_inc_write(1); - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); #ifdef SDRAM_PHY_ECP5DDRPHY @@ -628,26 +628,26 @@ static void sdram_read_leveling_inc_delay(int module) { static void sdram_read_leveling_rst_bitslip(char m) { - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << m); - /* rst delay */ + /* Reset delay */ ddrphy_rdly_dq_bitslip_rst_write(1); - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); } static void sdram_read_leveling_inc_bitslip(char m) { - /* sel module */ + /* Select module */ ddrphy_dly_sel_write(1 << m); - /* inc delay */ + /* Increment delay */ ddrphy_rdly_dq_bitslip_write(1); - /* unsel module */ + /* Un-select module */ ddrphy_dly_sel_write(0); } @@ -877,14 +877,14 @@ static void sdram_write_latency_calibration(void) { best_bitslip = 0; for(bitslip=0; bitslip