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 6.0 |
|||
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. |