z80replacement · a Z80 CPU replacement with an FPGA

How AI made the design

The owner gave the design work to Claude models in Claude Code. This page gives the AI setup, the prior work, the request, the method of the owner, the design log and the statement about AI.

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.

NOTE: No board exists yet. Nobody built or tested a module. Each result on this page comes from a simulation, a timing analysis, a host test or a check of the design files.

The owner and the AI

The owner, Aaron Wohl, gave the work on this module to Claude models in Claude Code. Claude Code is a tool of Anthropic. In Claude Code, a Claude model reads and changes the files of a repository and runs commands.

The owner wrote the request and made the decisions. The models wrote the plan and the Python scripts that make the schematic, the PCB and the fabrication files. The models also wrote the gateware, the firmware, the test benches and most documents.

From 3be20ad (6 November 2026) up to 0da347c (29 November 2026), the repository has 133 commits. The counts on this page stop at 0da347c. Git gives the owner as the author of each commit. 132 of the 133 commits up to 0da347c also have a Co-Authored-By line, and the line names the model of the session:

  • Claude Opus 5.5: 122 commits. Opus 5.5 made the plan, the gateware, the schematic and the first board rounds (6 to 10 November 2026). Opus 5.5 also did the PCBWay work and the contest plan (23 to 27 November 2026).
  • Claude Fable 5.2: 9 commits on 11 and 12 November 2026, from 7797ab3 to 80c270a. Fable 5.2 did the fourth and the fifth review, the second and the third board rounds, the BOM stock check and the first-load procedure.
  • Claude Sonnet 5.5: 1 commit, 7c92923 (10 November 2026), the Z80 control port.

The commit 0da347c has no Co-Authored-By line. In that commit the owner added the last request, docs/publish.md.

57 of the 133 commits up to 0da347c also have a Claude-Session line. The line links to a private claude.ai session, and the link shows nothing to other persons.

At commit 0da347c the repository has 186 files. Some sizes:

  • The scripts of the schematic, the placement study and the PCB: 21 files, 7821 lines of Python and C.
  • The gateware: 34 SystemVerilog files, 7430 lines.
  • The firmware and its host test: 24 C source and header files, 2926 lines.
  • The documents in docs/: 33 Markdown files, 9675 lines.

The repository is https://github.com/avwohl/z80replacement. The repository is public from 29 November 2026.

KiCad 3D render of the board of the order

The image is a KiCad 3D render of the board that the Python scripts made. The footprints of U1, U5, U10 to U15 and P1 have no 3D model. Thus the render shows only the pads of these parts.

The AI setup

The owner wants to show how a person gets an AI to do the work. The "PCBWay and Tindie 2026 AI Hardware Design Contest" asks for "the environment, dependencies, model or API, inputs, outputs, and deployment method". The contest plan (milestone 14) does not use that contest, because the module has no AI function. The list below gives the same items, and also the checks that accept an output:

  • Environment. The models work in Claude Code, a tool of Anthropic. The docs name a Windows test computer for the builds and the tests. The work of 29 November 2026 ran on the Linux web server. The CLAUDE.md files, hooks, memory notes, a skill file for Simplified Technical English, multi-agent workflows and Claude in Chrome (for web pages) complete the setup (details below).
  • Dependencies. The design tools are open source: KiCad 10, yosys, nextpnr-ecp5, Project Trellis, Icarus Verilog, Verilator and openFPGALoader. The firmware uses the Raspberry Pi pico-sdk and GCC for Arm (toolchain.md). The gateware needs z80fpga 0.2.1 or a later version. The site build uses python-markdown and markdown-it-py.
  • Models. Claude Opus 5.5, Claude Fable 5.2 and Claude Sonnet 5.5 are proprietary models from Anthropic. Up to 0da347c, the Co-Authored-By lines name Opus 5.5 in 122 commits, Fable 5.2 in 9 and Sonnet 5.5 in 1. Opus 5.5 made the plan, the gateware, the schematic and the first board rounds, and did the PCBWay work. Fable 5.2 did the fourth and the fifth review, two board rounds and the BOM stock check. Sonnet 5.5 made the Z80 control port.
  • Inputs. docs/project_spec.txt, the later requests of the owner (for example docs/publish.md), the requests for reviews and the rules of the owner. The models also read data sheets, distributor stock pages and the PCBWay messages.
  • Outputs. The Python scripts that make the schematic, the PCB and the fabrication files. The gateware, the firmware, the test benches, the documents and this web site.
  • Checks that accept an output. The KiCad ERC and DRC, the simulation test benches, the host test of the firmware, the stock check of each BOM line and independent reviews. The fourth review used a different model.
  • Deployment. Git commits (133 up to 0da347c). The PCBWay steps in the browser of the owner, after the owner approves each order option and each message. web/make_web.py for this site.

Three inputs of the owner and their commits

  • The project request (docs/project_spec.txt). The first commit, 3be20ad (6 November 2026), is a plan in 14 files for the request.
  • The SRAM part. On 10 November 2026 the SRAM of the design had no stock, and b4d8066 gave the owner three paths. The owner selected the IS61WV20488FBLL-10BLI (dcbe6aa). b389e01 put the part on the board.
  • Share&Sell. The owner wants to share the board on PCBWay after the board test. 508bb36 (12 November 2026) added the facts and the steps.

A request that failed

The request asks for "256mb" of RAM, and 6f19726 (6 November 2026) gave the full version a 256 MB DDR3L. On 8 and 9 November 2026 no router completed the board with the DDR3L (milestone 6). Freerouting routed about 90 of 240 connections. After the router of the project, 8 layers, pin swaps and a wider board, 13 of 189 nets stayed open (2413d1a).

On 9 November 2026 the owner replaced the DDR3L with a 2 MB SRAM (b14f9a8), and requirement R10 changed to 2 MB. Then the router routed all 168 nets (694babc), and 76c4bcd (10 November 2026) is the first board with 0 DRC violations and 0 unconnected items. Thus the full version has 2 MB of SRAM, not 256 MB of RAM (ddr3.md).

Prior work and new work

Prior work

  • The z80fpga core, github.com/avwohl/z80fpga (public, GPL-3.0-or-later). z80fpga is an earlier project of the owner. The CPU core of the module comes from z80fpga. The core passes all 1,604,000 cases of the SingleStepTests suite (fpga.md).
  • Other parts of z80fpga. The module uses the debug unit and the GDB bridge of z80fpga (debugger.md). Memory mode 2 uses the bank scheme of z80fpga (memory.md).

New work

The new work starts with the first commit, 3be20ad (6 November 2026). The changes to the z80fpga core are in the z80fpga repository. All other new work is in this repository:

  • The module plan (3be20ad, plan.md).
  • The changes to the z80fpga core. The first plan kept the core with no change. But a real Z80 bus needs four more functions in the core (bus_timing.md). On 6 November 2026, 2420ef0 recorded three of the changes in z80fpga, and 948d9b0 recorded the fourth change. z80fpga 0.1.0 and later versions have the four changes. On 7 November 2026, a change in z80fpga 0.2.0 made the opcode fetch path shorter (bb67a46).
  • The pin stage and its test bench (948d9b0, 6 November 2026, pin_stage.md).
  • Memory mode 1 (06bff93, 7 November 2026), memory mode 2 (8369bc4, 8 November 2026) and the SRAM controller (b14f9a8, 9 November 2026). See memory.md and sram.md.
  • The debug path to the debug unit of z80fpga: the ER1 link of the ECP5 and the memory port on the bus (f766819, 7 November 2026).
  • The RAM loader through the debug port (8364e5b, 7 November 2026, loader.md).
  • The console ACIA (c1f0e56, 8 November 2026, console.md).
  • The Z80 control port (7c92923, 10 November 2026, z80_control.md).
  • The emergency bitstream for the safe mode (2bd979a, 10 November 2026, safe_bitstream.md).
  • The z80fpga /WAIT patch, gateware/top/z80fpga-wait-hold.patch (3f47b41, 10 November 2026). With the patch, the timing analysis after place and route gave a mean bus clock of 20.54 MHz. The patch is not in z80fpga yet (bus_timing.md).
  • The generators of the schematic and the PCB: make_sch.py (2752b0e), make_pcb.py (1c680b4), make_fab.py (4990275) and the router (68ca2d2), all from 8 November 2026.
  • The board. The board file of the order comes from the third board round (d3a74d2, 11 November 2026). Nobody built the board yet.
  • The RP2354A firmware (6f8b560, 7 November 2026, firmware.md). Only a host test examined the firmware.
  • The documents: 33 Markdown files in docs/ at 0da347c.

The request

The owner wrote this request at the start of the project. On 7 November 2026, commit d5d9be1 added the text to the repository as docs/project_spec.txt, kept as written. The block below is that file with no change, in the spelling of the original.

create this private repo as avwohl/z80replacement
It will eventually be public, so do the docs as you would
for a public repo.
Set a GPL3 copyright
Set the github comment that shows to the right of the project 
on the web and the icons/tags.

Zilog recently announced it would stop making z80 chips.
This has caused a angst in the the z80 retro community
for sites such as https://rc2014.co.uk/
that make z80 kits.

Create a plan to make a replacement module for z80 chips.
It should be the same x and y dimensions as a z80 chip.
It can be thicker.
Due to all the open source z80 interest the entire
toolchain should be open source.  This current project
needs vivado.  

The z80 signal lines are 5volt ttl?. Modern fpgas
are lower voltage it will need level translators.
Some of the signals are tri state

Due to the small size I think all the parts should
be surface mount

It would be nice if the module had a usb c connector
to load the fpga , roms , ram etc.

The usb c should be electricaly isolated form the z80 power system , as the default.  Although as an option powering the z80 from usb would be useful.

Have 256mb of some sort of ram (static or dynamic).

The z80 bus timeing needs to work with existing hardware for external (to the module) transfers.

I think it should use kicad for the schematics.  Although if there is anouther better open soruce cad let me know.

I was thinking of usinc pcbway.com to make the boards and assemble them. I am not setup to work with surface mount components.

Whatever fpga chip is used it should have a reasonable lifetime so we arent
forced to switch soon.

If the fpga chip is expensive it might be good to plan a lite version with little or no ram and the smallest fpga that can fit.  And a full version with the largest fpga in the family, full ram etc

What the project did with each item

  • The private repository. The repository is avwohl/z80replacement on GitHub. The first commit is from 6 November 2026. The repository was private until 29 November 2026 and is public from that day.
  • Documents for a public repository. Requirement R16 asks for documents for a public repository. The README has a list of the documents in docs/. The documents use Simplified Technical English (see the rules below).
  • The GPL3 copyright. The gateware, the firmware, the tools and the documents use GPL-3.0. Since 93b1e02 (6 November 2026) the hardware files use CERN-OHL-S-2.0, a license for open hardware. See licensing.md.
  • The GitHub description and the topics. The release plan sets the GitHub About text and the topics on the day that the repository becomes public.
  • The end of the Z80. Zilog issued an end-of-life notice for the Z84C00 family on 15 April 2024. The last-time-buy date was 14 June 2024 (requirements.md).
  • The x and y size. The module has the length of a DIP-40 Z80 and is 8 mm wider: 52.4 mm × 25.34 mm. On a board of the DIP-40 width (17.34 mm), the router left at least 56 of 189 nets open. Strips outside the socket pin rows, first 3 mm and then 4 mm on each long side, gave the long Z80-side tracks a path (9 November 2026). The router completed all nets only after the SRAM replaced the DDR3L.
  • A thicker module. The plastic body of the socket pin headers holds the board 3.0 mm above the socket. The board has parts on the two sides.
  • An open toolchain. Requirement R11: no Vivado and no vendor IDE. The project uses yosys, nextpnr-ecp5, Project Trellis, Icarus Verilog, Verilator, openFPGALoader and KiCad 10. The z80fpga core also has boards that need Vivado. This project uses only the ECP5 flow of z80fpga.
  • 5 V TTL levels and level translators. Six 74LVC4245A transceivers (U10 to U15) and a 74LVC1G17 buffer for CLK (U16) connect the 3.3 V FPGA to the 5 V bus. The transceivers take TTL-level inputs and give 5 V outputs.
  • Tri-state signals. The module floats the address bus, the data bus, /MREQ, /IORQ, /RD and /WR when a real Z80 floats these signals: during reset and after /BUSACK (requirement R4).
  • All surface mount. Requirement R6: all parts are surface-mount parts, but not the 40 socket pins. A DIP socket needs through-hole pins. The placement file for PCBWay has 152 SMD parts.
  • USB-C to load the FPGA, the ROMs and the RAM. An RP2354A on the USB side is the JTAG adapter for openFPGALoader. The RP2354A also gives a console port and a debug port. tools/z80r_load.py loads RAM through the debug port, and tools/z80r_romimg.py makes ROM images for the flash. The tests of these parts ran in simulation and on the host computer only.
  • Isolation as the default, USB power as an option. Two digital isolators (Si8641BB and Si8642EB) carry the signals across the isolation gap. The USB side has its own ground. The solder jumpers JP1 and JP2 and the eFuse U22 give the USB power option. Since 11 November 2026 the firmware controls the eFuse.
  • 256 MB of RAM. The first plan had 256 Mbit SDRAM (3be20ad). 37 minutes later the plan had 256 MB DDR3L (6f19726). On 9 November 2026 a 2 MB SRAM replaced the DDR3L (b14f9a8), because the router could not escape the DDR3L balls. Memory mode 2 uses 1 MB of the SRAM: 512 KB of ROM and 512 KB of RAM, as RomWBW needs.
  • Bus timing for the hardware of the host. Requirement R5: Z80 timing on each bus cycle outside the module, from DC to 10 MHz, with 20 MHz as a goal. The pin stage makes each bus edge from the edge table of the Z84C00 data sheet. A test bench compares each pin in each half T-state with that table. On 10 November 2026, place and route of the 85F build gave a highest bus clock of 17.12 MHz to 18.38 MHz on 5 seeds (mean 17.64 MHz). These numbers come from timing analysis, not from a board.
  • KiCad, or a better open-source CAD. A comparison with Horizon EDA, LibrePCB and gEDA kept KiCad (toolchain.md). Python scripts write the KiCad 10 schematic and the KiCad 10 board from one circuit model.
  • PCBWay makes and assembles the boards. Requirement R13. In a turnkey order PCBWay buys the parts, makes the bare boards and assembles the boards. On 27 November 2026 PCBWay approved an order of 2 boards. On that day the order was not paid.
  • A long FPGA lifetime. Requirement R14. The project selected the ECP5 family. Lattice gives 2045 as the earliest anticipated obsolescence of the family (Lattice blog, June 2024). The date is not a supply guarantee.
  • Lite and full versions. Requirement R15. The lite version has the LFE5U-12F and no SRAM. The full version has the LFE5U-85F, the largest part of the family, and the 2 MB SRAM. The two versions use one PCB. For 5 boards, the parts cost about $45 a board for the lite version and about $113 for the full version (cost.md). Only the full version is in the PCBWay order.

How the owner gets the AI to do the work

The owner gives the request, sets the rules for the AI, reads the results and makes the decisions. The models do the design work in sessions of Claude Code. The sections below give the methods, each with examples from the history.

The rules in CLAUDE.md

Claude Code reads the file CLAUDE.md at the start of each session. The owner keeps one global CLAUDE.md in a git repository, and all machines of the owner use that file. Thus a new rule gets to each machine and to each project. The rules that this project used most:

  • Simplified Technical English. All documentation uses ASD-STE100 Simplified Technical English, with a tier for each type of text. A checker script finds long sentences, passive verbs, semicolons and other problems. Commits such as 3ec3e86 ("shorter sentences (STE)") and a0e944b ("split a long paragraph (STE)") come from this rule. This page uses the same rule.
  • Done means it can be built. A board is not done until each BOM line has distributor stock now, for the quantity of the order. The model does the check in the same session and gives a source for each line. If a part has no stock, the model replaces the part and does the check again, until no line is unavailable. For software, "done" needs a build and tests that pass. The owner added this rule on 11 November 2026, after board rounds that ended with parts that had no stock.
  • No pins to a version. A dependency gets only a minimum version, and only when the code needs that minimum. When a new version breaks the code, the model corrects the code. The gateware Makefiles use the same form: since 948d9b0 a build stops if the z80fpga version is below the minimum.
  • Short README files. A README has at most 150 lines. The details go in docs/ files, and the README gets one line with a link. A hook stops each edit that makes a README longer.
  • The form of rm commands. Claude Code holds some rm commands for a person. In an unattended session each hold costs two minutes and ends in a denial. The rules give the forms of rm command that Claude Code does not hold.
  • Name the thing again. A sentence does not use "it" or "this" alone for a thing that an earlier sentence names.
  • No boxes and no tables in the terminal. Terminal output has no drawn boxes and no tables, because the border characters stay in a copied text.

Memory notes

A memory note records a lesson of one session for the next sessions. The model writes the note, and an index file lists all notes of the project. The notes are in the same git repository as CLAUDE.md. This project has nine notes. Examples:

  • Scripted edits on Windows (6 to 8 November 2026). Python wrote CRLF line ends, and a shell heredoc lost one level of backslashes. The bad edits broke three Makefiles and three test files. c1f0e56 repaired the joined lines in two of the Makefiles. The note says: use the edit tool of Claude Code for text with backslashes.
  • The LiteX tools (8 November 2026). nextpnr stopped in the packer on flip-flops with an asynchronous set. In iverilog, an always @(*) block of the LiteX Verilog did not run at time 0. fix_core.py corrects the two problems (fc4fab3, e9de871).
  • A stale .pyc file (9 November 2026). A scripted edit in the same second as the last compile kept the size of a module. Python then used the old compiled module, and a placement test of about one hour gave wrong results.
  • Visible progress in long runs (10 November 2026). Background searches for a placement ran for about 2.5 hours with no new commit, and the owner asked for the status. The note says: stop a search that fails two times, and give the trade-off to the owner. Each round gets its own folder.
  • A KiCad 10 call that opens a dialog (11 November 2026). A pcbnew call in a review script opened a debug dialog on the screen of the owner. The run stopped until the owner clicked the dialog. The note gives the correct call.
  • BOM stock before "done" (11 November 2026). The reason and the method of the stock rule above.
  • The PCBWay Message Center (23 and 24 November 2026). A reply takes at most 800 characters. The model splits a long text into numbered messages. The model posts a message only after the owner approves the text.

Hooks

A hook is a script that Claude Code runs before or after a tool call. The hooks of the owner apply to all projects:

  • readme-size.sh runs after each file edit and each shell command. The hook blocks a change that leaves a README.md with more than 150 lines.
  • rm-guard.py runs before each shell command (since 24 November 2026). The hook refuses at once each rm command that Claude Code holds for a person.

Multi-agent workflows

A workflow script starts many agents. Each agent has one task, and the agents work at the same time. Parallel work goes in a separate git branch and worktree. A merge commit then brings the result to main. Examples:

  • 8 November 2026 (10fde75): a study with four candidate structures and three judges selected the HDI structure of the board.
  • 8 November 2026 (c3cdb43): an independent review with adversarial checks. Three of three checkers agreed on a glitch on the ready signal of the DRAM side.
  • 10 November 2026: four merge commits brought four parallel work items to main. The items are the Z80 control port (7ea2004), the firmware recovery items (6442b8b), the bus-clock study (a4365b9) and the emergency bitstream (0271696).
  • 11 November 2026 (7797ab3): the fourth review had 15 reviewers, one for each area. Two more reviewers tried to refute each blocker and each major problem.

Independent reviews and checks

Before the order, five reviews ran on 10 and 11 November 2026. Separate review agents examined the schematic, the power, the footprints and the fabrication files. A second agent then examined each problem that a review found. The reviews and the checks found real errors:

  • The DIP-40 socket pins were a mirror image (first review, 10 November 2026). The footprint numbered the pins clockwise in the top view, but a DIP has the pins counterclockwise. Thus each Z80 signal went to the wrong pin of the host socket. Commit ad5a0bb corrected the order.
  • The DHVQFN24 footprint had the wrong pin order (10 November 2026). A comparison with the Nexperia drawing SOT815-1 in a browser found each pad one position off. Pin 1 (VCCA, 5 V) had no solder joint on all six transceivers. Commit b389e01 corrected the footprint.
  • FLASH_CS_N was on the wrong ball (fourth review, 11 November 2026). The net was on ball R17 (SN/CSN), the chip select input that an external SPI controller uses to load the ECP5. When the ECP5 reads its configuration flash, the ECP5 drives the chip select on ball U17 (CSSPIN). Thus the FPGA could not load from the flash. Commit 7797ab3 moved the net.
  • Other errors. The third review found support parts up to 23 mm from their ICs. The fourth review found a 6.3 V rating on C79, the dVdT capacitor of the eFuse. The TPS25947 data sheet asks for VIN + 5 V. The fifth review found solder paste on the open jumpers JP1 and JP2.

The fourth review used a different model, Claude Fable 5.2. The earlier reviews used the model that made the design. The check in make_lpf.py asked for the ball SN/CSN. Thus the earlier checks passed with the FLASH_CS_N error.

Scripts that a model can check

The schematic and the board come from Python scripts, not from a person at the KiCad screen. Thus a script can compare each output file with the model:

  • make_sch.py writes the KiCad 10 schematic from the circuit model (2752b0e, 8 November 2026). check_sch.py runs the KiCad ERC, exports the netlist and compares each of the 1014 pins with the model. A swap of two GPIOs in the model makes the check fail.
  • make_pcb.py writes the board from the same model. escape_bga.py and fanout_bga.py find the BGA escape with integer linear programs. route_signals.py and sigroute.c are the router of the project.
  • make_fab.py writes the BOM, the placement file and the Gerber files for PCBWay.
  • Scripts in the KiCad Python compare each pad of the final board with its function. On 10 November 2026 the scripts found no wrong pad: 40 socket pins, 150 transceiver pads and 48 SRAM balls.

Tests that must fail

A test is useful only if the test fails on a wrong design. Thus many commits add a mutation: a wrong copy of the design that the test must reject. Examples:

  • The pin stage bench: seven wrong pin stages each fail the bench (948d9b0).
  • The firmware host test: with the RJ retry removed, the test fails (6f8b560).
  • The console ACIA bench: six mutations each fail (c1f0e56).
  • The SRAM controller bench: a read cycle that is too short fails (b14f9a8).

The KiCad ERC and DRC are the gates of the schematic and the board. A board is ready only with 0 DRC violations and 0 unconnected items. In 1c680b4 the words "DRC clean" mean a board with no tracks. 694babc has all nets routed, with 134 DRC violations. 76c4bcd (10 November 2026) is the first routed board with 0 violations and 0 unconnected items.

The gates also found tool problems:

  • An old compiled router gave "0 nets with conflicts", but the DRC found 29 to 37 violations of the hole spacing (pcb.md).
  • yosys and nextpnr turned a constant high-impedance output into pads that drove 20 balls low. A pad check after the place and route now reads the nextpnr output (cc88924).

Claude in Chrome for web pages

PCBWay gives no API keys to customers. Thus no script can send the quote form or the order. With Claude in Chrome, the model does these steps in the Chrome browser of the owner (README, 8c72fc7). Examples:

  • The PCBWay quote forms, the cart and the Message Center. On 24 November 2026 the model posted the approved messages of the owner in the Message Center.
  • Data sheets in a browser (10 November 2026): the ISSI SRAM data sheet, because the ISSI web sites refuse automatic access, and the Nexperia documents of the SOT815-1 package.
  • The live stock pages of Mouser, Digi-Key and LCSC for the BOM stock check (11 November 2026).

Decisions and approvals of the owner

The models prepare each decision, and the owner makes the decision. Examples:

  • 9 November 2026: the owner replaced the 256 MB DDR3L with a 2 MB SRAM, so that the PCB is routable.
  • 10 November 2026: the owner selected the SRAM IS61WV20488FBLL-10BLI, because the first SRAM had no stock.
  • 10 November 2026: the owner selected strict distance limits for the 86 supply and decoupling parts of the placement.
  • 14 November 2026: the owner asked PCBWay to change the order from 5 boards to 2 boards.
  • 24 to 27 November 2026: the owner approved each message to PCBWay, in English and in Chinese, before the post.
  • The owner selects the day of the payment. On 27 November 2026 the order was not paid.

The design log

The log has one section for each milestone, in date order. Each section gives the dates, the first and the last commit, and the number of commits. The first 13 milestones come from the contest plan of 27 November 2026. Milestones 14 and 15 continue the log to 29 November 2026. The log counts the 133 commits up to 0da347c (29 November 2026).

No. Milestone Dates (2026) Commits Count
1 The plan and the licenses 6 Nov 3be20ad to 93b1e02 3
2 Feasibility 6 to 7 Nov 2420ef0 to feca985 13
3 Gateware in simulation 7 to 8 Nov ddfe442 to 70be0d6 19
4 The DDR3L with LiteDRAM 8 Nov fc4fab3 to d07a4a6 7
5 The schematic from a Python model 8 Nov a76c883 to 00fc8a5 11
6 The first boards and the routing rounds 8 to 9 Nov 1c680b4 to f722479 18
7 The SRAM board 9 to 10 Nov b14f9a8 to 76c4bcd 4
8 Reviews and the socket pin fix 10 Nov 470d12d to f8e7793 29
9 The SRAM part, the footprint fix and the quotes 10 Nov dcbe6aa to 6c87be9 13
10 The review with a different model 11 Nov 7797ab3 to 507653f 4
11 The BOM of the order 12 Nov 167c742 1
12 The first load 12 Nov 508bb36 to 80c270a 4
13 The PCBWay order for 2 boards 23 to 27 Nov e0e4a5f to ef304c4 4
14 The contest plan 27 Nov f0b18ae to 9af3d62 2
15 This web site 29 Nov 0da347c 1

1. The plan and the licenses (6 November 2026)

Commits 3be20ad to 93b1e02 (3 commits).

The first commit (15:04) is a plan in 14 files. The plan selects a Lattice ECP5 FPGA in the csfBGA285 package: the LFE5U-12F for the lite version and the LFE5U-85F for the full version. SN74LVC4245A transceivers connect the FPGA to the 5 V bus. An RP2354A behind a digital isolator connects the module to USB-C. All tools are open source.

The full version of the first plan had 256 Mbit SDRAM. 37 minutes later, 6f19726 changed the full version to 256 MB DDR3L, with 32 MB SDRAM as the fallback. The same commit set the bus clock: DC to 10 MHz, with 20 MHz as a goal. 93b1e02 put the hardware files under CERN-OHL-S-2.0 and kept GPL-3.0 for the other files.

2. Feasibility (6 to 7 November 2026)

Commits 2420ef0 to feca985 (13 commits).

  • 2420ef0: a timing table of the Z84C00 AC limits against the delays of the module, a pinout check and a placement study. The study put all parts of the full version on a board 17.34 mm wide, on the two sides. The KiCad DRC found no courtyard overlap. A timing probe of the core reached a bus clock of 17.4 MHz to 18.5 MHz in place and route.
  • 1fec710: one USB-C connector, with the RP2354A as a composite USB device.
  • 948d9b0: the pin stage and its test bench. With random /WAIT, /BUSREQ, /INT and /NMI at 10 MHz and 4 MHz, the bench gave 0 failures.
  • 31b39f6 to 18af348: the first cost estimate and the first part changes. LCSC round-pin headers at $0.48 replaced a Mill-Max header at $14.86. A 12 MHz oscillator replaced a crystal, because no small crystal met the RP2350 guide.
  • 673710f and 8c01377: review fixes, and a reset test in the bench.
  • d5d9be1: the request text in the repository. feca985: a bold warning at the top of the README. The warning says that nobody built the module yet.

3. Gateware in simulation (7 to 8 November 2026)

Commits ddfe442 to 70be0d6 (19 commits).

  • ddfe442: the pin assignment on the real FPGA balls, with a check against the Lattice pinout. On the real balls the opcode fetch needed about 26 ns of data setup. The Z84C00 gives only 25 ns at 10 MHz.
  • bb67a46: a change in the z80fpga core (version 0.2.0) made that path 6.7 ns to 8.1 ns long. Every pin group then met the Z84C00 limits at 10 MHz and at 20 MHz.
  • f766819 to 6d9f618, and c2ecfd0: the debug unit for GDB and udb80 through the USB-C debug port, with a cosim and tests of the GDB protocol. The first GDB on the PATH had no z80 target, but gdb-multiarch had the target.
  • 6f8b560: the RP2354A firmware (DirtyJTAG, a console port and a debug port). The firmware builds with all warnings as errors, and its host test has 51 checks. Nobody tested the firmware on a board.
  • 8364e5b, and 06bff93 to 70be0d6: the RAM loader, memory mode 1 with block RAM pages, the console ACIA, the boot copy from the flash and settings in the flash.
  • e9d850a: the pin list for the schematic. This work found a design error. With the default-low isolator Si8642BA, /CORE_RESET was low at the FPGA when the module had no USB cable. Thus the CPU core could not leave reset in normal use. The default-high Si8642EA corrects the error.

4. The DDR3L with LiteDRAM (8 November 2026)

Commits fc4fab3 to d07a4a6 (7 commits).

The full version had a 256 MB DDR3L (ISSI IS43TR16128DL). LiteDRAM 2024.12 generated the controller for the ECP5 DDR PHY, and fix_core.py patched the generated Verilog for the open tools. On the real DDR3L balls the controller reached 71.8 MHz to 74.1 MHz in place and route. The design needed 50 MHz.

The work added an init sequencer with read leveling and no CPU (f369b7f), and memory mode 2 with a 32 KB cache (8369bc4). The work also added the boot copy of the ROM into the DRAM (354818d). With the boot copy, one of three seeds missed 50 MHz. Thus d07a4a6 set the DRAM clock to 48 MHz.

All of this work ran in simulation only. The DDR3L failed in the PCB layout, not in the gateware (see milestone 6). The DDR3L design is now history (ddr3.md).

5. The schematic from a Python model (8 November 2026)

Commits a76c883 to 00fc8a5 (11 commits).

  • a76c883: the connection of the transceivers in the schematic found a wrong DIR polarity in the gateware. In the old gateware, the address transceivers sent the bus address into the FPGA pins.
  • 2752b0e: Python scripts write the KiCad 10 schematic. make_lib.py makes the symbols that KiCad does not have, make_fp.py makes the footprints and make_sch.py makes the project and the sheets. check_sch.py compares each of the 1014 pins with the model.
  • 902410f: the decoupling of the ECP5 and the DDR3L came from the OrangeCrab r0.2.1, a board with the same FPGA package.
  • 7f542ee: the TPS259470 footprint came from the land pattern in the TI data sheet.
  • c3cdb43 and 00fc8a5: an independent review with three checkers. All three found a glitch path on the ready signal of the DRAM side. Two of three found too little capacitance on VDDQ.

6. The first boards and the routing rounds (8 to 9 November 2026)

Commits 1c680b4 to f722479 (18 commits). The board of this milestone had the DDR3L.

  • 1c680b4: the first generated board with all 186 parts. The subject says "DRC clean", but the board had no tracks: 499 items had no connection.
  • 10fde75: the HDI study selected a second-order staggered structure, 1+1+2+1+1 (6 layers). Through vias under the two BGAs take the bottom area that the parts need.
  • 2858d10: an integer linear program found the escape of all 115 signal balls of the FPGA. Freerouting did not converge: 12 passes routed about 90 of 240 connections.
  • 68ca2d2: the router of the project, in C (negotiated congestion). The router found a route for each net, but about 160 of 189 nets kept a conflict. Most conflicts were in the area under the DDR3L, with the six transceivers.
  • 15073fd: 8 layers (1+1+4+1+1, 1.2 mm). The signal routing still did not converge.

Each later round changed the number of open nets:

Commit Change Open nets
762c830 A fan-out of the FPGA escape to hops 68 of 189
c9fbdaf A pin swap of the FPGA balls and the transceiver channels 56
a8db6bf A test of four other transceiver placements 65 to 68 (not used)
2fd95f7 A 3 mm strip on each long side (23.34 mm wide) 20
2413d1a A new transceiver placement on the wide board 13
fce337a, 9175aa7 The board for a run of DeepPCB, a paid routing service 104 of 793 connections open after 45 minutes
f722479 A 4 mm strip on each long side (25.34 mm wide) 15

With the 3 mm strip, 11 of the 13 open nets were FPGA escape exits with no hop, and most of these exits were DDR3L balls. The hops of the adjacent exits enclosed these exits on the top layer. With the 4 mm strip, 12 of the 15 open nets were DDR3L nets or exits with no hop. The 4 mm strip gave no gain, because the limit was the space between the FPGA and the socket pin rows.

7. The SRAM board (9 to 10 November 2026)

Commits b14f9a8 to 76c4bcd (4 commits).

On 9 November 2026 the owner replaced the DDR3L with a 2 MB SRAM, so that the PCB is routable (b14f9a8). Requirement R10 changed from 256 MB to 2 MB. The DDR3L sheet, the 1.35 V buck converter and all DDR3L support parts left the design: 185 footprints became 158. A new SRAM controller replaced LiteDRAM in memory mode 2, and the SRAM benches pass (sram.md).

The SRAM freed 16 FPGA balls whose exits had no hop. The router then left 2 nets open, and after f72f826 1 net. With a lower cost for a via between core layers, the router routed all 168 nets (694babc). The KiCad DRC of that board found 134 violations and 48 unconnected items. 76c4bcd (10 November 2026, 00:09) corrected these items. 76c4bcd is the first routed board with 0 violations and 0 unconnected items.

8. Reviews and the socket pin fix (10 November 2026)

Commits 470d12d to f8e7793 (29 commits).

  • 23a6852: all 48 balls of the SRAM agree with the official ISSI data sheet. The first ball map came from a text extract.
  • b4d8066: the SRAM IS62WV20488FBLL-45BLI had no stock at any distributor. The documents gave three paths to the owner.
  • 7c92923: the Z80 control port, the only commit of Claude Sonnet 5.5. Z80 code can remove each extra part of the module, down to a plain Z80 on the bus (z80_control.md).
  • c4bd03d and 8c91c4e: fixes before the order. A review found about 150 top and 445 bottom laser vias in pads that are not BGA pads. Thus the order remarks ask PCBWay to fill and cap the vias in all pads.
  • 4f1d56e and ad5a0bb: the first review found 16 possible problems, and two reviewers examined each problem. The blocker was the mirror-image socket pins. The fix changed 63 FPGA balls, the rows of the transceivers and all routes.
  • 7e182fa, 2bd979a, 3f47b41 and cc88924, with their merge commits: the safe mode and the A/B images of the firmware, the emergency bitstream and a bus-clock study. A patch to the z80fpga core gave a mean bus clock of 20.54 MHz in place and route. The patch is not in z80fpga yet.
  • 1a1a443 and 299d6f1: the second review of the corrected board found no blocker.

9. The SRAM part, the footprint fix and the quotes (10 November 2026)

Commits dcbe6aa to 6c87be9 (13 commits).

  • dcbe6aa: the owner selected the IS61WV20488FBLL-10BLI (Mouser, 548 in stock). The same commit records a new blocker: the DHVQFN24 footprint.
  • b389e01: the corrected footprint of the six transceivers, from the Nexperia land pattern. The six transceivers now lie in two rows, and 65 FPGA balls got a new signal.
  • 570bb61 and ffdeb2a: the third review found support parts far from their ICs, for example a feedback divider 22 mm from its pin. A new placement put all 86 supply and decoupling parts within their limits.
  • 8c72fc7: PCBWay gives no API keys. Thus the PCBWay steps use Claude in Chrome.
  • cda4a2b: the top silkscreen got the repository URL, the version "Z80R V0", the license and the copyright line. The 8-layer quote for 5 boards: PCB $851.73, assembly $141.75.
  • 87b7866: the 8-layer quote for 50 boards: PCB $975.27, assembly $724.72. The pricing page gives all costs.

10. The review with a different model (11 November 2026)

Commits 7797ab3 to 507653f (4 commits, all with Claude Fable 5.2).

  • 7797ab3: the fourth review found FLASH_CS_N on the wrong ball. The commit moved the net to ball U17. Then the escape, the power copper and the signal routes ran again.
  • The fifth review of the corrected board found no blocker. The review found solder paste on the open jumpers JP1 and JP2. The paste could close the 0.3 mm gap in the reflow oven.
  • f04040d: the second round. The firmware got the eFuse control, and the bitstream got fast load options. Each passive part got a part number, and the supply tracks got wider.
  • d3a74d2: the third board round, with supply trunks of 0.6 mm and no through via near solder paste. The board file of the order comes from this commit.
  • 507653f: the order of 5 boards in the PCBWay cart, with a new quote.

The subjects of f04040d and d3a74d2 are short, but the commits are large. The board changed in each round.

11. The BOM of the order (12 November 2026)

Commit 167c742 (1 commit).

The stock check of each BOM line (11 November 2026) followed the new rule "Done means it can be built". After the check, the commit replaced four parts with parts in stock that fit the same footprint:

  • U3: Si8641BA-B-IU to Si8641BB-B-IU.
  • U4: Si8642EA-B-IU to Si8642EB-B-IU.
  • 14 capacitors of 10 nF: CL03B103KQ3NNNC (6.3 V) to CL03B103KP3NNNC (10 V).
  • X2: SiT8008BI-72-33E-12.000000 to SiT8008BI-73-33E-12.000000G (50 ppm).

X1 got the packing letter G. The board, the placement file and the Gerber files did not change. bom_stock.md records the stock and the source of each line. The BOM of the order comes from this commit. The BOM page shows the BOM.

12. The first load (12 November 2026)

Commits 508bb36 to 80c270a (4 commits).

The commits add notes for PCBWay Share&Sell after the board test. The commits also add the procedure for the first load of a new board. The RP2354A firmware goes in through the USB boot loader. Then the bitstream and the ROM files go into the flash through the RP2354A. The procedure needs no JTAG adapter, and nobody did the procedure on a board yet.

13. The PCBWay order for 2 boards (23 to 27 November 2026)

Commits e0e4a5f to ef304c4 (4 commits). The commits record the PCBWay messages and cart states from 13 to 27 November 2026. The PCBWay page gives each step.

  • The PCBWay review of the 5-board cart gave $2104.24 without shipping (13 November 2026). On 14 November 2026 the owner asked PCBWay to change the order to 2 boards.
  • On 23 November 2026 PCBWay suggested a 1x2 panel for 2 boards, and asked if 0.5 oz finished outer copper was OK. The owner accepted the two items, with conditions. A check of the board file gave the reasons. PCBWay lists 3.5 mil tracks on the outer layers for 18 um copper, and the outer layers have 855 tracks of 0.089 mm.
  • The sales rep asked for a short panel text. The owner sent 8 numbered items in English and in Chinese, each with the panel drawing (83ed6a2). A Google translation of the English text changed the X-out item and removed the fiducials. Thus the Chinese text uses the factory terms.
  • On 25 November 2026 a message said that the review failed, with no reason. The owner sent a reply of 6 items in English and in Chinese.
  • On 27 November 2026 PCBWay answered the 6 items and approved the PCB item and the assembly item of the order. The cart gave $1124.86 for 2 boards without shipping: PCB $672.49, assembly $29.00 and parts $423.37. A script compared the 51 lines of the quoted BOM with the BOM of the order.
  • On the same day the owner asked PCBWay to buy U1 at Digi-Key and U5 at Mouser. The owner also asked for the stack-up and the panel working file. On 27 November 2026 the order was not paid.

The 1x2 panel drawing with labels in English and Chinese

The 1x2 panel drawing that went to PCBWay. The script hardware/pcb/make_panel_drawing.py makes the drawing, with labels in English and in Chinese.

14. The contest plan (27 November 2026)

Commits f0b18ae to 9af3d62 (2 commits).

f0b18ae adds the plan for the PCBWay 9th Project Design Contest (Open Theme, submissions to 24 January 2027). A rule of the owner sets the order of the public steps. Nobody gets the files to build a board before the first boards pass the board test.

The rules of the 9th contest give no limit on AI help. Thus the plan puts a statement about the AI help on the PCBWay project page (see the last section). The plan has 6 questions to PCBWay.

15. This web site (29 November 2026)

Commit 0da347c (1 commit), and the work of the same day.

The owner wrote the last request and added the request as docs/publish.md. The next section gives the text and the result.

The last request

The owner wrote this request on 29 November 2026. Commit 0da347c added the request to the repository as docs/publish.md. The block below is that file with 2 lines left out. No other line has a change.

Make a web tree for this project as https://awohl.com/z80replacement
[2 lines about the web server are not shown here]
Update the ~/www/ index to add a pointer to the above at the top
One section should be the current design.  Overview, schematics
BOM
Section for PCBWAY corrispondence (without personal info).  For the stuff
in chinese put both original and an english translation
A pricing seciton listing all projected costs
Id like to be able to update this website so leave notes or a script
for yourself to update it as the project changes.
The z80replacement repo will be made public.
Add a note to the front of the README that the first sample run will be
made soon.  Users are urged to wait until it works until sending build requests off.
R
Read the pcbway.com contest for using AI in a project id like to enter that.  Is
there anything they ask for this website doesnt address?
The pcbway contest wants info on how you get an AI to do stuff.
Make a section that starts with the file I made docs/project_spec.txt
Review the commit history and docs to add comments to this section on
the events that happened, things we tried and how we ended up here,
including this publish.md

The work of 29 November 2026 did these items:

  • This web site, www.awohl.com/z80replacement. The source of the site is web/ in the repository. The script web/make_web.py builds the site from the page files in web/pages/ and from the repository files. Each page uses the page frame of awohl.com. A pointer at the top of the awohl.com home page links to the site.
  • The pages. The site has the pages Home, Design, BOM, Pricing, Build, PCBWay, How AI made it (this page), Blog and Documents (the published documents). The PCBWay page gives the Chinese factory terms of the messages and the Chinese labels of the panel drawing, each with an English translation. The PCBWay page gives no personal information and no PCBWay item number.
  • The files that the build makes. The build makes one page for each published document of docs/, the schematic PDF and an image of each schematic sheet. The build also makes three 3D renders of the board, the BOM table and the panel drawing.
  • The tools on the Linux web server. On 29 November 2026 the work installed KiCad 10 and its 3D models, python3-markdown, python3-mdit-py-plugins, python3-matplotlib, the Noto CJK fonts and Chromium (for screenshots). kicad-cli makes the schematic PDF, the sheet images and the 3D renders.
  • The panel drawing on Linux. hardware/pcb/make_panel_drawing.py got a Linux font for the Chinese labels.
  • The agents. A workflow of 14 agents wrote the pages and compared each page with the repository. Two of the agents read the PCBWay and Tindie contest rules. A second workflow then closed the gaps that these 2 agents found.
  • The README note. The README warning now says that the first sample run of 2 boards from PCBWay comes soon. The warning asks users to wait for the test of these boards before they send an order or a build request to a factory.
  • The notes for later updates, in docs/website.md. The file gives the place of each part, the build command, the rules for the text and a table of changes for each project event. One row says: after new commits, add the events to this design log and count the Co-Authored-By lines again.
  • The public repository. On 29 November 2026 the owner told the AI to make the repository public. Before the change, commit fe081ec put the standard GPL-3.0 text in LICENSE and removed the name of the sales rep from docs/todo.md. A search of all commits found no keys and no passwords.
  • The blog. The owner asked for a blog with a queue of reader posts for review. A reader post goes into a queue outside the web folder. The owner gets an e-mail with a link to the review page. The review page needs the awohl.com login. Only an approved post shows on the site. The project posts are Markdown files in web/blog/.
  • A link check. The build script does a check of each internal link before the script replaces the live site. A failed check leaves the live site as it was.
  • The contest question. On 27 November 2026 the rules of the 9th contest said nothing about AI-assisted design. "The AI setup" on this page gives the software and AI items that the AI contest of PCBWay and Tindie asks for. The contest entry is a PCBWay project page, not this site. This site has no photos, no videos and no result of a board test, because no board exists yet.

The statement about AI

The plan for the contest entry uses one statement about the AI help, on the PCBWay project page and in the design log. The numbers below are for the commits up to 0da347c (29 November 2026).

The owner made the design with Claude models (Anthropic) in Claude Code. 132 of the 133 commits up to 0da347c (29 November 2026) have a Co-Authored-By line. The lines name 122 Claude Opus 5.5, 9 Claude Fable 5.2 and 1 Claude Sonnet 5.5. The models wrote the plan and the Python scripts that make the schematic, the PCB and the fabrication files. The models also wrote the gateware, the firmware, the test benches and most documents.

The owner wrote the project request and made the decisions. The owner approved each PCBWay order option and each message to PCBWay, and owns the result. Independent AI reviews found real errors before the order, for example the mirror-image socket pins.

The commit with no Co-Authored-By line is 0da347c. In that commit the owner added the last request. On 27 November 2026 the contest rules said nothing about AI-assisted design.

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