Intel® Quartus® Prime Pro Edition User Guide: Platform Designer

ID 683609
Date 4/02/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.3.10.1. Valid Ranges for Parameters in the _hw.tcl File

In the _hw.tcl file, you can specify valid ranges for parameters.

Platform Designer validation checks each parameter value against the ALLOWED_RANGES property. If the values specified are outside of the allowed ranges, Platform Designer displays an error message. Specifying choices for the allowed values enables users of the component to choose the parameter value from controls in the parameter editor GUI, instead of entering a value.

The ALLOWED_RANGES property is a list of valid ranges, where each range is a single value, or a range of values defined by a start and end value.
Table 35.  ALLOWED_RANGES Property
ALLOWED_RANGES Property Values
{a b c}
a, b, or c
{"No Control" "Single Control" "Dual Controls"}
Unique string values. Quotation marks are required if the strings include spaces .
{1 2 4 8 16}
1, 2, 4, 8, or 16
{1:3}
1 through 3, inclusive.
{1 2 3 7:10}

1, 2, 3, or 7 through 10 inclusive.