Gates wired into ideas
04Combinational logic
- Stage 1
- Stage 2
- Stage 3
- Stage 4 (this one)
- Stage 5
- Stage 6
- Stage 7
- Stage 8
- Stage 9
- Stage 10
- Stage 11
- Stage 12
- Stage 13
- Stage 14
- 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
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.