English
Language : 

DS824 Datasheet, PDF (15/55 Pages) Xilinx, Inc – LogiCORE IP AXI Bus Functional Models (v3.00.a)
LogiCORE IP AXI Bus Functional Models (v3.00.a)
Test Writing API
The test writing API starts simple and is layered to implement more complex protocol features. This approach
enables very complex test cases to be written. For a complete overview of the general AXI BFM architecture, see
Overview, page 2.
For all functions in the API, the input and output values used for burst length and burst size are encoded as
specified in the AMBA® AXI Specifications [Ref 3]. For example, LEN = 0 as an input means a burst of length 1.
Tasks and functions common to all BFMs are described in Table 9.
Table 9: Utility API Tasks/Functions
API Task/Function Name and Description
Inputs
Outputs
report_status
This function can be called at the end of a test to
report the final status of the associated BFM.
dummy_bit: The value of this input
can be 1 or 0 and does not matter.
It is only required because a Verilog
function needs at least 1 input.
report_status: This is an integer
number which is calculated as:
report_status =
error_count + warning_count +
pending_transactions_count
report_config
This task prints out the current configuration as set by
the configuration parameters and variables. This task
can be called at any time.
None
None
set_channel_level_info
LEVEL: A bit input for the info level. None
This function sets the CHANNEL_LEVEL_INFO
internal control variable to the specified input value.
set_function_level_info
LEVEL: A bit input for the info level. None
This function sets the FUNCTION_LEVEL_INFO
internal control variable to the specified input value.
set_stop_on_error
This function sets the STOP_ON_ERROR internal
control variable to the specified input value.
LEVEL: A bit input for the info level. None
set_read_burst_data_transfer_gap
This function sets the SLAVE
READ_BURST_DATA_TRANSFER_GAP internal
control variable to the specified input value.
TIMEOUT: An integer value
measured in clock cycles.
None
set_write_response_gap
This function sets the SLAVE
WRITE_RESPONSE_GAP internal control variable
to the specified input value.
TIMEOUT: An integer value
measured in clock cycles.
None
set_read_response_gap
This function sets the SLAVE
READ_RESPONSE_GAP internal control variable to
the specified input value.
TIMEOUT: An integer value
measured in clock cycles.
None
set_write_burst_data_transfer_gap
This function sets the MASTER
WRITE_BURST_DATA_TRANSFER_GAP internal
control variable to the specified input value.
TIMEOUT: An integer value
measured in clock cycles.
None
set_wrtie_burst_address_data_phase_gap
This function sets the AXI4 FULL MASTER
WRITE_BURST_ADDRESS_DATA_PHASE_GAP
internal control variable to the specified input value.
GAP_LENGTH: An integer value
measured in clock cycles.
None
DS824 July 25, 2012
www.xilinx.com
15
Product Specification