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

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.

Did you find the information on this page useful?

Characters remaining:

Feedback Message