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

Page 335: Description, Example, Get_assignment_info –205

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–205

project

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_assignment_info

Usage

get_assignment_info [-entity] [-from] [-get_tcl_command] [-name] [-section_id] [-tag]
[-to] [-value] <asgn_id>

Options

-entity: Option to get the assignment entity

-from: Option to get the assignment source

-get_tcl_command: Option to get the tcl command that sets the assignment

-name: Option to get the assignment name

-section_id: Option to get the assignment section id

-tag: Option to get the assignment tag

-to: Option to get the assignment destination

-value: Option to get the assignment value

<asgn_id>: Assignment id

Description

Returns information for the assignment id based on the specified option.

The assignment id is obtained from the "get_all_assignments" Tcl command.

Example

## View all the instance assignments
foreach_in_collection asgn_id [get_all_assignments -type instance -name \
*] {

set from [get_assignment_info $asgn_id -from]
set to [get_assignment_info $asgn_id -to]
set name [get_assignment_info $asgn_id -name]
set value [get_assignment_info $asgn_id -value]
set entity [get_assignment_info $asgn_id -entity]
set tag [get_assignment_info $asgn_id -tag]

puts "$entity: $name ($from -> $to) = $value"
}

Advertising