sayma/sdram/scan: test each tap 1024 times

This commit is contained in:
Robert Jördens 2018-03-20 00:59:31 +08:00
parent a27b5d88c2
commit ed2e0c8b34
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ mod ddr {
let mut working = true; let mut working = true;
for p in 0..DFII_NPHASES { for p in 0..DFII_NPHASES {
for _ in 0..64 { for _ in 0..1024 {
for &offset in [n, n + DQS_SIGNAL_COUNT].iter() { for &offset in [n, n + DQS_SIGNAL_COUNT].iter() {
let addr = DFII_PIX_RDDATA_ADDR[p].offset(offset as isize); let addr = DFII_PIX_RDDATA_ADDR[p].offset(offset as isize);
let data = prs[DFII_PIX_DATA_SIZE * p + offset]; let data = prs[DFII_PIX_DATA_SIZE * p + offset];
@ -323,7 +323,7 @@ mod ddr {
let incr_delay_until = |expected| { let incr_delay_until = |expected| {
while delay.get() < DDRPHY_MAX_DELAY { while delay.get() < DDRPHY_MAX_DELAY {
let mut working = true; let mut working = true;
for _ in 0..64 { for _ in 0..1024 {
sdram_phy::command_prd(DFII_COMMAND_CAS|DFII_COMMAND_CS| sdram_phy::command_prd(DFII_COMMAND_CAS|DFII_COMMAND_CS|
DFII_COMMAND_RDDATA); DFII_COMMAND_RDDATA);
spin_cycles(15); spin_cycles(15);