Skip to content
Tactiverge
  1. Stage 1
  2. Stage 2
  3. Stage 3
  4. Stage 4
  5. Stage 5
  6. Stage 6
  7. Stage 7
  8. Stage 8 (this one)
  9. Stage 9
  10. Stage 10
  11. Stage 11
  12. Stage 12
  13. Stage 13
  14. Stage 14
  15. Stage 15

Explanation

A multiplexer (mux) is a switch made of gates: select bits choose which data input reaches the output. A 2:1 mux is Y = (A · ¬S) + (B · S). A 4:1 mux uses two select bits to pick one of four inputs.

Processors are full of muxes. One chooses whether the ALU's second input comes from a register or from memory; another chooses whether the program counter takes PC + 1 or a jump address.

Flip the inputs and follow the signal

S
A
B
SABNOT1AND0AND0OR0Y=0
2:1 multiplexer. Inputs: S = 0, A = 0, B = 0. n1 is NOT of S = 1; a1 is AND of A and n1 = 0; a2 is AND of B and S = 0; o1 is OR of a1 and a2 = 0. Outputs: Y = 0.

Y = 0

S = 0 lets A through; S = 1 lets B through.

Check yourself

Marked instantly in your browser. Use the interactive above to work it out.

  1. 1. In a 4:1 mux, S1 = 1 and S0 = 0. Which input D0–D3 reaches Y? (answer the number)
  2. 2. How many select bits does a mux choosing among 16 inputs need?