**2:4 Binary Decoder Design:** Give the truth table and Boolean equations…
**2:4 Binary Decoder Design:** Give the truth table and Boolean equations for a 2:4 Binary Decoder with an active-high Enable pin ($En$). Write behavioral Verilog RTL code and its testbench.
Model answer
### 1. Truth Table & Equations {ccc|cccc} En & A & B & D_3 & D_2 & D_1 & D_0 \\ \hline 0 & \times & \times & 0 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 0 & 0 & 1 \\ 1 & 0 & 1 & 0 & 0 & 1 & 0 \\ 1 & 1 & 0 & 0 & 1 & 0 & 0 \\ 1 & 1 & 1 & 1 & 0 & 0 & 0 - $D_0 = En \cdot \overline{A} \cdot \overline{B}$ - $D_1 = En \cdot \overline{A} \cdot B$ - $D_2 = En \cdot A \cdot \overline{B}$ - $D_3 = En \cdot A \cdot B$ ### 2. Behavioral Verilog RTL Implementation ### 3. Verilog Testbench