Analyse a clocked circuit: build and simulate it online
Build D = X ⊕ Q, then predict its state table before the checker runs it: it is a T flip-flop in disguise.
Build the analyse a clocked circuit in the free online simulator — it checks your circuit automatically.
What you need
- 2 logic switches labelled X, CLK
- 1 probes labelled Q
- 1 D flip-flop
- 1 XOR gate
Step by step
- Inputs and outputs. From the Logic section of the library, drop digital inputs (0/1 boxes) or logic switches for the inputs, and digital outputs or probes for the outputs; give each its label in the inspector (the checker finds them by label). Switches X, CLK; Probe Q
- The circuit. A D flip-flop whose D input is X XOR its own Q.
- Predict, then prove. Next state Q⁺ = X ⊕ Q: X = 1 toggles, X = 0 holds.
Expected sequence
| # | inputs | clock | Q |
|---|---|---|---|
| 1 | X=1 | ↑ | 1 |
| 2 | X=1 | ↑ | 0 |
| 3 | X=0 | ↑ | 0 |
| 4 | X=1 | ↑ | 1 |
| 5 | X=0 | ↑ | 1 |
Frequently asked questions
How do you build a analyse a clocked circuit?
Build D = X ⊕ Q, then predict its state table before the checker runs it: it is a T flip-flop in disguise. In short: inputs and outputs, then the circuit, then predict, then prove.
How does a analyse a clocked circuit behave clock by clock?
It is checked over 5 steps: X=1, X=1, X=0, X=1, …. The table on this page shows the expected Q after each clock.
What parts do you need for a analyse a clocked circuit?
1 D flip-flop; 1 XOR gate — plus logic switches for the inputs and probes for the outputs.
Can I simulate a analyse a clocked circuit online for free?
Yes. Open it in the BitForBytes Embedded Lab, a free browser-based circuit and logic simulator: drag in the gates, wire them, and press "Check my circuit" — every clock cycle is simulated and marked for you. No download or sign-up needed.
Part of DSD 38 · Analysing clocked circuits in the free BitForBytes digital system design course.