English
Language : 

DS897 Datasheet, PDF (6/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
pre_load_mem_from_file
Preload DDR/OCM with data from a file. Based on the address
specified, the data is loaded in DDR/OCM. Only hexadecimal data
format is supported.
DDR: Address must be 32-bit aligned.
OCM: Address must be 32-bit aligned.
[1023:0] file_name: File name
(max. 128 characters)
[31:0] start_addr: Start
Address from where DDR/OCM
should be initialized with data
from the file.
no_of_bytes: Number of data
bytes to be loaded
None
pre_load_mem
Preload DDR/OCM with random_data/all_zeros/all_ones. Based
on the address specified, the data is loaded in DDR/OCM.
DDR: Address must be 32-bit aligned.
OCM: Address must be 32-bit aligned.
[1:0] data_type: Random, zeros
or ones.
00 - Random
01- Zeros, 10 - Ones.
[31:0] start_addr: Start
Address from where DDR
should be initialized with data
from the file.
no_of_bytes: Number of data
bytes to be loaded
None
read_interrupt
Users can use this API to poll the interrupt status at any given time.
This is a non-blocking task which returns immediately with the
current status of the interrupt pins.
None
[15:0] irq_status:
Interrupts generated by
PL.
wait_interrupt
Users can use this API to wait for any of the interrupt to occur. This
is a blocking task and returns only any of the interrupt pin is
asserted.
[3:0] irq: Interrupt line number
[15:0] irq_status:
Interrupts generated by
PL.
wait_mem_update
Users can use this API to poll for a specific location. This task is a
blocking task and returns when some value is written in that
location (either a specific value or a new value). If the value does
not match the expected data pattern then a fatal error is issued and
the simulation halts.
Only One instance of this API should be used at a time.
[31:0] addr: 32-bit address
(DDR/OCM)
[31:0] data_i: expected data
pattern
[31:0] data_o: data
value that is updated in
the memory
write_from_file
Initiate a AXI write transaction on the GP master port. The write
data is used from the file. Burst type used is INCR. This is a
blocking task and returns only after the complete AXI WRITE
transaction is done.
Address has to 32-bit aligned.
[1023:0] file_name: File name
that stores the write data (max.
128 characters).
[31:0] addr: Write address
wr_size: Number of data bytes
to written
read_to_file
Initiate a AXI read transaction on the GP master port. The read
data is written to the file. Burst type used is INCR. This is a blocking
task and returns only after the complete AXI READ transaction is
done.
Address has to 32-bit aligned.
[1023:0] file_name: File name
that stores the read data (max.
128 characters).
[31:0] addr: Read address
rd_size: Number of data bytes
to be read
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
RESPONSE: The slave
write response from the
following:
[OKAY, EXOKAY,
SLVERR, DECERR]
DS897 April 6, 2016
Product Specification
www.xilinx.com
6
Send Feedback