Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 10/04/2021

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents
Give Feedback set_parameter (::quartus::project)

The following table displays information for the set_parameter Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

Syntax set_parameter [-h | -help] [-long_help] [-comment <comment> ] [-disable] [-entity <entity_name> ] [-fall] -name <name> [-remove] [-rise] [-tag <data> ] [-to <destination> ] [ <value> ]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-comment <comment> Comment
-disable Option to disable parameter
-entity <entity_name> Entity to which to add parameter
-fall Option applies to falling edge
-name <name> Parameter name
-remove Option to remove parameter
-rise Option applies to rising edge
-tag <data> Option to tag data to this assignment
-to <destination> Destination of parameter
<value> Parameter value

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 Prime 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 Prime 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. set_parameter can be used to overwrite the parameters in the top-level entity of the design. A warning will be given if the parameter can not be applied. set_parameter assignments with "-entity" and "-to" are ignored and a critical warning is given if they are used.

Example Usage
## Set project-wide, default WIDTH parameter value
set_parameter -name WIDTH 8

## Set entity-specific SIZE parameter value
## to "my_ram" entity
set_parameter -entity my_ram -name SIZE 16

## Specify the same parameter to my_ram
## but inside "top_level" entity
set_parameter -entity top_level -to my_ram -name SIZE 16
Return Value Code Name Code String Return