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

Explanation

Wire gates together and you get combinational logic: the outputs depend only on the inputs right now, with no memory. A majority vote of three sensors is a good example: (A·B) + (B·C) + (A·C).

Signals ripple through the gates in order of depth. The critical path is the longest chain of gates from an input to an output; in a real chip it decides how fast the circuit can run. Here every gate counts as one conceptual delay.

Flip the inputs and follow the signal

A
B
C
ABCAND0AND0AND0OR0Y=0
Majority of three. Inputs: A = 0, B = 0, C = 0. ab is AND of A and B = 0; bc is AND of B and C = 0; ac is AND of A and C = 0; o1 is OR of ab and bc and ac = 0. Outputs: Y = 0.

Y = 0

Y is 1 when at least two inputs are 1. Depth 2: every path passes one AND and the OR.

Check yourself

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

  1. 1. In the majority circuit, what is Y when A = 1, B = 0, C = 1?
  2. 2. The majority circuit has three AND gates feeding one OR gate. What is its depth in gates?