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

Page 345: Description, Example, Get_parameter –215

Advertising
background image

Chapter 3: Tcl Packages & Commands

3–215

project

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

get_parameter

Usage

get_parameter [-entity <entity_name>] -name <name> [-tag <data>] [-to <destination>]

Options

-entity <entity_name>: Entity to which parameter belongs

-name <name>: Parameter name

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

-to <destination>: Destination of parameter

Description

Returns the value of the parameter.

The "-name" option is not case sensitive. The "-to" option is case sensitive.

If the "-to" argument is specified, the function returns the parameter value for the current entity. The value
is retrieved from the PARAMETERS section of the entity. Otherwise, the function returns the project-wide
default parameter value obtained from the DEFAULT_PARAMETERS section.

Use the "-entity" option to retrieve the parameter from 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.

Example

## Get project-wide, default parameter value
get_parameter -name WIDTH

## Get entity-specific parameter value
get_parameter -name inst1 -to SIZE

Advertising