Save_content_from_memory_to_file, Usage, Options – Altera Quartus II Scripting User Manual

Page 259: Description, Example, Save_content_from_memory_to_file –129

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–129

insystem_memory_edit

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

save_content_from_memory_to_file

Usage

save_content_from_memory_to_file -instance_index <instance index> -mem_file_path <path>
-mem_file_type <type>

Options

-instance_index <instance index>: Index of the editable memory instance to read

-mem_file_path <path>: Path to the memory file in which to save the memory content

-mem_file_type <type>: Type of the memory file such as "mif" or "hex"

Description

Retrieves the entire memory contents from the specified editable memory instance starting from address 0
and saves it into the specified memory file.

Example

# 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 the hex memory file
update_content_to_memory_from_file -instance_index 0 -mem_file_path \
"image_8x1024.hex" -mem_file_type hex

# Read memory content and save back to a hex memory file
save_content_from_memory_to_file -instance_index 0 -mem_file_path \
"exported_image_8x1024.hex" -mem_file_type hex

# Write memory content using the mif memory file
update_content_to_memory_from_file -instance_index 0 -mem_file_path \
"exported_image_8x1024.mif" -mem_file_type mif

# Read memory content and save back to a mif memory file
save_content_from_memory_to_file -instance_index 0 -mem_file_path \
"image_8x1024.mif" -mem_file_type mif

# End the editing sequence
end_memory_edit

Advertising