@@ -43,14 +43,14 @@ package apb_requester_pkg is
4343 constant bus_handle : apb_requester_t;
4444 constant address : std_logic_vector ;
4545 constant data : std_logic_vector ;
46- variable expected_error : std_logic := '0' ;
46+ constant expected_error : std_logic := '0' ;
4747 -- default byte enable is all bytes
4848 constant byte_enable : std_logic_vector := " " );
4949 procedure write_bus(signal net : inout network_t;
5050 constant bus_handle : apb_requester_t;
5151 constant address : natural ;
5252 constant data : std_logic_vector ;
53- variable expected_error : std_logic := '0' ;
53+ constant expected_error : std_logic := '0' ;
5454 -- default byte enable is all bytes
5555 constant byte_enable : std_logic_vector := " " );
5656
@@ -59,26 +59,26 @@ package apb_requester_pkg is
5959 constant bus_handle : apb_requester_t;
6060 constant address : std_logic_vector ;
6161 variable reference : inout bus_reference_t;
62- variable expected_error : std_logic := '0' );
62+ constant expected_error : std_logic := '0' );
6363
6464 procedure read_bus(signal net : inout network_t;
6565 constant bus_handle : apb_requester_t;
6666 constant address : natural ;
6767 variable reference : inout bus_reference_t;
68- variable expected_error : std_logic := '0' );
68+ constant expected_error : std_logic := '0' );
6969
7070 -- Blocking: read bus with immediate reply
7171 procedure read_bus(signal net : inout network_t;
7272 constant bus_handle : apb_requester_t;
7373 constant address : std_logic_vector ;
7474 variable data : inout std_logic_vector ;
75- variable expected_error : std_logic := '0' );
75+ constant expected_error : std_logic := '0' );
7676
7777 procedure read_bus(signal net : inout network_t;
7878 constant bus_handle : apb_requester_t;
7979 constant address : natural ;
8080 variable data : inout std_logic_vector ;
81- variable expected_error : std_logic := '0' );
81+ constant expected_error : std_logic := '0' );
8282
8383 -- Blocking: Read bus and check result against expected data
8484 procedure check_bus(signal net : inout network_t;
@@ -185,7 +185,7 @@ package body apb_requester_pkg is
185185 constant bus_handle : apb_requester_t;
186186 constant address : std_logic_vector ;
187187 constant data : std_logic_vector ;
188- variable expected_error : std_logic := '0' ;
188+ constant expected_error : std_logic := '0' ;
189189 -- default byte enable is all bytes
190190 constant byte_enable : std_logic_vector := " " ) is
191191 variable request_msg : msg_t := new_msg(apb_write_msg);
@@ -214,7 +214,7 @@ package body apb_requester_pkg is
214214 constant bus_handle : apb_requester_t;
215215 constant address : natural ;
216216 constant data : std_logic_vector ;
217- variable expected_error : std_logic := '0' ;
217+ constant expected_error : std_logic := '0' ;
218218 -- default byte enable is all bytes
219219 constant byte_enable : std_logic_vector := " " ) is
220220 begin
@@ -226,7 +226,7 @@ package body apb_requester_pkg is
226226 constant bus_handle : apb_requester_t;
227227 constant address : std_logic_vector ;
228228 variable data : inout std_logic_vector ;
229- variable expected_error : std_logic := '0' ) is
229+ constant expected_error : std_logic := '0' ) is
230230 variable reference : bus_reference_t;
231231 begin
232232 read_bus(net, bus_handle, address, reference, expected_error);
@@ -237,7 +237,7 @@ package body apb_requester_pkg is
237237 constant bus_handle : apb_requester_t;
238238 constant address : natural ;
239239 variable data : inout std_logic_vector ;
240- variable expected_error : std_logic := '0' ) is
240+ constant expected_error : std_logic := '0' ) is
241241 variable reference : bus_reference_t;
242242 begin
243243 read_bus(net, bus_handle, to_address(bus_handle, address), reference, expected_error);
@@ -249,7 +249,7 @@ package body apb_requester_pkg is
249249 constant bus_handle : apb_requester_t;
250250 constant address : natural ;
251251 variable reference : inout bus_reference_t;
252- variable expected_error : std_logic := '0' ) is
252+ constant expected_error : std_logic := '0' ) is
253253 begin
254254 read_bus(net, bus_handle, to_address(bus_handle, address), reference, expected_error);
255255 end procedure ;
@@ -258,7 +258,7 @@ package body apb_requester_pkg is
258258 constant bus_handle : apb_requester_t;
259259 constant address : std_logic_vector ;
260260 variable reference : inout bus_reference_t;
261- variable expected_error : std_logic := '0' ) is
261+ constant expected_error : std_logic := '0' ) is
262262 variable full_address : std_logic_vector (bus_handle.p_bus_handle.p_address_length- 1 downto 0 ) := (others => '0' );
263263 alias request_msg : msg_t is reference;
264264 begin
0 commit comments