AHDL

Example of Arithmetic Expressions



Range defined with an arithmetic expression:

SUBDESIGN foo
(
   a[4..2+1-3+8] : INPUT;
)

Constant defined with an arithmetic expression:

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

Evaluated function defined with an arithmetic expression:

DEFINE MIN(a,b) = ((a < b) ? a : b);

- PLDWorld -

 

Created by chm2web html help conversion utility.