|
|
Five operand combinations exist with the binary (non-prefix) operators. Each of these combinations is interpreted differently:
If both operands are single nodes or the constants GND or
VCC, the operator performs the logical operation on the two elements. Example
If both operands are groups of nodes, the operator acts upon the corresponding nodes of each group, producing a bitwise set of operations between the groups. The groups must be the same size. Example
If one operand is a single node, GND, or VCC, and the other
operand is a group of nodes, the single node or constant is duplicated to
form a group of the same size as the other operand. The expression is then
treated as a group operation. Example
If both operands are numbers, the shorter number is sign-extended to match the size of the other number. The expression is then treated as a group operation. Example
If one operand is a number and the other is a node or group of nodes, the number is truncated or sign-extended to match the size of the group. If any significant bits are truncated, an error message is generated. The expression is then treated as a group operation. Example
An expression that uses VCC as an operand is interpreted differently from an expression that uses 1 as an operand. Example |
|
- PLDWorld - |
|
|
| Created by chm2web html help conversion utility. |