Read_from_simulation_memory, Usage, Options – Altera Quartus II Scripting User Manual
Page 498: Description, Example, Read_from_simulation_memory –368
3–368
Chapter 3: Tcl Packages & Commands
simulator
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
read_from_simulation_memory
Usage
read_from_simulation_memory -address <address> -node <hpath>
Options
-address <address>: Address of the memory word (or data record) from which you want to
read
-node <hpath>: Hierarchical path name of the logic memory
Description
Reads the content of the specified memory address or data record of the specified logical memory.
Example
project_open fast_write
initialize_simulation -ignore_vector_file on -end_time 500ns
# Read the content of inst1|altrom:srom at the address = 14
read_from_simulation_memory -node inst1|altrom:srom -address 14
# Reading memory word inst1|altrom:srom at address 14 returns value X
# Write data = 1 to memory word inst1|altrom:srom at address 14
write_to_simulation_memory -node inst1|altrom:srom -address 14 -data 1
# Read the content of inst1|altrom:srom at the address = 14
read_from_simulation_memory -node inst1|altrom:srom -address 14
# Reading memory word inst1|altrom:srom at address 14 returns value 1
# Writes the data = 0101010101010101 for memory word inst1|altrom:srom
# start with the memory address 0
fast_write_to_simulation_memory -node inst1|altrom:srom -address 0 -data \
0101010101010101
# Read the content of inst1|altrom:srom to check against the
# fast_write_to_simulation_memory result
read_from_simulation_memory -node inst1|altrom:srom -address 0
read_from_simulation_memory -node inst1|altrom:srom -address 1
read_from_simulation_memory -node inst1|altrom:srom -address 2
read_from_simulation_memory -node inst1|altrom:srom -address 3
read_from_simulation_memory -node inst1|altrom:srom -address 4
read_from_simulation_memory -node inst1|altrom:srom -address 5
read_from_simulation_memory -node inst1|altrom:srom -address 6
read_from_simulation_memory -node inst1|altrom:srom -address 7
read_from_simulation_memory -node inst1|altrom:srom -address 8
read_from_simulation_memory -node inst1|altrom:srom -address 9
read_from_simulation_memory -node inst1|altrom:srom -address 10
read_from_simulation_memory -node inst1|altrom:srom -address 11
read_from_simulation_memory -node inst1|altrom:srom -address 12
read_from_simulation_memory -node inst1|altrom:srom -address 13
read_from_simulation_memory -node inst1|altrom:srom -address 14
read_from_simulation_memory -node inst1|altrom:srom -address 15
# Content of inst1|altrom:srom: 0101010101010101
run_simulation
project_close