Begin_memory_edit, Usage, Options – Altera Quartus II Scripting User Manual
Page 255: Description, Example, Begin_memory_edit –125

Chapter 3: Tcl Packages & Commands
3–125
insystem_memory_edit
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
begin_memory_edit
Usage
begin_memory_edit -device_name <device name> -hardware_name <hardware name>
Options
-device_name <device name>: Name of the device that holds the editable memory instances
-hardware_name <hardware name>: Name of the hardware that connects to the JTAG chain
Description
Start the memory editing sequence. The editing sequence should be terminated with end_memory_edit.
The sequence does not have to be terminated unless the device configuration is changed or a different
device is edited.
The hardware and device name can be obtained with the get_hardware_names and get_device_names
commands from the jtag package.
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