beautypg.com

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

Page 339: Description, Example, Get_instance_assignment –209

background image

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 ] [-from ] [-front] -name
[-section_id

] [-tag ] [-to ]

Options

-entity : Entity to which assignment belongs

-from : Source of assignment

-front: Option to return the first assignment if there is more than one assignment found

-name : Assignment name

-section_id

: Section id

-tag : Option to tag data to this assignment

-to : 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"