Get_command_lock(), Get_command_request(), Get_command_transaction_id() – Altera Avalon Verification IP Suite User Manual
Page 55: Get_command_write_response_request(), Get_pending_read_latency_cycle()

3–12
Chapter 3: Avalon-MM Slave BFM
Application Program Interface
Avalon Verification IP Suite User Guide
May 2011
Altera Corporation
get_command_lock()
get_command_request()
get_command_transaction_id()
get_command_write_response_request()
get_pending_read_latency_cycle()
Prototype:
bit get_command_lock()
.
Arguments:
None.
Returns:
bit
.
Description:
Queries the received command descriptor for the transaction lock.
Prototype:
Request_t get_command_request()
.
Arguments:
None.
Returns:
Request_t
(enumerated type).
Description:
Gets the received command descriptor to determine command request type. A
command type may be
REQ_READ
or
REQ_WRITE
. These type values are defined in the
enumerated type called
Request_t
, which is imported with the package named
altera_avalon_mm_pkg
.
Prototype:
AvalonTransactionId_t get_command_transaction_id()
.
Arguments:
None.
Returns:
AvalonTransactionId_t
.
Description:
Queries the received command descriptor for the transaction ID.
Prototype:
AvalonTransactionId_t get_command_write_response_request()
.
Arguments:
None.
Returns:
AvalonTransactionId_t
.
Description:
Queries the received command descriptor for the
write_response_request
field
value. A value of 1 indicates that the master has requested for a write response.
Prototype:
int get_pending_read_latency_cycle()
.
Arguments:
None.
Returns:
int
.
Description:
Queries the read command queue to determine the number of cycles needed for the
Slave BFM to complete the current read response. This method notifies the master when
the Slave BFM is ready to receive a command.