Memory - 1.0 English

Versal ACAP CIPS Verification IP (DS996)

Document ID
DS996
Release Date
2022-11-16
Version
1.0 English
APIs Inputs Outputs
peek_mem_to_file

This reads from the OCM and prints to a file.

For example: versal_cips_0.inst.pspmc_0.inst.PS9_VIP_inst.inst.peek_mem_to_file(“read_ocm_test_sanity.txt"},addr1,no_of_bytes);

[1023:0] file_name: File name

(max. 128 characters; Read data is written to this file).

[43:0] start_addr: Start Address to read the data from.

[31:0] no_of_bytes: Number of data bytes to be read.

None
write_mem

Back door write to the OCM memory. Based on the address specified, the data is written to OCM. Address must be 32-bit aligned.

For example: versal_cips_0.inst.pspmc_0.inst.PS9_VIP_inst.inst.write_mem(data,40'hFFFF_2000, no_of_bytes);

[8191:0] data: Write data to be written to memory.

[43:0] start_addr: Start Address to write the data from.

[15:0] no_of_bytes: Number of data bytes to be write (max. 128 bytes).

None
read_mem

Back door read from the OCM memory. Based on the address specified, the data is read from OCM.

For example: versal_cips_0.inst.pspmc_0.inst.PS9_VIP_inst.inst.read_mem(40'hFFFF_4000, 128, rd_m_data);

[43:0] start_addr: Start Address to read the data from.

[15:0] no_of_bytes: Number of data bytes to be read.

[8191:0] data: read data from memory.