Set_parameter, Usage, Options – Altera Quartus II Scripting User Manual
Page 371: Description, Set_parameter –241

Chapter 3: Tcl Packages & Commands
3–241
project
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
set_parameter
Usage
set_parameter [-comment <comment>] [-disable] [-entity <entity_name>] -name <name>
[-remove] [-tag <data>] [-to <destination>] <value>
Options
-comment <comment>: Comment
-disable: Option to disable parameter
-entity <entity_name>: Entity to which to add parameter
-name <name>: Parameter name
-remove: Option to remove parameter
-tag <data>: Option to tag data to this assignment
-to <destination>: Destination of parameter
<value>: Parameter value
Description
Sets or removes the specified parameter name.
The "-name" option is not case sensitive. The "-to" option is case sensitive.
The parameters created or modified by using this Tcl command are not saved to the Quartus II Settings
File (.qsf) unless you explicitly call one of the following two Tcl commands:
1) export_assignments
2) project_close (unless "-dont_export_assignments" is
specified)
These two Tcl commands reside in the ::quartus::project Tcl package. You must save assignment changes
before you run Quartus®II command-line executables. Note, however, that the Tcl commands
"execute_flow" and "execute_module" (part of the ::quartus::flow Tcl package) automatically call
"export_assignments" before they run command-line executables.
Use the "-entity" option to force the parameter to the specified entity. If the "-entity" option is not specified,
the value for the FOCUS_ENTITY_NAME assignment is used. If the FOCUS_ENTITY_NAME value is not
found, the revision name is used.
A parameter is an attribute of a megafunction, macrofunction, or certain primitives that determines the
logic created or used to implement the function. The parameter information can be used to determine the
actual primitives and other subdesigns needed to implement the logic of the function.
The following general guidelines apply to parameters:
■
All logic options can be assigned as parameters for individual instances of megafunctions or
macrofunctions. For a given logic OPTION the precedence for parameters is:
1) Instance specific logic option settings
2) Instance specific parameter settings
3) Project-wide default parameter settings
■
You cannot assign a value to the predefined Altera®parameter DEVICE_FAMILY, which represents the
device family assigned for the project. However, you can use the parameter value in comparisons.