Example – Altera Quartus II Scripting User Manual

Page 372

Advertising
background image

3–242

Chapter 3: Tcl Packages & Commands

project

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

■

The predefined Altera LPM_PIPELINE and LATENCY parameters can be assigned to an instance of a
megafunction or macrofunction. However, the parameter applies only to that instance, and is not
inherited by the subdesigns of that instance.

■

All logic options can be assigned as parameters for individual megafunctions or macrofunctions.
However, logic options cannot be assigned global, project-wide default parameter values.

Example

## 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 a specific instance
## of my_ram
set_parameter -to "my_ram:ram_inst" -name SIZE 16

Advertising