### Logic Diagram of a 4:1 Multiplexer
A 4:1 multiplexer (MUX) selects one of four input signals and forwards the selected input to a single output line based on the values of two select lines. Here's how to represent it:
```
+-----+
S1 --| |
| 4:1|--- Y (Output)
S0 --| MUX |
| |
A0 --| |
A1 --| |
A2 --| |
A3 --| |
+-----+
```
### Components
- **Inputs:** A0, A1, A2, A3
- **Select Lines:** S0, S1
- **Output:** Y
### Truth Table
The truth table for a 4:1 multiplexer is as follows:
| S1 | S0 | Output Y | Selected Input |
|----|----|----------|-----------------|
| 0 | 0 | A0 | A0 |
| 0 | 1 | A1 | A1 |
| 1 | 0 | A2 | A2 |
| 1 | 1 | A3 | A3 |
### Explanation
- The **select lines** (S0 and S1) determine which of the four inputs (A0 to A3) is connected to the output Y.
- When both select lines are low (0, 0), the output is A0.
- When S0 is high and S1 is low (0, 1), the output is A1.
- When S0 is low and S1 is high (1, 0), the output is A2.
- When both select lines are high (1, 1), the output is A3.
This configuration allows for selecting one of the four input signals based on the binary value represented by the select lines.