Axi3 basic slave api definition, Axi3 basic slave api, Definition – Altera Mentor Verification IP Altera Edition AMBA AXI3/4TM User Manual

Page 174

Advertising
background image

Mentor VIP AE AXI3/4 User Guide, V10.2b

156

SystemVerilog Tutorials
Verifying a Master DUT

September 2013

The

Advanced AXI3 Slave API Definition

allows you to create additional response scenarios to

read and write transactions. For example, a successful exclusive transaction requires an
EXOKAY response.

For a complete code listing of the slave test program, refer to

“SystemVerilog AXI4 Slave BFM

Test Program”

on page 720.

AXI3 Basic Slave API Definition

The Basic Slave Test Program API contains:

Functions that read and write a byte of data to

internal memory do_byte_read()

and

do_byte_write()

, respectively.

Functions to configure the AXI3 protocol channel handshake delays

set_read_address_ready_delay()

,

set_write_address_ready_delay()

,

set_write_data_ready_delay()

,

set_read_data_valid_delay()

,

and

set_wr_resp_valid_delay()

.

Tasks to process read and write transactions,

process_read

and

process_write

,

respectively. If you need to create other responses, such as EXOKAY, DECERR, or
SLVERR, then you will need to edit these tasks to provide the required response.

A

slave_mode

transaction field controls the behavior of reading and writing to the

internal memory.

Configuration variables m_max_outstanding_read_trans and
m_max_outstanding_write_trans back-pressure a master from transmitting further read
and write transactions when the configured value has been reached.

Advertising