End_memory_edit, Usage, Options – Altera Quartus II Scripting User Manual
Page 256: Description, Example, End_memory_edit –126

3–126
Chapter 3: Tcl Packages & Commands
insystem_memory_edit
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
end_memory_edit
Usage
end_memory_edit
Options
None
Description
Terminate the memory editing sequence. The sequence does not have to be terminated unless the device
configuration is changed or a different device is edited.
Example
# Instance 0 is configured as {0 1024 8 RW ROM/RAM mem0}
# Initiate a editing sequence
begin_memory_edit -hardware_name "USB-Blaster \[USB-0\]" -device_name \
"@1: EP1S25/_HARDCOPY_FPGA_PROTOTYPE (0x020030DD)"
# Write memory content using binary string
write_content_to_memory -instance_index 0 -start_address 575 -word_count \
2 -content "0000001011011100"
# Read back memory content in binary string written
puts \
[read_content_from_memory -instance_index 0 -start_address 575 \
-word_count 2 ]
# Write memory content using hexadecimal string
write_content_to_memory -instance_index 0 -start_address 575 -word_count \
2 -content "E2F1" -content_in_hex
# Read back memory content in hexadecimal string written
puts \
[read_content_from_memory -instance_index 0 -start_address 575 \
-word_count 2 -content_in_hex]
# End the editing sequence
end_memory_edit