English
Language : 

DS897 Datasheet, PDF (7/10 Pages) Xilinx, Inc – Zynq-7000 All Programmable SoC Bus Functional Model v2.0
Zynq-7000 All Programmable SoC Bus Functional Model v2.0
Table 1: Zynq-7000 BFM APIs (Cont’d)
APIs
Inputs
Outputs
write_data
Initiate a AXI write transaction on the GP master port. This task
should be used when the transfer size is less or equal to 128 bytes
and the write data is provided as an argument to the task call. Burst
type used is INCR. This is a blocking task and returns only after the
AXI write is completed through a write response (BRESP).
[31:0] addr: Write address
[7:0] wr_size: Number of data
bytes to be written
[1023:0] wr_data: write data
(max. 128 bytes).
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
read_data
Initiate a AXI read transaction on the master port. This task should
be used when the transfer size is less or equal to 128 bytes and the
read data is returned as an output to the task call. Burst type used
is INCR. This is a blocking task and returns only after the complete
AXI READ transaction is done.
[31:0] addr: Write address
[7:0] rd_size: Number of data
bytes to be read
DATA: Valid data
transferred by the Slave
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
write_burst
Initiate a single AXI write burst transaction on the master port. This
calls the AXI BFM API. This task returns when the complete write
transaction is complete.
ADDR: Write Address
LEN: Burst Length
SIZE: Burst Size
BURST: Burst Type
LOCK: Lock Type
CACHE: Cache Type
PROT: Protection Type
DATA: Data to send
DATASIZE: The size in bytes of
the valid data contained in the
input data vector.
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
write_burst_concurrent
Initiate a single AXI write burst transaction on the master port. This
calls the AXI BFM API. This task performs write phase and address
phases concurrently and returns when the complete write
transaction is complete.
ADDR: Write Address
LEN: Burst Length
SIZE: Burst Size
BURST: Burst Type
LOCK: Lock Type
CACHE: Cache Type
PROT: Protection Type
DATA: Data to send
DATASIZE: The size in bytes of
the valid data contained in the
input data vector.
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
read_burst
Initiate a single AXI Read burst transaction on the master port. This
is hook to call the AXI BFM API. This task returns when the
complete read transaction is complete.
ADDR: Write Address
LEN: Burst Length
SIZE: Burst Size
BURST: Burst Type
LOCK: Lock Type
CACHE: Cache Type
PROT: Protection Type
DATA: Valid data
transferred by the slave
RESPONSE: This is a
vector that is created by
concatenating all slave
read responses
together
read_register
Read Register.
[31:0] addr: Register address DATA: Valid register
read data
read_register_map
Read a chunk of registers. 32 registers can be read at a time using
this API.
[31:0] addr: Starting Register
address
size: Number of registers to be
read.
DATA: Valid register
read data
DS897 April 6, 2016
Product Specification
www.xilinx.com
7
Send Feedback