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

Page 321: Description, Example, Export_assignments –191

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–191

project

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

export_assignments

Usage

export_assignments [-reorganize]

Options

-reorganize: Option to reorganize the Quartus II Settings File (.qsf)

Description

Exports assignments for the current revision to the Quartus II Settings File (.qsf).

Assignments created or modified during an open project are not saved to the Quartus II Settings File (.qsf)
unless you explicitly call one of the following two Tcl commands:

export_assignments

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.

Example

## The most common use of export_assignments is to
## call it before doing a system call
## to call a compiler command-line executable
project_open $project_name
set_global_assignment -name FAMILY Stratix

## Before calling quartus_map,
## write out the FAMILY assignment
export_assignments

## Now, call quartus_map
qexec "[file join $::quartus(binpath) quartus_map] $project_name"

Advertising