Altera Quartus II Scripting Uživatelský manuál Strana 260

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 634
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 259
3–130 Chapter 3: Tcl Packages & Commands
insystem_memory_edit
Quartus II Scripting Reference Manual © July 2013 Altera Corporation
update_content_to_memory_from_file
Usage
update_content_to_memory_from_file -instance_index <instance index> -mem_file_path
<path> -mem_file_type <file type>
Options
-instance_index <instance index>: Index of the editable memory instance to modify
-mem_file_path <path>: Path to the memory file to load the memory content
-mem_file_type <file type>: Type of the memory file such as "mif" or "hex"
Description
Writes the data stored in the memory file into the specified memory instance starting from address 0.
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
Zobrazit stránku 259
1 2 ... 255 256 257 258 259 260 261 262 263 264 265 ... 633 634

Komentáře k této Příručce

Žádné komentáře