Forum Discussion
Altera_Forum
Honored Contributor
12 years agoNice! Thanks HDL Guru. I just gave your code a try and it works like a charm.
Looks like the help and example code in the get_all_global_assignments should be updated to say it returns a collection of <asgn_id> -------------------------------------------------------------------- For future reference, and to help google indexing, here is the long_help for get_assignment_info:Usage: get_assignment_info <asgn_id>
-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
------------------------
Tcl Package and Version:
------------------------
Belongs to ::quartus::project_ui 1.0
------------
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 {
set from
set to
set name
set value
set entity
set 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".
---------------------------------------------------------------------------