z80replacement · a Z80 CPU replacement with an FPGA

PCB

the PCB of the full version: HDI layer stack, design rules, placement, routing status

Status, 29 November 2026: nobody has built this module yet. The first sample run of 2 boards comes soon. Wait until the project has tested these boards before you send an order or a build request to a factory.

Repository file: docs/pcb.md

This document is about the PCB of the full version. The PCB is generated from the circuit model of the schematic, in the same way as the schematic (schematic.md).

Status

Step Status
Outline, layer count, design rules Done. 52.4 mm × 25.34 mm: the DIP-40 outline and a 4 mm overhang on each long side (mechanical.md).
Placement of all 159 parts Done. The KiCad DRC has no violation. On 10 November 2026 the support parts were placed again: Placement of the support parts. The third round of 11 November 2026 added R47 and fixed the places of the buck converter parts: Third round of 11 November 2026.
Planes GND and GND_USB on L2 and L7. +3V3_USB on L6 (USB side).
BGA fanout Done: the vias of the GND and supply balls and pads. See Fanout structure.
Escape of U1 and U5 Done: all 98 signal balls of U1 on L1 and L2 (escape_bga.py). The 34 connected balls of the SRAM (U5) that are not GND get a hop to L3 first (make_pcb.py). The program removes the unused hops after the routing.
Supply copper Done: all supply pads and all rails (power_route.py). The DRC has no violation.
Signal routing Done: the router routes all 168 signal nets (route_signals.py). The KiCad DRC of the routed board (check_pcb.py --routed) has no violation and no unconnected item (10 November 2026). The same is true after the correction of the pin numbers of P1 (10 November 2026, History: the mirrored pin numbers) and after the correction of the DHVQFN24 footprint (10 November 2026, The DHVQFN24 footprint), and after the second and the third round of 11 November 2026. On 9 November 2026 the DRC found 134 violations and 48 unconnected items. See Routing.
BOM and placement files for PCBWay Done (make_fab.py)
Gerber and drill files Done (make_fab.py), from the routed board of the third round of 11 November 2026 (the variant "3c"). See Third round of 11 November 2026.

Files

File Function
hardware/pcb/make_pcb.py Makes z80r.kicad_pcb, z80r.kicad_pro and z80r.kicad_dru from hardware/schematic/model.json and parts.json, and adds the copper of the data files below
hardware/pcb/dump_board.py Writes the copper of a board to JSON (build/base.json)
hardware/pcb/geom.py The board geometry that the scripts share: outline, isolation boundary, USB area
hardware/pcb/escape_bga.py The escape of the signal balls of a BGA (an integer linear program, scipy). Writes escape/u1.json.
hardware/pcb/fanout_bga.py The fan-out of the escape: from each exit a short F.Cu track to a hop (an integer linear program). Writes escape/u1_fan.json.
hardware/pcb/pin_swap.py The order of the FPGA balls and of the translator channels, with few crossings between the nets. See Pin swap.
hardware/pcb/power_route.py The hops of the supply pads, the fixed tracks of the buck converters on L8, the +3V3 and +5V trunks and the rail tracks on L3 and L6 (a maze router on a 0.05 mm raster). Writes power/power.json.
hardware/pcb/route_signals.py, sigroute.c The signal router: a negotiated-congestion grid router in C, called from Python. Writes signals/signals.json.
hardware/pcb/check_pcb.py Runs the KiCad DRC with the rules of the project
hardware/pcb/make_fab.py Makes the PCBWay BOM, the placement file, and the Gerber and drill files in hardware/pcb/fab/
hardware/schematic/parts.json The footprint, value and owner IC of each part. make_sch.py writes it.

To make the board again and check it (in hardware/pcb):

"%LOCALAPPDATA%/Programs/KiCad/10.0/bin/python.exe" make_pcb.py
python escape_bga.py U1 build/base.json escape/u1.json
python fanout_bga.py U1 build/base.json escape/u1.json escape/u1_fan.json
python power_route.py build/base.json escape/u1.json,escape/u1_fan.json power/power.json
"%LOCALAPPDATA%/Programs/KiCad/10.0/bin/python.exe" make_pcb.py
python check_pcb.py
python route_signals.py
"%LOCALAPPDATA%/Programs/KiCad/10.0/bin/python.exe" make_pcb.py

make_pcb.py needs the KiCad Python, because it uses the pcbnew module. The first run writes build/base.json: the board after the placement and the fixed fanout. escape_bga.py, power_route.py and route_signals.py need the system Python with numpy, scipy and shapely. route_signals.py also needs gcc: it compiles sigroute.c.

The data files keep the hash of build/base.json. If the placement or the fanout changes, make_pcb.py does not use old data files and tells you to run the two scripts again. The data files are in git, thus the second command group is necessary only after a change. check_pcb.py and make_fab.py run kicad-cli and need only Python.

Files for PCBWay

python hardware/pcb/make_fab.py writes these files in hardware/pcb/fab/:

  • z80r-bom.csv: the BOM in the PCBWay format, one line for each part type. The BOM has 51 lines since the second round of 11 November 2026. The third round did not add a line, because R47 uses the line of the 1 kilohm resistors. The ICs, the oscillators, the connectors and the inductors have a part number. Since 11 November 2026 each resistor line and each capacitor line has a part number too (see Part numbers of the passive parts). The LED line has the part number of an example part. The capacitor voltage rating comes from the highest voltage of its two nets: 6.3 V up to 3.3 V, 10 V on 5 V, 25 V on VBUS.
  • z80r-cpl.csv: the placement file (Designator, Mid X, Mid Y, Layer, Rotation) for the 152 SMD parts: 25 on the top side and 127 on the bottom side. (The second round had 151 parts: 26 and 125. Before the second round the numbers were 22 and 129.) The origin is the lower left corner of the board. (Until 10 November 2026 this line said 178 SMD parts. The file had 151.) The board has 159 parts: 28 on the top side and 131 on the bottom side. The placement file has no line for P1, JP1, JP2 and the four test pads.
  • gerber/: the Gerber files of the copper layers, the masks, the paste layers, the silkscreen and the outline. The drill files are also there, with the same origin.

P1 is two 20-pin headers. The BOM tells PCBWay to put their plastic body on the bottom side. Solder jumpers and test pads are not parts.

Part numbers of the passive parts

Each resistor line and each capacitor line of the BOM has a manufacturer and a part number. The numbers come from the PASSIVE table of make_fab.py (second round of 11 November 2026). Before, these lines had only a specification. The table below is a copy of the PASSIVE table, with the parts of the board and the result of the check of each number.

The column "Checked" has three levels:

  • high: a distributor page showed the part number with the correct value.
  • medium: a distributor page showed the part number, but with less stock or at only one source.
  • low: the number comes from the number system of Yageo. The check found no distributor page for it.
Specification Parts Manufacturer Part number Checked
100nF, 10V, X5R, 0201 C1, C3, C5, C7, C9, C11 Samsung Electro-Mechanics CL03A104KP3NNNC high
100nF, 6.3V, X5R, 0201 39 capacitors (BOM line 2) Samsung Electro-Mechanics CL03A104KQ3NNNC high
22uF, 10V, X5R, 0603 C14 Samsung Electro-Mechanics CL10A226MP8NUNE high
10uF, 6.3V, X5R, 0402 C15, C31 Samsung Electro-Mechanics CL05A106MQ5NUNC high
10nF, 10V, X7R, 0201 14 capacitors (BOM line 5) Samsung Electro-Mechanics CL03B103KP3NNNC medium
4.7uF, 6.3V, X5R, 0603 C26, C62, C63, C64 Samsung Electro-Mechanics CL10A475KQ8NNNC high
1uF, 6.3V, X5R, 0201 C50, C58, C59, C61 Samsung Electro-Mechanics CL03A105KQ3CSNC high
6.8pF, 25V, C0G, 0201 C51, C54 Murata GRM0335C1E6R8CA01D high (a 25 V part, chosen for stock, for the 6.3 V line)
10uF, 10V, X5R, 0603 C52, C55 Samsung Electro-Mechanics CL10A106KP8NNNC medium
22uF, 6.3V, X5R, 0402 C53, C56, C57 Samsung Electro-Mechanics CL05A226MQ5QUNC high
1uF, 25V, X5R, 0402 C60 Samsung Electro-Mechanics CL05A105KA5NQNC high
10nF, 25V, X7R, 0201 C79 Murata GRM033R71E103KE14D medium
5.1k ohm, 1%, 0201 R3, R4 Yageo RC0201FR-075K1L high
10k ohm, 1%, 0201 20 resistors (BOM line 20) Yageo RC0201FR-0710KL high
470 ohm, 1%, 0201 R17, R19 Yageo RC0201FR-07470RL low
4.7k ohm, 1%, 0201 R23 to R26, R41, R42 Yageo RC0201FR-074K7L medium
1k ohm, 1%, 0201 R28, R29, R40, R47 Yageo RC0201FR-071KL medium
453k ohm, 1%, 0201 R32 Yageo RC0201FR-07453KL high
100k ohm, 1%, 0201 R33, R34, R43, R45 Yageo RC0201FR-07100KL high
120k ohm, 1%, 0201 R35 Yageo RC0201FR-07120KL high
27 ohm, 1%, 0201 R36, R37 Yageo RC0201FR-0727RL low
33 ohm, 1%, 0201 R38 Yageo RC0201FR-0733RL low
383k ohm, 1%, 0201 R44 Yageo RC0201FR-07383KL low
2.21k ohm, 1%, 0201 R46 Yageo RC0201FR-072K21L medium

Notes:

  • Each of these BOM lines has the note "An equivalent part is OK: same value, tolerance, size and dielectric, same or higher voltage." Thus PCBWay can use an equivalent part if a number is not available.
  • The four numbers with "low" follow the Yageo number system (RC0201FR-07, then the value, then L). Look at the quote of PCBWay for these four lines.
  • The LED line (D2, D3) has the specification "LED, green, 0402, about 2 V at 1 mA". The line has the part number APHHS1005LCGCK (Kingbright). The note of the line is "An equivalent part is OK." The example part is 570 nm and has 1.9 V.
  • The part numbers of the oscillators X1 and X2 (SiT8008BI-72-33E-25.000000G and SiT8008BI-73-33E-12.000000G) have the letter G for the packing at the end. The BOM notes say that a different packing letter is OK. The data sheet does not define the letter G (bom_stock.md).
  • The BOM of 11 November 2026 has new part numbers for U3, U4, X1, X2 and the 14 capacitors of 10 nF. bom_stock.md gives the stock and the reasons.
  • The two Nexperia part numbers have the reel code: 74LVC4245ABQ,118 and 74LVC1G17GW,125.
  • The assembly remark of the quote form says "Ask before you use a substitute part." For the passive parts the BOM note is the permission. Tell PCBWay which of the two texts applies, if PCBWay asks.

PCB technology: second-order staggered HDI

The board has parts on the two sides. The bottom side has the translators under the DDR3L, and the buck regulators and capacitors under the FPGA.

routing_study.md examined the OrangeCrab method: through vias between the BGA balls, with no microvias.

A through via goes through all layers and has a pad on the bottom side too. Thus, under the two BGAs, the bottom side has vias at almost all positions between the balls. The bottom side then has no area for parts there: approximately 280 mm². The parts do not fit on the board without that area.

Thus the board is an HDI board. A study with four candidate structures and three judges (8 November 2026) selected the second-order staggered structure 1+1+N+1+1. PCBWay calls this structure "normal process". The other candidates were:

  • 1+4+1: a supply ball of the FPGA cannot get to a plane. A buried via pad next to the microvia pads in the balls has a gap of only 0.069 mm.
  • Stacked microvias (any-layer, or 2+N+2): "medium" or "high difficulty" at PCBWay, and not necessary.
  • The OrangeCrab method: not possible, see above.

The first board had 6 layers (1+1+2+1+1, two core layers). The signal router did not converge on 6 layers: the area under the DDR3L, with the six translators, had more nets than tracks (see Routing). The board now has 8 layers: 1+1+4+1+1, with four core layers.

Layer stack (8 layers, 1.2 mm). For 8 layers, 1.2 mm is the minimum thickness of the PCBWay "normal process".

Layer KiCad Use
L1 F.Cu Parts. The escape of the BGA signals (the 98 signal balls of U1, on L1 and L2).
L2 In1.Cu GND plane (GND and GND_USB). The escape of the other BGA signals.
L3 In2.Cu The +1V1 area over the core of the FPGA. Rail tracks and signals.
L4 In3.Cu Signals
L5 In4.Cu Signals
L6 In5.Cu Signals and rail tracks. +3V3_USB plane on the USB side. After the routing, a +3V3 zone fills the free area.
L7 In6.Cu GND plane (GND and GND_USB)
L8 B.Cu Parts, signals

Fanout structure

Via types:

Name Layers Drill and land Where
V1 L1-L2, L8-L7 0.10 mm laser, 0.22 mm land, filled with copper In the pad of a BGA ball or of a part
V2 L2-L3, L7-L6 0.10 mm laser, 0.22 mm land At the centre of four balls, offset from its V1 by a short track. Never on a V1.
V3 L3-L6 0.15 mm mechanical, 0.36 mm pad (buried, through the core) Away from the BGA ball pattern lands
V4 L1-L8 0.15 mm mechanical, 0.36 mm pad (through) Only outside the two BGAs

The ball rings 4 to 8 of the FPGA (the core) have only GND and supply balls. All 98 signal balls are in the outer four rings.

make_pcb.py (the function fanout) makes the fixed part of the fanout:

  • A GND ball gets V1 in its pad, onto the L2 GND plane.
  • A supply ball gets V1 in its pad, a 0.089 mm track on L2 to the centre of four balls, and V2 there onto L3. The +1V1 balls of the FPGA go toward the core, into the +1V1 area of L3. The other supply balls go outward. The corners of the +1V1 area are cut so that the other supply hops stay outside it.
  • Each connected ball of the SRAM (U5) that is not GND gets a hop: V1 in its pad, a stub on L2 and V2 at a centre of four balls. The 6 x 8 array has 34 connected balls that are not GND, thus 34 hops. The hop is made first. After the routing, make_pcb.py removes each unused hop (the board of step 3c has 25 to 27 V1 in the pads of these 34 balls, depending on how the test counts a V1 at the pad edge). A matching gives each ball one of its four diagonal centres (u5_centres in make_pcb.py). It tries the outward centres first. The router takes the SRAM signals from L3.
  • History: until 9 November 2026 the board had a DDR3L. Its supply hops pointed away from the channel between the two ball groups. Each signal ball had a hop toward the channel. An escape on L1 put all 51 DDR3L signals on F.Cu around the DDR3L, and the router did not converge.
  • Each GND pad of the other parts gets V1 in its pad, onto L2 (top side) or L7 (bottom side). An exposed pad gets a grid of V1.

Then the data files add this copper:

  • escape_bga.py: the escape of the 98 signal balls of U1 to a border 0.75 mm outside the outer balls. Most balls use L1 only. About 10 balls use V1 in the pad, an L2 track and a V1 back to L1. (The program can also make an escape of U5, but the board does not use it.) The program is an exact integer linear program on a lattice of half the ball pitch: each track has 0.089 mm clearance to each ball pad and to the fanout copper of L2. The cost of the distance from the exit to the other pads of the net selects the side.
  • power_route.py: a hop (V1, a stub on L2 or L7, V2) for each supply pad of the other parts. Then a maze router on a 0.05 mm raster joins the hops of each rail on L3 and L6, with V3 between the layers. The rail tracks are 0.15 mm wide for the small rails. They are 0.4 mm wide for +5V, VBUS and +5V_EFUSE, and 0.5 mm wide for +1V1 (WIDTH in power_route.py). The trunks of +3V3 and +5V are 0.6 mm wide (see Third round of 11 November 2026). The clearance of 0.089 mm applies only inside the BGA areas (0.1016 mm outside). Since the third round, power_route.py also writes the fixed tracks of the buck converters on L8 (the DIRECT table).
  • fanout_bga.py: the exits of the U1 escape are 0.25 mm to 0.5 mm apart, and a hop needs approximately 0.56 mm. The program connects each exit to a hop in a ring 1.25 mm wide outside the escape border (an integer linear program on the lattice of the escape). An exit with no hop site goes to the outer edge of the ring on F.Cu. The V2 of each hop is at 0.35 mm, in the first direction with clearance on L2 and L3. Result (escape/u1_fan.json, the same in the second and in the third round): 89 exits, 82 with a hop and 7 with no hop. (An older version of this text gave 94 hops, 7 exits to the edge of the ring and 14 exits with no path. That is the result of an older run.) The files in escape/ changed in the third round. The base hash is new, because dump_board.py now writes the paste flag of each pad. In escape/u1.json, 21 of the 98 entries have a new path. In escape/u1_fan.json, 24 of the 89 escape entries and 23 of the 82 hops are different. The counts are the same (98 escapes, 89 fan-out escapes, 82 hops, 7 with no hop). Thus the escape of the third round is not the same as the escape of the second round.
  • power_route.py keeps the rails off L3 in a ring 2 mm wide around U1 (a cost of 6 for each mm of track): the V2 of the hops at the exits land there.
  • make_pcb.py (the function stitch_gnd): GND vias (V4) between the socket pins on the two long edges, which join the GND planes of L2 and L7. The narrow GND strip beside the USB area gets no via.

The signal connections are for the router.

Design rules (z80r.kicad_pro and z80r.kicad_dru):

Rule Value
Track and clearance 0.089 mm (3.5 mil)
Laser via (V1, V2) 0.10 mm drill, 0.22 mm land, 0.06 mm ring, 0.15 mm hole to copper
Mechanical via (V3, V4) 0.15 mm drill, 0.36 mm pad (0.105 mm ring: 4 mil)
Copper to board edge 0.29 mm (z80r.kicad_pro). The socket pin pads are 0.3 mm from the long edges.
Hole to copper 0.2 mm for the mechanical holes (0.15 mm for the laser vias, see above). J1 has 0.19 mm between pads A1, A12, B1, B12 and its pegs (the GCT land pattern), with a custom rule in z80r.kicad_dru.

Pin swap

pin_swap.py (9 November 2026) makes the order of the nets agree at the two ends of each group of tracks:

  • The translators: the order of the channels of each translator follows the order of the socket pins along the board edge. The nets to the top edge are on the first channels, the nets to the bottom edge on the last channels. Since 10 November 2026 the top edge has pins 21 to 40. Before, the top edge had pins 1 to 20. See History: the mirrored pin numbers. Then the nets from the A side to P1 do not cross. U13, U14 and U15 use their spare channels for this gap. The orientation of each translator sets the direction: pin 3 goes to the end that gives fewer crossings of the lines to P1.
  • The FPGA: a simulated annealing over swaps of two nets in a group of balls. Each net has straight lines from its start at U1 (its hop or the end of its escape) to its other pads. The cost is the number of crossings of these lines, plus 0.05 for each mm of line. The groups are in fpga_pinout.md, "Pin assignment". The program keeps the set of balls, thus the escape and the fan-out of U1 stay the same.

The result: 1157 crossings of the straight lines before, 587 after, and 80 balls with a new signal. The program writes build/pin_swap.json. Copy the result to gateware/top/make_lpf.py (the balls) and to hardware/schematic/make_sch.py (the function lvc). Then make the schematic and the board again. pin_swap.py --renet writes the new nets into the escape files of U1, so that escape_bga.py and fanout_bga.py need not run again:

python pin_swap.py --renet build/base_old.json escape/u1.json escape/u1_fan.json

build/base_old.json is a copy of build/base.json from before the change.

The swap is legal: each DQ and DM ball stays in the DQS group of its lane, and the gateware uses the pins by name only. A place and route of the full design on the 85F (mingw32-make report-85k MEM2=1 in gateware/top) has no error. The highest bus clock went from 15.8 MHz to 16.6 MHz to 14.1 MHz to 15.2 MHz (memory.md, "Size and speed").

History: the mirrored pin numbers

Until 10 November 2026 the footprint Z80_DIP-40_SocketPins had the pin numbers of P1 in the wrong order: a mirror image of a DIP-40. Pins 1 to 20 were on the top row (y = -7.62 mm) from left to right, and pins 21 to 40 were on the bottom row (y = +7.62 mm) from right to left. They went clockwise in the F.Cu view. A pre-order review found the error.

The module goes into the socket with the header body under the board and end A down. Thus the F.Cu view is the top view of the chip. The pins of a DIP-40 go counterclockwise from the top. With the J1 end (the notch, pin

  1. on the left, pin 1 must be at the bottom left.

A module with the old numbers would have put each Z80 signal on the mirror pin of the host socket. The board would not have worked. The error was only in the position of each pad. The nets of the schematic were correct.

The correction (10 November 2026, make_fp.py, socket_pins()): pins 1 to 20 at y = +7.62 mm from left to right, pins 21 to 40 at y = -7.62 mm from right to left. Pin 1 keeps x = -24.13 mm and the square pad. P1 is not flipped. Thus each Z80-side net went to the other long edge of the board. The work that this needed:

  • The footprint library and the schematic were made again (make_fp.py, make_lib.py, make_sch.py). check_sch.py gives 0 failures.
  • U10 and U15 (A0 to A7 and the inputs) moved to the north row. U11 and U12 (A8 to A15 and D0 to D7) moved to the south row. Thus each translator is near its socket pins. Before the correction, U11 and U12 were north and U10 and U15 were south. U13 and U14 stay at the east end. The positions are in the PLACE table of make_pcb.py.
  • pin_swap.py ran again in the full mode on the new geometry: 1185 crossings of the straight lines before (old order of the channels and balls), 293 after. 63 balls and the channel order of U10 to U15 changed. The result is in gateware/top/make_lpf.py and in lvc() of hardware/schematic/make_sch.py. pin_swap.py --renet put the new nets in the escape files of U1, because the set of the balls did not change. power_route.py, make_pcb.py and check_pcb.py ran again.
  • route_signals.py (100 iterations, default parameters) routed all 168 nets in 2026 s: 4840 tracks, 208 vias, 218 hops, 0 conflicts. The DRC (check_pcb.py --routed) has 0 violations and 0 unconnected items.
  • The check of the pad positions: pad n of P1 is where pin n of a real DIP-40 is. Each pad has the net of the Z80 signal of the pin. See "Check of P1" below.
  • The place and route of the 85F ran again (make report-85k OVL_MAP=49155 OVL_RO=3 OVL_KB=16 BOOT=1, seeds 1 to 5, the settings of z80_control.md). Yosys: 6646 LUT4. Nextpnr: 7532 TRELLIS_COMB, 1198 flip-flops, 9 block RAMs, no error. The highest bus clock is 17.8, 18.4, 17.1, 17.5 and 17.3 MHz (mean 17.6 MHz). The mean was 17.2 MHz before. The highest 25 MHz clock is 99 to 106 MHz.

Check of P1. Open the board with the KiCad Python and compare each pad of P1 with the position of the pin of a real DIP-40. Pin 1 is at the minimum x and at y = +7.62 mm from the middle of the rows. Pins 1 to 20 are at x = x1 + (n - 1) x 2.54 mm in that row. Pins 21 to 40 are at x = x1 + (40 - n) x 2.54 mm in the row at y = -7.62 mm. Compare the net of each pad with the Z80 pinout: 1 A11, 2 A12, 3 A13, 4 A14, 5 A15, 6 CLK, 7 D4, 8 D3, 9 D5, 10 D6, 11 +5V, 12 D2, 13 D7, 14 D0, 15 D1, 16 /INT, 17 /NMI, 18 /HALT, 19 /MREQ, 20 /IORQ, 21 /RD, 22 /WR, 23 /BUSACK, 24 /WAIT, 25 /BUSREQ, 26 /RESET, 27 /M1, 28 /RFSH, 29 GND, and 30 to 40 A0 to A10. The check of the final board found 0 wrong pads of 40. J1 is at the pin 1 end.

A note about a stale file. route_signals.py compiles sigroute.c only when the source file is newer than build/sigroute.dll. A copy of the folder can keep an old sigroute.dll (the file is not in git). An old .dll has no spacing check for the holes of one net. The first runs after the correction used such a file. They gave "0 nets with conflicts", but the DRC found 29 to 37 violations of the hole spacing. Delete build/sigroute.dll or touch sigroute.c, and route again.

The DHVQFN24 footprint (10 November 2026)

A check against the Nexperia data sheet of the 74LVC4245A (Rev. 15, 29 November 2024, section 5.1) and the package information of the SOT815-1 (17 August 2021) found that the footprint DHVQFN-24-1EP_3.5x5.5mm_P0.5mm was wrong. Both documents were read in a browser. The old footprint had:

  • pads 1 to 10 on the left side, 11 and 12 on the bottom, 13 to 22 on the right side and 23 and 24 on the top. Thus each pad was one place off around the edge of the package. In the package, pin 1 is on a short side.
  • the short-side pads 0.5 mm apart. In the package, the two terminals of a short side are 1.5 mm apart. Pins 1, 12, 13 and 24 had no solder joint, thus VCC(A) had no connection on all six parts.
  • pads of 0.7 mm × 0.25 mm. The reflow pattern of the package drawing has larger lands.

The correct footprint (make_fp.py, dhvqfn24()), in the frame with the long axis vertical, seen from the top:

  • Pins 2 to 11 on the left side, at x = -1.8 mm, from the top down at 0.5 mm pitch. Pins 14 to 23 on the right side, at x = +1.8 mm, from the bottom up. Their lands are 0.9 mm × 0.29 mm.
  • Pins 12 and 13 on the bottom side at x = -0.75 mm and +0.75 mm (y = +2.8 mm). Pins 24 and 1 on the top side at x = +0.75 mm and -0.75 mm (y = -2.8 mm). Their lands are 0.29 mm × 0.9 mm. Pin 1 is at the top left.
  • The centre pad 25 is 2.0 mm × 4.0 mm. The pad is on GND. The paste covers 50 % of the pad (a paste margin ratio of -0.146 on each side: 1.416 mm × 2.832 mm, which is 50.1 % of the pad). Until the third round of 11 November 2026 the ratio was -0.29 on each side, and the paste covered only 17.6 % of the pad (0.84 mm × 1.68 mm). The value 50 % is a general practice for a large exposed pad, not a value of Nexperia. See todo.md, item 5. The data sheet says that the pad has no electrical requirement: when you solder the pad, it floats or is on GND.
  • The courtyard is 4.8 mm × 6.8 mm (the occupied area of the package drawing is 4.75 mm × 6.75 mm). A triangle on the fab layer and a silkscreen dot beside pin 1 mark pin 1.

The symbol (make_lib.py, lvc4245()) was right and did not change: 1 VCC(A), 2 DIR, 3 to 10 A0 to A7, 11 to 13 GND, 14 to 21 B7 to B0, 22 OE#, 23 and 24 VCC(B), 25 the exposed pad.

The new footprint is larger. The lands reach 2.25 mm across and 3.25 mm along the long axis from the centre. The old courtyard was 4.1 mm × 6.1 mm. These changes were necessary:

  • The six translators all lie with the long axis along x, in two rows of three. The north row (y = 8.725 mm) has U10, U15 and U13. The south row (y = 16.625 mm) has U11, U12 and U14. Each row keeps the row of its socket pins. Each row touches the strip of the header body (about +-1.27 mm around the pin row), and 3.15 mm is free between the rows. The 12.7 mm between the two strips cannot hold two translators with the long axis along y.
  • The columns are at x = 34.3, 42.0 and 48.8 mm. Before, the translators occupied x = 35.5 mm to 52.5 mm. Now the lands start at x = 31.0 mm, under the east edge of U1. The lands of the last column are 0.35 mm from the board edge (the rule is 0.29 mm). A gap of 0.9 mm between the first two columns holds the 5 V capacitor of the translator on the second column.
  • The supply end of each translator (pin 1 and pins 23 and 24) is at the west end of the north row and at the east end of the south row. The 100 nF capacitor on 5 V is next to pin 1. For U12, U13 and U14, the capacitor is on the top side, 0.3 mm from the pad (board of 10 November 2026). For U10, U11 and U15, the capacitor is on the bottom side, 1.1 mm from the pad (board of 10 November 2026). The distances of the board of the third round are in the table of the strict parts. The 100 nF capacitor on 3.3 V is in the 3.2 mm strip in the middle, 1.1 mm from pin 23. HINT of make_pcb.py has these places.
  • The other bottom parts moved. The capacitors of the FPGA had the space between U1 and the translators. Two 1.1 V capacitors (C18 and C22) have a hint. Without it, their hops on L6 and L7 blocked four +3V3 balls of U1 (power_route.py: "no route").
  • The zone without parts on the top side around U1 is larger (make_pcb.py): 0.7 mm more on the west side of the strips north and south of U1, and 0.6 mm more in the strip west of U1. The fan-out of the escape reaches 1.5 mm west of the balls. A pull-down resistor of the configuration balls had moved into that area and touched a hop.

The same change moved U5 to the IS61WV20488FBLL-10BLI (sram.md). Then pin_swap.py ran in the full mode on the new geometry: 366 crossings of the straight lines before (the old order of the balls on the new positions), 188 after, 65 balls with a new signal (seeds 1 to 5 gave 188 or 189). The order of the channels of the translators did not change. The result is in gateware/top/make_lpf.py. lvc() of make_sch.py needed no change. pin_swap.py --renet put the new nets in the escape files of U1. escape_bga.py on the new board stopped with a KeyError in the path trace, thus the old escape files stay.

power_route.py made all rails. route_signals.py (100 iterations) routed all 168 nets in 1201 s: 5276 tracks, 222 vias, 226 hops, 0 nets with conflicts. The DRC (check_pcb.py --routed) has 0 violations and 0 unconnected items.

The checks of the final board (KiCad Python, pcbnew):

  • Each pad 1 to 25 of U10 to U15 (150 pads) is where the correct footprint puts the pad for the position, side and rotation of the part. Each pad has the net of its function. Pin 1 is on +5V. Pins 23 and 24 are on +3V3. Pins 11, 12, 13 and 25 are on GND. Pin 2 is on the DIR net and pin 22 is on the OE net. Pins 3 to 10 are on the Z80 nets (GND or no net for a spare channel). Pins 14 to 21 are on the FPGA nets. 0 wrong pads.
  • U5: each of the 48 balls has the net of the IS61WV20488FBLL map. A6 and the 11 other NC balls have no net. B5 is SRAM_CE_N, A2 is SRAM_OE_N, G5 is SRAM_WE_N, D1 and E6 are GND, D6 and E1 are +3V3. 0 wrong balls.
  • P1: pin 1 at the bottom left at the J1 end, the numbers counterclockwise, each pad on the correct Z80 signal. 0 wrong pads of 40.
  • 1852 vias: 0 duplicates (net, x, y, span). 1552 laser vias: no pair of vias of one net on a shared layer closer than 0.32 mm (the smallest distance is 0.350 mm). The +3V3 fill of L6 has 3 pieces of 32.4, 55.2 and 198.0 mm2: no island below 30 mm2. A measure of the narrowest neck gives 0.262 mm. The same measure on the board of the earlier version gives 0.207 mm. The zone has a minimum width of 0.3 mm. The stack-up and (copper_finish "ENIG") are in the board file.
  • The vias: 51 through vias (V4), 249 V3, 497 + 525 V1, 259 + 271 V2. (Before: 52 V4, 235 V3.)

The place and route of the 85F (make report-85k OVL_MAP=49155 OVL_RO=3 OVL_KB=16 BOOT=1, seeds 1 to 5) gives a highest bus clock of 16.4, 16.6, 17.8, 17.2 and 17.8 MHz (mean 17.2 MHz) with the z80fpga tree of this computer. The highest 25 MHz clock is 88 to 106 MHz. make safe passes. The pad check of the safe bitstream has 39 balls (20 float, 19 high), on the 85F and the 12F.

History: the pin 1 table before the footprint fix

Remark 11 of "Order remarks for PCBWay" had this table from the board of 10 November 2026, after the correction of the socket pins and before the correction of the DHVQFN24 footprint. Remark 4 then gave 52 through vias.

Part Side Centre (x, y) Rotation Pin 1 or ball A1/A2 (x, y)
U1, LFE5U-85F (A2) top 29.10, 12.67 -90 33.35, 8.92
U5, IS62WV20488FBLL (A1) top 44.35, 12.67 90 41.73, 14.54
U10, 74LVC4245ABQ bottom 38.60, 8.30 -90 36.35, 6.70
U11, 74LVC4245ABQ bottom 38.60, 17.00 90 40.85, 18.60
U12, 74LVC4245ABQ bottom 44.80, 17.00 90 47.05, 18.60
U13, 74LVC4245ABQ bottom 50.00, 9.30 180 51.60, 7.05
U14, 74LVC4245ABQ bottom 50.00, 15.95 180 51.60, 13.70
U15, 74LVC4245ABQ bottom 44.80, 8.30 -90 42.55, 6.70
U22, TPS259470ARPWR top 14.40, 8.00 0 13.50, 7.30
P1, socket pins (square pad; footprint on the top side, the plastic body of the headers is on the bottom side, the pins go through the board) top 26.20, 12.67 0 2.07, 20.29

Routing on DeepPCB

DeepPCB (deeppcb.ai) is a paid routing service. make_deeppcb.py makes the board for a routing run there. Run the script with the KiCad Python, after make_pcb.py:

"%LOCALAPPDATA%/Programs/KiCad/10.0/bin/python.exe" make_deeppcb.py

The output is in build/deeppcb: z80r.kicad_pcb, z80r.kicad_pro and the six .kicad_sch files of the schematic. Upload the board, the project and the schematic. If the upload form takes only one .kicad_sch file, use z80r.kicad_sch (the root sheet). The files keep the name z80r: the symbols of the schematic have their references for the project z80r.

  • Locked: the parts, the planes, the escape of U1, the hops of U5, the GND stitching vias and the supply copper. DeepPCB does not do the fan-out of a fine-pitch BGA. A routing run can remove each item that is not locked.
  • Not locked: the fan-out of U1 (the F.Cu tracks from the escape exits and the 82 hops). DeepPCB can move these items. 11 of the 13 open nets of route_signals.py are exits that other hops enclose.
  • No signal tracks. DeepPCB routes all 239 signal connections.
  • make_pcb.py does not link the footprints to the symbols. The script reads the netlist of the schematic and gives each footprint the path of its symbol. Each no-connect pad gets the net of the schematic. The schematic parity check of the KiCad DRC has no issues.

DeepPCB reads the rules of z80r.kicad_pro: 0.089 mm track and space on the full board. DeepPCB does not read z80r.kicad_dru. That file relaxes the rules for the J1 pads and for the laser vias (annular width 0.06 mm, hole clearance 0.15 mm).

Thus the KiCad DRC of the upload has 398 errors on the 199 laser vias. The laser vias are locked, and the stricter rules apply to the vias that DeepPCB adds. All other DRC items are warnings (9 November 2026).

DeepPCB does not say that it uses laser microvias. Thus copy the result to hardware/pcb/z80r.kicad_pcb and run check_pcb.py --routed. That DRC uses z80r.kicad_dru. (The DeepPCB run of 9 November 2026 was on the DDR3L board: 104 of 793 connections stayed open after 45 minutes.)

Notes for the PCBWay order

Put these four notes in the remarks of the order. The notes are a request to the fab, not the PCBWay specification. The next section has the full remarks.

  1. HDI 1+1+4+1+1, staggered microvias, no stacked microvias. 8 layers, 1.2 mm, ENIG. Outer layers: start with 0.5 oz (18 µm) base copper. The finished outer copper is about 35 µm (1 oz) after the plating. Do not start with 1 oz base copper. Layers L4 and L5: 0.5 oz (18 µm) finished. Layers L2, L3, L6 and L7: start with 0.5 oz (18 µm) base copper. These layers get plating in the HDI process. State the finished thickness of each layer in your stack-up. If a layer is thicker than 30 µm, tell the buyer before production. The finished board thickness is 1.2 mm including the solder mask and the plating (1.16 mm without the solder mask). If your process gives a different thickness, tell the buyer before production.
  2. Laser vias 0.10 mm with a 0.22 mm land, filled with copper and plated over, in the BGA pads (FPGA ball pad 0.23 mm). Also fill and plate over all other V1 laser vias. This applies to the V1 in a pad of any other part and to the V1 at or beside a pad edge (see Remark 2 of "Order remarks for PCBWay").
  3. Track and space of 3.5/3.5 mil (0.089 mm) on the outer and the inner layers. The job file z80r-job.gbrjob gives 0.089 mm for the whole board. The board file has 3480 tracks of 0.089 mm. 237 of them are outside the area of U1 and U5 (the rectangle of the pads of each part plus 2 mm). All 237 are on L2 and L7. If your process makes 0.089 mm on some layers or in some areas only, tell the buyer before production.
  4. Buried vias from L3 to L6 (through core, prepreg and core): 0.15 mm drill, 0.36 mm pad.

Without note 3 on the outer layers, the escape of the 98 signal balls of U1 needs a third signal layer.

Order remarks for PCBWay

Put these remarks in the order, with the notes above. The remarks are a request to the fab, not the PCBWay specification. PCBWay reviews the files and tells the owner if an item is not possible. The Gerber and drill files are in hardware/pcb/fab/gerber/.

The PCBWay quote form (Advanced PCB, 10 November 2026) accepts a maximum of 600 characters in each special request box. Thus the form gets these short versions. Send the full remarks below with the order, as a text file or as a message in the order chat.

Decisions of 12 November 2026 (the order in the cart, see below):

  1. X-ray quantity: 5 boards. The first order is 5 boards, thus each board gets an X-ray test. The assembly text and the form number agree.
  2. The form field "Number of Unique Parts" gets 45 (one for each part number).
  3. The form field for the outer copper has the name "Finished copper". Thus "1 oz" is the finished copper, and the field agrees with 0.5 oz base copper plus plating.
  4. The 4 statements about the PCBWay web pages are correct (read again on 11 November 2026). The dielectric is 0.15 mm or less for a 0.20 mm laser hole. The inner layers are 4/3.5 mil at medium difficulty. PCBWay plugs holes of 0.20 mm to 0.40 mm only. The normal thickness to diameter ratio is 8 or less. The HDI page also gives a minimum track and space of 0.065 mm and a standard laser hole of 4 mil (0.10 mm).

Open decisions (PCBWay gives the answer in the review):

  1. The medium-difficulty items: the 0.15 mm drill, the 0.089 mm track and space and the 0.06 mm laser ring. The review can add cost for these items.
  2. 0.089 mm tracks outside the U1 and U5 areas. 237 tracks of 0.089 mm have both ends outside the pad rectangle of U1 and U5 plus 2.0 mm. All 237 are on L2 and L7. The capability table of PCBWay lists a track width of 4 mil as the medium limit of the inner layers, and 3.5/3.5 mil for BGA areas only on the outer layers. The HDI page lists 0.065 mm. PCBWay must confirm the 0.089 mm tracks.

The order in the PCBWay cart (12 November 2026, PCBWay date): 5 boards, one PCB item and one assembly item. The first two cart items had the BOM from before the stock check (bom_stock.md). The owner removed the two old items. The files are z80r-gerber.zip (the 30 files of hardware/pcb/fab/gerber/ and the full remarks as z80r-order-remarks.txt), z80r-bom.csv and z80r-cpl.csv. The two items have the status "Subject to audit". The order is not paid. The prices are in cost.md.

"Other special request" of the PCB (remarks 1 to 7, 9):

HDI 1+1+4+1+1 staggered, none stacked, 1.2 mm, ENIG, outer base copper 0.5 oz (not 1 oz). Stack-up: z80r-job.gbrjob. Drill files: In1.Cu=L2, In6.Cu=L7. front-in1, in6-back: V1 L1-L2, L7-L8, 1035 holes. in1-in2, in5-in6: V2 L2-L3, L6-L7, 551. in2-in5: V3 L3-L6 buried, 242. PTH: V4, 51, no fill, 2 open (Gerber, y up) X2.15 Y11.37, X2.15 Y10.17. Laser 0.10 hole, 0.22 land, ring 0.06. V3, V4 0.15 hole, 0.36 land. Fill and cap ALL V1 with copper. Prepreg L2-L3, L6-L7: max 0.116 mm. Track/space 0.089 mm. Hole to copper 0.2, laser 0.15 mm. J1: 4 plated slots, 2 NPTH 0.65. No zone refill.

"Detailed information of assembly" (remarks 8, 11 and 12):

Both sides: 25 parts top, 127 bottom. X-ray U1 and U5 (BGA) on all 5 boards. P1 is two 20-pin THT headers, body on the bottom side: solder by hand or in a THT step after SMD. Pin 1 (KiCad frame, board mm, y down; CPL y = 25.34 - y; CPL rotation is the KiCad value, if yours differs use pin 1): U1 ball A2 (no A1) 33.350,8.920; U5 A1 41.725,14.545; U22 13.500,7.300; bottom: U10 31.500,7.975; U11 37.100,17.375; U12 44.800,17.375; U13 46.000,7.975; U14 51.600,17.375; U15 39.200,7.975; P1 square pad 2.070,20.290. L4 (bottom): dot end to pad 1 at 10.650,8.000. Substitutes: follow BOM notes.

The other settings of the form:

  • PCB: HDI, IPC 6012 class 2, 8 layers, Tg170 FR-4, 1.2 mm.
  • Limits: select the smallest track and space that the form has (3/3 mil). The board needs a minimum of 3.5 mil (0.089 mm) for track width and for space. Select 0.15 mm for the smallest hole.
  • Finish and copper: ENIG 2U". Outer layers: start with 0.5 oz (18 µm) base copper. The finished copper after plating is about 35 µm (1 oz). Do not start with 1 oz base copper. Layers L4 and L5: 0.5 oz (18 µm) finished. Layers L2, L3, L6 and L7: 0.5 oz (18 µm) base copper plus the plating of the HDI process. The form field for the outer copper has the name "Finished copper": select "1 oz Cu". Select 0.5 oz for the inner copper.
  • Options: custom stack-up, via in pad, via filled with copper. These options apply to the V1 only (files z80r-front-in1.drl and z80r-in6-back.drl).
  • Via fill: fill and cap with copper the 1035 laser vias V1. V2: fill with copper only as your HDI process needs. V3 (buried): fill with resin in the lamination, as your process does, with no copper cap. V4 (through, 51 holes): no fill and no plug. The 2 V4 in the test pads TP3 and TP4 (bottom side) stay open. Cover the hole on the top side with solder mask. The pad on the bottom side has no plug. The mask files agree: z80r-F_Mask.gts has no opening at the 2 holes, and z80r-B_Mask.gbs has the openings of the test pads.
  • Drill files and layers: z80r-front-in1.drl = L1 to L2 (laser, 0.10 mm). z80r-in1-in2.drl = L2 to L3 (laser, 0.10 mm). z80r-in2-in5.drl = L3 to L6 (mechanical, buried, 0.15 mm). z80r-in5-in6.drl = L6 to L7 (laser, 0.10 mm). z80r-in6-back.drl = L7 to L8 (laser, 0.10 mm). z80r-PTH.drl = through holes. z80r-NPTH.drl = non-plated holes. In1.Cu is L2, and In6.Cu is L7. The counts are V1 1035 holes (507 and 528), V2 551 holes (279 and 272), V3 242 holes and V4 51 holes.
  • Layer order: the "Custom stackup" box opens a window for the layer order, from the top side to the bottom side. Use the Gerber names: L1 z80r-F_Cu.gtl, L2 to L7 z80r-In1_Cu.g1 to z80r-In6_Cu.g6, L8 z80r-B_Cu.gbl.
  • Quantity: the form has two quantity fields, one for the PCB and one for the assembly. Set the same value in the two fields.
  • The cart cannot change the quantity of an item. For a different quantity, make a new quote and remove the old cart item.
  • Assembly: turnkey, both sides, 152 SMD parts, 2 through-hole parts (P1). The BOM has 51 lines and 45 different part numbers (the LED line has a part number too). U10 to U15 are 6 lines with the same part number, and U18 and U19 are 2 lines with the same part number. The form field of unique parts gets 45.
  • Assembly, special parts: 14 parts without leads (BGA, QFN, DHVQFN, WSON, VQFN-HR and PQFN-4): U1, U2, U5, U10 to U15, U17, U21, U22, X1 and X2. P1 is 2 through-hole headers (1 BOM line, quantity 2). J1 is an SMD part with plated shield slots: solder J1 in the SMD step.
  • X-ray quantity: 5 (the form field "Number of X-ray test"). The order is 5 boards, thus each board gets an X-ray test of U1 and U5.
  • Number of Unique Parts: 45. Number of SMD Parts: 152. Number of BGA/QFP Parts: 14. Number of Through-Hole Parts: 2.
  • The form selects "No" for sensitive parts and "No" for substitutes made in China.
  1. Stack-up and finish. The board file and the file z80r-job.gbrjob have this stack-up. The values are what the buyer asks for. You can use your own materials if the total is 1.2 mm and the structure is the same:

    Layer Item Thickness
    Mask Top solder mask 0.020 mm
    L1 F.Cu, 18 µm base copper plus plating 0.035 mm
    Laser prepreg L1-L2 0.075 mm
    L2 In1.Cu, 18 µm base copper plus plating 0.018 mm base
    Prepreg L2-L3 0.116 mm
    L3 In2.Cu, 18 µm base copper plus plating 0.018 mm base
    Core L3-L4 0.200 mm
    L4 In3.Cu, 18 µm finished 0.018 mm
    Prepreg L4-L5 0.200 mm
    L5 In4.Cu, 18 µm finished 0.018 mm
    Core L5-L6 0.200 mm
    L6 In5.Cu, 18 µm base copper plus plating 0.018 mm base
    Prepreg L6-L7 0.116 mm
    L7 In6.Cu, 18 µm base copper plus plating 0.018 mm base
    Laser prepreg L7-L8 0.075 mm
    L8 B.Cu, 18 µm base copper plus plating 0.035 mm
    Mask Bottom solder mask 0.020 mm

    The total is 1.200 mm with the values of the table. The finished thickness of L2, L3, L6 and L7 is more than the base value. State the finished thickness of each layer in your stack-up. The surface finish is ENIG on all pads. The board file has (copper_finish "ENIG"), and the job file has "Finish": "ENIG".

  2. Laser vias (V1 and V2): 0.10 mm hole, 0.22 mm land. The ring is only 0.06 mm. The ring of 0.06 mm is the design value. If you need a larger land, tell the buyer before production. Fill ALL L1-L2 and L8-L7 laser vias (V1) with copper, and plate over each via (cap). This applies to the V1 in a pad, also those at or beside a pad edge, on both sides: the BGA pads, the 0201 pads, the QFN and DHVQFN pads and the exposed pads. Some V1 holes are at the edge of a pad or a little outside. Examples (KiCad frame, y down): U12 pin 22 at 43.65, 15.32, U16 pin 2 at 18.05, 17.77 and U10 pin 15 at 36.05, 10.07. The land of each of these vias overlaps the pad. Fill and cap each of these V1 with copper. Do not leave a V1 open or covered only by solder mask. The L2-L3 and L7-L6 vias (V2) are not in pads. Make the laser vias staggered. No V1 or V2 has the position of a via of the other kind on the same side. No V1 or V2 has the position of a V3. 7 pairs of vias have the same X and Y: one via on the top side and one via on the bottom side. 3 pairs are on different nets and 4 pairs are on the same net. The two vias of a pair are on different layers with the core between them. The vias are not stacked. The 551 V2 vias go through the prepreg L2-L3 or L7-L6 of 0.116 mm: the hole depth is 1.16 times the hole diameter. The HDI page of PCBWay gives a dielectric of 0.15 mm or less for a 0.20 mm laser hole (0.75 to 1). Confirm that you can drill a 0.10 mm laser hole through the 0.116 mm prepreg of L2-L3 and L6-L7. A thinner prepreg is OK. Do not use a thicker prepreg. If you need a thicker prepreg, tell the buyer in the order message before production.

  3. The mechanical vias V3 (buried) and V4 (through) have a 0.15 mm hole and a 0.36 mm land. The ring is 0.105 mm. A hole of less than 0.2 mm is "medium difficulty" at PCBWay. The 0.15 mm hole, the track and space of 0.089 mm and the laser ring of 0.06 mm are small values. If an item is not possible, tell the buyer before production.

  4. The aspect ratio of the 51 through vias (V4, 0.15 mm hole in the 1.2 mm board) is 8:1. PCBWay gives 8:1 or less as "normal". Do not fill and do not plug the 51 V4. Only 2 V4 are in a pad: TP3 pad 1 (net SWCLK) and TP4 pad 1 (net SWDIO), both on the bottom side. Each pad is round, 0.8 mm in diameter, and has no solder paste. The Gerber and drill frame has the origin at the lower left, with Y up. In this frame the pad centres are at X1.85 Y11.34 (TP3 pad 1) and X1.85 Y10.04 (TP4 pad 1). The hole of each pad is at the east edge of the pad: the hole centre is 0.30 mm from the pad centre of TP3 and 0.33 mm from the pad centre of TP4. The holes are at X2.15 Y11.37 (TP3 pad 1) and X2.15 Y10.17 (TP4 pad 1). In the KiCad frame (y down) the holes are at 2.15, 13.97 and 2.15, 15.17 (y of the drill file = 25.34 - y of KiCad). The 0.36 mm land of each hole is partly outside the pad. Keep these 2 holes open. Cover each hole on the top side with solder mask. Do not plug the pad. PCBWay plugs holes of 0.20 mm to 0.40 mm only. If the open hole at the pad edge is a problem for the ENIG process, tell the buyer before production. No other through via is in a pad. The hole of each through via is at least 0.182 mm from the copper of each SMD pad (measured on the board file, without TP3 pad 1 and TP4 pad 1). The hole of each through via is at least 0.225 mm from each solder paste aperture, on both sides.

  5. The buried vias from L3 to L6 (V3) have a 0.15 mm hole and a 0.36 mm land. They go from L3 to L6 (core, prepreg, core), with no laser via at their position.

  6. J1 (USB-C socket) has 4 plated slots (in z80r-PTH.drl) and 2 NPTH pegs of 0.65 mm (in z80r-NPTH.drl). The slots have copper in them. The pegs have no copper. The hole to copper is 0.2 mm for the mechanical holes and 0.15 mm for the laser vias. It is 0.19 mm between the pads A1, A12, B1, B12 of J1 and the pegs of J1.

  7. The outline is the centre line of the Edge.Cuts rectangle: 52.4 mm x 25.34 mm. The line is 0.1 mm wide, thus the job file says 52.5 mm x 25.44 mm. Use 52.4 mm x 25.34 mm as the board size.

  8. P1 is two 20-pin headers. The pins are THT. The plastic body is on the bottom side. Solder these pins by hand, or in a separate THT step after the SMD assembly.

  9. Do not fill the zones again. The Gerber files use the stored fill of the board file. A new fill in KiCad puts back 2 small islands in the +3V3 zone of L6 (1.2 mm2 and 0.5 mm2). The stored fill has none of these islands.

  10. The +3V3 zone on L6 has a minimum width of 0.3 mm. The stored fill has 2 pieces of 69.6 mm2 and 572.7 mm2. Each piece is larger than 30 mm2, and no neck is narrower than 0.3 mm. The routing cuts the fill. Thus the trunk copper and the vias on other layers join the pieces.

  11. The pin 1 marks. U1, U5 and U22 have a dot on the top silkscreen: at the A1 corner of U1 (34.35, 7.42) and of U5 (40.15, 15.87), outside the body, and beside pin 1 of U22 (12.95, 6.95). U10 to U15 have a small dot on the bottom silkscreen beside pin 1. Use the placement file and this table (board coordinates in mm, y down, from z80r.kicad_pcb, with the DHVQFN24 footprint of the package drawing: the pin 1 of U10 to U15 is on a short side, at a corner of the package). U1 has no ball at A1. The table gives the position of ball A2, which is next to the A1 corner. The placement file has 152 rows, for the SMD parts only: P1 is not in the file. In the placement file, X and Y of the bottom-side parts are in the board frame, and the X value is not mirrored.

Part Side Centre (x, y) Rotation Pin 1 or ball A1/A2 (x, y)
U1, LFE5U-85F (A2) top 29.100, 12.670 -90 33.350, 8.920
U5, IS61WV20488FBLL (A1) top 44.350, 12.670 90 41.725, 14.545
U10, 74LVC4245ABQ bottom 34.300, 8.725 -90 31.500, 7.975
U11, 74LVC4245ABQ bottom 34.300, 16.625 90 37.100, 17.375
U12, 74LVC4245ABQ bottom 42.000, 16.625 90 44.800, 17.375
U13, 74LVC4245ABQ bottom 48.800, 8.725 -90 46.000, 7.975
U14, 74LVC4245ABQ bottom 48.800, 16.625 90 51.600, 17.375
U15, 74LVC4245ABQ bottom 42.000, 8.725 -90 39.200, 7.975
U22, TPS259470ARPWR top 14.400, 8.000 0 13.500, 7.300
P1, socket pins (square pad; footprint on the top side, the plastic body of the headers is on the bottom side, the pins go through the board) top 26.200, 12.670 0 2.070, 20.290
  1. L4 (Abracon AOTA-B201610S3R3-101-T, bottom side, centre 9.80, 8.00) is polarised: the part has a white dot at one end. The end with the dot goes to pad 1 (net VREG_LX, U2 pin 48), at 10.65, 8.00 (pad 2 is at 8.95, 8.00). The RP2350 data sheet asks for this direction of the inductor of the core regulator. The BOM has the same note. The footprint is L_Abracon_AOTA-B201610S (pads 0.8 mm x 1.6 mm, pitch 1.7 mm) and has a dot on the bottom silkscreen: the centre of the dot is at 10.65, 6.80, above pad 1 and 0.175 mm from the pad (the line is 0.15 mm wide). The Gerber file has the dot at X10.65 Y18.54, which is y = 6.80 in board coordinates. The footprint has a fab-layer dot at 10.5, 7.5 too.
  2. The pin 1 of the socket. The top silkscreen has a filled triangle west of the square pad of pin 1 of P1 (pad at 2.07, 20.29). The triangle is at x 0.375 to 1.125 and y 19.715 to 20.865. The triangle points at the pad and is 0.2 mm from the copper. All silkscreen lines of the board are at least 0.15 mm wide.

PCBWay capabilities

These values are from the PCBWay web pages, read on 8 November 2026 (HDI PCB, PCB capabilities):

Item PCBWay value
HDI structures 1+N+1 to 6+N+6
Track and space on an HDI board 0.065 mm minimum
Laser drill 0.1 mm (4 mil) standard, 0.2 mm (8 mil) maximum
Mechanical drill 0.15 mm minimum. Less than 0.2 mm is "medium difficulty".
Microvia filling Copper filling on the plating line
Blind and buried vias, "normal process" 1+1+N+1+1: two microvia layers with offset (staggered) microvias
"Medium difficulty" Any-layer HDI (stacked microvias)
"High difficulty" (special review) 2+N+2 with stacked microvias
Via annular ring, outer layer, 18 µm copper 5 mil normal, 4 mil medium
Inner layer track and space, 18 µm copper 4/4 mil normal, 4/3.5 mil medium
Outer layer track and space, 18 µm copper 4/5 mil normal; 3.5/3.5 mil only in a BGA area
Inner layer, hole to copper (6 layers) 8 mil normal, 6.5 mil medium
Inner layer, hole to copper (8 layers) 9 mil normal, 7 mil medium
Board thickness, 8 layers 1.2 mm minimum normal, 1.0 mm medium
Mechanical drill aspect ratio 8:1 or less normal
BGA pad, immersion gold 11 mil normal, 8 mil medium

Thus 3.5 mil (0.089 mm) track and space is possible on the HDI board. The table lists 3.5/3.5 mil on the outer layers only in a BGA area (open decision 6 in "Order remarks for PCBWay"). The 0.15 mm mechanical drill is "medium difficulty" (less than 0.2 mm). In a 1.2 mm board its aspect ratio is 8:1.

The hole to copper rule of the board is 0.2 mm (7.9 mil) for the mechanical holes: "medium" for 8 layers. The laser vias have 0.15 mm (5.9 mil), and J1 has 0.19 mm.

Placement

make_pcb.py puts the large parts at fixed positions (the PLACE table). It puts each other part near a pad of its owner IC with the same net. The part stays on the side of the isolation boundary of its nets.

Area Top side Bottom side
USB end, x = 0 mm to 17 mm J1, the RP2354A (U2), the eFuse (U22) The 3.3 V regulator (U6), the ESD part (D1), the 12 MHz oscillator (X2), the RP2354A capacitors
Isolation boundary The isolators U3 and U4
x = 17 mm to 24 mm The QSPI flash (U17), the 25 MHz oscillator (X1), the CLK buffer (U16) The 1.1 V buck regulator U19
Under the FPGA The FPGA (U1) The FPGA capacitors and resistors, the 3.3 V buck (U18), the 2.5 V LDO (U21)
East of U1 The SRAM (U5) and its capacitors The six translators U10 to U15

The isolation boundary is at x = 17.3 mm on the top side and at x = 15.8 mm on the bottom side. The RP2354A is on the top side, beside J1. Its USB pins point to J1, and its JTAG and UART pins point to the isolators.

To get all parts on the board, these changes were necessary:

  • The resistors and the small capacitors are 0201. The capacitor on VBUS is 0402, for a higher voltage rating. Since 10 November 2026 the 10 uF and 22 uF capacitors on 3.3 V or less are 0402 too (see Placement of the support parts).
  • JP1 and JP2 are small solder jumpers: two 0.6 mm × 1.0 mm pads with a 0.3 mm gap (z80r.pretty). Close a jumper with a solder bridge.
  • The test pads are 0.8 mm round pads with no solder paste.
  • The two LEDs are on different sides. D2 is on the top side. D3 is on the bottom side, thus the host socket hides D3 when the module is in the socket. A test that put D2 and D3 both on the top side found no place for D3: the program put D3 21.8 mm from its owner (the limit is 2.7 mm). In the second round of 11 November 2026 both LEDs were on the bottom side.
  • SW1, the BOOTSEL button (C&K KXT311LHS, 3.0 × 2.0 mm), must be on the top side (the TOP_ONLY set): only the top side is reachable with the module in the socket (recovery.md).
  • JP2 joins GND_USB and GND. It sits across the low edge of the USB area, at the board end beside socket pin 40, with one pad on each side. Since the second round of 11 November 2026 JP2 is on the top side and 0.2 mm farther in (centre at y = 6.85 mm). Pad 2 (GND) is then 0.30 mm from the pad of socket pin 40, and no pad of a bottom part is in the body strip of the header. The GND and GND_USB planes of L2 and L7 have a notch in their gap for x < 2.2 mm (planes() in make_pcb.py, JP2_DY, JP2_X, JP2_NOTCH and JP2_GND_STEP). The notch was 0.2 mm deep until the third round of 11 November 2026. It is 0.35 mm deep now. The gap between the GND fill and the GND_USB fill is 0.500 mm on L2 and on L7. Each pad of JP2 has two V1 now (see Third round of 11 November 2026). JP2 has no courtyard in the board: its pad 1 is under the courtyard of J1 (the nearest pad of J1 is 0.25 mm away).
  • The USB area ends 0.85 mm from the socket pin pads (geom.py): a 0.55 mm Z80-side channel for the tracks to socket pins 1 to 6 and 35 to 40, and a 0.3 mm gap (the gap of JP2). The RP2354A is 0.9 mm below the middle, so that SW1 and U22 fit above it. U22 has a 0.1 mm courtyard margin. EFUSE_FLT_N has no pull-up resistor: the firmware turns on the pull-up of GPIO 13 (board_pins.md).
  • The SRAM pads are 0.35 mm round, on 0.75 mm pitch (z80r:ISSI_miniBGA-48_6x8mm_P0.75mm). (History: the DDR3L pads were 0.40 mm, the IPC-7351 land for 0.45 mm balls at 0.8 mm pitch.)
  • The SRAM is at the place of the old DDR3L, 1.5 mm east of the middle of the free length: a wider gap between U1 and U5.
  • No small part is on the top side beside U1 or between U1 and U5: that space is for the fan-out of the escape.

The references are on the fabrication layers, not on the silkscreen. The board does not have the area for them. PCBWay places the parts from the placement file. The ICs, the connectors and the LEDs keep their outlines and pin 1 marks on the silkscreen.

Correction (10 November 2026): the footprints of make_fp.py (U1, U5, U22) had no pin 1 mark on the silkscreen. Since 11 November 2026 they have a dot (dot() in make_fp.py). (U10 to U15 have a dot beside pin 1, see The DHVQFN24 footprint.) Remark 11 of "Order remarks for PCBWay" gives their pin 1 positions. The DRC check "silkscreen over copper" is off: the Gerber plot removes the silkscreen in the solder mask openings.

Since 11 November 2026 (second round) the pin 1 of the socket has a mark on the top silkscreen: a filled triangle west of the square pad of pin 1 (socket_pins() in make_fp.py). The U-shaped notch of a DIP (between pin 1 and pin 40) has no place on the board: J1 is there. Every silkscreen line is at least 0.15 mm wide. make_fp.py sets 0.15 mm for the pin 1 dots, and silk() in make_pcb.py raises each other line of a library footprint (0.10 mm and 0.12 mm) to 0.15 mm (SILK_MIN).

The board text

Since 10 November 2026 the top silkscreen has four lines of text (make_pcb.py, BOARD_TEXT and the function board_text):

  • github.com/avwohl/z80replacement, top left
  • Z80R V0, top right: the board version (VERSION)
  • CERN-OHL-S-2.0, bottom left
  • (C) 2026 Aaron Wohl, bottom right

The text is 1.0 mm high with a line width of 0.16 mm (PCBWay: 0.8 mm and 0.153 mm minimum). The text is in the two free strips of the top side, outside the socket pin rows: y 0.5 to 3.4 mm and y 21.4 to 24.4 mm. board_text stops with an error if a line is outside its strip or touches another line.

The text is not in build/base.json, thus a change of the text does not make the escape, power or signal data old. Change VERSION for each new order of boards.

Placement of the support parts (10 November 2026)

Decision of the owner (10 November 2026): free board space, keep the supply and decoupling parts strict, place the other parts as well as possible. The new footprint of the 74LVC4245A (see The DHVQFN24 footprint) is larger. After it, the bottom side was full. A first routed board was DRC clean, but many support parts were far from their ICs.

The distance of a part is the distance of its worst pad to the nearest pad with the same net on its owner IC (parts.json gives the owner). The limit of a part is the larger of 2.5 mm and (the distance on commit 94c30a5 plus 1.0 mm). The tables NEAR, LIMIT and STRICT are in make_pcb.py.

What changed:

  • The test pads TP1 to TP4 have no limit. find_near() can put them on either side. A test pad of a USB net stays in the USB area, because the router needs it there. TP1 may also lie beside the socket pins. The top side costs less than the bottom side. No test pad is under a header body strip or under a part.

  • A 10 uF or 22 uF capacitor is 0402 where both nets are 3.3 V or less. It stays 0603 on +5V, VBUS and +5V_EFUSE. See schematic.md and cost.md. The BOM gives 6.3 V and X5R for the five new 0402 capacitors: C15, C31, C53, C56, C57. The 0603 capacitors C14, C52 and C55 on +5V have 10 V and X5R.

  • make_pcb.py places the strict parts first. The strict parts are:

    • the buck parts of U18 and U19: the capacitors, L1, L2, R32 to R35, C51 and C54
    • the capacitors of the LDOs U21 and U6
    • the VREG parts of the RP2354A: L4, R38 and C62 to C64
    • C13 and C14 (U16), C47 (X1), C74 (X2) and C46 (flash)
    • C75 to C78 (isolators)
    • all decoupling capacitors of U1, U2, U5 and U10 to U15

    All 86 strict parts are within their limit. Then the program puts the test pads. Then it puts the best-effort parts: the pull-ups and pull-downs, the LEDs and their resistors, the USB CC and series resistors and the eFuse resistors. Each part goes to the nearest free place. These parts have no hard limit.

  • The GND planes on L2 and L7 have a minimum width of 0.12 mm (before: 0.1 mm). With 0.1 mm the DRC found one copper connection of 0.066 mm in the GND zone of L2 (limit 0.089 mm). The design rules did not change.

  • The router power_route.py did not find a route for four +3V3 hops of U1 with the default order of the rails. Use the order that starts with +1V1:

POWER_ORDER="+1V1,+2V5,+3V3@U5,+3V3,+3V3_USB,+5V,VBUS,+1V1_USB,+5V_EFUSE,VREG_AVDD" python power_route.py build/base.json escape/u1.json,escape/u1_fan.json power/power.json

Since the merge into the repository (10 November 2026), this order is the default (ORDER in power_route.py). The command without POWER_ORDER gives the same power/power.json.

The positions of U1, U5, U10 to U19, U21, U22, P1, J1, X1 and X2 did not change. The balls, the footprints and the nets did not change.

Runs. The seeds 1 to 4 of PL_SEED give the same placement. The first plan has no strict part over its limit, thus the repair loop does not run and no random number is used. The run line is:

make_pcb: 6 passes for the parts near their owner, 0 over the limit: ; 3 over 3.5 mm

The commands after the placement:

  1. pin_swap.py --renet: 0 nets of U1 change.
  2. power_route.py with POWER_ORDER: 48 V3.
  3. make_pcb.py, then check_pcb.py: 0 violations and 208 unconnected items (the signals are not routed yet).
  4. route_signals.py --iterations 100: 1765 s, 0 nets with conflicts, 0 nets open, 4730 tracks, 210 vias, 209 hops.
  5. make_pcb.py, then check_pcb.py --routed: 0 violations, 0 unconnected items.
  6. make_fab.py: 151 parts in the placement file, 49 lines in the BOM (with the header), 30 Gerber and drill files.

KiCad mirrors a part on the bottom side. The local y of each pad changes sign: a pad at (x, y) in the library is at (x, -y) in the footprint coordinates. Then the stored angle turns the part. The check of the 150 pads of the six translators uses this rule.

Strict parts

Each part is within its limit (0 of 86 over). The table gives the distances on the board of the third round of 11 November 2026. 44 of the 86 distances are different from the second round. The third round moved 56 parts (see Third round of 11 November 2026). The limits did not change. The side of each strict part is the same as in the second round.

Part Owner Distance (mm) Limit (mm) Side
C1 U10 4.00 4.99 bottom
C2 U10 3.82 4.6 bottom
C3 U11 3.87 4.49 bottom
C4 U11 3.42 4.4 bottom
C5 U12 3.21 4.03 top
C6 U12 3.42 3.93 bottom
C7 U13 1.07 2.5 top
C8 U13 2.54 2.75 bottom
C9 U14 1.48 2.5 top
C10 U14 2.41 2.75 bottom
C11 U15 2.06 2.68 bottom
C12 U15 1.31 3.1 bottom
C13 U16 2.45 4.34 bottom
C14 U16 2.56 3.33 bottom
C15 U1 0.07 2.5 bottom
C16 U1 0.14 2.5 bottom
C17 U1 0.23 2.5 bottom
C18 U1 1.34 2.5 bottom
C19 U1 0.36 2.5 bottom
C20 U1 0.39 2.5 bottom
C21 U1 0.94 2.84 bottom
C22 U1 1.01 2.5 bottom
C23 U1 0.43 2.5 bottom
C24 U1 1.22 2.99 bottom
C25 U1 1.44 3.03 bottom
C26 U1 0.61 2.5 bottom
C27 U1 1.61 3.26 bottom
C28 U1 1.73 3.43 bottom
C29 U1 0.79 2.5 bottom
C30 U1 1.96 4.41 bottom
C31 U1 1.19 4.01 bottom
C32 U1 2.08 3.67 bottom
C33 U1 2.21 3.52 bottom
C34 U1 2.26 3.61 bottom
C35 U1 2.34 4.5 bottom
C36 U1 2.45 3.76 bottom
C37 U1 2.64 4.44 bottom
C38 U1 0.18 2.5 bottom
C39 U1 2.69 4.27 bottom
C40 U1 1.02 2.5 bottom
C41 U1 2.76 3.75 bottom
C42 U1 0.07 3.19 bottom
C43 U1 2.88 4.36 bottom
C44 U1 3.06 4.51 bottom
C45 U1 3.13 4.59 bottom
C46 U17 2.07 5.6 bottom
C47 X1 1.33 5.39 bottom
C48 U5 0.81 3.27 bottom
C49 U5 1.55 3.96 bottom
C50 U5 1.86 3.05 top
C51 U18 2.65 3.67 bottom
C52 U18 1.50 3.78 bottom
C53 U18 4.22 5.94 bottom
C54 U19 1.27 3 bottom
C55 U19 3.31 10.08 bottom
C56 U19 4.62 7.42 bottom
C57 U19 5.25 8.18 bottom
C58 U21 1.70 11.72 bottom
C59 U21 1.99 13.22 bottom
C60 U6 1.51 3.46 bottom
C61 U6 3.31 9.63 bottom
C62 U2 5.17 6.45 bottom
C63 U2 6.21 8.02 bottom
C64 U2 7.20 8.91 bottom
C65 U2 3.46 4.06 bottom
C66 U2 4.00 5.94 bottom
C67 U2 4.17 7.25 bottom
C68 U2 4.74 5.29 top
C69 U2 4.82 6.87 top
C70 U2 5.01 6.61 bottom
C71 U2 5.43 6.39 top
C72 U2 1.73 5.23 bottom
C73 U2 5.79 7.34 top
C74 X2 0.59 13.57 top
C75 U3 1.56 13.61 bottom
C76 U3 2.33 15.03 bottom
C77 U4 1.09 13.12 top
C78 U4 1.51 17.42 bottom
L1 U18 1.08 5.69 bottom
L2 U19 1.11 10.09 bottom
L4 U2 4.01 4.9 bottom
R32 U18 2.54 3.58 bottom
R33 U18 3.19 6.31 bottom
R34 U19 1.65 2.5 bottom
R35 U19 1.02 3.79 bottom
R38 U2 1.90 3 bottom

Best-effort parts

These parts have no hard limit. The table gives the placement of the third round of 11 November 2026. The distance is the distance from the worst pad to the nearest pad of the owner with the same net, centre to centre.

In the second round (Second round of 11 November 2026) the table was different for 13 parts (D2, D3, R5 to R8, R17 to R20, R22, R26 and R27). The side of D2, R5, R7, R8 and R19 changed. R47 is new. R47 is the pull-up of FLASH_CLK, on the bottom side, 2.04 mm from U17.

Four parts are over their old limit. Five more best-effort parts are over their old limit after the second round: R20, R21, R23, R24 and R25 (9.49, 11.35, 10.65, 12.43 and 12.93 mm). The LIMIT of these five parts in make_pcb.py is the distance of the second round plus 0.1 mm, and the five parts are within it.

D3 is 2.39 mm from X1. D3 is within its old limit now (it was 2.61 mm in the second round). The four old ones were:

  • R39 (RUN pull-up): 12.21 mm, old limit 7.82 mm. The places near U2 are taken by strict parts (the capacitors of U2, L4, R38).
  • TP1: 4.00 mm, old limit 3.0 mm. A test pad has no limit now. TP1 is on the top side, because that side is reachable with the module in the socket.
  • TP2 (RUN): 13.33 mm, old limit 10.22 mm. A test pad has no limit now. The top side of the USB area has no free place, thus TP2 is on the bottom side.
  • TP3 (SWCLK): 14.37 mm, old limit 11.73 mm. The same reason as TP2.
Part Owner Distance (mm) Old limit (mm) Side
C79 U22 12.35 16.93 bottom
D1 J1 4.18 5.18 bottom
D2 X1 1.35 2.5 top
D3 X1 2.39 2.5 bottom
JP1 U22 7.79 none bottom
JP2 U22 14.33 none top
R3 J1 4.00 6.02 bottom
R4 J1 3.82 4.76 bottom
R5 U16 0.55 2.72 bottom
R6 U16 1.06 2.6 top
R7 U16 1.38 3.95 top
R8 U16 1.42 3.11 bottom
R9 U16 none (no pad of the owner on the net) none bottom
R10 U16 none (no pad of the owner on the net) none bottom
R11 U16 none (no pad of the owner on the net) none bottom
R12 U16 none (no pad of the owner on the net) none bottom
R13 U16 none (no pad of the owner on the net) none bottom
R14 U16 none (no pad of the owner on the net) none top
R15 U16 none (no pad of the owner on the net) none bottom
R16 U16 none (no pad of the owner on the net) none top
R17 U1 2.60 3.99 bottom
R18 U1 3.68 9.81 bottom
R19 U1 3.21 4.19 bottom
R20 U1 9.49 5.83 bottom
R21 U1 11.35 10.16 bottom
R22 U1 3.26 4.75 bottom
R23 U1 10.65 10.15 bottom
R24 U1 12.43 5.88 bottom
R25 U1 12.93 8.36 bottom
R26 U1 2.56 3.9 bottom
R27 U17 3.21 6.41 bottom
R28 X1 none (no pad of the owner on the net) none top
R29 X1 none (no pad of the owner on the net) none bottom
R30 U5 1.14 2.5 bottom
R31 U5 1.41 3.68 bottom
R36 J1 5.37 6.75 bottom
R37 J1 6.39 7.01 bottom
R39 U2 12.21 7.82 bottom
R40 U2 2.31 3.11 bottom
R41 U2 9.63 14.15 bottom
R42 U2 11.53 14.43 bottom
R43 U22 13.32 15.47 bottom
R44 U22 13.15 14.26 bottom
R45 U22 14.46 17.62 bottom
R46 U22 15.40 16.77 bottom
R47 U17 2.04 none bottom
SW1 U2 4.49 none top
TP1 U1 4.00 3.0 top
TP2 U2 13.33 10.22 bottom
TP3 U2 14.37 11.73 bottom
TP4 U2 14.57 16.48 bottom

Second round of 11 November 2026

The fourth and fifth review (todo.md, item 5) found two problems of the placement and the routing. The pads of some bottom parts were inside or at the edge of the body of the header, and some through vias had the hole 0.03 mm to 0.08 mm from a small pad. This round changes the rules for the placement and the routing.

This section describes the second round. The third round of 11 November 2026 placed 56 parts again. The numbers in this section are the numbers of the second round, unless a sentence says that the number is from the third round. See Third round of 11 November 2026.

The header body of P1 is on the bottom side. It is a strip 2.54 mm wide that is centred on each pin row: y 3.78 to 6.32 mm and y 19.02 to 21.56 mm, x 0.8 to 51.6 mm. The strip has a margin of 0.20 mm on each side now (BODY_MARGIN in make_pcb.py). No pad of a part on the bottom side is inside the strip with the margin: y 3.58 to 6.52 mm and y 18.82 to 21.76 mm. find() and find_near() use the y range HDR_LO to HDR_HI (6.52 mm to 18.82 mm) for the pads of the bottom parts (the copper of the pad, not the courtyard), and find_near() also tries the rows next to the limits. The rule is for the parts that the program places and for JP2.

What changed in the placement:

  • 74 parts moved or changed side: C17, C19, C20, C23 to C41, C43 to C46, C51 to C59, C76, C78, D2, D3, JP2, L1, R5 to R29, R32 to R35, R43 to R46. The 74 are the result of the rule: the places of the small parts along the two body strips were taken, and the placement program fills the other places in a new order. No pad changed its net (0 differences against the commit before). U1, U5, U10 to U19, U21, U22, X1, X2, J1, P1, L4 and the other parts of PLACE did not move.
  • JP2 moved to the top side, 0.2 mm farther in. See Placement.
  • R27 (the pull-up of FLASH_CS_N) is in PRE: it goes to its best place first. With the new rule, the nearest free place for R27 was 19.6 mm from the flash.
  • The translators stay where they are. Their pads are 0.145 mm (south row, U11, U12 and U14) and 0.155 mm (north row, U10, U13 and U15) from the body strip, that is, 0.055 mm and 0.045 mm inside the strip with the margin of 0.20 mm. A run with the two rows 0.1 mm farther in (T_YN 8.825 mm and T_YS 16.525 mm, pads 0.245 mm from the strip) did not give a routed board: 20 router variants of 3 boards left SRAM_A20 and 1 or 2 more nets open each time (conflicts on L3 at x = 33 mm to 34 mm, y = 10 mm). Thus the margin of 0.20 mm is not met by the six translators. The smallest distance from a pad of another part to the strip is 0.295 mm (C14). On the board of the third round this distance is 0.210 mm (C46 pad 1, C51 pads 1 and 2, C54 pads 1 and 2, R34 pad 1 and R47). That is 0.01 mm outside the widened strip, and no pad is inside it. The six translators are the same: 0.145 mm (U11, U12, U14) and 0.155 mm (U10, U13, U15). JP2 pad 2 is 0.300 mm from the pad of socket pin 40.
  • Some best-effort pull-ups and the two CFG pull-downs are farther from U1 than before (the table above): D3, R20, R21, R23, R24 and R25. No strict part changed its limit: 0 of 86 over.
  • L4 and the capacitors C62 to C64 of the core regulator of the RP2354A (U2): L4 is 3.90 mm from U2 pin 48 (VREG_LX), C62 5.17 mm, C63 6.21 mm and C64 7.20 mm. (On the board of the third round L4 is 4.01 mm from pin 48: the centre of pad 1 of the new footprint is 0.12 mm farther out (x 10.53 until the third round, now 10.65). C62, C63 and C64 have the same distances.) The data sheet of the RP2350 wants a small loop. Two runs with a shorter LIMIT (L4 3.2 mm, C62 to C64 4.2 mm to 4.8 mm, then L4 3.5 mm and C62 5.1 mm) found no better place: the distances of L4 and C62 did not change and more best-effort parts went over their limit. This change is not made. A place nearer to U2 needs a larger board area on the bottom side.
  • The values of the CFG pull-downs R17 (CFG0) and R19 (CFG2) are 470 ohm (were 10 kilohm): see todo.md, item 5. The footprint is the same.

What changed in the routing:

  • V4_PAD_KEEP is 0.2 mm (was 0.1 mm).
  • HIST_ADD is 1.5 (was 1.0): see Routing.
  • power_route.py: the width of +1V1 is 0.5 mm (was 0.25 mm), of +5V and +5V_EFUSE and VBUS 0.4 mm (were 0.2, 0.2 and 0.3 mm). See Routing.

Checks of the final board (10 November 2026)

  • DRC: check_pcb.py --routed: 0 violations, 0 unconnected items. route_signals.py: 0 nets with conflicts, 0 nets open (all 168 signal nets routed).
  • The 150 pads of U10 to U15 are at the positions of the library footprint (footprint coordinates, bottom parts with the sign of y changed): 0 differences. The 48 balls of U5 have the nets of SRAM_BALLS in make_lib.py: 0 differences.
  • P1: pin 1 at (2.07, 20.29), the minimum x and the maximum y (bottom left in the top view), at the J1 end. The numbers go counterclockwise: pins 1 to 20 left to right in the lower row, pins 21 to 40 right to left in the upper row. 0 wrong nets of 40.
  • The path of each of the 38 signals of the Z80 (without +5V and GND): pad of P1, translator (or U16 for CLK), ball of U1, gateware/top/z80r_mg285.lpf, port of z80r_top.sv. 38 of 38 are correct.
  • 1788 vias: 0 duplicate positions. 1504 laser vias: the smallest distance of two vias of one net on a shared layer is 0.350 mm (no pair closer than 0.32 mm). The vias: 54 through vias (V4), 230 V3, 473 + 525 V1, 239 + 267 V2.
  • The +3V3 fill of L6 has 2 pieces of 81.7 mm2 and 235.2 mm2: no island below 30 mm2.
  • The board file has (copper_finish "ENIG") and the stack-up of 8 layers with a total of 1.200 mm.
  • Copper of FB_1V1 (U19 pin 1, R34, R35, C54): 5.37 mm. Copper of FB_3V3 (U18 pin 1, R32, R33, C51): 1.90 mm.
  • The BOM has the lines "Capacitor, ceramic, 10uF, 6.3V, X5R, 0402" (C15, C31), "Capacitor, ceramic, 22uF, 6.3V, X5R, 0402" (C53, C56, C57), "Capacitor, ceramic, 22uF, 10V, X5R, 0603" (C14) and "Capacitor, ceramic, 10uF, 10V, X5R, 0603" (C52, C55).
  • The pin 1 table (remark 11) is the same after this placement: the positions of the large parts did not change.

Checks of the final board (11 November 2026)

The review of 11 November 2026 (todo.md, item 5) found the net FLASH_CS_N on the wrong ball of U1. The net is now on ball U17 (CSSPIN). Ball R17 has no connection. The escape, the fan-out, the power routing and the signal routing ran again.

Both lists are history: the first gives the board of the first round of 11 November 2026 (commit 7797ab3), and the second gives the board of the second round (commit f04040d). The board for the order is the board of the third round: see Third round of 11 November 2026.

First round (history):

  • DRC: check_pcb.py --routed: 0 violations, 0 unconnected items. route_signals.py: 0 nets with conflicts, 0 nets open: 4613 tracks, 198 through and buried vias, 220 hops.
  • check_sch.py: PASS, with the same 12 ERC warnings.
  • FLASH_CS_N connects U1 ball U17, U17 pin 1 (the flash) and R27.
  • 1797 vias: 52 through vias (V4), 221 V3, 479 + 524 V1, 255 + 266 V2. The smallest distance of two laser vias of one net on a shared layer is 0.350 mm.
  • 5 through vias are in pads, all in large pads (remark 4).
  • The +3V3 fill of L6 has 3 pieces of 41.8, 72.3 and 232.9 mm2.
  • The placement did not change: the pin 1 table (remark 11) is the same.
  • The BOM has C79 as "Capacitor, ceramic, 10nF, 25V, X7R, 0201" and a polarity note for L4.

Second round (history, see Second round of 11 November 2026):

  • DRC: check_pcb.py --routed: 0 violations, 0 unconnected items. A separate run of kicad-cli pcb drc --severity-all on a copy of the board gave the same result.
  • route_signals.py: 0 nets with conflicts, 0 nets open: 4809 tracks, 203 through and buried vias, 238 hops.
  • check_sch.py: PASS. A separate comparison of each pad of the board with model.json found 0 differences in 158 parts.
  • FLASH_CS_N connects U1 ball U17, U17 pin 1 (the flash) and R27. Ball R17 has no net.
  • 1837 vias: 52 through vias (V4), 223 V3, 496 + 526 V1, 270 + 270 V2. No two vias have the same position and the same layers. The six drill files have the same quantities.
  • 6 through vias are in pads, all on the net of the pad: D1 pad 1, D1 pad 3, TP2, TP3, TP4 and X2 pad 3 (remark 4). No hole of a through via is less than 0.1 mm from an SMD pad that is smaller than 0.5 mm.
  • The +3V3 fill of L6 has 2 pieces of 132.0 and 420.6 mm2.
  • The placement file has 151 parts: 26 on the top side and 125 on the bottom side. JP2 moved to the top side, and 74 small parts have a new place. U1, U5, U10 to U15 and U22 did not move: the pin 1 table (remark 11) is the same.
  • The BOM has 51 lines. R17 and R19 (470 ohm) are a new line. Each line has a part number, also the LED line (see Part numbers of the passive parts).

History: until 10 November 2026 ("Placement") the text said "The resistors and the small capacitors are 0201. The capacitor on VBUS is 0402, for a higher voltage rating." The five 10 uF and 22 uF capacitors on 3.3 V or less are 0402 too since 10 November 2026. Remark 4 of "Order remarks for PCBWay" gave 51 through vias before this placement, and remark 10 gave a +3V3 fill of 4 pieces.

Third round of 11 November 2026

An independent review of the second round (todo.md, item 5) found three groups of problems. The groups are the layout of the buck converters, the places of the bypass capacitors and the supply copper. A third board round corrected them.

The work had three steps (3, 3b and 3c). The board of step 3c is the board in hardware/pcb/z80r.kicad_pcb, and this board is the board for the order. This section gives the changes against the second round. The numbers come from measurements on the board file, unless a sentence says that a number is the result of a model.

What changed in the design:

  • R47 is new: a pull-up resistor of 1 kilohm (0201) from FLASH_CLK to +3V3. The Lattice guide FPGA-TN-02039 asks for this resistor on the configuration clock MCLK. R47 is on the bottom side at 21.10, 6.73, under pin 6 of U17, and is 2.04 mm from U17. R47 has the BOM line of the 1 kilohm resistors (R28, R29, R40, R47). FLASH_CLK is 14.98 mm long (13.31 mm in the second round), has 7 vias and has no through via.
  • L4 has its own footprint, L_Abracon_AOTA-B201610S: pads of 0.8 mm × 1.6 mm at a pitch of 1.7 mm (the Murata footprint of the second round had pads of 0.55 mm × 1.6 mm). The footprint has a polarity dot on the silkscreen (remark 12). silk() in make_pcb.py keeps this dot. The Abracon data sheet shows pads of 1.0 mm × 1.6 mm at a pitch of 2.0 mm (the text of make_fp.py). The board has narrower pads, because the distance to C67 and C75 is small. A comparison with the data sheet (Rev. A, 9/13/2024) is in todo.md, item 5: the verdict is "acceptable with note". The pad area is 80 percent of the area in the data sheet, and the pads cover the terminals at each tolerance corner.
  • The switch nodes of the buck converters are one track each on B.Cu, 0.5 mm wide, with no via: SW_3V3 is 0.975 mm long (U18 pin 4 to L1) and SW_1V1 is 0.985 mm long (U19 pin 4 to L2). In the second round SW_3V3 had 4 tracks of 0.089 mm (2.57 mm) and 4 microvias. SW_1V1 had 13 tracks (6.26 mm) and 4 microvias.
  • 18 parts have a fixed place (FIX in make_pcb.py): L1, L2, C51 to C57, R32 to R35, C26, C46, C76, C78 and R47. The fixed tracks of the buck converters on B.Cu (DIRECT in power_route.py) join their pads. These tracks are the switch nodes, the feedback nets, the input and output capacitors, and the supply of C76 and C78. L4 has a fixed place too, in PLACE, so that it does not move. The program stops in two cases. A fixed part can be over another part. A pad of a fixed bottom part can be in a strip of a header body.
  • The bypass capacitors C26, C46, C76 and C78 are nearer to their pins. The distance is the distance from the worst pad to the nearest pad of the owner with the same net. C26 is 0.61 mm from ball N6 of U1 (1.24 mm in the second round). C46 pad 1 is 1.21 mm from pin 8 of U17 (1.31 mm in the second round), and the strict table gives 2.07 mm for the GND pad. C78 is 1.51 mm from pin 16 of U4, and C76 is 2.33 mm from pin 15 of U3.
  • 56 parts differ from the second round: 51 moved or turned and 5 (D2, R5, R7, R8 and R19) changed the side. R47 is new. U1, U5, U10 to U19, U21, U22, X1, X2, J1, P1 and L4 did not move. The placement tables above give the new distances.
  • JP2: each pad has two V1. In the second round each pad had one V1 at its centre. The V1 of pad 2 (GND) are now 0.15 mm off the centre of the pad, at y = 6.25 mm. Their lands end 0.14 mm inside the GND fill.
  • The notch of the planes at JP2: the GND_USB fill is 0.35 mm farther in for x < 2.2 mm (JP2_NOTCH, 0.2 mm in the second round). The GND fill has a step at x = 1.7 mm (JP2_GND_STEP, 0.5 mm). The gap between the two fills is 0.500 mm on L2 and on L7, as in the second round. The lands of pad 1 (GND_USB) are 0.19 mm inside the GND_USB fill. The signal router keeps the tracks and vias of the USB nets out of the notch.
  • +1V1: the pads of L2, C56 and C57 each have more V3 into the +1V1 area of L3 (PARALLEL_V3 and N_V3 in power_route.py). The board has 7 V3 for +1V1 (2 in the second round).
  • Wide stubs: the hop of a pad in WIDE has a stub of 0.2 mm on L2 or L7. WIDE has these pads: U22 pins 5 and 6, JP1, and pad 1 of C14, C52, C53, C55, C56 and C57. It also has pad 2 of L1 and L2, and pin 3 of U18 and U19. The pads of TWO (U22 pins 5 and 6, JP1 and pad 1 of C14) have a second hop.
  • The second V1 of a pad of TWO is 0.35 mm from the first V1 (V1_PITCH, 0.30 mm in the second round). The gap between the two lands is 0.13 mm (0.08 mm before). The smallest centre distance of two laser vias of one net on a shared layer is 0.350 mm.
  • The trunks. power_route.py makes the trunk of +3V3 and the trunk of +5V first (the steps "+3V3#trunk" and "+5V#trunk" of ORDER). A trunk is a tree of wide tracks, mostly on L6, with 2 V3 in parallel at each change of layer. The +3V3 trunk goes from pad 2 of L1 to the supply pins of U10 to U15 (pins 23 and 24), U5 (D6 and E1) and U16 (pin 5). The +5V trunk goes from pin 11 of P1 to C52, C55 and the pins 3 and 5 of U18 and U19. The width is 0.6 mm, with 0.5 mm to pin 24 of U14 and 0.3 mm to C52 and pin 5 of U18 (a wider leg does not pass the clearance check). The board has 74.4 mm of +3V3 track and 21.0 mm of +5V track at 0.6 mm. The other +5V track is 61.9 mm at 0.4 mm. The ball field of U1 and U5 costs more for a trunk (TRUNK_BGA, 8.0), thus a trunk avoids the ball field if another way exists. The router makes the rest of the +3V3 and +5V copper after the trunks.
  • The +3V3 fill on L6 has 2 pieces (572.7 and 69.6 mm2). The trunk copper joins them, not the fill. The board has 73 +3V3 vias that go to L6, and 4 of them have no fill (14 of 68 in the second round).
  • No through via is in or near a pad with paste (remark 4). TP3 and TP4 keep their through vias, because the test pads have no paste.
  • The paste of the centre pad of the DHVQFN24 is 50 % of the pad (17.6 % before). See The DHVQFN24 footprint.
  • The cathode dot of an LED stays 0.25 mm from the pads of other parts (led_dots() in make_pcb.py). D2 is on the top side and D3 is on the bottom side. The host socket hides D3.

Supply resistance. The numbers below come from resistor network models of the copper (18 µm inner and 35 µm outer copper, with the stored fill). Nobody measured them on a board. The builder and two reviewers used three models. The results differ by 5 % to 100 %, thus the text gives a range when the models differ.

  • +3V3 with the fill: in step 3b of the third round, before the trunks, the tracks to the supply pins had a width of 0.15 mm. The worst path from pad 2 of L1 to a supply pin of U10 to U15, U5 or U16 had 250 to 300 milliohm. The builder model gives 29 milliohm now (pin E1 of U5). The model of a reviewer gives 42 milliohm for the same pin. The target of 80 milliohm holds for all +3V3 supply pins with the fill on L6.
  • +3V3 without the fill (tracks and vias only): the trunk pins have about 60 milliohm (54 to 61 milliohm). The pins that are not on the trunk need the fill to reach 80 milliohm. U17 pin 8, U3 pin 10 and U1 ball D12 have 101 to 118 milliohm without the fill.
  • +5V: from pin 11 of P1 to pin 3 and pin 5 of U18 the models give 43 to 51 milliohm. To pin 3 and pin 5 of U19 they give 23 to 34 milliohm. In the second round, a model of a reviewer gave 50 to 60 milliohm for these four pins. Thus the +5V path is better to U18 and U19.
  • +5V to the VCCA pins of the translators U10 to U15: the path is not better. It is equal to the path of the second round (U14 pin 1 has 132 milliohm, and had 131 milliohm). These pins take a few to tens of milliamperes, and 132 milliohm is about 13 mV at 0.1 A.
  • +1V1: from pad 2 of L2 to the balls of U1 the largest result is 18 milliohm (36 milliohm in the second round, one model).

The new rules and settings of the routers, and the settings of the final board:

  • route_signals.py keeps the through vias out of the pads and apertures with paste (PASTE_RULE, default all). The value small keeps the old rule for small pads, plus the parts in PASTE_REFS (default L4,U17,D1,X2).
  • power_route.py has the new knobs TRUNK_L6COST (1.0) and TRUNK_BGA (8.0).
  • The final board is the result of HIST_ADD 1.7 (the default is 1.5) and 60 iterations.
  • The builder ran 12 variants with other values of HIST_ADD, COST_HOP, PRES_MUL and COST_V4. Only 2 variants routed all nets: HIST_ADD 1.7 and COST_HOP 0.9.
  • The variant with COST_HOP 0.9 has one DRC violation (connection width). Thus it is not the board.
  • The other 10 variants left 1 to 3 nets open. A small change of a router value can leave nets open.

signals/signals.json has 5419 tracks, 215 through and buried vias and 237 hops, with 0 conflicts (4809, 203 and 238 in the second round). The signal copper is 2757.7 mm long and has 894 vias (2623.4 mm and 868 vias in the second round).

Some nets are longer than in the second round. SRAM_CE_N is 38.99 mm (25.74 mm), LED1_A is 38.32 mm (26.76 mm) and AOE_N is 34.60 mm (23.13 mm). CLK25 is 20.02 mm (14.81 mm), and 14.64 mm of this track is on L4. L4 has signal layers on both sides, and the planes are two layers away. The extra length is small in time: about 6.5 ps for each mm (0.26 ns for 39 mm).

Checks of the board of step 3c:

  • check_pcb.py --routed: 0 violations, 0 unconnected items. A separate kicad-cli pcb drc --severity-all --all-track-errors on a copy of the board gives 0 violations, 0 unconnected pads and 0 footprint errors.
  • check_sch.py: PASS, 963 pins of the model, 261 nets, 0 failures. A comparison of each pad of the board with model.json found 0 differences. The 87 balls of U1 have the nets of z80r_mg285.lpf.
  • 159 footprints: 28 on the top side and 131 on the bottom side. The placement file has 152 parts (25 on the top side and 127 on the bottom side). The BOM has 51 lines and 45 different part numbers.
  • 7090 tracks: 1012 on L1, 292 on L2, 1996 on L3, 695 on L4, 726 on L5, 1261 on L6, 272 on L7 and 836 on L8 (6434 in the second round).
  • 1879 vias: 51 through vias (V4), 242 V3, 507 + 528 V1 and 279 + 272 V2 (1837 in the second round). 1586 are laser vias. No two vias have the same net, position and layers. The smallest distance between the holes of two mechanical vias is 0.311 mm. The through vias in the Gerber and drill files agree with the board.
  • 2 through vias are in pads (remark 4). 20 V1 holes straddle a pad edge (remark 2).
  • Each fill is one piece, except the +3V3 fill on L6. GND is 876.3 mm2 on L2 and 874.6 mm2 on L7. GND_USB is 163.9 mm2 on L2 and 170.3 mm2 on L7. +3V3_USB is 153.7 mm2 on L6. +1V1 is 18.6 mm2 on L3.
  • The schematic parity check of KiCad needs links between the footprints and the symbols. make_pcb.py does not make these links. A run with the links gave 16 items "lib_footprint_mismatch" and 10 items "net_conflict". The 16 come from silk(), which removes the silkscreen of the parts from the libraries of KiCad. The 10 come from the 11 NC pins of U5. The netlist puts these pins on one net, and the board gives each pin its own net. Thus the fab files do not change. See todo.md, item 5.
  • The step 3c does not change the pin 1 table (remark 11).

History of the order remarks

This list holds the older text of the order remarks. The order remarks above give only the present rule. The older text is not part of the order.

  • Item 2 of the notes said "in the BGA pads" only until 10 November 2026.
  • Remark 2 said only "Fill the vias in the BGA pads with copper and plate over them" until 10 November 2026. Until the third round of 11 November 2026 it said "Fill each V1 that is in a pad". A reader can understand this text as "only the vias that are fully in a pad". The rule now is to fill each V1.
  • Remark 2, positions of vias of different nets at the same X and Y (within 0.01 mm), on the board of step 3c. At 3 places, two different nets have hops at the same position, one on the top side (L1 to L3) and one on the bottom side (L8 to L6): (46.23, 11.55) for GND and SRAM_WE_N, (42.85, 18.72) for Z_D0 and Z_BUSAK_N, and (43.20, 18.72) for Z_D0 and Z_BUSAK_N. At 4 places, one net has a top hop and a bottom hop at the same position: FLASH_CLK (21.80, 6.37), CFG1 (26.00, 19.62), CFG1 (26.00, 19.97) and +3V3_USB (9.95, 10.12). The core lies between the two hops of each pair, thus they are not stacked.
  • Remark 4: the board had 52 through vias until the third round of 11 November 2026. Earlier boards had 51, 52 and 54. The board of the second round had 6 through vias in pads: D1 pad 1, D1 pad 3, TP2, TP3, TP4 and X2 pad 3. Three of them (D1 pad 1, D1 pad 3 and X2 pad 3) were in a pad with solder paste. V4_PAD_KEEP was 0.1 mm until the second round of 11 November 2026. Before that change, 18 through vias were in pads, 8 of them in pads of 0201 parts. On the board of the second round, 11 pads and apertures with paste (D1, J1 shield, R3, R39, R40, R46, U3 and X2) had a through-via hole within 0.2 mm. Three of these holes were in a paste pad (D1 pad 1, D1 pad 3 and X2 pad 3).
  • Remark 9: an earlier board (commit 76c4bcd) gave 2 unconnected GND items after a new fill.
  • Remark 10: the +3V3 zone on L6 had these fills on earlier boards. The second round of 11 November 2026 had 132.0 mm2 and 420.6 mm2. The routing of 11 November 2026 gave 3 pieces of 41.8, 72.3 and 232.9 mm2. The placement of the support parts of 10 November 2026 gave 2 pieces. Before, there were 4 pieces.
  • Remark 11: before 11 November 2026, U1, U5 and U22 had no pin 1 mark.
  • Remark 12: until the third round of 11 November 2026 the footprint of L4 had no mark for the dot.
  • Assembly line of the form: until the second round of 11 November 2026 the line said 49 unique parts, and an earlier version said 46 (45 part numbers and the LED).
  • Part number list: an earlier version of this file said, in error, that the LED line has no part number.
  • Order remarks written for the fab (11 November 2026): the notes and the remarks no longer have dates, round numbers, script names or a reference to todo.md. The history below holds that text.
  • Block 1 of the form (special request of the PCB) had 599 characters and said "Size 52.4 x 25.34 mm" and "hole to copper 0.2 mm" (the value 0.2 mm is for the mechanical holes only: the laser vias have 0.15 mm). The size is in remark 7.
  • Block 2 of the form (assembly) said "Ask before you use a substitute part", and it gave the pin 1 coordinates with 2 decimals (the rounding was not the same in all places, and the placement file did not agree with the text). It also marked only U22 and U15 with "(dot)". The BOM has the note "An equivalent part is OK" on the passive parts and on D2 and D3, thus block 2 now points to the BOM notes.
  • Note 1 and the form list said that all inner layers are 0.5 oz (18 µm) finished. The HDI build puts plating on L2, L3, L6 and L7. The stack-up table had 0.018 mm for each inner layer.
  • Note 3 gave this reason for 0.089 mm: "only approximately 57 of the 115 FPGA signals escape on L1 (a number of the first study, not measured again)". U1 of the present board has 98 signal balls (285 balls: 123 GND, 29 power, 35 without connection). The note also said "most of the 3480 tracks of 0.089 mm are in the area of U1 and U5". On the board of the third round, 237 tracks of 0.089 mm have both ends outside the pad rectangles of U1 and U5 plus 2.0 mm (243 on the board of the second round, with the same method). With the margin 1.0 mm the number is 1297, and with 3.0 mm it is 185.
  • Remark 2, tracks and vias at a pad edge: the earlier text said "About 20 V1 holes straddle or touch a pad edge". A test of 16 points on the hole gave 19 in one count (5 on the top side and 14 on the bottom side) and 20 in a second count (5 and 15), plus 1 tangent hole (U2 pin 24). If tangent holes count, the number is 21 (R24 pin 2 and U2 pin 24 in the first count). U17 pin 1 (13 to 15 of 16 points in the pad) is a straddle hole and not a tangent hole. The 3 holes with the centre at the pad edge or outside the pad are U12 pin 22 (DOE_N) at 43.65, 15.32 (0.045 mm outside), U16 pin 2 (Z_CLK) at 18.05, 17.77 (on the edge) and U10 pin 15 (A1) at 36.05, 10.07 (0.005 mm outside, because the pad copper starts at y = 10.075).
  • Remark 2, the check of the number of vias with the same X and Y (within 0.01 mm) on the final board: 7 pairs, 3 on different nets and 4 on the same net. A check that rounds X and Y to 0.01 mm finds only 5 of the 7 pairs (it misses 46.23, 11.55 and 9.95, 10.12).
  • Remark 2, the request to the owner: "Ask PCBWay to confirm the 0.10 mm hole in this prepreg before the payment". Remark 2 now asks the fab directly.
  • Remark 4, older text of the through vias. The text said that the pads TP3 pad 1 and TP4 pad 1 are 0.8 mm x 0.8 mm and that the holes are in a test pad. The Gerber files have round pads of 0.8 mm, and the hole is at the east edge of each pad (the hole centre is 0.30 mm from the pad centre of TP3 and 0.33 mm from the pad centre of TP4). The text also gave rules of the router: route_signals.py keeps the centre of a V4 0.2 mm out of each small SMD pad (V4_PAD_KEEP), thus the hole is at least 0.125 mm from the pad. PASTE_RULE in route_signals.py keeps the centre of a V4 0.275 mm (0.2 mm plus the hole radius 0.075 mm) from a pad or an aperture with solder paste. The aperture of a 0201 part is a paste layer with no copper pad: dump_board.py writes it as paste_ap. The check of the board had these numbers: no hole less than 0.175 mm from a small pad (R40 pad 1, via at 8.25, 18.27, KiCad frame) and no hole less than 0.216 mm from a pad or an aperture with paste (C63 pad 1, via at 5.35, 17.32). The measurement of 11 November 2026 on the board file (the pad shapes of KiCad, the paste margin of each pad, and the hole radius 0.075 mm) gives 0.182 mm from the copper of an SMD pad (R40 pad 1) and 0.225 mm from a pad with paste (L4 pad 1). The aperture of R40 pad 1 is 0.227 mm from the hole. The older number 0.175 mm used the pad rectangle without the rounded corners of the pad. The older number 0.216 mm (C63 pad 1) is not on the present board: C63 pad 1 is now 0.293 mm from the hole. The text said that PCBWay plugs holes of 0.20 mm to 0.40 mm only, thus the 2 holes stay open.
  • Remark 9: a new fill on the board of the second round put back 5 small islands in the +3V3 zone of L6 (0.4 to 9.4 mm2), and make_pcb.py deleted them from the stored fill. On the board of the third round, a new fill in the memory of KiCad (not saved) gives 4 pieces of 573.9, 69.6, 1.2 and 0.5 mm2. Thus a new fill adds 2 islands (1.2 mm2 and 0.5 mm2). The fills of the other zones also change by 0.2 to 1.4 mm2.
  • Remark 10: the stored fill of the +3V3 zone on L6 has had 2 pieces of 69.6 mm2 and 572.7 mm2 since the third round of 11 November 2026.
  • Remark 11: since 11 November 2026 U1, U5 and U22 have a dot on the top silkscreen. The second and the third round of 11 November 2026 did not move U1, U5, U10 to U15, U22 or P1: the table is the same (checked on the board of the third round, and the same after the placement of the support parts of 10 November 2026). The table gave 2 decimals before the third round (for example 41.73, 14.54 for ball A1 of U5, and 8.72 and 16.62 for the centres of U10 to U15). Block 2 now has 3 decimals, because the 2-decimal values did not agree with the placement file. The placement file has the y values 25.34 - y of the board (for example 17.365 for pin 1 of U10 at y = 7.975).
  • Remark 12: L4 has had a mark for the dot since the third round of 11 November 2026. L4 did not move in the second and the third round. The data sheet of the Abracon part (Rev. A, 9/13/2024) agrees with this direction: the current flows in at the dot end, thus the dot end is the input end, and VREG_LX is the input end in this circuit. See todo.md, item 5, for the comparison of the land pattern.
  • Remark 13: since 11 November 2026 the top silkscreen has the triangle at pin 1 of P1. The silkscreen of the board has 79 lines of 0.15 mm (the 78 of the second round and the dot of L4) and 4 texts of 0.16 mm (measured again on 11 November 2026).
  • Assembly, special parts: until 11 November 2026 the line said "12 BGA, QFN and DHVQFN parts (U1, U2, U5, U10 to U15, U17, U21, U22)". U17 and U21 are WSON, U22 is VQFN-HR, and X1 and X2 are PQFN-4 oscillators without leads, thus the list now has 14 parts.
  • The thickness sentence of remark 1 said "1.2 mm including the solder mask and the plating. If your tolerance gives 1.2 mm without the mask, tell the project before production". The table has 1.200 mm with the two masks of 0.020 mm, thus the thickness without the masks is 1.160 mm.

Routing

The board of the third round (11 November 2026) has all nets routed. It has 7090 tracks and 1879 vias, and check_pcb.py --routed has no violation and no unconnected item. The text of this section is the history of the runs of the router, in the order of the dates. It starts with the state of 8 November 2026. Then the board had the supply copper and the escape of U1 and U5, and the 208 signal connections were not routed. Without --routed the DRC (check_pcb.py) does not count the open ends of the escape tracks.

route_signals.py is the signal router. It makes grids of 0.05 mm cells with the exact distance from each cell to the copper of the board, and calls sigroute.c (through ctypes):

  • Layers F.Cu, In2.Cu to In5.Cu (L3 to L6) and B.Cu. Layer changes: V4 (outside the BGAs) between an outer layer and any other layer, V3 between two core layers (L3 to L6), and a "hop": V1, a stub on L2 (L7) and V2 at 0.35 mm, between L1 and L3 (L8 and L6). A via claims the area on each layer that it goes through.
  • The Z80-side channels along the long edges at the USB end keep 0.3 mm (ISO_CHANNEL in geom.py) from the USB area. Then 2 tracks go through each channel on each layer. Before 9 November 2026 the router used the 0.5 mm gap of the planes there, and only 1 track fitted. A track in the channel on L3 or L6 can be over the 0.5 mm gap between the GND and GND_USB planes. Then it has no plane for a short length.
  • Rules: 0.089/0.089 mm in a BGA area (the ball field + 2.0 mm, which includes the fan-out of U1). Outside it, 0.1/0.127 mm on the outer layers and 0.1/0.1 mm on the inner layers. Each rule has a raster margin of 0.036 mm.
  • A net of the USB side stays in the USB area, a net of the Z80 side stays out of it.
  • Negotiated congestion (PathFinder): each route "claims" the cells near its tracks, vias and hops for the other nets. Each iteration routes all nets again. A claimed cell then costs more, and a cell with conflicts in the earlier iterations has a history cost.

Results:

  • 6 layers (8 November 2026): each net has a route, but about 160 of the 189 nets keep a conflict with another net after 40 to 60 iterations. The conflicts are at the escape exits of U5, under U5 on L4 and B.Cu (the six translators with about 100 pins at 0.5 mm pitch), and north of U1.

  • 8 layers, the same fanout: 147 nets keep a conflict after 80 iterations. Half of the conflict cells are on F.Cu, at the escape exits. The core layers have free area there.

  • 8 layers, hops for the DDR3L signal balls: 129 nets with conflicts.

  • With the fan-out of the U1 exits (fanout_bga.py) and the L3 ring without rails: 116 nets with conflicts after 100 iterations. The final pass then routes each of these nets again, with the cells of the other nets blocked: 121 of the 189 nets have a legal route, 68 are open.

  • With the pin swap (Pin swap): 102 nets with conflicts after 100 iterations (2118 conflict cells, before 2966). After the final pass, 129 nets have a legal route, 60 are open.

  • With the channel gap of 0.3 mm: 133 nets have a legal route, 56 are open. Most open nets are DDR3L nets and Z80-side nets (Z_) to the socket pins west of U1. The most conflicts are on L3 and F.Cu north of the north-east corner of U1, and on B.Cu under U10 and U11.

  • Translator placement test (9 November 2026). Each test made the board again with a new pin swap for that placement:

    • the translators at their present positions, turned 180° (the 5 V pins face west): 67 open nets
    • U11 and U12 in a row at the top edge, U10 and U15 in a row at the bottom edge, each turned so that its 5 V pins face the near edge, and U13 and U14 in a column at the east end: 65 to 68 open nets
    • the present placement with a second run of the pin swap: 65 open nets

    The pin swap alone thus changes the result by about 10 nets. No placement was better than the present placement, thus the present placement stays.

    The address translators can go near their socket pins (x < 25 mm) only on the bottom side at x = 17 mm to 24 mm. The buck regulators are in that area now. There, the 3.3 V side of the address nets must go past U1, because all bus balls are in row A to D (the +x side of U1). The number of nets that go past U1 thus stays the same.

  • With the 3 mm overhang on each long side (9 November 2026): 169 nets have a legal route, 20 are open. The conflict cells before the final pass went from 2118 to 287. The long Z80-side tracks go through the gaps between the socket pins into the strips outside the pin rows. The GND stitching vias are at the outer edge of these strips, not between the pins. The escape of U1 is the old escape, 3 mm lower: all parts near U1 moved by the same distance.

  • Ten of the 20 open nets have no path from the first iteration: A5, RD_N, DDR_DQS_P1, DDR_DQ6, DDR_BA0, DDR_CS_N, DDR_A12, DDR_A4, DDR_CLK_P and DDR_CLK_N. Their escape exits have no hop (fanout_bga.py), and the hops of the other exits enclose them on F.Cu.

  • (10 November 2026: the socket pin numbers were a mirror image, and the translators changed rows. See History: the mirrored pin numbers. The next item is the placement of 9 November 2026.)

  • Translator placement on the wide board (9 November 2026). U11 and U12 are in a row near the north pin row, turned so that the Z80 side (pins 3 to 10) faces north. U10 and U15 are in a row near the south pin row, with the Z80 side to the south. U13 and U14 are in a column at the east end, with the Z80 side to the east. The pin swap ran again for this placement (49 FPGA balls change). Result: 176 nets have a legal route, 13 are open. The conflict cells before the final pass went from 287 to 48. On the narrow board, the same placement gave 65 to 68 open nets: there, the Z80-side tracks had no space outside the pin rows. The same placement with U13 and U14 turned 180° gave 18 open nets.

  • 11 of the 13 open nets are escape exits with no hop: A7, A4, A2, DDR_DQS_P1, DDR_DQ0, DDR_DQ6, DDR_BA0, DDR_CLK_P, DDR_A1, DDR_A4 and DDR_A8. The other two are DDR_DQ14 and D6.

  • Fan-out tests (9 November 2026), not used:

    • A ring of 7 lattice steps (not 5): 21 open nets, and the DRC found shorts.
    • The ILP of fanout_bga.py stops at its time limit (30 min) with a path for 101 of the 115 exits. With the exits fixed, the same ILP solves in seconds: 112 exits can have a path. CFG0, FLASH_CS_N and PROGRAMN cannot. But with a path for all 112 exits, only 57 exits have a hop, and 55 go on F.Cu to the edge of the ring. Then 41 nets are open: the F.Cu tracks fill the area around U1. A hop is thus better than a path on F.Cu.
    • A second pass after the ILP that adds the exits with no path one at a time, each with at most one hop fewer: no exit can be added. An enclosed exit needs about three to four hops fewer (the forced test above: 37 hops fewer for 11 more paths). The result stays at 13 open nets.
  • With a 4 mm overhang on each long side, 25.34 mm wide (9 November 2026): 174 nets have a legal route, 15 are open. This is not better than the 3 mm overhang (13 open): the limit is the space between U1 and the socket pin rows, and the pin rows do not move. 12 of the 15 open nets are DDR3L nets or exits with no hop near U1.

  • The SRAM replaces the DDR3L (9 November 2026, sram.md): 166 of the 168 signal nets have a legal route, 2 are open (CLK and SRAM_WE_N). The conflict cells before the final pass went from 115 to 14, all on L3 north of U1. The SRAM uses 32 of the 48 DDR3L balls of U1. The 16 balls whose exits had no hop are free. Among them is the whole group south of U1 next to socket pin 29. Each SRAM ball can carry each SRAM signal, so the pin swap has one pool of 32 balls. The straight-line crossings went from 592 to 286. The fan-out ILP now reaches its optimum (20 minutes): 90 of 98 exits have a hop.

  • The decoupling capacitor C39 (+3V3 of U1) was on the top side west of U1, in the fan-out ring, and had no site for its supply hop. Now no small part is on the top side within 2 mm west of the balls of U1 (make_pcb.py), and each supply pad has a hop.

  • The open nets were U1 exits with no fan-out path: the hops of the neighbouring exits enclosed them on F.Cu. Most of these exits were on row A of U1 (the east edge). Tests (9 November 2026):

    • CLK must have a path (MUST in fanout_bga.py): 1 open net (ADIR). More nets in MUST: 3 open nets. The ILP then moves the problem to other exits.
    • A high cost (2000) for an exit with no path: only 75 exits get a hop and 23 go to the edge of the ring. Then 10 nets are open.
    • 150 router iterations and a lower hop cost: 1 open net (ADIR).
  • Ball hops (BALL_HOPS in geom.py): the signal balls A6 to A13 and A15 of U1 get a hop in the ball pad: V1 in the pad, a stub on L2 and V2 0.35 mm outward (+x). They have no escape on F.Cu. The fan-out ILP solves in 10 s: 88 of 89 exits have a hop. 167 of 168 nets have a legal route, 1 is open (SRAM_A14). Its conflicts are on L3 at about (27, 18) and on B.Cu at about (36, 19), not at the exits of U1. A2 and A3 have no free site for a ball hop: L2 escapes pass near them.

  • A lower cost for a V3 (COST_V3 1.5, not 2.0): the router routes all 168 nets in 15 minutes, with no conflicts. With 1.1 for the outer layers, or with 60 iterations, 1 net stays open.

  • The KiCad DRC of the routed board finds: 48 unconnected items and 17 narrow connections (route ends at the socket pins on inner layers and at small pads), 18 hole-to-hole and 9 co-located holes (a V3 next to or on a laser via of the same net), 5 hole clearances (tracks near the peg holes of J1), and 85 dangling tracks and vias. These are open items.

  • Fixes for these DRC items (10 November 2026). The design rules did not change:

    • dump_board.py writes the corner radius of each pad. route_signals.py uses the real shape of a round or rounded pad, not its bounding box. A route ends 0.06 mm inside the pad copper (0.03 mm or 0 mm when no cell is free there).
    • A track keeps 0.2 mm from the edge of a hole with no copper (the peg holes of J1).
    • sigroute.c keeps the holes of one net 0.25 mm apart, edge to edge. Two paths can share one V3 or V4 at the same point.
    • make_pcb.py removes the signal copper that leads nowhere: the fan-out vias and stubs that the router did not use (48 tracks and 50 vias). A track with one loose end is cut back to the last item that touches it. When a via is removed, a short track joins the tracks that met on its land.
    • With the hole spacing, COST_V3 1.5 left 2 nets open (RESET_N, WR_N). The default is now 1.0. The router then routes all 168 nets in 27 minutes: 5274 tracks, 220 vias, 197 hops. The KiCad DRC has no violation and no unconnected item.
  • Checks before the order (10 November 2026). The design rules did not change:

    • power_route.py made two hops for two pads at one point (J1, VBUS A4 and B9, A9 and B4). The board had two equal laser vias at each of two places. Now the second pad at a point gets no hop.
    • The V2 of the hop of U13 and U14 pin 23 (+3V3) was 0.15 mm from the V1 of pin 24, with the lands in contact. Now power_route.py keeps 0.2 mm land to land between the V2 of a hop and the V1 of another pad of the same net. No two laser vias of one net on one layer are closer than 0.32 mm, centre to centre.
    • The +3V3 zone of L6 has a minimum width of 0.3 mm (it was 0.1 mm), and make_pcb.py deletes the pieces of its fill that are smaller than 30 mm2 (fill_zones). The fill had a neck of 0.10 mm and an island of 14 mm2. The fill now has 4 pieces and the narrowest neck is 0.30 mm.
    • make_pcb.py writes the stack-up and the ENIG finish in the board file (see "Order remarks for PCBWay").
    • The new input of the router (other hops at U13, U14) left 2 nets open at COST_V3 1.0 (SRAM_A14, AOE_N). With COST_HOP 1.2 the router routes all 168 nets in 30 minutes: 5126 tracks, 212 vias, 203 hops. The KiCad DRC has no violation and no unconnected item. The default of COST_HOP in route_signals.py is now 1.2 (it was 1.5).
  • FLASH_CS_N on ball U17 (11 November 2026):

    • escape_bga.py stopped with an error. The solver gave some balls of BALL_HOPS an L2 start with no track, which is correct for a ball with a hop in its pad. escape_bga.py now accepts this result for the balls of BALL_HOPS only, and power_route.py ignores the escape of these balls.
    • With COST_HOP 1.2 the router left 2 nets open (CLK and D5, or CLK and FLASH_CLK). The conflicts were on L3 east and west of U1. Tests with other parameters: HIST_ADD 1.5 left AOE_N open, COST_V4 2.5 with 100 iterations left A7 open, and 100 iterations alone left CLK and FLASH_CLK open. PRES_MUL 1.15 and COST_HOP 1.0 each routed all nets. The board of the first round used COST_HOP 1.0, which is now the default: 4613 tracks, 198 vias, 220 hops, 21 minutes. The board of the second round of 11 November 2026 has 4809 tracks, 203 vias and 238 hops (HIST_ADD 1.5).
    • The V4 keep-out of the small pads (V4_PAD_KEEP) was not the cause of the open nets: a test with no keep-out left CLK open too.
  • Third round (11 November 2026): HIST_ADD 1.7 and 60 iterations route all nets with the keep-out of the pads with paste and the trunks as inputs: 5419 tracks, 215 vias and 237 hops. See Third round of 11 November 2026.

Parameter studies (a slower or a faster increase of the congestion cost, cheaper layer changes, a higher cost on F.Cu) did not change the result much: 126 to 145 nets with conflicts.

The remaining conflicts are crossings: two nets that must change their order on a core layer. A change of layer in the core is a V3, which goes through all four core layers. The tracks fill each core layer evenly. Thus no place is free on all four layers. The cut through the board at x = 40 mm has 107 nets and space for approximately 175 tracks. Thus the area is sufficient, but the order of the nets is not.

Most of the Z80-side nets go a long way: the translators are at the east end, but the socket pins are along the two long edges. The tracks to the socket pins west of U1 go along the edges, past the escape of U1 and through the channels at the USB end. North of U1 these tracks meet the DDR3L byte lanes (bank 3) and the FPGA side of U11 to U13.

The first test used Freerouting 2.5.0 (6 layers): 12 passes routed about 90 of the 240 connections and did not converge.

route_signals.py writes a result with no conflict to signals/signals.json, and make_pcb.py adds it to the board. A result with open nets goes to build/signals_conflicts.json.

Source of this page: web/ and docs/ in the z80replacement repository. Hardware: CERN-OHL-S-2.0. Other files: GPL-3.0-or-later.