design::set_assignment_info (::quartus::design)
The following table displays information for the design::set_assignment_info Tcl command:
Tcl Package and Version |
Belongs to ::quartus::design 1.0 |
|||
Syntax | design::set_assignment_info [-h | -help] [-long_help] [-disable] [-enable] [-value <value> ] <assignment> | |||
Arguments | -h | -help | Short help | ||
-long_help | Long help with examples and possible return values | |||
-disable | Disable the assignment | |||
-enable | Enable the assignment | |||
-value <value> | Set the assignment value | |||
<assignment> | assignment id | |||
Description |
Set information for a given assignent ID |
|||
Example Usage |
project_open onewire_nf design::load_design -latest_snapshot set asgn_id [lindex [design::get_assignments -name location] 0] puts "Setting location of [design::get_assignment_info -to $asgn_id] to PIN_A5" design::set_assignment_info -value PIN_A5 $asgn_id puts "New location of [design::get_assignment_info -to $asgn_id] is [design::get_assignment_info -value $asgn_id]" |
|||
Return Value | Code Name | Code | String Return | |
TCL_OK | 0 | INFO: Operation successful | ||
TCL_ERROR | 1 | ERROR: The supplied assignment id <string> is invalid. | ||
TCL_ERROR | 1 | ERROR: The supplied assignment value <string> is invalid. | ||
TCL_ERROR | 1 | ERROR: At least one periphery assignment ID must be supplied, but no assignments IDs were supplied. | ||
TCL_ERROR | 1 | ERROR: Either the -to or -from argument is required. | ||
TCL_ERROR | 1 | ERROR: The value of an assignment cannot be empty. | ||
TCL_ERROR | 1 | ERROR: <string> assignment IDs were expected but <string> were supplied. |