1.3.4 Using Condition Statement
The CONDITION syntax provides a higher-level approach to specifying logic functions than writing standard Boolean logic equations for combinatorial logic. The format is as follows:
CONDITION | { | |||
IF | expr0 | OUT | var; | |
- | ||||
- | ||||
IF | exprn | OUT | var; | |
DEFAULT | OUT | var; | ||
} |
The CONDITION syntax is equivalent to the asynchronous conditional output statements of the state machine syntax, except that there is no reference to any particular state. The variable is logically asserted whenever the expression or DEFAULT condition is met.
