|
FhSim
3.1.0
Marine systems simulation
|
Performs a simple summation of the input signals.
Collaboration diagram for Sum:A general summation object. It is assumed that the width of all ports are equal. The number of input ports and the width of the ports are decided by input parameters at run-time.
| Name | Width | Description |
|---|---|---|
| In1 .. In<NumInput> | <PortWidth> | The input port |
| Name | Width | Description |
|---|---|---|
| Out | <PortWidth> | The elementwise sum of the input signals |
| Name | Width | Description |
|---|---|---|
| PortWidth | 1 |
The number of elements in the input and output ports |
| NumInput | 1 | The number of input signals |
There are no initial conditions for this function.
This SimObject is referred to as Math/Sum