z80replacement · a Z80 CPU replacement with an FPGA
Board pins: the RP2354A and the isolators
the RP2354A GPIOs, the isolator channels and the ECP5 balls, for the schematic
Status, 29 November 2026: nobody has built this module yet. The first sample run of 2 boards comes soon. Wait until the project has tested these boards before you send an order or a build request to a factory.
Repository file: docs/board_pins.md
This file is the pin list for the schematic. The list connects the GPIOs
of the RP2354A (U2), the two isolators (U3, U4) and the ECP5 (U1).
firmware/src/board.h has the same GPIO numbers, and
gateware/top/make_lpf.py has the same ECP5 balls. If you change a pin
here, change those two files too.
STATUS: THE TABLE AGREES WITH THE SCHEMATIC AND THE PCB OF THE ORDER
(checked on 29 November 2026). hardware/schematic and
hardware/pcb/z80r.kicad_pcb use the pin assignment of the table below.
check_sch.py compares the schematic with the table (schematic.md).
The boards are in the PCBWay order process (todo.md).
Sources
| Item | Source |
|---|---|
| RP2354A pin numbers | KiCad library MCU_RaspberryPi, symbol RP2350A (the RP2354A symbol extends RP2350A), footprint QFN-60-1EP_7x7mm_P0.4mm_EP3.4x3.4mm |
| RP2350 UART functions | pico-sdk 2.1.1, io_bank0.h: GPIO 8 function 2 is UART1 TX, GPIO 11 function 11 is UART1 RX |
| Si864x pins and channels | Skyworks Si864x data sheet 206329A, 26 July 2022: "Pin Descriptions" and Table 1.1 |
| ECP5 JTAG and DONE balls | Lattice ECP5U-12 pinout v2.1 (FPGA-SC-02032), csfBGA285 column |
| ECP5 user balls | gateware/top/make_lpf.py (fpga_pinout.md) |
The eight isolator signals
Side 1 of each isolator is the USB side (pins 1 to 8). Side 2 is the Z80 side (pins 9 to 16). "A1 to B1" is a forward channel, from the RP2354A to the FPGA. "A4 from B4" is a reverse channel, from the FPGA to the RP2354A.
| Signal | GPIO | U2 pin | GPIO function | Isolator channel | Side 1 pin | Side 2 pin | ECP5 ball | ECP5 port |
|---|---|---|---|---|---|---|---|---|
| TCK | 0 | 2 | SIO | U3 Si8641, A1 to B1 | 3 | 14 | U13 | TCK (dedicated) |
| TMS | 1 | 3 | SIO | U3 Si8641, A2 to B2 | 4 | 13 | V13 | TMS (dedicated) |
| TDI | 2 | 4 | SIO | U3 Si8641, A3 to B3 | 5 | 12 | T13 | TDI (dedicated) |
| TDO | 3 | 5 | SIO | U3 Si8641, A4 from B4 | 6 | 11 | V14 | TDO (dedicated) |
| Console input | 8 | 12 | UART1 TX (function 2) | U4 Si8642, A1 to B1 | 3 | 14 | N15 | uart_rx |
| /CORE_RESET | 9 | 13 | SIO | U4 Si8642, A2 to B2 | 4 | 13 | N17 | core_rst_n |
| DONE | 10 | 14 | SIO | U4 Si8642, A3 from B3 | 5 | 12 | U15 | DONE (dedicated) |
| Console output | 11 | 15 | UART1 RX (function 11, UART_AUX) | U4 Si8642, A4 from B4 | 6 | 11 | N16 | uart_tx |
Why these GPIOs
In the placement study (hardware/placement_study), U2 is on the bottom
side. Pins 1 to 15 of U2 face the isolators. GPIO 0 to 3 (pins 2 to 5) are
across from U3, and GPIO 8 to 11 (pins 12 to 15) are across from U4. Each
GPIO goes to the isolator pin in the same position, so no trace crosses
another trace.
The Si8642 has its forward channels on A1 and A2. Thus the console UART
cannot use one GPIO pair of the UART function, for example GPIO 8 and 9.
UART1 gets TX from the UART function of GPIO 8, and RX from the UART_AUX
function of GPIO 11. The firmware sets both functions with the
UART_FUNCSEL_NUM macro of the pico-sdk. The JTAG pins use plain GPIO
writes, so any GPIO is correct for them.
GPIO 4 to 7 and GPIO 12 to 29 are free.
The ECP5 side
- TCK, TMS, TDI and TDO are dedicated balls in bank 40. The pinout file of the csfBGA285 has no VCCJ ball. The ECP5 sysIO usage guide (TN1262) gives VCCIO8 as the supply of the JTAG balls: 3.3 V, the same as VDD2 of U3.
- DONE (U15) is a dedicated configuration ball in bank 8. DONE also needs the pull-up of the ECP5 hardware checklist.
- N15, N16 and N17 are plain 3.3 V balls in bank 8. The layout can swap
these three balls. After a swap, change
make_lpf.py. - The JTAG balls are in columns 13 and 14, and U3 is at the low-y side of the FPGA. Thus the side 2 traces of U3 go about 5 mm along y. At a TCK of 6 MHz, this length has no effect.
The isolator parts
| Ref | Part | Default output |
|---|---|---|
| U3 | Skyworks Si8641BB-B-IU | low |
| U4 | Skyworks Si8642EB-B-IU | high |
The default output is the output state when the input side of a channel has no power. The module normally operates with no USB cable. Then side 1 of each isolator has no power, and each forward channel sends its default state to the FPGA.
CAUTION: DO NOT USE THE Si8642BA FOR U4. With the Si8642BA, /CORE_RESET is low when the module has no USB cable. The FPGA then holds the CPU core in reset, and the module does not operate in the Z80 system.
The Si8642EB has the same pins, channels and speed as the Si8642BA. The Si8642EB has an isolation rating of 2.5 kV (1.0 kV for the Si8642BA). The default output is different:
- No USB cable: /CORE_RESET is high and the console input is high (idle). TCK, TMS and TDI from U3 are low and do not change, so the ECP5 TAP stays in its state.
- No power on the Z80 side: DONE and the console output are high at the RP2354A, and TDO is low. The firmware reads an IDCODE of all 0 and reports no power (usb_power.md). A high console output is the idle state, so the RP2354A UART receives no false bytes.
Other connections
- Enable pins. Connect EN1 (pin 7) of U3 and U4 to VDD1 (USB 3.3 V), and EN2 (pin 10) to VDD2 (Z80 side 3.3 V). The data sheet recommends a fixed level on an enable pin that the design does not use.
- Ground pins. Connect pins 2 and 8 to GND1, and pins 9 and 15 to GND2. The data sheet requires all four.
- Pull-ups at the RP2354A. Connect 4.7 kΩ from GPIO 8 and from GPIO 9 to the USB 3.3 V. After a reset, each GPIO pad has its pull-down on until the firmware sets the pin. Without a pull-up, a USB cable that you connect to an operating Z80 system resets the CPU core. The isolator inputs of the Si8642EB have pull-ups of about 2 µA only, which is too weak against the pull-down of the pad.
- eFuse. GPIO 12 drives EN of the eFuse U22 (EFUSE_EN), and GPIO 13 reads its open-drain fault output (EFUSE_FLT_N). The board has no pull-up resistor on EFUSE_FLT_N: the firmware must turn on the pull-up of GPIO 13.
- BOOTSEL. The RP2354A starts its USB boot loader when QSPI_SS
(pin 60) is low at reset. The firmware starts the boot loader on the
DirtyJTAG
GOTOBOOTLOADERcommand. For a board with bad firmware, the button SW1 connects QSPI_SS to GND through 1 kΩ, as on the Pico 2 (recovery.md).
| U2 pin | Name | Connection |
|---|---|---|
| 51, 52 | USB_DM, USB_DP | USB-C (J1), through the ESD diodes (D1) |
| 21 | XIN | 12 MHz oscillator (X2) |
| 22 | XOUT | no connection (XIN has an oscillator, not a crystal) |
| 24, 25 | SWCLK, SWDIO | test pads |
| 26 | RUN | as in the Raspberry Pi "Hardware design with RP2350" guide |
| 55 to 60 | QSPI | the flash in the package, see BOOTSEL above |
| 44 to 50, 53, 54 | supplies and the regulator | as in the hardware design guide; L4 is the inductor of the core regulator |
Items to check before the order
- Compare the RP2354A pin numbers with the pin table in the RP2350 data sheet. The KiCad symbol is the only source of this list.
- Done (11 November 2026): the stock of the isolators. The Si8642EA-B-IU has no stock, and the BOM has the Si8642EB-B-IU (Mouser 1,077). The BOM has the Si8641BB-B-IU (Mouser 25,273) in place of the Si8641BA-B-IU. See bom_stock.md.
- Read the RP2350 hardware design guide for RUN, XOUT and the regulator.
Source of this page: web/ and docs/ in the
z80replacement repository. Hardware: CERN-OHL-S-2.0. Other files: GPL-3.0-or-later.