Fast_write_to_simulation_memory, Usage, Options – Altera Quartus II Scripting User Manual
Page 488: Description, Example, Fast_write_to_simulation_memory –358

3–358
Chapter 3: Tcl Packages & Commands
simulator
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
fast_write_to_simulation_memory
Usage
fast_write_to_simulation_memory -address
-data -nodeOptions
-address
: Address of the group of memory words to which you want to write-data : Data records you want to write to the group of memory words specified by
"-address "
-node
Description
Writes the specified data records to the memory address of the specified group of memory words.
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