Skip to content

Commit

Permalink
make aclk test allow both registered and unregistered mem configs
Browse files Browse the repository at this point in the history
both are valid, which is picked in the end will depend on
timing closure
  • Loading branch information
bunnie committed Sep 26, 2024
1 parent 0b41940 commit ab41cbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/xous-bio-bdma/src/bio_tests/units.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,9 @@ pub fn aclk_tests() -> usize {
print!("{}: {} cycles\r", i, r);
}
assert!(results[1] - results[0] == 3);
assert!(results[2] - results[1] == 3);
assert!(results[3] - results[2] == 6);
// variability is due to option for REGISTER_MEM or not
assert!((results[2] - results[1] == 3) || (results[2] - results[1] == 4));
assert!((results[3] - results[2] == 6) || (results[3] - results[2] == 7));
assert!(results[4] - results[3] == 3);

assert!(results[6] - results[5] == 10); // related to the clock divider
Expand Down

0 comments on commit ab41cbc

Please sign in to comment.