2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

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

View File

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