A timing diagram (or waveform) shows how signals change over time. It is the natural way to describe real hardware, where inputs switch on and off while a circuit runs.
How to read one:
- Time runs left to right.
- Each row is one signal, named on the left.
- A line drawn high means 1; a line drawn low means 0. These are the two logic levels.
- The grid divides time into equal slots, counted from the left.
- A vertical step marks a change: low to high is a rising edge, high to low a falling edge.
For a gate or a combinational circuit, each slot is just one row of the truth table. Read straight down a slot, note the inputs, look up the output, and write it under the same slot. Then move one slot right and repeat, even if nothing changed.
Real gates take a moment to respond, called propagation delay, so a measured output lags slightly behind its inputs. In a first course the delay is ignored and the output changes in the same slot. Later, timing diagrams are how you study delays, glitches and clocked circuits like flip-flops.
To name an unknown 2-input gate from a waveform, find one slot for each of 00, 01, 10 and 11, read Y in each, and match the column to a known gate.