**4:1 Multiplexer Design:** Describe the operation of a 4:1 Multiplexer w…
**4:1 Multiplexer Design:** Describe the operation of a 4:1 Multiplexer with 4 data inputs $I_0, I_1, I_2, I_3$ and 2 select lines $S_1, S_0$. Write behavioral Verilog RTL code using a case statement and its testbench.
Model answer
### 1. Truth Table & Function {cc|c} S_1 & S_0 & Out \\ \hline 0 & 0 & I_0 \\ 0 & 1 & I_1 \\ 1 & 0 & I_2 \\ 1 & 1 & I_3 Out = \overline{S_1}\,\overline{S_0} I_0 + \overline{S_1} S_0 I_1 + S_1 \overline{S_0} I_2 + S_1 S_0 I_3 ### 2. Behavioral Verilog RTL Implementation ### 3. Verilog Testbench