contents.gifindex.gif

Equations Keyword

Syntax

EQUATIONS
element [?]:= condition ;
element [?]= condition ;

Use

The equations statement defines the beginning of a group of equations associated with a device. Equations specify logic functions with Boolean algebra. An ending semicolon is required after each equation.

Use When-then-else for conditional expressions in equations. If-then-else is used only in State_diagram descriptions.


CAUTION: The := and ?:= assignment operators are used only when writing pin-to-pin registered equations. Use the = and ?= assignment operators for registered equations using detailed dot extensions.


Example

equations
A = B & C # A ;
[W,Y] = 3 ;
!F = B == C ;
output.D = in1 # in2 ;


See Also

Module

State_Diagram

Truth_Table

When-Then-Else