@@ -20,10 +20,10 @@ end entity;
2020
2121architecture tb of tb_external_buffer is
2222
23- constant block_len : natural := 5 ;
23+ constant block_len : natural := 3 ;
2424
25- constant ebuf: byte_vector_ptr_t := new_byte_vector_ptr ( 1024 , 0 , - 1 ); -- external through VHPIDIRECT functions 'read_byte' and 'write_byte'
26- constant abuf: byte_vector_ptr_t := new_byte_vector_ptr ( 1024 , 0 , 1 ); -- external through access (required VHPIDIRECT function 'get_addr')
25+ constant ebuf: natural := new_byte_vector ( 1024 , 0 , - 1 ); -- external through VHPIDIRECT functions 'read_byte' and 'write_byte'
26+ constant abuf: natural := new_byte_vector ( 1024 , 0 , 1 ); -- external through access (required VHPIDIRECT function 'get_addr')
2727
2828begin
2929
@@ -36,11 +36,11 @@ begin
3636 info(" Init test" );
3737 for x in 0 to block_len- 1 loop
3838 val := get (ebuf, x); --report "E get(" & to_string(x) & "): " & to_string(val) severity note;
39- set(ebuf, block_len+ x, val); --report "E set(" & to_string(5+x) & "): " & to_string(val) severity note;
39+ set(ebuf, block_len+ x, val+ 1 ); --report "E set(" & to_string(5+x) & "): " & to_string(val) severity note;
4040 end loop ;
4141 for x in block_len to 2 * block_len- 1 loop
4242 val := get (abuf, x); --report "A get(" & to_string(x) & "): " & to_string(val) severity note;
43- set(abuf, block_len+ x, val); --report "A set(" & to_string(5+x) & "): " & to_string(val) severity note;
43+ set(abuf, block_len+ x, val+ 2 ); --report "A set(" & to_string(5+x) & "): " & to_string(val) severity note;
4444 end loop ;
4545 info(" End test" );
4646 end if ;
0 commit comments