kicad-zcheck: checking the wires a fast signal runs on

Fast signals need wires of the right width for their board. kicad-zcheck checks the wires actually drawn on a KiCad board, and where the return path breaks.

The underside of a green circuit board, with copper traces and plated holes

Fast signals, like the ones between FirePod’s processor and its memory, behave best on wires of exactly the right width for the board they run on. Too thin or too wide and some of the signal bounces back.

Those memory wires carry data hundreds of millions of times a second. At that speed, a wire’s width matters as much as its length.

Our board’s design rules asked for the right width, and KiCad, the free circuit design software we use, reported no problems. What had actually been drawn told a different story: most of the memory wires were at the thinnest width the factory can make, and only a quarter of them were close to the target. The fix wasn’t to redraw the board. A board built with thinner layers between the copper makes those thin wires exactly right, and that’s a question for the factory.

kicad-zcheck

kicad-zcheck reads how a KiCad board is built, layer by layer, and checks its fast wires against it.

  • Widths per layer: the width each layer needs for the target, on your board or on a different build you’re considering.
  • What was really drawn: how much of each signal’s wiring is on target, and which signals are worst.
  • Return paths: every signal has a return path through the board’s ground layers. Where a signal changes layer, it shows how far that return has to travel to follow it.

It gives quick estimates for finding problems and comparing options. Your board factory’s own calculation is the final word.

kicad-zcheck is free, and the Apache 2.0 license lets you change it too.

View kicad-zcheck on GitHub

Tried on open source boards

Antmicro, a company that publishes its hardware designs, has two open source memory boards, and kicad-zcheck reads both. On their 12-layer DDR4 tester, most of the memory wiring on three of the four inner layers sits close to a typical target. In the picture, green is closest and amber is further off. The amber patch in the middle is where the wires squeeze out from under the main chip, which is normal.

The memory wiring on the Antmicro DDR4 tester, coloured by how close each wire is to its target

Checking the numbers

Before release we checked its formulas against published values, exact textbook solutions and a small field simulation of our own. That check found two weak spots in the formulas we’d started with: wires on the outer layers of thin boards read up to a quarter too low, and pairs of wires read nearly a third too high. We switched to more accurate formulas, and single wires and pairs on inner layers now sit close to the simulation. Inner wires with a copper plane on one side only are handled too. Our own board’s result didn’t change: a quarter of its memory wiring was on target before and still is. The full comparison is on GitHub.

More in November

This wraps up the three tools from our circuit board review. Next up are two MCP servers, starting on Thursday, both on GitHub. If it’s FirePod you’re waiting for, sign up for updates.

More from Firedance

Hear when FirePod goes on saleGet the early-bird price

FirePod isn't on sale yet. Leave your email and we'll write when it is.

FirePod isn't on sale yet. Sign up and the early-bird price comes to your inbox when it is.