Skip to the content
4 layers138 × 105 mmZl80, the printed circuit board in 3D

The KiCad schematic of the board described in docs/hardware.md.

Size
138 × 105 mm
Copper layers
4
Thickness
1.6 mm
Parts
134
Nets
196
Pads
864
Tracks, vias
4,168, 447
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 Oct 2026
Updated
27 Oct 2026

Overview

Zl80 is an open-source printed circuit board by bemelab, from the bemelab/Fantasy-retro-Z80-console repository on GitHub. It is a 4-layer board of 138 × 105 mm with 134 parts on 196 nets, routed with 4,168 tracks and 447 vias.

It is built around the 74HCT32D, 74HCT04D and 1N5819HW. Its parts include 52 resistors, 38 capacitors, 26 ICs, 6 connectors and 3 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

hardware/kicad/README.md

ZL-80 board schematic

The KiCad schematic of the board described in docs/hardware.md.

Not built or tested. Check every pin against the datasheets before you order a board.

ZL-80 board, 3D view

Pictures of every schematic page, the copper layers and the 3D views are in hardware/images. They are exported with kicad-cli (sch export svg, pcb export svg, pcb render); export them again after changing the board.

FileWhat it is
zl80.kicad_pro, zl80.kicad_schThe KiCad project and its root sheet (KiCad 7 format; KiCad 8 and 9 open it). The root sheet has one box per page; double-click a box to open the page.
cpu_memory.kicad_schPage 2: Z80, flash, SRAM, page registers, I/O decoding.
video.kicad_schPage 3: TMS9918A, VRAM (62256 and latches), crystal, video output stage.
sound.kicad_schPage 4: AY-3-8910, its bus control, joystick multiplexers, DB9 ports, audio mix.
keyboard_usb.kicad_schPage 5: 82C55, ATmega328P and the PS/2 header, expansion header, FT245RL USB FIFO and USB-C socket.
power_tv.kicad_schPage 6: 12 V input, 5 V regulator, reset, and the TV header for a SCART cable.
zl80.kicad_sym, sym-lib-tableThe board's symbols as a project library, so KiCad finds the zl80 library.
gen_schematic.pyGenerates the schematic. Change the circuit here, not in KiCad.
sch.pyThe small schematic writer that gen_schematic.py uses.
check_schematic.pyChecks that the file parses and that every pin is either connected or marked as not connected.
zl80-netlist.txtEvery net with the pins on it, for checking against datasheets.
check_footprints.pyChecks that every part's footprint exists in KiCad's library and has a pad for each symbol pin.
zl80.kicad_pcbThe routed 4-layer board, 138 x 105 mm: tracks on F.Cu, In2.Cu and B.Cu, a whole GND plane on In1.Cu, a +5V fill on In2.Cu.
zl80.dsn, zl80.sesWhat went to Freerouting and the routes it sent back. gen_pcb.py import zl80.ses restores the tracks after gen_pcb.py has placed the parts again.
gen_pcb.pyBuilds the board with KiCad's Python: places the parts, draws the outline and planes, writes zl80.dsn for Freerouting, and reads the routed .ses back.

To regenerate the schematic and run the check:

text
python gen_schematic.py
python check_schematic.py

With KiCad installed, also run its electrical rules check; it should report 0 violations. The netlist KiCad exports has the same 187 nets as zl80-netlist.txt (KiCad leaves out the PWR_FLAG markers).

text
kicad-cli sch erc --severity-all zl80.kicad_sch

The PCB

gen_pcb.py runs with KiCad's own Python (KiCad's bin folder must be on PATH). It reads the parts and nets from gen_schematic.py, so the board always matches the schematic.

text
set PATH=D:\Program Files\KiCad\9.0\bin;%PATH%
python gen_pcb.py                      (KiCad's python.exe) places the parts, writes zl80.kicad_pcb and zl80.dsn
freerouting-cli -de zl80.dsn -do zl80.ses -mp 100
python gen_pcb.py import zl80.ses      adds the routed tracks to zl80.kicad_pcb
kicad-cli pcb drc zl80.kicad_pcb

Freerouting 2.5.0 routed the board in about 25 minutes (-mp 200). Two settings in the DSN that gen_pcb.py writes make that work: only the GND net may use In1.Cu, so the GND plane stays whole and GND pads reach it through vias, and the routing boundary sits 0.55 mm inside the board edge. KiCad's DRC with the schematic parity check reports 0 violations, 0 unconnected pads and 0 footprint errors; what is left are silkscreen warnings (labels over pads and over each other), which the board maker clips.

Placement: the 12 V jack, the regulator, the USB-C socket and both joystick ports along the top edge; below them one row of the four DIP-40 sockets (82C55, Z80, TMS9918A, AY-3-8910 from left to right); each group's surface-mount parts are packed beside and below its socket, each chip next to its own 100 nF capacitor. All surface-mount parts are on the top side, so the board needs assembly on one side only. Design rules: 0.15 mm clearance, 0.2 mm tracks, 0.6/0.3 mm vias, all inside JLCPCB's 4-layer limits.

How the schematic is drawn

  • Each chip is a box with a short wire and a net label on every pin. Pins with the same label are connected; there are no long wires.
  • A signal that goes to another page has a global label (the label in a frame); KiCad lists the pages it reaches next to it. Signals that stay on one page have plain labels.
  • Each chip's 100 nF decoupling capacitor is on the same page; its value says which chip it belongs to, for example 100n (U15).
  • Active-low signals use KiCad's overbar syntax, for example ~{RD}.
  • The symbols are defined inside the schematic file, so no KiCad library is needed. Footprints are standard KiCad names for through-hole parts. The connectors (SCART, DB9, PS/2) have no footprint yet: pick the ones that match the parts you buy.

Sources for the pinouts and circuits

  • TMS9918A pins, the VRAM circuit (62256 SRAM, three 74HCT574 latches) and the video output stage: TI's TMS9918A data manual and jblang/TMS9918A.
  • AY-3-8910 pins and bus control: the General Instrument datasheet and electrified/rc2014-ym2149.
  • FT245RL pins and its self-powered circuit: FTDI DS_FT245R (FT_000052) v2.14, the SSOP-28 pin table and figure 6.2.
  • SMD packages: Microchip DS20005022F (SST39SF040 PLCC-32), DS40002061B (ATmega328P TQFP-32), Alliance AS6C4008 and AS6C62256, onsemi MMBT4401, GCT USB4105 drawing.
  • Other chips: the manufacturers' datasheets (Zilog, Microchip, Alliance, Renesas, TI).

Parts

134
QtyValueFootprintReferences
3010kR_0805_2012MetricR1, R2, R3, R4, R10, R11, R12, R15, R33, R34, R35, R36, R37, R38, R39, R40 +14
61kR_0805_2012MetricR19, R22, R29, R30, R31, R32
3100nC_0805_2012MetricC5, C29, C36
33kR_0805_2012MetricR16, R17, R18
34.7kR_0805_2012MetricR13, R14, R48
2100n (U23)C_0805_2012MetricC32, C38
2100uCP_Elec_6.3x7.7C3, C4
210uC_0805_2012MetricC1, C2
21N5819HWD_SOD-123D1, D3
22.2kR_0805_2012MetricR20, R21
222pC_0805_2012MetricC30, C31
247kR_0805_2012MetricR23, R24
25.1kR_0805_2012MetricR51, R52
274HCT32SOIC-14_3.9x8.7mm_P1.27mmU8, U9
275R_0805_2012MetricR27, R28
110.738635 MHzCrystal_SMD_HC49-SDY1
1100n (U1)C_0805_2012MetricC6
1100n (U10)C_0805_2012MetricC16
1100n (U11)C_0805_2012MetricC11
1100n (U12)C_0805_2012MetricC24
1100n (U15)C_0805_2012MetricC17
1100n (U16)C_0805_2012MetricC22
1100n (U17)C_0805_2012MetricC18
1100n (U18)C_0805_2012MetricC23
1100n (U19)C_0805_2012MetricC25
1100n (U2)C_0805_2012MetricC7
1100n (U20)C_0805_2012MetricC26
1100n (U21)C_0805_2012MetricC27
1100n (U22)C_0805_2012MetricC28
1100n (U24)C_0805_2012MetricC19
1100n (U25)C_0805_2012MetricC20
1100n (U26)C_0805_2012MetricC21
1100n (U27)C_0805_2012MetricC33
1100n (U28)C_0805_2012MetricC34
1100n (U3)C_0805_2012MetricC8
1100n (U4)C_0805_2012MetricC9
1100n (U5)C_0805_2012MetricC10
1100n (U6)C_0805_2012MetricC12
1100n (U7)C_0805_2012MetricC13
1100n (U8)C_0805_2012MetricC14
1100n (U9)C_0805_2012MetricC15
110nC_0805_2012MetricC39
112 V DC inBarrelJack_HorizontalJ1
1130R_0805_2012MetricR25
14.7uC_0805_2012MetricC37
1470R_0805_2012MetricR26
162256 VRAM (16 KB used)SOP-28_8.4x18.16mm_P1.27mmU16
174HCT02 AY bus control, USB WRSOIC-14_3.9x8.7mm_P1.27mmU12
174HCT04SOIC-14_3.9x8.7mm_P1.27mmU10
174HCT04 VRAM strobesSOIC-14_3.9x8.7mm_P1.27mmU26
174HCT125 USB status on D0, D1SOIC-14_3.9x8.7mm_P1.27mmU28
174HCT138 I/O 00h-7FhSOIC-16_3.9x9.9mm_P1.27mmU7
174HCT138 I/O 80h-BFhSOIC-16_3.9x9.9mm_P1.27mmU6
174HCT157 joystick buttonsSOIC-16_3.9x9.9mm_P1.27mmU20
174HCT157 joystick directionsSOIC-16_3.9x9.9mm_P1.27mmU19
174HCT32 USB FIFO strobesSOIC-14_3.9x8.7mm_P1.27mmU27
174HCT574 VRAM column latchSOIC-20W_7.5x12.8mm_P1.27mmU24
174HCT574 VRAM row latchSOIC-20W_7.5x12.8mm_P1.27mmU17
174HCT574 VRAM write dataSOIC-20W_7.5x12.8mm_P1.27mmU25
174HCT670 page bits 0-3SOIC-16_3.9x9.9mm_P1.27mmU4
174HCT670 page bits 4-5SOIC-16_3.9x9.9mm_P1.27mmU5
174HCT74 paging on / AY clockSOIC-14_3.9x8.7mm_P1.27mmU11
182C55ADIP-40_W15.24mm_SocketU21
1AS6C4008 SRAM, pages 32-63SOP-32_11.305x20.495mm_P1.27mmU3
1ATmega328P-AU: PS/2 to key matrixTQFP-32_7x7mm_P0.8mmU22
1AY-3-8910DIP-40_W15.24mm_SocketU18
1DS1813-5 resetSOT-23-3U13
1Expansion (8255 PA, PC4-7)PinHeader_2x07_P2.54mm_VerticalJ8
1FT245RL USB FIFOSSOP-28_5.3x10.2mm_P0.65mmU23
1Ferrite beadL_0805_2012MetricFB1
1Flash write enableSolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1
1ISP for the ATmegaPinHeader_2x03_P2.54mm_VerticalJ7
1Joystick 1 (Atari / Sega)DSUB-9_Male_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mmJ4
1Joystick 2 (Atari / Sega)DSUB-9_Male_Horizontal_P2.77x2.84mm_EdgePinOffset7.70mm_Housed_MountingHolesOffset9.12mmJ5
1MMBT4401 video bufferSOT-23-3Q1
1PS/2 keyboard (panel socket)PinHeader_1x04_P2.54mm_VerticalJ6
1PowerLED_0805_2012MetricD2
1R-78E5.0-1.0 (or 7805)Converter_DCDC_RECOM_R-78E-0.5_THTU14
1ResetSW_SPST_B3U-1000PSW1
1SST39SF040 flash, pages 0-31DIP-32_W15.24mm_SocketU2

The 130 most common of 134 parts.

Similar boards

  • 2 layers297.2 × 180.3 mm8bit computer, the printed circuit board in 3D

    8bit computer

    vascofazza/8bit-cpu

    Schematics & code for my 74LS-based 8-bit MK1 CPU

    377 parts317MIT
  • 2 layers99.1 × 99.7 mmRC6502 General Video Adapter, the printed circuit board in 3D

    RC6502 General Video Adapter

    tebl/RC6502-Apple-1-Replica

    An expandable SBC-version of the Apple 1 computer, easy to get started with and lot of cool stuff that can be added to it!

    80 parts193GPL-3.0
  • 2 layers99.1 × 49.9 mmTMS9918, the printed circuit board in 3D

    TMS9918

    jblang/TMS9918A

    TMS9918A video card for RC2014

    36 parts145
  • 2 layersLM80C R6, the printed circuit board in 3D

    LM80C R6

    leomil72/LM80C

    A Z80-based homebrew computer withTMS9918, AY-3-8910, Z80 CTC, Z80 PIO, and Z80 SIO

    153 parts123GPL-3.0
  • 2 layers63.6 × 85.7 mmTMS9918, the printed circuit board in 3D

    TMS9918

    MarkJelic/TEC-1G

    The new incarnation of the 40 year old Z80 trainer computer - Now with Fulisik LEDs!

    31 parts45GPL-3.0
  • 2 layers176.5 × 85.1 mmISA EMS, the printed circuit board in 3D

    ISA EMS

    hkzlab/ISA_EMS_4Mb

    ISA 4Mb EMS expansion board

    49 parts41
  • 2 layers99.7 × 64.1 mmMalt, the printed circuit board in 3D

    Malt

    b3rendsh/msxdos2s

    MSXDOS smaller 16K/32K rom with IDE interface drivers and enhancements

    35 parts24
  • 2 layers121.9 × 121.9 mmPower Clock, the printed circuit board in 3D

    Power Clock

    DutchMaker/DM-02

    8-bit computer built (almost) entirely out of TTL logic chips

    49 parts14

Questions

How big is the Zl80 PCB?

It measures 138 × 105 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Zl80 use?

134 parts, built around the 74HCT32D, 74HCT04D and 1N5819HW. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Zl80 KiCad files?

From the bemelab/Fantasy-retro-Z80-console repository on GitHub, at the commit this page was made from: the board is hardware/kicad/zl80.kicad_pcb and its schematic hardware/kicad/cpu_memory.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Zl80 design in my own project?

Its repository states no licence, so its author keeps all rights: ask bemelab before reusing the design.