AHDL

If Generate Statement



The If Generate Statement lists a series of behavioral statements that are activated after the positive evaluation of an arithmetic expression.

The following example shows an If Generate Statement:

IF DEVICE_FAMILY == "FLEX®6000" GENERATE
   c[] = 6kadder(a[], b[], cin);
ELSE GENERATE 
   c[] = otheradder(a[], b[], cin);
END GENERATE;
NOTE This example uses the predefined Altera® parameter DEVICE_FAMILY, which represents the target device family that you specified for the current design with the Device page of the Settings dialog box (Assignments menu).

The If Generate Statement has the following characteristics:

More Details


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.