Placement for routing
Rules learned while routing dense 2-layer boards (an ESP32 + Ethernet controller module, an RTD front end, a sniffer board). Every rule here was a failed route first. Check them before routing. Placement check catches only some of them, because the ratsnest cannot see routing channels.
Fine-pitch ICs (QFP, 0.5 mm pitch)
- Fan-out band: keep about 1 mm between a pin row's outer pad ends and the next part's pads. At 0.63 mm, a regulator-output pin could not reach its cap 1.3 mm away. A 0.2 mm track needs 0.2 + 2 × 0.2 mm, plus margin. The Placer enforces this band.
- Caps in pin order: a column of decoupling caps beside a pin row must follow the pins' order. If two caps are swapped, one pin's line cuts across its neighbour. Slot optimisers miss this, because the ratsnest does not care, so set such caps by hand, next to their pins.
- Pin groups that leave together (SPI, chip select, interrupt) need a clear band in front of them, toward where they go. A crystal resistor sitting over the CS pin blocked it; a 1 mm shift fixed it.
- Route first the pin that must cross a bundle. The middle pin of a group is boxed in if its neighbours are routed first. The negotiating router handles this by itself.
- Analog supply pins in one row join on the inside of the pad ring. The outside stays free for the PHY lines.
- Fine-pitch parts on the 0.05 mm grid: put their origins on multiples of 0.05 mm, or the router's cells fall between the pins.
Passive strips
- Grid: 2.4 mm pitch, rows 4.0 mm apart. A pitch of 1.6–1.8 mm left pads with no escape.
- Order the slots by which pin each part serves.
tools/placement_slots.pysearches the order; check it by hand afterwards. - Lines that pass through a row need a gap of at least 1.1 mm between pads per 0.2 mm line. A row of 0603 pull-ups at 1.5 mm pitch across a 6-line bus blocked it.
Pull-ups on a bus
- Do not put them where the bus fans out of the IC.
- Stack them at the edge of the channel the bus runs in, with the supply pads facing out.
- Lines that continue past a stack can tap only two pull-ups without crossings: one from the lane between the supply and signal pads, one from outside.
- The third needs a crossing. Put its pull-up at the bottom, so its line can dip under the outside line and come up below its pad.
- Order the stack so that this dip is also a crossing the pin orders need anyway.
- A vertical pull-up directly over the pin it serves is good where the pin's line ends there, not in the middle of a bus.
Direction of 2-pad parts
- A ferrite between two rails faces the rail it feeds: its filtered pad toward the caps it supplies. Facing the other way, the filtered rail wrapped around and enclosed the input pad.
Modules and blocks
- No F.Cu under a module that has pads on its underside. B.Cu under it is fine.
- Block nets stay inside the block's tile, so it can become a design block. Make the module board the tile plus the copper-to-edge clearance on the sides that face other blocks, so DRC enforces this. Alternatively, use
area = "pours"inroute.toml. - No test-harness connector on a module board, if the module is only ever built inside a larger board. A breakout header only adds lines that cross the tile and are deleted when the block is reused. Use no-connect flags on the interface pins, and
[[escape]]lines inroute.tomlso they stay reachable.
