EE Primers · Hardware development

Schematic and layout best practices

Most board respins are caused not by exotic physics but by ordinary oversights: a pin left floating, a strap read at the wrong time, an I/O back-powering an unpowered chip, a decoupling capacitor 10 mm from its pin, a high-speed trace crossing a plane split, a test point that the fixture cannot reach. This page is a working checklist for both halves of board design, with the reasoning behind each rule so it can be applied with judgement rather than by rote.

01 · Schematic

Structure and readability

  • Hierarchy that mirrors the block diagram. One page or block per function (power, SoC, memory, radio, audio, sensors, connectors). A reviewer should find any net by following the block diagram.
  • Signal flow left to right, power top to bottom. Inputs on the left, outputs on the right; supply symbols at the top, ground at the bottom.
  • Meaningful net names on every net that crosses a page, with the voltage domain in the name for I/O (e.g. I2C1_SDA_1V8) and active-low marked consistently (_N or _L).
  • Notes on the schematic for anything non-obvious: why a value was chosen, placement constraints ("place within 2 mm of U5 pin 12"), DNP options and what they are for, strap meanings.
  • Power tree and I²C address map drawn on their own page; GPIO allocation table with direction, domain, default state and owner.
02 · Schematic

Correctness checks that catch most respins

Every pin accounted for
  • Each pin of each IC checked against the datasheet: connected, deliberately left open, or tied as recommended. "NC" pins that are actually internal test pins.
  • Exposed pads connected (thermal and often electrical ground).
  • Package and pin mapping of the symbol verified against the datasheet drawing, not just the library.
Power-on and reset states
  • Every input has a defined state when its driver is off, in reset, or not yet configured (GPIOs often reset as inputs, floating).
  • Boot and configuration straps: read at which instant, with what pull strength, and not fought by another device on the same net.
  • Enable pins of regulators and load switches default to the safe state.
Voltage domains
  • Every signal crossing domains is level-compatible (VIH, VIL, absolute maximum).
  • No back-powering: a powered I/O driving an unpowered chip's input through its ESD diode can partially power that chip and corrupt sequencing. Use level shifters with isolation, or keep drivers low until the target is powered.
  • Open-drain buses pulled up to the right domain, with pull-up values checked for rise time and current.
Power design
  • Decoupling per the IC's recommendation (value, count, placement), plus bulk near regulators and connectors.
  • MLCC values derated for DC bias and temperature; voltage ratings with margin.
  • Inrush, sequencing and discharge behaviour; reverse-current paths; UVLO and brownout.
  • Current sense resistors or 0 Ω links on each rail in early builds for power measurement.
Protection
  • ESD/TVS at every external connection and button, placed at the connector, with a low-inductance path to ground.
  • Reverse polarity and over-voltage on power inputs; current limiting on outputs to accessories.
  • Series resistors on signals that leave the board to limit fault current into protection diodes.
Testability and debug
  • Test points on every rail, critical clocks, resets, boot straps, debug UART and JTAG/SWD.
  • Footprints for series resistors on fast single-ended nets, populate as needed after measurement.
  • DNP options to isolate subsystems (0 Ω links), alternative component footprints for risky parts.

Component selection

  • Lifecycle (active, not-recommended-for-new-design), lead time, number of sources, and the approved vendor list.
  • Package suitability for the assembly line (01005 and fine-pitch BGAs have yield implications), height under shield cans.
  • Derating: voltage on capacitors, power on resistors (pulse and continuous), current on inductors (saturation and thermal), temperature.
  • Automotive or industrial grades (AEC-Q100/200) when the environment requires them.
03 · Layout

Floorplan and stack-up first

Layout quality is mostly decided before the first trace is routed. Order of decisions:

  1. Mechanical constraints: board outline, mounting, connectors, buttons, keep-outs, component height zones, shield cans, antenna clearances.
  2. Stack-up: layer count, which layers are planes, impedance targets per layer, HDI structure (microvias, buried vias). Agreed with the fab before routing.
  3. Placement by priority: connectors and fixed parts; then the big ICs (SoC, PMIC, memory) to minimise critical route lengths; then their decoupling; then the power stages with their hot loops; then sensitive analog and RF away from noisy blocks.
  4. Critical routing (high-speed, clocks, RF, sensitive analog, power) before general routing.
04 · Layout

Layout rules with their reasons

AreaRuleWhy
Return pathsEvery signal layer adjacent to a solid reference plane; no routing over splits or voidsReturn current flows under the trace; breaking it raises inductance, impedance, crosstalk and emissions
Layer changesGround via (or stitching cap) next to each signal via that changes referenceGives the return current a short path between planes
DecouplingSmallest caps closest to pins; via straight down to planes; short, wide connections; vias next to pads, not at the end of tracesMounted inductance (pad + trace + via) dominates an MLCC's high-frequency performance
Switching regulatorsMinimise the hot loop (input cap, switches) area; keep the switch node small; feedback trace away from the inductor and switch node; Kelvin-connect feedback at the loadThe hot loop carries the fastest di/dt; its area sets ringing and emissions; feedback picks up noise
High-speed pairsConstant impedance and spacing; symmetric through vias and connectors; length matching at the point of mismatch; avoid stubsKeeps differential mode clean and prevents mode conversion
ClocksShort, stripline where possible, away from board edges, I/O connectors and antennas; series resistor at driverClocks are the strongest narrowband emitters and desense aggressors
AnalogKeep sensitive inputs short and guarded; separate from digital and switching nodes by distance and planes; single-point reference for precision ground where neededSmall signals pick up coupled noise; ground currents create voltage drops
RF50 Ω controlled feeds, grounded coplanar with via fences; antenna keep-out honoured on all layers; matching network footprints near the antennaAntenna performance depends on clearance and ground; matching must be tunable
ESDTVS at the connector; ESD current to ground plane through short wide path before it reaches the protected ICFast ESD edges follow the lowest-inductance path, which must be the clamp
ThermalThermal vias under exposed pads; copper spreading; keep hot parts away from temperature-sensitive ones (crystals, sensors, battery)Junction temperature, drift and skin temperature
Current capacityTrace width and via count sized for current and temperature rise (IPC-2152), and for DC dropSelf-heating and IR drop at the load
05 · Manufacturability

DFM and DFT

Fabrication (DFM)
  • Trace and space, annular ring, drill sizes and aspect ratios within the fab's capability with margin, not at its limit.
  • Solder mask dams between fine-pitch pads; mask-defined versus copper-defined BGA pads chosen deliberately.
  • Via-in-pad filled and capped (otherwise solder wicks away and voids form).
  • Copper balance across layers to limit warpage; teardrops on small annular rings.
  • Impedance coupons and fab notes specifying stack-up, materials and tolerances.
Assembly
  • Fiducials (global and local for fine-pitch parts), panelisation and tooling holes agreed with the assembler.
  • Symmetric pad thermal mass on small passives to avoid tombstoning; stencil apertures tuned for large thermal pads (window-pane).
  • Component spacing for rework and inspection access; orientation consistent for AOI.
  • Keep heavy or tall parts off the second side if it will be reflowed upside down.
Test (DFT)
  • Test points reachable by the fixture: on one side where possible, on a grid, with minimum pad size and spacing the fixture vendor supports.
  • Access to every rail, every programming and debug interface, boot strap overrides, and enough signals to test each functional block.
  • Boundary scan (JTAG) chain planned where pin access is limited (BGAs).
  • Test points away from tall parts and board edges that the fixture cannot clamp near.
Rigid-flex and flex
  • No vias, pads or plated features in bend areas; traces perpendicular to the bend; stagger traces on adjacent layers.
  • Bend radius ≥ 10× thickness for static bends, much larger for dynamic flexing.
  • Hatched rather than solid copper for flexibility (raises impedance); stiffeners under connectors.
  • Coverlay openings and tear-stop features at rigid-flex transitions.
06 · Process

Running a good design review

  • Prepare a package: block diagram, power tree, GPIO and address maps, stack-up, floorplan, list of what changed since last review, and open questions.
  • Review by checklist and by function: one pass pin-by-pin with datasheets, one pass following each interface end to end, one pass for power-up and sleep states.
  • Invite the people who own the seams: layout, RF, mechanical, firmware (pin muxing, straps, boot), factory test, reliability.
  • Track every comment to closure with a disposition (fixed, won't fix with reason, deferred to a later build).
  • Run the tools: ERC and DRC clean, with every waiver explained; netlist comparison between schematic and layout; 3D model check against the enclosure.
07 · Check yourself

Questions worth being able to answer

Where do you place decoupling capacitors, and why does placement matter more than value?

On the same side as the IC where possible, smallest values closest to the power pins, with vias directly beside the pads to the planes. Above an MLCC's self-resonance its impedance is just its mounted inductance (package ESL plus the loop through pads, traces and vias to the planes). A few millimetres of trace or a shared via can double that inductance and make the capacitor useless at the frequencies it was meant to cover.

What is back-powering and how do you prevent it?

When a powered device drives a high level into an unpowered device's input, current flows through the input's ESD clamp diode into the unpowered rail, partially powering it. Symptoms: rails that will not discharge, failed power-on reset, latch-up, leakage in sleep. Prevent it with sequencing so drivers stay low until targets are powered, level shifters or buffers with power-off isolation (Ioff-rated), series resistors to limit current, and rail-aware GPIO configuration in firmware.

How do you lay out a buck converter?

Place the input capacitor right at the high-side and low-side switch pins so the hot loop is as small as possible, ideally with a ground plane directly underneath. Keep the switch node copper only as large as current and thermal require. Put the inductor next to the switch node and the output capacitors next to the inductor. Route feedback from the regulation point, away from the inductor and switch node, and return the controller's analog ground to the power ground at a single point near the output capacitor.

What would you check in a schematic review of an I²C bus with four devices on two voltage domains?

Address map with no conflicts (including address-select pins); pull-up values for the total bus capacitance and the required rise time; pull-ups to the correct domain; a level translator that supports the bus speed and open-drain behaviour; every device tolerant of the voltage on its pins when powered off; no device that holds the bus low when unpowered; and test points for SCL and SDA.

Why are fine-pitch BGA via-in-pad designs filled and capped?

An open via in a pad draws solder down into the barrel during reflow, starving the joint and trapping gas that forms voids. Filling with resin or copper and plating over it gives a flat, solderable pad. It costs extra fab steps but is required for dense BGA escape on HDI boards.

08 · Further reading

References

  1. IPC-2221, Generic Standard on Printed Board Design, and IPC-2152, Standard for Determining Current Carrying Capacity in Printed Board Design.
  2. IPC-7351, Generic Requirements for Surface Mount Design and Land Pattern Standard.
  3. IPC-2223, Sectional Design Standard for Flexible/Rigid-Flexible Printed Boards.
  4. H. Ott, Electromagnetic Compatibility Engineering, Wiley, 2009.
  5. Texas Instruments, Five Steps to a Great PCB Layout for a Step-Down Converter, application report SLYT614.