1.2.4 Defining Logic Equations

Logic equations are the building blocks of the CUPL language. The form for logic equations is as follows:
[!] var [.ext] = exp;

where:

var is a single variable or a list of indexed or non-indexed variables defined according to the rules for list notation. When a variable list is used, the expression is assigned to each variable in the list.

.ext is an optional variable extension to assign a function to the major nodes inside programmable devices.

exp is an expression; that is, a combination of variables and operators.

= is the assignment operator; it assigns the value of an expression to a variable or set of variables.

! is the complement operator.

In standard logic equations, normally only one expression is assigned to a variable. The APPEND statement enables multiple expressions to be assigned to a single variable. The APPENDed logic equation is logically ORed with the original equation for that variable. The format for using the APPEND statement is identical to defining a logic equation, except the keyword APPEND appears before the logic equation begins.

Place logic equations in the “Logic Equation” section of the source file provided by the template file.