Skip to content

Commit fbcb2bf

Browse files
committed
Add comments regarding queue ownership for burst bus transfers
1 parent 09185ef commit fbcb2bf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

vunit/vhdl/verification_components/src/bus_master_pkg.vhd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ package bus_master_pkg is
7171
constant data : std_logic_vector;
7272
-- default byte enable is all bytes
7373
constant byte_enable : std_logic_vector := "");
74+
-- Procedures for burst bus write: Caller is responsible for allocation and
75+
-- deallocation of burstdata queue. Procedure cunsumes burst_length data words
76+
-- from burstdata queue. If burstdata queue has less data words, all data
77+
-- words are consumed and pop from empty queue error is raised.
7478
procedure write_bus(signal net : inout network_t;
7579
constant bus_handle : bus_master_t;
7680
constant address : std_logic_vector;
@@ -106,6 +110,9 @@ package bus_master_pkg is
106110
procedure await_read_bus_reply(signal net : inout network_t;
107111
variable reference : inout bus_reference_t;
108112
variable data : inout std_logic_vector);
113+
-- Procedure for burst read reply: Caller is responsible for allocation and
114+
-- deallocation of burstdata queue. Procedure pushes burst_length data words
115+
-- into burstdata queue.
109116
procedure await_read_bus_reply(signal net : inout network_t;
110117
constant bus_handle : bus_master_t;
111118
constant burstdata : queue_t;
@@ -132,6 +139,9 @@ package bus_master_pkg is
132139
constant bus_handle : bus_master_t;
133140
constant address : natural;
134141
variable data : inout std_logic_vector);
142+
-- Procedure for burst bus read: Caller is responsible for allocation and
143+
-- deallocation of burstdata queue. Procedure pushes burst_length data words
144+
-- into burstdata queue.
135145
procedure read_bus(signal net : inout network_t;
136146
constant bus_handle : bus_master_t;
137147
constant address : std_logic_vector;

0 commit comments

Comments
 (0)