Set_global_assignment, Usage, Options – Altera Quartus II Scripting User Manual

Page 366: Description, Example, Set_global_assignment –236

Advertising
background image

3–236

Chapter 3: Tcl Packages & Commands

project

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

set_global_assignment

Usage

set_global_assignment [-comment <comment>] [-disable] [-entity <entity_name>] -name
<name> [-remove] [-section_id <section id>] [-tag <data>] <value>

Options

-comment <comment>: Comment

-disable: Option to disable assignment

-entity <entity_name>: Entity to which to add assignment

-name <name>: Assignment name

-remove: Option to remove assignment

-section_id <section id>: Section id

-tag <data>: Option to tag data to this assignment

<value>: Assignment value

Description

Sets or removes a global assignment.

Assignments 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 (from the ::quartus::project Tcl
package):

export_assignments

project_close (unless -dont_export_assignments is specified as an

You must save assignment changes before you run Quartus®II command-line executables. Note, however,
that the Tcl commands execute_flow and execute_module (from the ::quartus::flow Tcl package) call
"export_assignments" before they run command-line executables.

For entity-specific assignments, use the -entity option to force the assignment to 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.

If the Quartus II Settings File contains a USER_LIBRARIES assignment and you call
set_global_assignment to set a SEARCH_PATH or USER_LIBRARIES assignment, the existing
USER_LIBRARIES assignment expands into one or more SEARCH_PATH assignments.

Note that values that begin with a dash ("-") should be enclosed in a backslash followed by a quote. In the
following example, -02 is enclosed by \" at the beginning and the end.

set_global_assignment -name ARM_CPP_COMMAND_LINE \"-O2\"

Example

## Specify Stratix as the family to use when compiling
set_global_assignment -name FAMILY Stratix

## If the family name has empty spaces, use quotes
set_global_assignment -name FAMILY "Stratix GX"

## or remove any empty space
set_global_assignment -name FAMILY StratixGX

Advertising