English
Language : 

DS897 Datasheet, PDF (8/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
set_slave_profile
Set the Slave Profile for each slave port. The latency to be used on
all slave ports is set using this API.
Name: S_AXI_GP0 ,
S_AXI_GP1, S_AXI_HP0,
S_AXI_HP1, S_AXI_HP2,
S_AXI_HP3, S_AXI_ACP or
ALL
Outputs
None
[1:0] latency: latency type
00: Best case
01: Average case
10: Worst case
11: Random
wait_reg_update
This API can be used to wait for a particular address in PL to be
updated with a specific pattern. Zynq-7000 BFM issues an
continuous AXI Read command with the specified address until the
read data matches the expected data pattern. You can decide the
interval of time between the reads. This is a blocking task and
returns only when the read data matches the expected data pattern
or timeout.
Only One API instance per GP Master port should be used at a
time.
[31:0] addr: Register address
[31:0] data_i: expected data
pattern.
[31:0] mask_i: Mask indicating
the bits that are masked (1-
indicates bit is masked from
read/write).
time_interval: number of clock
cycles to wait in between reads.
time_out: number of clock
cycles to wait for the register
update.
[31:0] data_o: data
value that is updated in
the register.
peek_mem_to_file()
Back door read to file from the DDR/OCM memory.
Based on the address specified, the data is read from DDR/OCM.
The read data is written to a file.
DDR: Address must be 32-bit aligned.
OCM: Address must be 32-bit aligned.
[1023:0] file_name: File name
(max. 128 characters; Read data
is written to this file).
[31:0] start_addr: Start
Address to read the data from.
no_of_bytes: Number of data
bytes to be read.
None
write_mem()
Back door write to the DDR/OCM memory.
Based on the address specified, the data is written to DDR/OCM.
DDR: Address must be 32-bit aligned.
OCM: Address must be 32-bit aligned.
[1023:0] data: Write data to be
written to memory.
[31:0] start_addr: Start
Address to write the data from.
no_of_bytes: Number of data
bytes to be write (max. 128
bytes).
None
read_mem()
Backdoor read from the DDR/OCM memory.
Based on the address specified, the data is read from DDR/OCM.
DDR: Address must be 32-bit aligned.
OCM: Address must be 32-bit aligned.
[31:0] start_addr: Start
Address to read the data from.
no_of_bytes: Number of data
bytes to be read (max. 128
bytes).
[1023:0] data: Read
data from memory
Integrating Zynq-7000 BFM
Zynq-7000 BFM must be instantiated in a common top file along with any desired PL logic with all necessary
connections between the PL and the BFM created in this file.
DS897 April 6, 2016
Product Specification
www.xilinx.com
8
Send Feedback