z80replacement · a Z80 CPU replacement with an FPGA
The current design
The module has a Lattice ECP5 FPGA with the z80fpga core, 5 V bus transceivers, an optional 2 MB SRAM and an isolated USB-C port. No board exists yet.
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.
This page gives the design in the repository on 29 November 2026. The last change to the board is the third board round of 11 November 2026. The last change to the BOM is from 12 November 2026. No board exists yet. Thus each result on this page is a design result, an estimate or a simulation result.
Overview
The module replaces the Z80 CPU in a DIP-40 socket. The FPGA holds the Z80 core and the bus logic. Transceivers change the 5 V levels of the Z80 bus to the 3.3 V levels of the FPGA. A USB-C port loads the FPGA, the ROM images and the RAM. Two digital isolators keep the USB side apart from the Z80 side.
The parts connect in this sequence:
- The 40 socket pins (P1) connect the module to the Z80 bus of the host system.
- Six 74LVC4245A transceivers (U10 to U15) connect the bus signals to the FPGA. A 74LVC1G17 Schmitt-trigger buffer (U16) gives CLK to the FPGA.
- The ECP5 FPGA (U1) holds the Z80 core, the bus logic, the memory controller, the debug unit, the console ACIA and the control port.
- The FPGA reads its bitstream from the configuration flash U17, a 128 Mbit QSPI flash. The same flash holds the ROM images.
- In the full version, the FPGA also connects to a 2 MB SRAM (U5).
- The RP2354A microcontroller (U2) is the USB device. Two digital isolators (U3 and U4) carry eight signals between the RP2354A and the FPGA.
- The Z80 side gets +5V from pin 11 of the socket. The USB side gets its power from VBUS of the USB cable.
The blocks
Z80 core
The CPU is the microcoded Z80 core of z80fpga. The core passes all 1,604,000 cases of the SingleStepTests suite. The suite also compares the bus trace in every T-state. On a Digilent Nexys A7-100T board, the core boots RomWBW and CP/M 2.2.
A real bus needed four more functions in the core:
- bus status outputs (the T-state and the cycle type) for the pin stage
- a data read at the falling edge of T3, as on the Z84C00
- /BUSREQ and /BUSACK
- the interrupt acknowledge and the NMI response of the real part
z80fpga 0.1.0 and later versions have all four functions. Each function is a new parameter or a new output that is off or unused by default. Thus other z80fpga boards build the same logic as before. The pin stage needs z80fpga 0.2.0 or a later version. The full build of the module needs z80fpga 0.2.1 or a later version. Each Makefile reads the version of z80fpga and stops if the version is too old.
Details: Bus timing and Pin stage.
FPGA
The FPGA is a Lattice ECP5 in the csfBGA285 package: 10 mm × 10 mm, 0.5 mm ball pitch and 118 user I/O pins. The LFE5U-12F, -25F, -45F and -85F all come in this package. Thus the lite version and the full version use the same PCB with different FPGA densities.
| Lite version | Full version | |
|---|---|---|
| FPGA | LFE5U-12F-6MG285C | LFE5U-85F-6MG285C |
| LUT4 | about 12,000 | about 84,000 |
| Block RAM | 32 EBR, 72 KB | 208 EBR, 468 KB |
| External RAM | none | 2 MB SRAM |
| Memory modes | 0 and 1 | 0, 1 and 2 |
| Design status | the same PCB, but no lite schematic and no lite BOM yet | draft schematic, board and BOM of the order, no board built yet |
Lattice gives 2045 as the earliest anticipated obsolescence of the ECP5 family (Lattice blog post, June 2024). The date is not a supply guarantee. The open-source tools yosys, nextpnr-ecp5 and Project Trellis make the bitstream. The project uses no vendor tool.
The full build has the debug unit, the console ACIA, memory mode 2, the boot copy and the SRAM controller. On 9 November 2026, place and route on the LFE5U-85F gave 8251 TRELLIS_COMB, 1872 flip-flops and 18 block RAMs.
The flash holds a compressed bitstream, and the FPGA reads the bitstream at 38.8 MHz. The calculated load time of the LFE5U-85F bitstream is 0.084 s. Nobody measured the load time, because no board exists.
Details: FPGA selection and FPGA pinout.
Bus interface and timing
The ECP5 pins are not 5 V tolerant. The Z84C00 has TTL-level inputs, and other chips on a Z80 bus can give a logic 1 of only 2.4 V. Thus the module uses SN74LVC4245A transceivers. Each transceiver has a 5 V A port with TTL input levels (VIH 2.0 V) and a 3.3 V B port. The usual SN74LVC8T245 needs a logic 1 of 0.7 × VCC on the 5 V side. Thus the SN74LVC8T245 does not read a 2.4 V TTL output reliably.
TI and Nexperia make the part, so the part has a second source. The board uses the Nexperia 74LVC4245A in the DHVQFN24 package (3.5 mm × 5.5 mm). Each transceiver has one DIR pin and one /OE pin for its 8 bits. Thus each group holds signals that change direction together.
| Part | Signals | Direction |
|---|---|---|
| U10 | A0 to A7 | FPGA pin ADIR, normally toward the bus |
| U11 | A8 to A15 | FPGA pin ADIR, normally toward the bus |
| U12 | D0 to D7 | FPGA pin DDIR, changes in each bus cycle |
| U13 | /MREQ, /IORQ, /RD, /WR | toward the bus |
| U14 | /M1, /RFSH, /HALT, /BUSACK | toward the bus |
| U15 | /RESET, /WAIT, /INT, /NMI, /BUSREQ | toward the FPGA |
| U16 | CLK | 74LVC1G17 Schmitt-trigger buffer, toward the FPGA |
The external CLK is the clock of the bus logic. The core advances one T-state on each rising edge of CLK. The pin stage operates on both edges of CLK, and sets each output on the correct half T-state. No PLL is on the CLK path. Thus CLK can stop, run slowly or step one cycle at a time, as on a static CMOS Z80.
The required range is DC to 10 MHz. 20 MHz is a goal. These results come from simulation and from place and route:
- The test bench of the pin stage compares each pin in each half T-state with the edge table of the Z84C00. The test bench finds no failures at 4 MHz and at 10 MHz, with random /WAIT, /BUSREQ, /INT and /NMI.
- On the FPGA balls from before the pin swap of 9 November 2026, all pin groups meet the Z84C00 limits at 10 MHz and at 20 MHz. These values are estimates from nextpnr and the data sheets. The routing study does not have the values for the new balls yet.
- A path inside the FPGA limits the bus clock. The path starts at /WAIT on the falling edge and must end at the next rising edge. On 10 November 2026, a build for the LFE5U-85F with memory mode 1 gave a highest bus clock of 17.12 MHz to 18.38 MHz (5 seeds, mean 17.64 MHz).
- A patch to the z80fpga core makes this path short. With the patch, the mean is 20.54 MHz and the minimum is 19.70 MHz. The patch is not in z80fpga yet.
Until the FPGA has a configuration, 10 kΩ pull-ups on the /OE pins keep U10 to U14 in high impedance. U15 has its /OE pin on GND. Thus the module looks like a Z80 in reset. If the 3.3 V supply fails, the Ioff function of the transceivers keeps the bus free.
When the module serves a memory cycle from internal memory, the bus does not see /MREQ and /RD for that cycle. The address bus, /M1 and /RFSH still change as on a real Z80. Thus refresh logic and bus monitors on the bus see the normal sequence. The cycle length does not change, so software timing loops stay correct.
Details: Bus interface, Bus timing, Pin stage, Routing study and Z80 clock speeds.
Memory
The full version has a 2 MB SRAM (U5), the ISSI IS61WV20488FBLL-10BLI. The part has 16 Mbit (2M × 8), an access time of 10 ns and a 48-ball mini BGA package of 6 mm × 8 mm. The SRAM uses 32 FPGA balls in banks 3 and 6. The SRAM controller operates on the 25 MHz clock of the oscillator X1, not on CLK. Thus the SRAM timing does not depend on CLK. The SRAM needs no refresh.
The configuration flash U17 is a Winbond W25Q128JV (128 Mbit). The flash holds the bitstream and, from address 400000H, a selector and 11 slots. Each slot holds one ROM image with its settings. The compressed bitstream of the LFE5U-85F is 408529 bytes, so the slots do not overlap the bitstream.
The FPGA configuration selects one memory mode. The header of a ROM slot in the flash can also change the mode, with no new bitstream.
| Mode | What the module does | Lite | Full |
|---|---|---|---|
| 0, plain CPU | Every memory cycle and every I/O cycle goes to the bus. The module is a Z80 and nothing more. This mode is the default. | yes | yes |
| 1, overlay | Address ranges that the user selects come from block RAM in the FPGA. All other cycles go to the bus. | up to 32 KB | up to 64 KB |
| 2, banked | The module contains the banked ROM and RAM of a RomWBW system. The SRAM holds 512 KB of ROM and 512 KB of RAM in 32 KB banks. The bank select is at ports 78H and 7CH. The system then needs no memory board. | no | yes |
At power-up, the boot copy reads the selected ROM image from the flash. The copy writes the image into the block RAM (mode 1) or into the SRAM (mode 2). The core stays in reset until the copy ends. In mode 2, a copy of 512 KB takes about 0.34 s.
A line read from the SRAM takes longer than an opcode fetch. Thus mode 2 has a 32 KB cache in block RAM. A cache miss adds wait states, and the bus sees these wait states as for a /WAIT from the bus. In simulation, a miss costs 9.0 wait states at 4 MHz, 18.0 at 10 MHz and 32.2 at 20 MHz. The hit rate with RomWBW is not known yet.
Modes 1 and 2 exist in simulation only.
USB side
The module has one USB-C connector (J1) at the pin 1 end. The USB microcontroller is the Raspberry Pi RP2354A (U2): an RP2350 with 2 MB of flash in the QFN-60 package. A 12 MHz oscillator (X2) gives the clock of the RP2354A. The RP2354A is one composite USB device with three functions:
| USB interface | Function | Host program |
|---|---|---|
| 0 | JTAG adapter with the DirtyJTAG protocol | openFPGALoader |
| 1 and 2 | Console port: the console ACIA in the FPGA | a terminal program |
| 3 and 4 | Debug port: the debug unit and the RAM loader | z80dbg_bridge.py, tools/z80r_load.py |
The firmware uses the USB IDs of DirtyJTAG (VID 1209H, PID C0CAH). Thus openFPGALoader finds the module with no other options. Windows, macOS and Linux have a built-in driver for the two serial ports. The firmware compiles for the RP2354A and passes a host test of 213 checks on a model of the ECP5 TAP. No test on a board is possible yet.
Two 4-channel digital isolators carry eight signals: TCK, TMS, TDI, TDO, the console input, the console output, /CORE_RESET and DONE. U3 is a Skyworks Si8641BB-B-IU, and U4 is a Skyworks Si8642EB-B-IU.
By default, no copper connects the USB side to the Z80 power and ground. Thus a computer on the USB cable does not connect its ground to the ground of the Z80 system, and a ground loop cannot occur. The gap stops ground loops (functional isolation). The gap is not safety isolation.
With no USB cable, U4 holds /CORE_RESET high. Thus the module operates in the Z80 system with no USB cable.
CAUTION: DO NOT USE THE Si8642BA FOR U4. With the Si8642BA, the CPU core stays in reset when the module has no USB cable.
The two sides get power from different sources:
- The USB side gets its power from VBUS through the 3.3 V LDO U6. Thus the console port and the debug port operate when the Z80 system is off. The firmware then reports that the Z80 side has no power.
- The Z80 side gets +5V from DIP pin 11.
- The buck converter U18 (TLV62569) makes 3.3 V from +5V. The 3.3 V rail supplies the FPGA banks, the SRAM, the flash, the B ports of the transceivers and the Z80 side of the isolators.
- The LDO U21 makes 2.5 V for VCCAUX of the ECP5 from the 3.3 V rail.
- The buck converter U19 (TLV62569) makes 1.1 V for the FPGA core from +5V.
Nobody measured the current that the module takes from +5V (DIP pin 11), because no board exists. On 29 November 2026, no document in the repository gives an estimate of this current. The USB-C and power document (last change 12 November 2026) gives these facts:
- A CMOS Z84C00 takes a few tens of milliamperes. An NMOS Z80 takes up to about 200 mA.
- The document says that the module will take more current than a CMOS Z80.
- A Z80 system with a weak 5 V supply can need a larger supply.
- The 3.3 V LDO U6 supplies only the USB side. The document gives less than 50 mA for the USB side. This current comes from VBUS, not from +5V.
The USB-C and power document says to estimate the current with the Lattice power calculator, and then to measure the current on the first board. Step 11 of phase 4 (bring-up) in the Project plan is this measurement.
As an option, the USB cable can supply the Z80 system. Two solder jumpers make this option: JP1 connects the eFuse output to the Z80 +5V, and JP2 connects GND_USB to GND. The eFuse U22 (TPS259470A) has a current limit of about 1.5 A and blocks reverse current. The eFuse also turns off above about 5.8 V.
WARNING: WHEN YOU CLOSE JP1 AND JP2, THE USB CABLE IS NOT ISOLATED. The ground of the computer then connects to the ground of the Z80 system.
The firmware keeps the eFuse off at reset, and never turns the eFuse on by itself. The host turns the eFuse on and off with a USB command. If the fault output of the eFuse stays low for 20 ms, the firmware turns the eFuse off. The firmware does not read the CC lines yet. Thus the user must know that the USB source gives enough current. Turn the eFuse on only when the Z80 system has no supply of its own.
The recovery levels keep the module repairable:
| Level | What is bad | Recovery | Status |
|---|---|---|---|
| 0 | The RP2354A firmware | The BOOTSEL button SW1 and the USB boot loader in the boot ROM | In the board design, no board test yet |
| 1 | An RP2354A firmware update | A/B firmware images with "try before you buy" | Host test only |
| 2 | The bitstream, the selector or a ROM slot in the flash U17 | openFPGALoader writes the flash through the JTAG port of the ECP5 | No board test yet |
| 3 | A bitstream that configures but does not operate correctly | Safe mode: the RP2354A erases the FPGA and loads an emergency bitstream from its own flash | Host test and simulation only |
SW1 is on the top side. With the module in the socket, the top side is the only side that you can touch. To start the safe mode, push SW1 for 5 s, or send a break on the console port.
Details: USB-C and power, Board pins, RP2354A firmware, Recovery and The emergency bitstream.
Debug
GDB and udb80 debug the Z80 program in the module through the USB-C port. The module uses the debug unit and the GDB bridge of z80fpga:
GDB or udb80 --TCP--> z80dbg_bridge.py --USB--> RP2354A --JTAG--> ECP5
(GDB remote protocol) (debug port) (ER1) debug unit
The debug unit stops the core at an instruction boundary and steps the core. The unit also reads and writes the registers and the memory. The unit has 4 hardware breakpoints with a bank. The unit never writes a breakpoint byte into memory, so a breakpoint also works in the ROM of the Z80 system.
A stopped core must not hold the bus. While the unit holds the core, the
bus is idle. The module then makes one refresh cycle every 4 T-states,
as a real Z80 does in HALT. A /BUSREQ still gets the bus. The RAM loader
tools/z80r_load.py uses the same debug port to write program and data
images into the RAM.
The debug path exists in simulation only. A cosim connects the bridge to
a simulation of the module. The tests test-gdb and test-udb80 run a
GDB session and a udb80 session against the cosim. A board test is not
possible yet, because no board exists.
Details: Debugger over USB-C and RAM loader.
Console ACIA
The module has a console UART in the FPGA. The Z80 program uses the UART as a 68B50 ACIA at the RC2014 address: port 80H for control and status, and port 81H for data. The serial data crosses the isolator to the RP2354A at 115200 baud. The computer shows the data on the console port. Thus the module has a console when the Z80 system has no serial board.
The header of the flash image can turn the ACIA off or move the ACIA to a different address. Use this setting when the Z80 system has a serial board at the same address. The ACIA decodes A7 to A1, so the ACIA has no mirror ports. The ACIA exists in simulation only.
Details: Console ACIA.
Z80 control port
Requirement R17: Z80 code can use or remove each extra part of the module. With all parts removed, the module is a plain Z80 on the bus.
The control port is one 8-bit I/O port, by default at EEH. Each reset locks the port. Then reads and writes at EEH go to the bus, as on a real Z80. Four writes in a row with the key 5AH 38H 30H 52H ("Z80R") open the port. The next write is the command:
- bit 0: memory mode 1 on
- bit 1: memory mode 2 on
- bit 2: the console ACIA on
- bit 3: the debug unit active on the Z80 side
- bit 6: the next write moves the port to a new address
- bit 7: the port is gone until the next reset
The command 80H removes all parts and hides the port. Then the module acts as a plain Z80. Each reset loads the start state from the flash again, with the debug unit on. The RP2354A pulses /CORE_RESET when the host sends a break on the debug port. The pulse resets only the core and the FPGA state, not the bus /RESET. Test benches examine the control port in simulation.
Details: Z80 control.
Schematics
Python scripts in hardware/schematic make the KiCad 10 schematic of
the full version from a model of the circuit. To change the schematic,
change the model in make_sch.py and write the files again. Do not
edit the .kicad_sch files by hand. The
Build page gives the tools and the build steps.
check_sch.py runs the KiCad ERC and compares the netlist with the
model. The script also compares the netlist with the FPGA pin list and
with the isolator table of Board pins.
The ERC gives no errors. The 12 warnings are spare transceiver inputs on
GND.
The schematic is a draft. A person must still check the values and the footprints against the data sheets. The lite version has no schematic yet. The schematic gives the items to check.
All sheets in one PDF file. Each image below opens the SVG file of the sheet.
Top sheet
The top sheet holds the five sheet symbols. The sheets have no wires between them. A global label connects to each label with the same name on each sheet.
Bus interface
The 40 socket pins, the six 74LVC4245A transceivers, the CLK buffer and the pull-ups.
FPGA
The nine units of the ECP5, the configuration flash, the 25 MHz oscillator, the LEDs and the decoupling.
SRAM
U5 (IS61WV20488FBLL-10BLI), the two pull-ups and the decoupling.
USB side
The USB-C connector, the RP2354A, the 12 MHz oscillator, the isolators, the eFuse and the jumpers of the USB power option.
Power
The two buck converters (3.3 V and 1.1 V), the 2.5 V LDO and the PWR_FLAG symbols.
The board
Python scripts in hardware/pcb make the board from the same circuit
model as the schematic. The scripts place the parts, make the escape of
the BGA balls, route the supply copper and route the signals. The signal
router is a grid router of the project, in Python and C. The tools and
the build steps are on the Build page.
The board of the third round (11 November 2026) has all 168 signal nets routed. The board has 7090 tracks and 1879 vias in total. The KiCad DRC of this board gives no violation and no unconnected item. The Gerber and drill files come from this board.
The renders below show the full version, with 159 parts: 28 on the top side and 131 on the bottom side. The renders show 21 parts as pads only, because the site build has no 3D model for these parts:
- The eight footprints of the project (
make_fp.py) have no 3D model:- the FPGA (U1) and the SRAM (U5)
- the six transceivers (U10 to U15)
- the eFuse (U22) and the inductor L4
- the socket pins (P1)
- the solder jumpers JP1 and JP2
- the test points TP1 to TP4
- Three footprints of the KiCad library name a 3D model file that the
KiCad 3D library does not have (check of 29 November 2026):
- the RP2354A (U2)
- the oscillators X1 and X2
- the button SW1
A solder jumper and a test point are only pads on a real board too. The renders do not show the pins and the plastic bodies of the two headers of P1.
Placement
| Area | Top side | Bottom side |
|---|---|---|
| USB end, x = 0 mm to 17 mm | J1, the RP2354A (U2), the eFuse (U22), the BOOTSEL button (SW1) | the 3.3 V LDO (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 configuration flash (U17), the 25 MHz oscillator (X1), the CLK buffer (U16) | the 1.1 V buck converter (U19) |
| Under the FPGA | the FPGA (U1) | the FPGA capacitors and resistors, the 3.3 V buck converter (U18), the 2.5 V LDO (U21) |
| East of U1 | the SRAM (U5) and its capacitors | the six transceivers U10 to U15 |
Size and outline
The board is 52.4 mm × 25.34 mm. The board has the length of a DIP-40 Z80 and a 4 mm overhang on each long side. The overhang strips hold the long tracks from the transceivers to the socket pins. The strips have no parts.
| Item | DIP-40 Z80 | Module |
|---|---|---|
| Length | plastic body about 52.5 mm | 52.4 mm |
| Width | pin rows 15.24 mm apart | 25.34 mm: 15.24 mm between the rows, a 1.5 mm pin pad, 0.3 mm from pad to edge, and a 4 mm overhang on each long side |
| Pins | 40 pins, 2.54 mm apart | 40 round pins in two 20-pin headers, the same pin numbers |
| Pin 1 mark | U-shaped notch between pins 1 and 40 | a filled triangle beside pin 1 on the top silkscreen. J1 is at the place of the notch. |
| Height | the height of the chip | board 3.0 mm above the socket. Target: 10 mm or less above the socket. |
The socket pins are two 20-pin round-pin headers (chxunda XDZ254C-1-20-Z-3.0-G1). The plastic body of each header is under the board, and holds the board 3.0 mm above the socket. The 0.50 mm end of each pin goes into the socket. The 0.60 mm end goes up through the board. About 3.1 mm of each pin is above the board, as a test point for a logic analyzer.
The tallest bottom parts are the isolators U3 and U4 (QSOP-16, 1.75 mm maximum). With the 3.0 mm header body, the clearance is about 1.25 mm.
The bottom of the board is about 6.5 mm to 7.5 mm above the host board. A DIP chip in a socket is about 7.5 mm to 8.5 mm high, and can touch the overhang. Measure the tall parts next to the Z80 socket before you install the module.
CAUTION: A HOST BOARD WITH A SOLDERED Z80 AND NO SOCKET CANNOT TAKE THE MODULE. Remove the Z80 and install a socket first.
CAUTION: DO NOT PUT THE 0.60 MM END OF A PIN INTO A SOCKET. The pin is too thick and can damage a turned-pin socket.
The top silkscreen has four lines of text: the repository address
github.com/avwohl/z80replacement, the
board version Z80R V0, CERN-OHL-S-2.0 and (C) 2026 Aaron Wohl.
Layer stack-up
The board has parts on the two sides. With through vias, the bottom side under the two BGAs has vias at almost all positions between the balls. Then about 280 mm² of the bottom side has no area for parts. Thus the board is an HDI board.
The structure is 1+1+4+1+1: 8 layers with second-order staggered microvias. PCBWay calls this structure "normal process". For 8 layers, 1.2 mm is the minimum thickness of this process.
| Layer | KiCad | Thickness | Use |
|---|---|---|---|
| Top solder mask | 0.020 mm | ||
| L1 | F.Cu | 0.035 mm (18 µm base copper plus plating) | Parts. The escape of the 98 signal balls of U1, with L2. |
| Laser prepreg L1-L2 | 0.075 mm | ||
| L2 | In1.Cu | 0.018 mm base copper plus plating | GND plane (GND and GND_USB). The escape of the other BGA signals. |
| Prepreg L2-L3 | 0.116 mm | ||
| L3 | In2.Cu | 0.018 mm base copper plus plating | The +1V1 area over the FPGA core. Rail tracks and signals. |
| Core L3-L4 | 0.200 mm | ||
| L4 | In3.Cu | 0.018 mm | Signals |
| Prepreg L4-L5 | 0.200 mm | ||
| L5 | In4.Cu | 0.018 mm | Signals |
| Core L5-L6 | 0.200 mm | ||
| L6 | In5.Cu | 0.018 mm base copper plus plating | Signals and rail tracks. A +3V3_USB plane on the USB side. A +3V3 zone fills the free area. |
| Prepreg L6-L7 | 0.116 mm | ||
| L7 | In6.Cu | 0.018 mm base copper plus plating | GND plane (GND and GND_USB) |
| Laser prepreg L7-L8 | 0.075 mm | ||
| L8 | B.Cu | 0.035 mm (18 µm base copper plus plating) | Parts, signals |
| Bottom solder mask | 0.020 mm |
The total is 1.200 mm. The surface finish is ENIG on all pads. On 24 November 2026, for the first order of 2 boards, the owner accepted 0.5 oz (18 µm) of finished copper on the outer layers, with conditions. Thus L1 and L8 can be thinner than the table shows. The repository has no stack-up from PCBWay yet (27 November 2026). The PCBWay page gives the details of the order.
Design rules and vias
| 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 |
| Mechanical via (V3, V4) | 0.15 mm drill, 0.36 mm pad |
| Copper to board edge | 0.29 mm |
| Hole to copper | 0.2 mm for the mechanical holes, 0.15 mm for the laser vias |
| Via | Layers | Where |
|---|---|---|
| V1 | L1-L2 and L8-L7, laser, filled with copper | In the pad of a BGA ball or of a part |
| V2 | L2-L3 and L7-L6, laser | At the center of four balls, beside its V1, never on a V1 |
| V3 | L3-L6, mechanical, buried | Away from the BGA ball patterns |
| V4 | L1-L8, mechanical, through | Only outside the two BGAs |
Details: PCB and Mechanical design.
Files that are not on this site yet
These files of the board are not on this site:
- the Gerber files
- the drill files
- the placement file
- the KiCad board file
The reason is a rule of the owner: nobody gets the files to build a board before the first boards pass the board test. The owner sets the pass line of the board test before the boards arrive. The suggested pass line includes steps 1 to 5 of phase 4 (bring-up) in the Project plan. On 29 November 2026, no board exists.
These files of the design are on this site now:
- the schematic: all sheets in one PDF file, and each sheet as an SVG file and a PNG file (see Schematics)
- the BOM: the BOM page and the BOM as a CSV file
- the 3D renders of the board (see The board)
- the panel drawing of the PCBWay order
Design changes
These changes between the first plan of 6 November 2026 and the board of 11 November 2026 matter to a reader of the documents:
| Date | Change | Reason |
|---|---|---|
| 8 November 2026 | 6 layers became 8 layers (HDI 1+1+4+1+1). | The signal router did not converge on 6 layers. The area under the DDR3L, with the six transceivers, had more nets than tracks. |
| 8 November 2026 | The DIR polarity of the transceivers changed in the gateware. | The gateware drove ADIR and DDIR with the wrong level. The work on the schematic found the error. DIR low sends the FPGA side to the bus. |
| 9 November 2026 | The board became wider: first a 3 mm overhang, then a 4 mm overhang on each long side (25.34 mm). | Between the pin rows, the long tracks to the socket pins had to cross the escape of the FPGA and the DDR3L tracks. The router could not complete the board. |
| 9 November 2026 | The 256 MB DDR3L became a 2 MB SRAM. | The DDR3L escape of the FPGA blocked the routing. See below. |
| 10 November 2026 | U5 changed from the IS62WV20488FBLL-45BLI to the IS61WV20488FBLL-10BLI. | The first part had no stock. The new part has the same package and a different ball map. |
| 10 November 2026 | New pin numbers for the socket pins, and a new DHVQFN24 footprint. | The socket pin numbers were a mirror image. Each pad of the old DHVQFN24 footprint was one place off. |
The first plan had 256 MB of DDR3L RAM (ISSI IS43TR16128DL, 2 Gbit) with a LiteDRAM controller. The DDR3L escape of the FPGA was the main routing block of the PCB. 13 to 15 nets stayed open. Most of the open nets were DDR3L nets, or FPGA exits next to the DDR3L nets. DeepPCB, a 4 mm overhang and many fan-out tests did not complete the routing.
On 9 November 2026 the owner changed requirement R10 to 2 MB of SRAM. The SRAM needs no refresh, no calibration, no controller IP and no 1.35 V rail. Thus the board lost the 1.35 V buck converter and the VREF divider. On the same day, the router routed all 168 signal nets.
Memory mode 2 uses 1 MB of the 2 MB: 512 KB of ROM and 512 KB of RAM, as RomWBW needs. A load of all 2 MB of the SRAM through the debug port takes an estimated 4 s to 8 s. With 256 MB of DDR3L, the estimate was 5 to 10 minutes.
Details: The SRAM, The DDR3L controller (history) and Requirements.
Detailed documents
The repository has the full design documents. The repository is github.com/avwohl/z80replacement. The site shows these documents as pages:
- Requirements and plan: Requirements, Project plan, Open questions, Prior art
- FPGA and logic: FPGA selection, FPGA pinout, Pin stage, Debugger over USB-C, Z80 control, Console ACIA, The emergency bitstream, Toolchain
- Bus and timing: Bus interface, Bus timing, Z80 clock speeds, Routing study
- Memory: Memory, The SRAM, The DDR3L controller (history), RAM loader
- USB, power and firmware: USB-C and power, Board pins, RP2354A firmware, Recovery
- Schematic, board and parts: The schematic, PCB, Mechanical design, Distributor stock, Cost
- License: Licensing. The hardware files use CERN-OHL-S-2.0. All other files use GPL-3.0-or-later.
The BOM page shows the parts list of the order, and the pricing page shows the costs.
Source of this page: web/ and docs/ in the
z80replacement repository. Hardware: CERN-OHL-S-2.0. Other files: GPL-3.0-or-later.





