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

Page 309: Description, Example, Load_package –179

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–179

misc

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

load_package

Usage

load_package [-version <version number>] <package name>

Options

-version <version number>: Option to specify the Quartus II Tcl package version to load

<package name>: Name of Quartus II Tcl package to load

Description

Loads the specified Quartus®II Tcl package with the specified version number. If you do not specify the
"-version" option, the latest version is loaded by default.

The Quartus II Tcl package names have the "::quartus::" prefix, such as "::quartus::project". For
convenience, you can omit the "::quartus::" prefix when you use the <package name> argument.

This command is similar to the "package require" command. The advanatage of using "load_package" is
that you can alternate freely between different versions of the same package.

For example, if you loaded version 2.0, and now want to load version 1.0, you can type:

"load_package -version 1.0 <package name>".

Example

# Load version 1.0 of the ::quartus::project package
load_package project -version 1.0

# Load version 2.0 of the ::quartus::project package
load_package project -version 2.0

Advertising