|
FhSim
3.1.0
Marine systems simulation
|
A general logics object.
Collaboration diagram for Logic:It is assumed that the size of all ports are equal. The number of input ports and the size of the ports are decided by input parameters. This function supports the logical operations "and", "or" or "xor" (exclusive "or"). With more than two inputs, "xor" is odd parity: the output is true when an odd number of the inputs are non-zero.
| Name | Width | Description |
|---|---|---|
| In1 .. In<NumInput> | <PortWidth> | The input signal. Numbering starts at 1. |
| Name | Width | Description |
|---|---|---|
| Out | <PortWidth> | The result of the logical operation on the input. |
| Name | Width | Description |
|---|---|---|
| PortWidth | The number of elements in the input and output ports | |
| Type | 1 | The logic operation applied to the input: "or" , "and" or "xor". Required. |
| NumInput | 1 |
The number of input ports |
This SimObject contains no initial conditions.
This SimObject is referred to as Math/Logic