z80replacement · a Z80 CPU replacement with an FPGA
The SRAM
the 2 MB SRAM: part, FPGA balls, controller, timing, tests, board
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/sram.md
Memory mode 2 (memory.md) keeps the banked ROM and RAM of a RomWBW system in a 2 MB asynchronous SRAM (U5). This file describes the part, the FPGA balls, the controller, the timing, the tests and the place of the part on the board.
On 9 November 2026 the SRAM replaced the DDR3L (ISSI IS43TR16128DL, 2 Gbit, 256 MB). The DDR3L escape of the FPGA (U1) was the main routing block of the PCB. 13 to 15 nets stayed open, and most of them were DDR3L nets or exits of U1 next to them. DeepPCB, a 4 mm overhang and many fan-out tests did not fix the routing.
The user decided to use the SRAM so that the PCB is routable. Requirement R10 was 256 MB of RAM if the parts fit. R10 is now 2 MB of SRAM. ddr3.md keeps the DDR3L design as history.
STATUS: SIMULATION AND FIT TEST ONLY. No board test is done yet.
The IS61WV20488FBLL-10BLI (10 November 2026)
U5 is now the ISSI IS61WV20488FBLL-10BLI (Mouser 870-61W20488FBLL10BI, 548 in stock on 10 November 2026, $22.10 each). The owner chose this part because the IS62WV20488FBLL-45BLI has no stock (see "Stock and replacements (10 November 2026)" below). The ball map comes from the ISSI data sheet "IS61WV20488FALL, IS61/64WV20488FBLL" (August 2019), read in a browser.
| Item | Value |
|---|---|
| Part | ISSI IS61WV20488FBLL-10BLI (Mouser 870-61W20488FBLL10BI) |
| Size | 16 Mbit, 2M × 8 |
| Supply | VDD 2.4 V to 3.6 V (3.3 V on the module) |
| Access time | 10 ns |
| Operating current | up to 90 mA |
| Package | 48-ball mini BGA, 6 mm × 8 mm, 0.75 mm pitch, ball 0.30 mm to 0.40 mm: the same footprint as before |
| Pins | A0 to A20, I/O0 to I/O7, CS#, OE#, WE#, 2 VDD, 2 GND. The -10BLI has one chip select (CS#). |
The ball map (top view, rows A to H, columns 1 to 6):
A: NC OE# A0 A1 A2 NC
B: NC NC A3 A4 CS# I/O0
C: NC NC A5 A6 I/O1 I/O2
D: VSS NC A17 A7 I/O3 VDD
E: VDD NC NC A16 I/O4 VSS
F: NC NC A14 A15 I/O5 I/O6
G: NC A19 A12 A13 WE# I/O7
H: A18 A8 A9 A10 A11 A20
The differences from the IS62WV20488FBLL map:
- The data balls are B6, C5, C6, D5, E5, F5, F6 and G6 (I/O0 to I/O7). Before, they were C1, D2, E2, F1, C6, D5, E5 and F6.
- A19 is at G2 and A20 is at H6. Before, they were the other way round.
- There is no CS2. Ball A6 is NC and has no connection. The tie of CS2 to
+3V3 is not in
make_sch.pynow. Ball B5 is CS# (net SRAM_CE_N). - The symbol is
z80r:IS61WV20488FBLL(make_lib.py,SRAM_BALLS). The BOM part number is IS61WV20488FBLL-10BLI, maker ISSI.
The FPGA can carry each SRAM signal on each SRAM ball. pin_swap.py ran
again, thus the nets of the 32 SRAM balls of the FPGA changed
(pcb.md, "Pin swap"). The gateware controller (gateware/sram,
RD_CYC 2 and WR_CYC 4 at 25 MHz) did not change: 10 ns is faster than
45 ns, thus the timing margin is larger. The simulation passes again
(mingw32-make test in gateware/sram).
Current: the part takes up to 90 mA. The 3.3 V buck converter (TLV62569, 2 A) supplies the FPGA banks, the flash, the oscillators, the translators and the 2.5 V LDO. 90 mA is 4.5 % of the 2 A limit. The capacitors of U5 stay at 2 × 100 nF and 1 µF on +3V3, close to the VDD balls. A fast SRAM has short current peaks, and these capacitors give the charge.
History (until 10 November 2026): the text below describes the IS62WV20488FBLL-45BLI with two chip selects. It stays as the record of the first design.
The part (history until 10 November 2026: the IS62WV20488FBLL-45BLI)
| Item | Value |
|---|---|
| Part | ISSI IS62WV20488FBLL-45BLI (LCSC C1352595) |
| Size | 16 Mbit, 2M × 8 |
| Supply | VDD 2.2 V to 3.6 V (3.3 V on the module) |
| Access time | 45 ns |
| Package | 48-ball mini BGA, 6 mm × 8 mm, 0.75 mm pitch |
| Pins | A0 to A20, I/O0 to I/O7, CS1#, CS2, OE#, WE#, 2 VDD, 2 GND, 11 NC |
| Fallback | IS61WV20488FBLL (10 ns), same package |
CAUTION: The stock is not known. The LCSC page showed no stock figure. Digikey showed 0 in stock (a tray of 480 pieces, about 13.4 USD, and another seller at about 8.6 USD). Find the stock before the PCB order.
Stock and replacements (10 November 2026)
IS62WV20488FBLL-45BLI is not in stock at LCSC, Digikey, Mouser, Newark, Avnet or TME. Digikey sells only full trays of 480 (13.42 USD each) and does not accept backorders. Avnet gives 84 weeks for the reel of 2500.
A drop-in replacement must have the same ball map in a 6 mm × 8 mm package. The FPGA can swap address lines and data lines among themselves. But a data line cannot move to a ball that is NC on the board. A check compared these parts ball by ball with the official data sheets:
| Part | Ball map | Stock |
|---|---|---|
| IS62WV20488EBLL-45BLI, -55BLI (ISSI) | Same as the board | 0 (LCSC C2065932 and C2064025: pre-sale). Brokers only. |
| AS6C1608B-45BIN, -45BINTR (Alliance Memory) | Same as the board. The ball pitch is not checked. | 0 at Digikey and Future (16 weeks). Avnet possibly 2112, tray of 480. |
| IS61WV20488FBLL-10BLI (ISSI, 10 ns) | Not checked yet | Mouser possibly 548 (a cached page, not checked) |
| IS61WV20488BLL-10MLI, IS62WV20488BLL-25MLI | Different: 9 mm × 11 mm, and 4 data balls on board NC balls | Not a replacement |
| CY62167EV30LL-45BVXI (Infineon, 1M × 16 or 2M × 8) | Different: BYTE#, BHE#, BLE# and the upper data balls | Avnet 8850, Newark 4800, Rochester 2602 |
Thus no drop-in replacement has confirmed stock for 5 to 10 parts. The possible paths are:
- Check the IS61WV20488FBLL-10BLI: the live Mouser stock, and the ball map in the ISSI data sheet "IS61WV20488FALL / IS61/64WV20488FBLL". If both agree, the part is a drop-in with stock.
- Ask PCBWay for a quote with broker stock of a drop-in part (IS62WV20488FBLL, IS62WV20488EBLL or AS6C1608B). A broker part can have a false label or an old date code.
- Change the board to the CY62167EV30LL-45BVXI. This needs a new symbol, new nets on the same 6 mm × 8 mm footprint, and a new routing run.
The ball map
The ball map is in hardware/schematic/make_lib.py (SRAM_BALLS). Until
10 November 2026, the map came from the ISSI IS62/65WV20488 data sheet, read
through a text extract (Rev A5, G2 = A20). A text extract can give wrong
ball positions.
On 10 November 2026, a check compared all 48 balls with the official ISSI data sheet "IS62WV20488FALL/BLL, IS65WV20488FALL/BLL" of May 2020 (page 2, "Pin configurations", in the LCSC copy lcsc.com/datasheet/C1352595.pdf). All 48 balls agree. The footprint agrees with the package drawing (page 14, JEDEC MO-207): pitch 0.75 mm, ball 0.30 mm to 0.40 mm, D1 5.25 mm along rows A to H, E1 3.75 mm along columns 1 to 6. The order number IS62WV20488FBLL-45BLI is on page 13 (45 ns, 2.2 V to 3.6 V, lead-free).
The FPGA balls
- The SRAM uses 32 balls of U1 in banks 3 and 6: 8 data, 21 address, CE#, WE# and OE#.
- Banks 3 and 6 are now 3.3 V (VCCIO3 and VCCIO6 on +3V3). The module has no 1.35 V rail.
- The 32 balls are 32 of the 48 balls that the DDR3L used. The 16 other balls are free. Their DDR3L exits had no hop: the crowded group south of U1 next to socket pin 29, and the north exits.
- No VREF ball is used. The balls J1 and H15 are free.
- Each SRAM ball can carry each SRAM signal.
hardware/pcb/pin_swap.pyhas one pool of the 32 balls. The pin swap cut the straight-line crossings from 592 to 286. - The pin table is in
gateware/top/make_lpf.py.
The board
- U5 is at the place of the old DDR3L: top side, east of U1.
- The footprint is
z80r:ISSI_miniBGA-48_6x8mm_P0.75mm, made bymake_fp.py, with round pads of 0.35 mm. - The symbol is
z80r:IS61WV20488FBLL, made bymake_lib.py. (History: until 10 November 2026 it wasz80r:IS62WV20488FBLL.) - Each connected ball of U5 that is not GND (35 balls) gets a hop: a via in
the pad (V1), a stub on L2, and a via to L3 (V2). A matching picks the hop
centres (
u5_centresinmake_pcb.py). - The IS61WV20488FBLL-10BLI has no CS2: ball A6 has no connection. (History: the IS62WV20488FBLL had CS2 tied to +3V3.)
- Two 10k pull-up resistors hold CS# (net SRAM_CE_N) and WE# (net SRAM_WE_N) high while the FPGA configures.
- The decoupling is 2 × 100 nF and 1 µF.
Parts that the SRAM removed
- The DDR3L (old U5), the 1.35 V buck converter U20 with L3, its divider, its feed-forward capacitor and its capacitors.
- The VREF divider R1 and R2 with its capacitors, and the ZQ resistor.
- The RESET and CKE pull-down resistors, and the CK termination.
- The ferrite beads FB1 and FB2.
- The decoupling of the DDR3L and the +1V35 decoupling of the FPGA.
- The rails +1V35, VREF_DDR, DDR_VDD and DDR_VDDQ.
The board had 158 footprints after this change (it had 185), and has 159 since the third board round of 11 November 2026 (R47 is new). The reference numbers of the later R and C parts, which the tools number automatically, shift. pcb.md and schematic.md describe the board.
The controller
gateware/sram/z80r_mem2_sram.sv replaces LiteDRAM, z80r_mem2_dram.sv
and z80r_dram_init.sv in memory mode 2 (MEM2 at 1). LiteX,
litedram_gen and the LiteX venv are no longer necessary to build a
bitstream.
- The interface is the interface of
z80r_mem2.sv: lines of 16 bytes, write-through, and one FIFO. - The clock is
clk25(25 MHz, 40 ns). The design has no PLL. - All SRAM pins come from registers. CE# is low for a whole access.
- The entries of the FIFO are a byte write (
{1, addr, data}) and a line read ({0, addr, -}). The boot copy writes through a second FIFO. Its bytes go before the entries of the bus side. - The controller reads the 16 bytes of a line one after the other. A line read changes only A3 to A0.
- The data pins never drive while OE# is low.
- The physical address
pahas 20 bits. A20 is low. - The controller alone uses 164 LUT4 and 383 flip-flops.
Timing
| Parameter | Value |
|---|---|
RD_CYC |
2: the controller samples a byte 80 ns after its address |
WR_CYC |
4: /WE is low for 80 ns (tPWE is 35 ns) |
| Write of one byte | 200 ns |
| Fill of one line | 1360 ns |
- A byte is valid 58 ns after the address: 45 ns for the SRAM, 8 ns for the output pad delay and 5 ns for the input pad delay. The sample at 80 ns leaves a margin of 22 ns.
- The address holds for one clock after /WE rises.
WR_CYCis at least 3.
Wait states of a cache miss, measured in tb_mem2 for each line request.
The values include the FIFO and the synchronizer crossings:
| Bus clock | SRAM | DDR3L (history) |
|---|---|---|
| 4 MHz | 9.0 T | 5.1 T |
| 10 MHz | 18.0 T | 8.8 T |
| 20 MHz | 32.2 T | 12.3 T |
Size and speed
Place and route, LFE5U-85F, seed 1, MEM2 at 1: 8251 TRELLIS_COMB, 1872
flip-flops, 18 DP16KD, 87 I/O. The 25 MHz clock reaches 111 MHz. The bus
clock reaches 16.86 MHz. A bus clock of 20 MHz fails, and the same design
with MEM2 at 0 also fails at 18.06 MHz. The SRAM does not cause the
limit.
Tests
cd gateware/sram && mingw32-make test runs these benches:
tb_sram.sv: the controller alone, withsram_model.sv. The model checks the timing of the SRAM and has the pad delays.tb_sram.svwithRD_CYCat 1. This run must fail. The result shows that the model finds a read that is too early.tb_mem2.sv: memory mode 2 with the Z80 core, at 10 MHz, 4 MHz and 20 MHz, with a cache of 64 lines, and with the boot copy (BOOTat 1).
mingw32-make synth in the same folder runs yosys on the controller alone.
Open items
- No I/O register and no timing constraint are on the SRAM pins in nextpnr. The simulation checks the margins only.
- The stock of the part (see "The part").
- The comparison of the ball map with the official data sheet.
- The measurement of the timing on the first board.
- The bus clock of 20 MHz does not meet the timing (see "Size and speed").
Source of this page: web/ and docs/ in the
z80replacement repository. Hardware: CERN-OHL-S-2.0. Other files: GPL-3.0-or-later.