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

Page 257: Description, Example, Get_editable_mem_instances –127

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–127

insystem_memory_edit

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_editable_mem_instances

Usage

get_editable_mem_instances -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

Retrieve a list of editable memory, ROM, or lpm_constant instances.

A list is returned, each element of which shows the configuration of each instance. This element is an
another list that specifies the configuration in the following order: <instance index> <depth> <width>
<read/write mode> <instance type> <instance name>. The <read/write mode> can be either "RW" or
"W"; <instance type> can be either "ROM/RAM" or "CONSTANT". An example showing a list of two
instances of different types is shown below:

{0 1024 8 RW ROM/RAM mem0} {1 1 32 RW CONSTANT con0}

The hardware and device name can be obtained with the get_hardware_names and get_device_names
commands from the jtag package.

It is recommended that you call this command before the TCL command, begin_memory_edit. Within a
memory edit sequence, this command can be applied only to the same device, on which the memory edit
sequence has started.

Example

# List information of all editable memories
puts "Information on all editable memories:"
puts "index,depth,width,mode,type,name"
foreach instance \
[get_editable_mem_instances -hardware_name "USB-Blaster \[USB-0\]" \
-device_name "@1: EP1S25/_HARDCOPY_FPGA_PROTOTYPE (0x020030DD)"] {

puts "[lindex $instance 0],[lindex $instance 1],[lindex $instance \
2],[lindex $instance 3],[lindex $instance 4],[lindex $instance 5]"

}

Advertising