Memory - 2023.1 English

Vitis Unified IDE and Common Command-Line Reference Manual (UG1553)

Document ID
UG1553
Release Date
2023-07-17
Version
2023.1 English
The following are the commands followed by their options (if any) and the Python method for the option (if any).

init_ps

init_data = ["mask_write 0 0x00001FFF 0x00000001", 
    "mask_delay 1", 
    "mask_poll 4 1 1"]
t.init_ps(init_data)

mask_poll

t.mask_poll(4,1,1)

mask_write

t.mask_write(0, 0xFF, 0xFFFF)

memap

addr <memory-address>
t.memmap(addr=0xFC000000, size=0x1000, flags=3)
alignment <bytes>
t.memmap(addr=0xFC000000, size=0x1000, flags=3, alignment=4)
size <memory-size>
t.memmap(addr=0xFC000000, size=0x1000, flags=3)
flags <protection-flags>
t.memmap(addr=0xFC000000, size=0x1000, flags=3)
--list
t.memmap('-l')
--clear
t.memmap('-c', addr=0xFC000000)
relocate_sections <addr>
t.memmap(file='tests/elfs/zynq/core0zynq.elf', , relocate_sections=0x20000000)
-osa
t.memmap(addr=0xFC000000, size=0x1000, flags=3, OSA=1)

mrd

t.mrd(0x00100000, word_size=4, size=10)
--force
t.mrd(0x00100002, '-f', word_size=4, size=10)
size <access-size>
t.mrd(0x00100000, word_size=4, size=10)
--value
x = t.mrd(0x100000, '-v', word_size=4, size=20)
--bin
t.mrd(0x00100000, '-b', word_size=8, size=20, file="tests/data/mrd.bin")
file <file-name>
t.mrd(0x00100000, '-b', word_size=8, size=20, file="tests/data/mrd.bin")
-address-space <name>
t.mrd(0x100, address_space="APR")
t.mrd(0x80090088, address_space="AP1")
-unaligned-access
t.mrd(0x00100000, '-u',word_size=4, size=10)

mwr

t.mwr(0x00100000, word_size=4, size=10, words=[0x01, 0x02, 0x03])
--force
t.mwr(0x00100000, '-f',word_size=4, size=10, words=[0x01, 0x02, 0x03])
--bypass_cache_synq
t.mwr(0x00100000, '-v',word_size=4, size=10, words=[0x01, 0x02, 0x03])
size <access-size>
t.mwr(0x00100000, word_size=4, size=10, words=[0x01, 0x02, 0x03])
--bin
t.mwr(0x00100000, '-b', word_size=4, size = 5, file="tests/data/mrd.bin")
file<file-name>
t.mwr(0x00100000, '-b', word_size=4, size = 5, file="tests/data/mrd.bin")
-address-space <name>
t.mwr(0x80090088, address_space="AP1", words=[0x03186004])
-unaligned-access
t.mwr(0x00100000, '-u',word_size=4, size=10, words=[0x01, 0x02, 0x03])

osa

t.osa('--disable', file='tests/elfs/zynq/core0zynq.elf')
--disable
t.osa('--disable', file='tests/elfs/zynq/core0zynq.elf')
--fast_exec
t.osa('--fast_exec', file='tests/elfs/zynq/core0zynq.elf')
--fast_step
t.osa('--fast_step', file='tests/elfs/zynq/core0zynq.elf')