|
FhSim
3.1.0
Marine systems simulation
|
A mux (or multiplexer) taking one of several input lines, and then routing the selected input to a combined output std::vector.
Collaboration diagram for Mux:The "Mux" is a signal multiplexer which merges several input signals into a single std::vector signal. The input signal are stacked in the output signal: First input signal first element of the output. This Mux object is defined through its parameters, which gives both the number of input ports and the width of these. The sum of all Input port widths must be equal to the output port width.
| Name | Width | Description |
|---|---|---|
| In1 .. In<NumInput> | <InPortWidth1> .. <InPortWidth<NumInput>> | The input port. Numbering starts at 1 (the parameters InPortWidth1 .. too). |
| Name | Width | Description |
|---|---|---|
| Out | sum of <InPortWidth1> .. <InPortWidth<NumInput>> | The input signals multiplexed into a single signal |
| Name | Width | Description |
|---|---|---|
| NumInput | - | The number of input signals. Required. |
| InPortWidth1 .. InPortWidth<NumInput> | - | The number of elements in each individual input signal |
There are no initial conditions for this function.
This SimObject is referred to as Signal/Mux