This elements applies a logical operation to any number of input ports
Keywords
digital, unidirectional
Ports
| Name | Type |
|---|---|
| input 1 | Digital Signal |
| input 2 | Digital Signal |
| output | Digital Signal |
Properties
General Properties
| Name | Default value | Default unit | Range |
|---|---|---|---|
|
name Defines the name of the element. |
Digital Logic | - | - |
|
annotate Defines whether or not to display annotations on the schematic editor. |
true | - | [true, false] |
|
enabled Defines whether or not the element is enabled. |
true | - | [true, false] |
|
type Defines the element unique type (read only). |
Digital Logic | - | - |
|
description A brief description of the elements functionality. |
This elements applies a logical operation to any number of input ports | - | - |
|
prefix Defines the element name prefix. |
LOGIC | - | - |
|
model Defines the element model name. |
- | - | - |
|
library Defines the element location or source in the library (custom or design kit). |
- | - | - |
|
local path Defines the local path or working folder $LOCAL for the element. |
- | - | - |
|
url An optional URL address pointing to the element online help. |
- | - | - |
Standard Properties
| Name | Default value | Default unit | Range |
|---|---|---|---|
|
logic operator Defines the logic operation to be applied to the input signal. |
AND | - | [AND, OR, NAND, NOR, XOR, NXOR |
|
number of input ports Defines the number of input ports for the element. |
2 | - | [2, +∞) |
====================================
Implementation Details
The Digital Logic element applies logical operations to the input digital bits. For the logical operation truth table, please refer to the table below.
|
Bit 1 |
Bit 2 |
AND |
OR |
NAND |
NOR |
XOR |
NXOR |
|---|---|---|---|---|---|---|---|
|
0 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
|
0 |
1 |
0 |
1 |
1 |
0 |
1 |
0 |
|
1 |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
|
1 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
The following figure shows the system in the example file digital_logic.icp.
The table below shows the input signals and the output for different logical operations.
|
|
|
|
|
|
|
|
|
|
|
|