Skip to content

Commit

Permalink
enclosing display in pre-processor directives to conform to latest yo…
Browse files Browse the repository at this point in the history
…sys (#256)
  • Loading branch information
sylefeb committed Nov 8, 2023
1 parent f90275b commit ea178f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/sdram_memtest/sdram_memtest.si
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ $$if false then
sio.data_in = 0;
sio.in_valid = 1;
while (!sio.done) { }
$$if SIMULATION then
__display("sio.data_out = %h",sio.data_out);
$$end
leds = sio.data_out[56,8];
$$end

Expand Down Expand Up @@ -289,12 +291,16 @@ $$if true then
$$if TEST_r128w8 or TEST_r16w16 then
if (sio.data_out[0,8] != count[0,8]) {
leds = 8b01010101;
$$if SIMULATION then
__display("ERROR AT %h",count);
$$end
}
$$else
if (sio.data_out[0,64] != (64h1122aabbccddeeff ^ count ^ (count<<32))) {
leds = 8b01010101;
$$if SIMULATION then
__display("ERROR AT %h",count);
$$end
}
$$end
$$if SIMULATION then
Expand Down

0 comments on commit ea178f5

Please sign in to comment.