Stackup Design and Component Placement
Choose a layer stackup for your board's real requirements and place components so that the routing, the power delivery, the thermals and the mechanics all work — before drawing a single track.
Two ways in. Work the material, or if you already know this, go straight to the project and prove it.
Where this sits
How this skill is structured
- 1. Concepts — the ideas stated plainly, with the equations worth memorising.
- 2. Worked example — one real problem solved end to end, numbers included.
- 3. Tool demonstration — do the thing in a real open-source tool.
- 4. Resources — the specific free readings and videos, and what part of each to use.
- 5. Project — built alone, producing something a reviewer can check.
- 6. Competence checklist — what you must be able to do. This is also the audit rubric.
1. Concepts
Read these first. Tick each one when you could explain it to someone else without notes.
2. Worked example
Placing a board with a buck converter, an MCU and an analogue sensor
ProblemA 50 x 40 mm 4-layer board has a USB-C connector, a 5 V to 3.3 V buck, an RP2040-class MCU with QSPI flash and a crystal, a 24-bit ADC with a precision reference, and a screw terminal for the sensor input. Where does everything go?
- 1Constraints first: the USB-C connector's position is fixed by the enclosure at the left edge. The screw terminal is fixed at the right edge. Four M2 mounting holes are at the corners with 3 mm keep-outs.
- 2This immediately gives a natural left-to-right flow: power and digital on the left, analogue on the right. Signal flow and physical layout agree, which is the ideal case.
- 3Buck converter: place it near the USB-C connector so the high-current input path is short. Orient the hot loop (input capacitors, IC, ground return) so it occupies the smallest possible area on the top layer, with the ground plane directly beneath on layer 2.
- 4Critically: place the buck so its switch node and inductor are as far as practical from the ADC and its reference. Diagonal opposite corners if the board allows. Here, buck at bottom-left, ADC at top-right, roughly 55 mm apart.
- 5MCU: centre-left, rotated so that its QSPI pins face the flash and its ADC/SPI pins face right toward the analogue section. Try both 0 and 90 degree rotations and compare the ratsnest crossing count.
- 6QSPI flash: immediately adjacent to the MCU, on the same side, with the shortest possible traces. These are the fastest signals on the board.
- 7Crystal: as close to the MCU's oscillator pins as physically possible, with its load capacitors adjacent and a local ground pour beneath. Keep it away from the buck's switch node and from any trace carrying fast edges.
- 8Decoupling: one 100 nF per MCU supply pin, each placed against its pin with the via to the ground plane immediately adjacent to the capacitor pad, not at the end of a trace. This constrains placement of everything else around the MCU, so do it before placing the small stuff.
- 9ADC and reference: top-right, grouped tightly. The reference's own decoupling next to it. The analogue input path from the screw terminal to the ADC kept short and away from digital traces.
- 10Ground: a single unbroken ground plane on layer 2 across the whole board. Do not split it. Instead, control the return paths by keeping digital and analogue traces in their own regions — the return current follows the signal, so separated signals give separated returns automatically.
- 11Test points: on 5 V, 3.3 V, 3.3 V analogue, the reference output, the switch node (for scoping the buck) and reset. Place them where a probe can reach with the board in a fixture.
- 12Debug connector: accessible from the top with the board mounted. Place near the MCU with short SWD traces.
- 13Thermal: the buck dissipates a few hundred milliwatts. Give it a copper pour on the top layer and thermal vias to the plane, and check nothing temperature-sensitive is within 10 mm downstream in the airflow.
- 14Now check: display the ratsnest with everything placed and look for long lines that cross the board. Each one is a placement question. Iterate two or three times before routing anything.
AnswerMechanical constraints fix the ends; power and digital on the left, analogue on the right, buck and ADC diagonally opposed. Decoupling placed before general components. Unbroken ground plane on layer 2. Two or three placement iterations judged by ratsnest crossings, before any routing.
3. Tool demonstration
Configure a real 4-layer stackup with controlled impedance, and place a board systematically using KiCad's placement aids.
4. Resources
Free and, wherever possible, openly licensed. The note tells you which part to actually use — do not read them cover to cover.
5. Project — build this on your own
About 3 hours. This is the artifact that proves the skill. Work it without a walkthrough.
Produce a fully placed (not routed) 4-layer board from your existing schematic, with a documented stackup, a documented placement rationale, and evidence of iteration.
Deliverables
Acceptance criteria — how you know it is good enough
If you want to push further
- Produce two complete alternative placements for the same schematic and evaluate them against a written scoring rubric (routing difficulty, thermal, noise separation, mechanical, testability).
- Export the board to STEP and check it against the enclosure model in FreeCAD, reporting the minimum clearance found.
6. Competence checklist
Tick these honestly. If you are auditing this skill, this is your rubric — you should be able to demonstrate every line from the project you just built.