Generate Statement
IF-scheme

-- Notes Page --


The other form of the GENERATE statement is the IF-scheme. This scheme allows for conditional creation of objects. One obvious difference between this scheme and the FOR-scheme is that all the objects created do not have to be the same. While this IF statement may seem similar to the IF-THEN-ELSE construct in behavioral VHDL, the IF-scheme does not allow the use of ELSE or ELSIF branching.

The syntax for the IF-scheme GENERATE statement is shown in this slide. The boolean expression of the IF statement can be any valid boolean expression.