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

ID 683364
Date 12/15/2018
Public
Document Table of Contents

5.9.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 a drop-down list or radio button 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 162.  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.