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