z80replacement · a Z80 CPU replacement with an FPGA

z80replacement

The z80replacement module replaces the Zilog Z80 CPU in a DIP-40 socket. The module is open hardware, and a Lattice ECP5 FPGA holds the Z80 core.

WARNING: DO NOT SEND AN ORDER OR A BUILD REQUEST FOR THIS MODULE TO A FACTORY YET. Nobody built this module yet. The first sample run of 2 boards at PCBWay comes soon. Wait until these 2 boards pass their tests. The design can have errors that only a real board shows.

The module

The module replaces the Z80 CPU in a DIP-40 socket. The module contains a Lattice ECP5 FPGA, 5 V bus transceivers, a 2 MB SRAM and an isolated USB-C port. The FPGA holds the microcoded Z80 core of the z80fpga project. In the design, every bus cycle that goes outside the module has Z80 timing. The USB-C port loads the FPGA, the ROM images and the RAM.

Zilog (a Littelfuse company) issued an end-of-life notice for the Z84C00 family on 15 April 2024. The last-time-buy date was 14 June 2024. The Z84C00 is the standalone CMOS Z80. Kits such as the RC2014 use the DIP-40 part. When no stock remains, these kits need a different CPU. This module is one answer.

The module is for owners of RC2014 kits and of other Z80 systems with a DIP-40 socket. Requirement R5 says that the memory and I/O boards of these systems must operate with no change (requirements.md).

What is new

A search in November 2026 found no other FPGA-based Z80 replacement in the DIP-40 size (prior_art.md). The picoZ80 also fits a DIP-40 socket, but software on an RP2350B emulates the CPU. In this module, the Z80 core is logic in the FPGA. The announced license of the picoZ80 permits only personal, educational and non-commercial use. The hardware license of this module, CERN-OHL-S-2.0, lets anyone make products from the design, under the terms of the license.

The other projects of the search are different in these ways:

  • FOSS Z80 is an open-source Z80 chip. The chip has no internal memory and no USB.
  • eZ80 for RC2014 is a module for the RC2014 bus, not a DIP-40 part.
  • z80fpga is the Z80 core of this module. z80fpga operates on development boards and has no 5 V bus interface.

Main numbers

  • Size: 52.4 mm x 25.34 mm. The module has the length of a DIP-40 Z80 and a 4 mm overhang on each long side (mechanical.md).
  • PCB: an 8-layer HDI board (1+1+4+1+1, staggered microvias), 1.2 mm thick, with 159 parts on the two sides (pcb.md).
  • FPGA: Lattice LFE5U-85F (ECP5, csfBGA285) in the full version. The lite version (LFE5U-12F, no SRAM) uses the same PCB, but the lite version is not in the schematic yet.
  • Memory: a 2 MB SRAM (ISSI IS61WV20488FBLL-10BLI) and a 128 Mbit QSPI flash for the FPGA configuration and the ROM images.
  • USB-C: an RP2354A microcontroller behind two digital isolators. By default, the isolators separate the USB-C connector from the Z80 power and ground. As an option, the solder jumpers JP1 and JP2 let USB power the Z80 system.
  • Bus clock: the requirement is DC to 10 MHz, and the goal is 20 MHz. On 10 November 2026, the nextpnr timing report gave a mean of 17.6 MHz for five seeds. A patch to the z80fpga core gave a mean of 20.5 MHz. These numbers come from the timing report, not from a board.
  • Tools: KiCad 10, yosys, nextpnr, Project Trellis, openFPGALoader and the Raspberry Pi pico-sdk. All design tools are open source, and the project uses no vendor IDE.
  • Licenses: CERN-OHL-S-2.0 for the hardware, GPL-3.0-or-later for the other files.

KiCad 3D render of the top side of the module, full version

The top side of the full version, a KiCad 3D render. No board exists yet. The render shows only the pads of nine parts, because no 3D model is available for these parts. The nine parts are U1 (FPGA), U5 (SRAM), U2 (RP2354A), U22 (eFuse), X1, SW1, JP2, TP1 and P1 (socket pins). The solder jumper JP2 and the test point TP1 are only pads on a real board too.

Status on 29 November 2026

The first commit of the repository is from 6 November 2026. The lists below give the state on 29 November 2026.

What exists

  • The requirements, the plan and the design documents.
  • The KiCad 10 schematic of the full version: the root sheet and five sheets. A Python program writes the schematic from a model of the circuit. The ERC gives no errors.
  • The routed board of the full version. The router routes all 168 signal nets. On 11 November 2026, the KiCad DRC gave no violation and no unconnected item. The Gerber, drill, BOM and placement files for PCBWay come from this board.
  • The gateware: the pin stage, the memory modes, the SRAM controller, the console ACIA, the debug unit, the Z80 control port and the emergency bitstream. All test benches pass in simulation. No board test is done yet.
  • The RAM loader tools/z80r_load.py, a host tool for the debug port. A test examines the loader in simulation only.
  • The firmware of the RP2354A. The firmware compiles, and the host test with 213 checks passes. No board test is done yet.
  • Five reviews by AI models before the order (10 and 11 November 2026). The reviews found errors in the design. Two examples are the mirrored socket pin order and the flash chip select on the wrong FPGA ball. The board files have the fixes.
  • The PCBWay order of 2 boards in one 1x2 panel. PCBWay approved the PCB and the assembly on 27 November 2026. The order is not paid.

What is not done

  • The repository has no answer from PCBWay to these questions of 27 November 2026:
    • the new prices of U1 (FPGA) and U5 (SRAM)
    • the copper fill of the 1035 V1 laser vias
    • the fiducials for U1 and U5
    • the stack-up
    • the panel working file
  • The stock changes each day. Thus a new stock check of each BOM line is necessary on the day of the payment.
  • On 27 November 2026, the PCBWay cart gave 2 January 2027 as the estimated finish of the assembly. The estimated dates move each day until the payment.
  • No board exists. Thus no board test is done. "Known limitations" below gives the details.

Known limitations

Each limitation below is true on 29 November 2026.

  • No board test. Nobody built a board yet. The tests of the gateware and of the firmware ran only in simulation and in the host test. The steps of the first board test are in plan.md, "Phase 4: bring-up".
  • No lite board. The lite version (LFE5U-12F, no SRAM) is not in the schematic yet and has no BOM. The PCBWay order has only boards of the full version.
  • Bus clock from the timing report. The bus clock numbers come from the nextpnr timing report of 10 November 2026, not from a board. Without the /WAIT patch, the mean of five seeds is 17.6 MHz, less than the goal of 20 MHz (bus_timing.md).
  • The /WAIT patch is not in z80fpga. The patch gateware/top/z80fpga-wait-hold.patch is not in z80fpga yet. With the patch, the mean is 20.5 MHz, and the lowest seed gives 19.7 MHz.
  • Wider than a DIP-40 Z80. The module is 25.34 mm wide. The module is 4 mm wider than the DIP-40 outline on each long side. Thus the module does not meet the width in requirement R2. Tall parts next to the Z80 socket can touch the overhang (mechanical.md).
  • Current not known. No document gives an estimate of the current of the module yet, and nobody measured the current. A CMOS Z84C00 takes a few tens of milliamperes, and the module will take more (usb_power.md). A system with a weak 5 V supply can need a larger supply.
  • Debug through USB-C in simulation only. GDB and udb80 operated only with a simulation of the module (cosim), not with a board (debugger.md).
  • No user guide. The user guide is not written yet. In plan.md, phase 6 has the user guide: install, the memory modes and the USB tool.
  • Pads only in the 3D renders. The 3D renders show only the pads of 21 of the 159 parts, because no 3D model is available for these parts. Examples are the FPGA (U1), the SRAM (U5) and the six transceivers. The Design page lists the 21 parts.

On this site

  • Design: an overview of the current design, the schematic sheets and the board.
  • BOM: the bill of materials of the PCBWay order, the stock check of each BOM line and the BOM changes.
  • Pricing: all projected costs, with the date and the source of each number.
  • Build: the tools, the build steps and the state of each part.
  • PCBWay: the steps of the PCBWay order and a summary of the messages, with no personal information. Each Chinese text has an English translation.
  • How AI made the design: the original project request, the method of the owner, the design log and the statement about AI.
  • Blog: the news of the project and the posts of readers. Readers can send a post. The owner reads each reader post before the post goes on the site.
  • Documents: the design documents of the repository as web pages.
  • Files: the schematic as PDF and the BOM as CSV.
  • Source files: https://github.com/avwohl/z80replacement. The repository is public from 29 November 2026.

Credits

The z80replacement project uses the work of these projects and companies:

  • z80fpga (GPL-3.0): the microcoded Z80 core of the gateware.
  • The Raspberry Pi pico-sdk (BSD-3-Clause) and TinyUSB (MIT): the SDK and the USB stack of the RP2354A firmware. The UF2 file contains code under these two licenses.
  • LiteDRAM (BSD-2-Clause): the DDR3L controller in gateware/ddr used LiteDRAM. The SRAM replaced the DDR3L on 9 November 2026. Thus LiteDRAM is only in the history of the design.
  • The ECP5U-85 pinout file of Lattice (2 November 2015): the source of hardware/schematic/ecp5_csfbga285.csv.
  • The KiCad libraries: the symbols, the footprints and the 3D models of the standard parts.
  • The open-source tools: KiCad (GPL-3.0), yosys (ISC), nextpnr (ISC), Project Trellis (ISC), openFPGALoader (Apache-2.0), Icarus Verilog (GPL-2.0), Verilator (LGPL-3.0 or Artistic-2.0) and GCC for Arm (GPL-3.0).
  • The Claude models of Anthropic: the owner gave the design work to Claude models in Claude Code. How AI made the design gives the details.

The owner pays PCBWay for the order.

License

Copyright (C) 2026 Aaron Wohl.

The hardware design files in hardware/ use the CERN Open Hardware Licence Version 2, Strongly Reciprocal (CERN-OHL-S-2.0). All other files use the GNU General Public License version 3 or later (GPL-3.0-or-later). licensing.md gives the details.

Z80 and Zilog are trademarks of their owners. This project has no connection to Zilog.

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