Skip to content

Commit 09185ef

Browse files
committed
Rename burstsize -> burst_length
1 parent 355631f commit 09185ef

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

vunit/vhdl/verification_components/src/bus_master_pkg-body.vhd

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,16 @@ package body bus_master_pkg is
101101
procedure write_bus(signal net : inout network_t;
102102
constant bus_handle : bus_master_t;
103103
constant address : std_logic_vector;
104-
constant burstsize : positive;
104+
constant burst_length : positive;
105105
constant burstdata : queue_t) is
106106
variable request_msg : msg_t := new_msg(bus_burst_write_msg);
107107
variable full_address : std_logic_vector(bus_handle.p_address_length-1 downto 0) := (others => '0');
108108
variable full_data : std_logic_vector(bus_handle.p_data_length-1 downto 0) := (others => '0');
109109
begin
110110
full_address(address'length-1 downto 0) := address;
111111
push_std_ulogic_vector(request_msg, full_address);
112-
push_integer(request_msg, burstsize);
113-
for i in 0 to burstsize-1 loop
112+
push_integer(request_msg, burst_length);
113+
for i in 0 to burst_length-1 loop
114114
full_data(bus_handle.p_data_length-1 downto 0) := pop(burstdata);
115115
push_std_ulogic_vector(request_msg, full_data);
116116
end loop;
@@ -120,10 +120,10 @@ package body bus_master_pkg is
120120
procedure write_bus(signal net : inout network_t;
121121
constant bus_handle : bus_master_t;
122122
constant address : natural;
123-
constant burstsize : positive;
123+
constant burst_length : positive;
124124
constant burstdata : queue_t) is
125125
begin
126-
write_bus(net, bus_handle, to_address(bus_handle, address), burstsize, burstdata);
126+
write_bus(net, bus_handle, to_address(bus_handle, address), burst_length, burstdata);
127127
end procedure;
128128

129129
procedure check_bus(signal net : inout network_t;
@@ -191,25 +191,25 @@ package body bus_master_pkg is
191191
procedure read_bus(signal net : inout network_t;
192192
constant bus_handle : bus_master_t;
193193
constant address : std_logic_vector;
194-
constant burstsize : positive;
194+
constant burst_length : positive;
195195
variable reference : inout bus_reference_t) is
196196
variable full_address : std_logic_vector(bus_handle.p_address_length-1 downto 0) := (others => '0');
197197
alias request_msg : msg_t is reference;
198198
begin
199199
request_msg := new_msg(bus_burst_read_msg);
200200
full_address(address'length-1 downto 0) := address;
201201
push_std_ulogic_vector(request_msg, full_address);
202-
push_integer(request_msg, burstsize);
202+
push_integer(request_msg, burst_length);
203203
send(net, bus_handle.p_actor, request_msg);
204204
end procedure;
205205

206206
procedure read_bus(signal net : inout network_t;
207207
constant bus_handle : bus_master_t;
208208
constant address : natural;
209-
constant burstsize : positive;
209+
constant burst_length : positive;
210210
variable reference : inout bus_reference_t) is
211211
begin
212-
read_bus(net, bus_handle, to_address(bus_handle, address), burstsize, reference);
212+
read_bus(net, bus_handle, to_address(bus_handle, address), burst_length, reference);
213213
end procedure;
214214

215215
-- Await read bus reply
@@ -232,11 +232,11 @@ package body bus_master_pkg is
232232
variable reply_msg : msg_t;
233233
alias request_msg : msg_t is reference;
234234
variable data : std_logic_vector(bus_handle.p_data_length-1 downto 0);
235-
variable burstsize : positive;
235+
variable burst_length : positive;
236236
begin
237237
receive_reply(net, request_msg, reply_msg);
238-
burstsize := pop_integer(reply_msg);
239-
for i in 0 to burstsize-1 loop
238+
burst_length := pop_integer(reply_msg);
239+
for i in 0 to burst_length-1 loop
240240
data := pop_std_ulogic_vector(reply_msg)(data'range);
241241
push(burstdata, data);
242242
end loop;
@@ -267,21 +267,21 @@ package body bus_master_pkg is
267267
procedure read_bus(signal net : inout network_t;
268268
constant bus_handle : bus_master_t;
269269
constant address : std_logic_vector;
270-
constant burstsize : positive;
270+
constant burst_length : positive;
271271
constant burstdata : queue_t) is
272272
variable reference : bus_reference_t;
273273
begin
274-
read_bus(net, bus_handle, address, burstsize, reference);
274+
read_bus(net, bus_handle, address, burst_length, reference);
275275
await_read_bus_reply(net, bus_handle, burstdata, reference);
276276
end procedure;
277277

278278
procedure read_bus(signal net : inout network_t;
279279
constant bus_handle : bus_master_t;
280280
constant address : natural;
281-
constant burstsize : positive;
281+
constant burst_length : positive;
282282
constant burstdata : queue_t) is
283283
begin
284-
read_bus(net, bus_handle, to_address(bus_handle, address), burstsize, burstdata);
284+
read_bus(net, bus_handle, to_address(bus_handle, address), burst_length, burstdata);
285285
end procedure;
286286

287287
procedure wait_until_read_equals(

vunit/vhdl/verification_components/src/bus_master_pkg.vhd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ package bus_master_pkg is
7474
procedure write_bus(signal net : inout network_t;
7575
constant bus_handle : bus_master_t;
7676
constant address : std_logic_vector;
77-
constant burstsize : positive;
77+
constant burst_length : positive;
7878
constant burstdata : queue_t);
7979
procedure write_bus(signal net : inout network_t;
8080
constant bus_handle : bus_master_t;
8181
constant address : natural;
82-
constant burstsize : positive;
82+
constant burst_length : positive;
8383
constant burstdata : queue_t);
8484

8585
-- Non blocking: Read the bus returning a reference to the future reply
@@ -94,12 +94,12 @@ package bus_master_pkg is
9494
procedure read_bus(signal net : inout network_t;
9595
constant bus_handle : bus_master_t;
9696
constant address : std_logic_vector;
97-
constant burstsize : positive;
97+
constant burst_length : positive;
9898
variable reference : inout bus_reference_t);
9999
procedure read_bus(signal net : inout network_t;
100100
constant bus_handle : bus_master_t;
101101
constant address : natural;
102-
constant burstsize : positive;
102+
constant burst_length : positive;
103103
variable reference : inout bus_reference_t);
104104

105105
-- Blocking: Await read bus reply data
@@ -135,12 +135,12 @@ package bus_master_pkg is
135135
procedure read_bus(signal net : inout network_t;
136136
constant bus_handle : bus_master_t;
137137
constant address : std_logic_vector;
138-
constant burstsize : positive;
138+
constant burst_length : positive;
139139
constant burstdata : queue_t);
140140
procedure read_bus(signal net : inout network_t;
141141
constant bus_handle : bus_master_t;
142142
constant address : natural;
143-
constant burstsize : positive;
143+
constant burst_length : positive;
144144
constant burstdata : queue_t);
145145

146146
-- Blocking: Wait until a read from address equals the value using

0 commit comments

Comments
 (0)