← All exercises

Mux 4

easy

Routes one of four input sources to the output based on a select value.

What it teaches

Input routing — forward exactly one of four sources based on a select value. The shape is four explicit cases, one per select value, each claiming the output for its source. Foundation for recipe selection and signal arbitration.

Parameters

TagDirectionTypeDefaultDescription
In_SelectInputDINT0Selector value
In_Source0InputREAL10First input source
In_Source1InputREAL20Second input source
In_Source2InputREAL30Third input source
In_Source3InputREAL40Fourth input source
Out_SelectedOutputREAL0Routed value

Required behavior