Get_instance_assignment, Usage, Options – Altera Quartus II Scripting User Manual
Page 339: Description, Example, Get_instance_assignment –209
Chapter 3: Tcl Packages & Commands
3–209
project
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
get_instance_assignment
Usage
get_instance_assignment [-entity <entity_name>] [-from <source>] [-front] -name <name>
[-section_id <section id>] [-tag <data>] [-to <destination>]
Options
-entity <entity_name>: Entity to which assignment belongs
-from <source>: Source of assignment
-front: Option to return the first assignment if there is more than one assignment found
-name <name>: Assignment name
-section_id <section id>: Section id
-tag <data>: Option to tag data to this assignment
-to <destination>: Destination of assignment
Description
Returns the value of the instance assignment.
The "-name" option is not case sensitive. The "-entity", "-to", and "-from" options are case sensitive.
For entity-specific assignments, use the "-entity" option to retrieve the assignment from the specified
entity. If the "-entity" option is not specified, the value for the FOCUS_ENTITY_NAME assignment is
used. If the FOCUS_ENTITY_NAME value is not found, the revision name is used.
Example
## Get the TSU_REQUIREMENT from mypin to any register
set value \
[get_instance_assignment -from "mypin" -to * -name TSU_REQUIREMENT]
puts "TSU_REQUIREMENT(mypin->*) = $value"