Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 12/13/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.1.24.15. get_assignment_info (::quartus::project)

The following table displays information for the get_assignment_info Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

Syntax get_assignment_info [-h | -help] [-long_help] [-comments] [-entity] [-from] [-get_tcl_command] [-name] [-section_id] [-tag] [-to] [-value] <asgn_id>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-comments Option to get the assignment comment
-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 Usage
    ## 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"
}
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Illegal assignment id: <string>. Specify a legal assignment id that was retrieved from the Tcl command get_all_assignments.

Did you find the information on this page useful?

Characters remaining: