The following predefined evaluated functions are built into AHDL; that is, no Define Statements are needed to use them:
USED function can be used to test whether a port has been used, for example, in an If Generate Statement or a Parameters Statement.
USED takes the port name as input and returns a value of
FALSE if the port is not used.
CEIL function specifies the ceiling of a real number, which is the smallest integer
that is equal to or greater than the real number. Although this operation applies to all
arithmetic expressions, it is meaningful only for
in which the result can be a real number.
FLOORfunction specifies the floor of a real number, which is the largest integer that is equal to or less than the real number. Although this operation applies to all arithmetic expressions, it is meaningful only for
DIVoperations in which the result can be a real number.
You can use these predefined evaluated functions in arithmetic expressions only; you cannot use evaluated functions in Boolean expressions.
Back to Top
- Altera -
|Created by chm2web html help conversion utility.|