Multiport Switch: Select output signal based on control signal
- The location in the simulation library is:
-
Simulink / Signal Routing
HDL Coder / Signal Routing
The model is:
Double-click the model to open the parameter setting interface as follows:
illustrate
The Multiport Switch block is used to determine which of multiple block inputs is passed to the output. This block determines which input to select based on the value of the first input. The first input is the control input and the remaining inputs are data inputs. The value of the control input determines which data input is passed to the output.
The table below outlines how the module interprets control inputs and how to determine