forked from M-Labs/artiq
1
0
Fork 0

sdram: clean up console output

This commit is contained in:
Robert Jördens 2018-03-20 15:42:49 +01:00
parent 206664afd9
commit f4719ae24b
1 changed files with 4 additions and 5 deletions

View File

@ -367,8 +367,9 @@ mod ddr {
} }
if max_delay <= min_delay { if max_delay <= min_delay {
log!(logger, "Zero window: {}: {}-{}\n", log!(logger, "Zero window: {}: {}-{} ({})\n",
DQS_SIGNAL_COUNT - n - 1, min_delay, max_delay); DQS_SIGNAL_COUNT - n - 1, min_delay, max_delay,
max_seen_valid);
return false return false
} }
if max_seen_valid <= 5 { if max_seen_valid <= 5 {
@ -379,9 +380,7 @@ mod ddr {
} }
let mean_delay = (min_delay + max_delay) / 2; let mean_delay = (min_delay + max_delay) / 2;
log!(logger, "{}: {}+-{}, ", log!(logger, "{}+-{} ", mean_delay, max_seen_valid / 2);
DQS_SIGNAL_COUNT - n - 1, mean_delay,
max_seen_valid / 2);
// Set delay to the middle // Set delay to the middle
ddrphy::rdly_dq_rst_write(1); ddrphy::rdly_dq_rst_write(1);