AHDL

Constant Statement



The Constant Statement allows you to substitute a meaningful symbolic name (a constant) for a number, text string, or value of an arithmetic expression (where the value is a number or text string). When you use a constant in a Text Design File (.tdf), the Compiler replaces the constant with the number, text string, or value assigned to the constant in the Constant Statement.

NOTE The Compiler evaluates each arithmetic operator in the arithmetic expression for the evaluated function, and reduces the expression to a value (a number or text string). The Compiler does not generate logic for the expression.

The following examples show Constant Statements:

CONSTANT UPPER_LIMIT = 130;

CONSTANT BAR = 1 + 2 DIV 3 + LOG2(256);

The Constant Statement has the following characteristics:

Constant Statements must conform to the following rules:


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.