Skip to content

Commit d53326e

Browse files
ru551nLarsAsplund
authored andcommitted
Fix data size issue in test
1 parent e12306f commit d53326e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vunit/vhdl/verification_components/test/tb_axi_write_slave.vhd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,10 @@ begin
355355

356356
elsif run("Test unaligned write around 4kbyte boundary") then
357357
-- Do one beat write at unaligned address starting around 4kB boundary
358-
len := 1;
359358
log_size := log_data_size;
360-
buf := allocate(memory, 4096 - (2**log_data_size / 8) + 1, permissions => no_access); -- Unaligned address
361-
random_integer_vector_ptr(rnd, data, (2**log_data_size / 8) , 0, 255);
362-
buf := allocate(memory, length(data), permissions => no_access);
359+
buf := allocate(memory, 4096 - 2**log_size + 1, permissions => no_access);
360+
random_integer_vector_ptr(rnd, data, 2**log_size , 0, 255);
361+
buf := allocate(memory, length(data), permissions => no_access); -- Unaligned address
363362
transfer(x"2", buf, log_size, data);
364363

365364
elsif run("Test error on missing tlast fixed") then

0 commit comments

Comments
 (0)