These are the topics that come up again and again in computer architecture and digital design interviews. Use the list to plan your preparation, then work through the examples in the deep dive.
- Boolean logic minimization
- State machine design
- Synchronous circuit timing, races, testability
- Pipelines and hazards
- Processor block diagrams, cache architecture
- Microarchitecture techniques
What interviewers look for in each topic
1. Boolean logic minimization
Expect to simplify an expression with a Karnaugh map or Boolean algebra, spot don't-care conditions, and explain the difference between sum-of-products and product-of-sums forms. Strong candidates also know why the minimal form is not always the best one, for example when a redundant term is needed to remove a glitch.
2. State machine design
Typical questions ask you to draw a state diagram for a sequence detector, a counter or a protocol, count the states, choose between Moore and Mealy outputs, and pick an encoding (binary, Gray or one-hot). Interviewers watch for unreachable states, missing reset and outputs that create latches.
3. Synchronous circuit timing, races and testability
You should be able to write the setup and hold conditions for a register-to-register path, compute the maximum clock frequency, explain clock skew and how it helps setup but hurts hold, and describe what scan design adds for manufacturing test. Races in simulation (blocking versus nonblocking assignments) also belong here.
4. Pipelines and hazards
The classic five-stage pipeline (fetch, decode, execute, memory, write-back) is the base. Know the three hazard types (structural, data and control), how forwarding and stalls handle data hazards, and how branch prediction reduces control hazards. Be ready to compute speedup and throughput.
5. Processor block diagrams and cache architecture
Expect to sketch a simple CPU datapath, then go deep on caches: direct-mapped versus set-associative, how an address splits into tag, index and offset, write-through versus write-back, replacement policies and the three kinds of miss (compulsory, capacity and conflict).
6. Microarchitecture techniques
Higher-level questions cover out-of-order execution, register renaming, superscalar issue, branch target buffers, prefetching and multicore cache coherence. You rarely need to design these from scratch in an interview, but you should explain what problem each one solves and what it costs.
How to prepare
- Work problems by hand: a K-map, a state diagram, a timing budget and a cache address split, until each takes a few minutes.
- Explain trade-offs out loud. Most follow-up questions are "why not the other way?"
- Connect topics: a pipeline is registers plus timing; a cache controller is a state machine.
Deep dive: the numbers and details
This part holds one worked example per topic, with the formulas interviewers expect. Skip it if the list above is all you need.
Minimization: a four-variable K-map
Minimize F(A, B, C, D) = sum of minterms (0, 2, 5, 7, 8, 10, 13, 15).
- Minterms 0, 2, 8, 10 are the four corners of the map: B = 0 and D = 0, giving B'·D'.
- Minterms 5, 7, 13, 15 form a square where B = 1 and D = 1, giving B·D.
F = B'D' + BD = NOT(B XOR D)
Eight minterms reduce to an XNOR of two inputs; A and C do not matter at all. Spotting that A and C drop out is the point of the question.
State machines: counting flip-flops
| States | Binary flip-flops, ceil(log2 N) | One-hot flip-flops, N |
|---|---|---|
| 3 | 2 | 3 |
| 5 | 3 | 5 |
| 12 | 4 | 12 |
Binary encoding uses the fewest flip-flops; one-hot uses more flip-flops but simpler next-state logic, which often suits FPGAs. A sequence detector for "1011" with overlap needs four states in a Mealy design (five in Moore), so two flip-flops in binary (three for Moore).
Timing: maximum frequency and hold check
Setup: T_clk >= t_clk-q + t_logic_max + t_setup - t_skew
Hold: t_clk-q + t_logic_min >= t_hold + t_skew
Here t_skew is the capture clock arriving later than the launch clock. Example: t_clk-q = 0.10 ns, t_logic_max = 0.65 ns, t_setup = 0.05 ns, skew = 0. Then T_clk >= 0.80 ns, so f_max = 1.25 GHz. If the capture clock arrives 0.05 ns late, setup gains 0.05 ns (f_max rises to about 1.33 GHz), but hold now needs t_clk-q + t_logic_min >= t_hold + 0.05 ns. Skew that helps setup always hurts hold.
Pipelines: speedup and the cost of stalls
An unpipelined datapath takes 5 ns per instruction. Split into five equal stages with 0.1 ns of register overhead each, the cycle becomes 1.1 ns.
- Ideal speedup = 5 / 1.1 = 4.5 times, not 5, because of register overhead.
- With stalls, CPI = 1 + stall cycles per instruction. If 20% of instructions are branches and each mispredicted branch costs 2 cycles with a 10% misprediction rate, the extra CPI is 0.2 x 0.1 x 2 = 0.04, so CPI = 1.04.
- Time per instruction = 1.04 x 1.1 ns = 1.14 ns, a real speedup of about 4.4 times.
Caches: address split and average memory access time
A 32 KB, 4-way set-associative cache with 64-byte lines and 32-bit addresses:
- Offset bits = log2(64) = 6.
- Number of sets = 32,768 / (64 x 4) = 128, so index bits = 7.
- Tag bits = 32 - 7 - 6 = 19.
AMAT = hit time + miss rate x miss penalty
With a 1 ns hit time, a 5% miss rate and a 40 ns miss penalty, AMAT = 1 + 0.05 x 40 = 3 ns. Halving the miss rate to 2.5% gives 2 ns; halving the hit time instead gives only 2.5 ns. That comparison is a common follow-up.
Microarchitecture: where performance comes from
CPU time = instruction count x CPI x clock period
| Technique | Term it improves | Main cost |
|---|---|---|
| Deeper pipeline | Clock period | Larger branch penalty, more registers |
| Superscalar issue | CPI below 1 | Wider register file, more forwarding paths |
| Out-of-order execution with renaming | CPI, by hiding latency | Area and power for reorder buffer and scheduler |
| Branch prediction | CPI, fewer control stalls | Predictor tables, misprediction recovery |
| Larger or more associative caches | CPI, fewer misses | Hit time, area, power |
A good answer always names the trade-off: almost every technique that improves one term of the equation makes another term, or the power budget, worse.
Further reading
- Top 50 CPU architecture interview questions with answers (this blog)
- Logic hazards: static hazards and how to remove them (this blog)
- Setup time and hold time: equations, examples and fixes (this blog)
- Pipelining interview question: latency, throughput and retiming (this blog)
- Intel interview questions with answers: CMOS, SRAM and caches (this blog)


Your comments will be moderated before it appears here.