Building z86: Lessons from Implementing an Out-of-Order x86 CPU on FPGA
My previous x86 cores, z386 and z486, were built primarily for retro gaming on FPGA. z86 and its companion PC platform z86_pc are a bit different. They certainly serve 1990s PC preservation (running DOOM at 85 FPS, Quake at 35 FPS, and booting Windows 95, 98 SE, and NT 4.0 on live hardware), but they also aim to fill a gap: there has never been an open-source superscalar out-of-order x86 CPU core, even though out-of-order x86 processors became mainstream more than 30 years ago and still dominate modern PCs. Universities teach Tomasulo's algorithm, register renaming, and reorder buffers out of textbooks without real x86 RTL to inspect or modify, and open-source FPGA/ASIC CPU work has focused almost entirely on RISC-V. My hope is that an Apache-2.0, Linux-booting out-of-order IA-32 implementation can serve both as a teaching artifact and as a practical foundation for future open-source FPGA or chip projects.
The project started in June 2026, when I began collecting Intel P6 materials (the Intel IA-32 Software Developer's Manuals, Shen & Lipasti's Modern Processor Design, P6 patents, and community microcode notes). After releasing z486 in August, a vintage Dell OptiPlex GXpro (Pentium Pro stepping 0619) arrived on my desk in early September. Over the next three months, the project grew into a dual-board v0.1 release targeting both the Xilinx ZCU104 and the $250 Kria KV260.
This post discusses the architectural mechanisms, engineering challenges, and lessons from taking an out-of-order x86 CPU from blank slate to booting MS-DOS, Windows 95/98/NT 4.0, and 32-bit Linux on FPGA.
z86_pc v0.1: Quake (35.2 FPS @ 150 MHz), Windows NT 4.0 Workstation, SpeedSys 4.78, and 32-bit i686 Linux 6.18 running CoreMark-PRO.1. In-Order and Out-of-Order Are Very Different Animals
Moving from z486 to z86 is not a matter of widening a pipeline or adding a few more ALUs. In-order and out-of-order processors are fundamentally different machines.
z486is a classic 5-stage in-order pipeline. Every instruction marches lockstep from fetch to writeback. When a load misses L1 cache or a multi-cycle x87 divide starts, the entire pipeline simply stalls until the result returns. Control is centralized, state is small, and there is no speculative architectural state to unwind.- A P6-class CPU is a 14-stage out-of-order machine composed of three loosely coupled pipelines joined by queues and buses: an in-order front end (fetch, variable-length decode into
µops, register rename, and resource allocation), an out-of-order execution core (reservation station wakeup/select, multi-port dispatch, and dataflow writeback), and an in-order retirement engine (reorder buffer commit, fault/branch recovery, and senior store release).
Dynamic scheduling buys huge real-world performance—especially on x86, where compilers only have eight integer GPRs and memory latency dominates.
| Dimension | z486 |
z86 (Full profile) |
|---|---|---|
| Pipeline | 5-stage in-order | 3-wide (4-1-1) OOO |
| Bookkeeping | None | 40-ROB, 16-RS, 5 ports, 3 WB |
| x87 FPU | 53-bit x87 | Full 80-bit (86b datapath) |
| Caches | L1 only | 16K/16K L1 + 512K URAM L2 |
| PC Footprint | 21.9k CPU ALMs |
183.6k PC LUTs |
| Per-MHz IPC | 0.33 DMIPS/MHz |
1.03 DMIPS/MHz |
| DOOM / Quake | 31.3 / 6.8 FPS |
84.8 / 35.2 FPS (150 MHz) |
And x86 heaps extra complexity onto out-of-order execution compared with textbook RISC:
- Variable-length instructions (
1–15bytes) that cross 16-byte fetch boundaries and require parallel length decoding before steering. - Partial-register aliasing (
AL/AH/AX/EAX) and splitEFLAGS(CFvs.OSZAP)—naive renaming stalls constantly on partial updates. - An 8-deep x87 register stack (
ST(0)–ST(7)) whereFXCHswaps stack pointers rather than moving 80-bit data. - Complex CISC instructions, split stores (
STA/STD), and Self-Modifying Code (SMC) that must remain strictly precise when a page fault (#PF) or hardware interrupt hits mid-stream.
2. How Does x86 Out-of-Order Execution Work?
If you want the full stage-by-stage breakdown of the P6 pipeline, I have written up the detailed pipeline overview on the wiki at P6 Pipelines. Alongside Shen & Lipasti Chapter 7 and Intel's P6 patents, Martin Hinner's P6 Microcode Wiki is also an extraordinary resource documenting many of the concrete mechanisms and internal data structures (micro-op encodings, register aliases, MAR macros, and sequencer flows).
At a high level, z86 follows the same three-pipeline split—turning variable-length x86 instructions into fixed-format internal micro-ops (µops) so the out-of-order engine never has to see CISC encoding quirks:
z86 (Z86_PROFILE_FULL) microarchitecture: 4-1-1 parallel decode, 3-wide rename/retire, 40-entry ROB, 16-entry 5-port RS, 16-LB / 12-SB MOB, 86-bit x87 FPU, and 512 KiB URAM L2.- In-Order Front End: Fetches 16-byte blocks from the L1 I-cache into a 3-half
48Binstruction stream buffer, computes instruction lengths in parallel (16B/clk), and feeds a4-1-1decoder (D0handles complex instructions up to 4µops or hands off to the Microcode SequencerMSROM;D1andD2handle single-µopinstructions in parallel). - Rename, Allocate & Out-of-Order Core: Up to 3
µops/cycle pass through the integer RAT and floating-point fRAT, receive a Reorder Buffer (ROB) slot as their physical destination (PDst), and enter the Reservation Station (RS) alongside load/store buffer slots in the Memory Order Buffer (MOB). Readyµops dispatch out of order across 5 execution ports (P0–P4)—with stores split into Store-Address (P3) and Store-Data (P4)—and broadcast results back over 3 writeback buses. - In-Order Retirement: The retirement unit scans the oldest 3 ROB entries in program order, copies committed results into the Retirement Register File (
RRF), checks for faults or branch mispredictions (rolling back speculative state cleanly), and promotes committed stores into senior stores that drain to the L1D/L2 cache hierarchy.
Again, the core is fully open source, so anyone interested in the details is encouraged to read the RTL directly. For readability, many source files are annotated with the relevant US patent numbers, Shen & Lipasti section references, and pipeline stage numbers (such as 31, 92, etc.)—though out-of-order hardware is still inherently messy.
Where z86 Intentionally Adapts for UltraScale+ FPGAs
While inspired by P6's structure, z86 also exploits modern FPGA silicon primitives where they pay off:
- BRAM-backed branch prediction: Instead of P6's 512-entry BTB,
z86uses a2,048-entry 4-way BRAM BTB, an8,192-entry BRAM Gshare/Tournament predictor with checkpointed 11-bit global history, an 8-entry loop predictor, and a 16-entry return stack—costing almost no logic LUTs. - Zero-upper partial-register elision: Tracking known-zero upper bytes in the RAT (
spec_hi*_zero) plus partial-register ALU/load merge eliminates almost all x86 partial-register stalls without complex mergeµops. - DSP Prescaled Radix-128
FDIV: Using three FPGA DSP blocks to retire 7 quotient bits per clock completes 64-bitFDIVin13–14.5cycles (2.6×faster than a real Pentium Pro!), paired with Radix-4FSQRTand Radix-16 integerDIV(3.3×faster). - URAM L2 Cache: A
512 KiB4-way URAM288 L2 cache with 4 MSHRs and an 8-entry stride prefetcher costs only3,802LUTs. - 100% clean-room open-source microcode (
microcode/): Unified@inst(fast decode) and[MS](microcode sequencer) symbolic assembly across 12.asmfiles (1,526triads) plus a Python Remez/Chebyshev floating point ROM (FPROM) generator achieving< 0.75 ULPaccuracy across all 8 IA-32 x87 transcendentals.
3. The Sequential C Simulator (p6.c): Proving µops Before Speculation
One key decision was pausing RTL work for three weeks in October to build a fast, sequential functional C simulator (p6.c). Why take a three-week detour when we already had a real-mode out-of-order CPU booting MS-DOS on the KV260 in early October?
Because IA-32's full system architecture—Protected Mode descriptor checks, call/task/interrupt gates, Virtual-8086 mode, paging, and x87—has thousands of semantic rules. Trying to implement and debug all of those directly inside a 3-wide speculative core was simply too inefficient. p6.c was created to separate those two problems. It executed the exact same micro-op ISA sequentially, with no OOO machinery (RAT, RS, ROB, speculative fetch, or caches), and validated every micro-op strictly by opcode, fields, aliases, and explicit processor state.
TODO: add p6.c screenshot running doom
By early November, p6.c booted MS-DOS and started DOOM in SDL—proving the micro-op architecture end-to-end before returning to Protected Mode Verilog work. With the micro-op semantics proven, the full out-of-order machine—including Protected Mode, VM86, Paging, and the 86-bit x87 FPU—came together and was debugged in SystemVerilog within a month.
4. Live Experiments on the Pentium Pro
The vintage Dell OptiPlex GXpro (Pentium Pro stepping 0619) that arrived in early September turned out to be worth its weight in gold for two reasons.
4.1 Pinpointing Subtle IA-32 & µop Semantics on Real Silicon
Even the official Intel manuals leave grey areas around fault priorities, reserved control/debug register masks (DR6, DR7, LMSW, CR4), x87 masked-exception publication, LOCK read-modify-write #PF error codes (W=1), and narrow shift/rotate flag behavior. Early on, I wrote a lightweight DOS serial monitor (P6MON.COM) for the GXpro—paired with a USB relay on its reset header—so we could upload and execute targeted assembly micro-tests directly on real Pentium Pro silicon over RS-232 in real time.
p6mon takes over the machine with private IDTs and a dedicated 64 KiB test arena, letting the host Python client configure Real Mode, Protected Mode (CPL0 or CPL3, independent 16/32-bit CS.D/SS.B), Virtual-8086 mode, optional 4 KiB paging (map-page), and custom GDT descriptors (descriptor) before running any flat NASM snippet to INT 0x60 (or capturing the exact hardware exception frame). A typical probe takes less than a second end-to-end:
; probe.asm — test a protected-mode instruction sequence and return via INT 60h
bits 32
org 0
mov eax, 0x12345678
add eax, 1
mov [0x2000], eax
int 0x60
# Configure a read-only paged alias or custom descriptor, run on live GXpro, and capture state:
$ python3 client.py map-page 0 0x4000 --read-only
$ python3 client.py run probe.bin --mode pm32 --ss32 --paging --eax 0x12345678 --journal run.jsonl
{
"classification": "normal",
"result": {
"eip": 14, "eflags": 2, "vector": 96, "error": 0,
"cr0": 2147483665, "cr2": 0,
"registers": { "eax": 305419897, "ebx": 0, "ecx": 0, "edx": 0, "esp": 65520 }
}
}
The other key job of p6mon was clarifying and discovering P6 µop semantics directly on hardware. Building on the community's microcode tooling (utools by Rudolf Marek) and P6 µop documentation by Martin Hinner and Peter Bosch, we could upload small, reviewed microcode test patches on the GXpro and invoke them via a custom CPUID leaf. Instead of guessing how an unknown µop works, we could isolate a single micro-op or control field, sweep its inputs over RS-232, and read back exact hardware outputs—resolving questions such as operand- and address-size alias rules, privilege, CRBUS and PSELECT predicates, x87 packet transport and rounding controls, fault behavior, and many more.
Edge cases we pinned down on the GXpro went straight into our regression suites—first validating p6.c, and later validating z86's RTL and clean-room open microcode.
4.2 Timing Data & Hardware PMU Tuning
The other payoff was performance profiling. Having a real Pentium Pro on the desk let us measure exact instruction latencies (p6_timing kernels) and per-MHz DOS benchmark baselines (DOOM, Quake, 3DBench, PC Player, Chris's 3D) on real hardware.
When z86 first booted Quake on ZCU104, it was only running at ~65% of the GXpro's per-MHz speed (11.4–13.5 FPS at 79 MHz). Performance counters revealed that the backend was starving because IDQ_EMPTY was 34%–42% of all cycles! Targeted optimizations to the Instruction Stream Buffer, RAT, and L1D cache lifted Quake performance by 40% to 18.9 FPS at 79 MHz, matching or beating the real Dell GXpro per MHz across all 7 DOS benchmarks.
5. RTL: From Real Mode to Protected Mode, Paging, and VM86
Just like z386 and z486, the RTL was brought up incrementally along the natural x86 complexity ladder:
- Real Mode: Starting from a tiny Python clocked model (
Sept 11–13), the first SystemVerilog OOO core booted MS-DOSCOMMAND.COMin Verilator on Sept 19 and booted live on the Kria KV260 on Oct 7 (78.95 MHz, running DOS, 3DBench, SysInfo, and Landmark), followed immediately by VIPT L1 and non-blocking L2 caches (Oct 8). - Protected Mode, Segmentation, Events, Gates & Task Switching: 16-entry segment descriptor cache,
CS.D/SS.B32-bit execution, privilege levels (CPL 0–3), IDT delivery, ring stack switches, call gates, TSS hardware task switching, andDR0–DR7debug registers. - Virtual-8086 Mode:
CR4.VME/PVI, TSS I/O permission bitmaps—unlocking DOS extenders (DOS/4GW) and 32-bit DOOM. - IA-32 Paging & Self-Modifying Code:
64-entry +8-PSEITLBandDTLB,1,024-entryL2 TLB, hardware Page Miss Handler (PMH, 4 KiB & 4 MiB PSE,PGE,CR0.WP), split-page unaligned MOB accesses,INVLPG, and P6-style SMC snooping—closing100 MHzon ZCU104 (173.9kLUTs) with live DOOM sign-off. - Complete 86-bit x87 FPU: All 140 forms,
fRATstack renaming, 80-bit/BCD memory transfers,FSAVE/FRSTOR, transcendentals, and transparent numeric assists. - Clean-Room Open Microcode: The
z86microcode is written from scratch, implementing all IA-32 + x87 instructions and routines in clean-room Apache-2.0 custom assembly (1,526triads) +< 0.75 ULPRemezFPROM.
6. Verification: Lockstep Co-Simulation, Portable Snapshots, and a Hardware Debugger
In addition to directed unit tests and single-step instruction suites like in z386 and z486, two techniques became vital in verifying z86 across the finish line: lockstep co-simulation and live on-chip hardware debugging.
6.1 Full-System Lockstep --cosim Against 86Box
In the late stage of developing z486, I added full-system lockstep co-simulation (--cosim) against 86Box's CPU core. For z86, it became our main workhorse for hunting down subtle ISA, paging, and OS bugs. Because there is surprisingly little practical documentation online about how to build lockstep co-simulation for debugging CPUs, I wrote up the general technique and snapshot architecture on a wiki page: Lockstep Co-Simulation for Debugging CPUs.
The co-simulation harness lives in the z86_pc repository. The general idea is simple: CPU bugs are hard to track down because the crash site is often millions of cycles later than the actual mistake. Instead of chasing the crash, we check CPU state directly by running the RTL CPU in lockstep with a known-good reference—here, the 86Box emulator. The wiki page covers the full architecture and portable snapshot mechanism.
Every divergence is triaged against the Intel IA-32 SDMs and live Pentium Pro behavior into three buckets: a real z86 RTL/microcode bug, a real 86Box emulator bug (patched cleanly in sim/cosim_patch.py—we actually caught missing CMOV read-before-select faults, CMPXCHG mismatch writebacks, LAR/LSL descriptor rules, and P6 DR6/DR7/LMSW masks in 86Box), or an architecturally undefined/P6-specific bit.
6.2 Adding the Hardware Debugger
As good as --cosim is, Verilator runs at tens of kHz—more than a thousand times slower than a 100–150 MHz FPGA. When we moved on to 32-bit i686 Linux 6.18, Windows 98 SE, and Windows NT 4.0 Workstation, we ran into bugs that only manifested 30–60 seconds into a live boot on 64–128 MiB of RAM, or under live IRQ/VGA timing. Waiting hours in Verilator to reach them was painful.
So late in the project, I finally built a lightweight on-chip hardware debugger (z86-dbg, ~470 LUTs, 1 BRAM36—just 0.2% of the ZCU104). In hindsight, I should have added it on day one.
The debugger uses Xilinx UltraScale+'s dedicated BUFGCE (CE_TYPE="SYNC") primitive to gate clk_cpu glitch-free right at the clock root—zero logic overhead on any CPU critical path. Before dropping BUFGCE.CE, a small AXI4 quiesce shim drains any in-flight DRAM bursts so the ZynqMP interconnect never wedges, while z86_hw_debug and the AXI-Lite control registers stay on the always-running aclk so the Linux host remains completely responsive while the entire x86 PC is frozen in time.
From the ZCU104 Linux shell, you get instant live inspection:
z86-dbg halt # AXI4-safe clock-gated freeze
z86-dbg regs # GPRs, EIP, EFLAGS, segments, CR0-CR4
z86-dbg pipe # IFU, ROB, RS, MOB, PMH, L1/L2 stall state
z86-dbg trace 32 # 512-entry BRAM retired-PC / event ring
z86-dbg stepi # single-step 1 retired macro-instruction
z86-dbg bp 0 0008:fe546654 # hardware CS:EIP breakpoint
z86-dbg watchdog 50000000 ign_hlt # auto-freeze on pipeline deadlock
7. Evaluations
7.1 Methodology
All FPGA numbers below are measured on ZCU104 (Z86_PROFILE_FULL) and Kria KV260 (Z86_PROFILE_LITE) using the v0.1 bitstreams:
| Platform | Profile | CLB LUTs | FFs | RAMB36 eq. | URAM288 | DSP48E2 | Worst-Case Fmax |
|---|---|---|---|---|---|---|---|
ZCU104 (XCZU7EV) |
Z86_PROFILE_FULL |
183,627 (79.7%) |
62,071 |
125.0 / 312 |
24 / 96 |
23 |
108.1 MHz |
Kria KV260 (XCK26) |
Z86_PROFILE_LITE |
94,513 (80.7%) |
46,209 |
109.0 / 144 |
16 / 64 |
20 |
111.8 MHz |
Both bitstreams also run stably at 150 MHz at room temperature via z86-run --clock 150. Real-hardware DOS reference medians are from Phil's Ultimate VGA Benchmark Database; Linux benchmarks were compiled with GCC 14.3 (-O2 -march=pentiumpro -mfpmath=387 -mno-mmx -mno-sse) and executed live under 32-bit i686 Linux 6.18.54-z86 (128 MiB RAM).
7.2 Performance vs. Historical x86 CPUs & Linux
At 150 MHz, z86 LITE on the $250 KV260 sits between a Pentium 100 and a Pentium 133, while z86 FULL on ZCU104 runs close to a Pentium Pro 200 (matching or beating it on VGA-heavy 3DBench, PC Player, and DOOM, while Quake reflects pure CPU + x87 throughput):
FULL) and Kria KV260 (LITE) DOS benchmarks at 100 and 150 MHz vs. Phil's VGA Database medians, plus live 32-bit i686 Linux 6.18 scores.| System / CPU | Clock | 3DBench 1.0c | PC Player (320×200) |
DOOM demo3 (MAX) |
Quake demo1 (320×200) |
|---|---|---|---|---|---|
| i486DX4-100 (median) | 100 MHz |
62.6 |
15.8 |
36.4 |
9.4 |
z86 LITE (KV260) |
100 MHz |
66.1 |
24.4 |
37.0 |
13.0 |
| Intel Pentium 100 (median) | 100 MHz |
91.3 |
27.5 |
54.2 |
23.0 |
z86 LITE (KV260) |
150 MHz |
99.4 |
36.4 |
54.8 |
19.3 |
| Intel Pentium 133 (median) | 133 MHz |
101.2 |
31.5 |
50.7 |
24.2 |
z86 FULL (ZCU104) |
100 MHz |
99.8 |
40.0 |
57.7 |
23.8 |
| Intel Pentium 166 (median) | 166 MHz |
113.5 |
34.8 |
65.3 |
28.1 |
z86 FULL (ZCU104) |
150 MHz |
150.0 |
59.8 |
84.8 |
35.2 |
| Intel Pentium Pro 200 (median) | 200 MHz |
144.0 |
60.1 |
71.2 |
41.9 |
Live 32-bit i686 Linux 6.18 benchmarks on ZCU104 (Z86_PROFILE_FULL, 128 MiB RAM):
| Benchmark | 100 MHz |
150 MHz |
Per-MHz (150 MHz) |
|---|---|---|---|
CoreMark 1.01 (-O2, CRC validated) |
253.79 |
383.34 |
2.56 / MHz |
| CoreMark-PRO Overall (9/9 workloads) | 65.31 |
98.04 |
0.65 / MHz |
| ↳ Integer (5 workloads) / FP (4 workloads) | 67.08 / 63.17 |
101.20 / 94.24 |
0.67 / 0.63 |
| Dhrystone 2.1 (DMIPS) | 101.8 |
153.8 |
1.03 DMIPS/MHz |
| Whetstone (Double x87, MWIPS) | 66.7 |
100.0 |
667 KWIPS/MHz |
LINPACK (Double x87 N=200, MFLOPS) |
29.63 |
44.70 |
0.298 FLOP/clk |
7.3 Comparison Against Open-Source x86 FPGA Cores
Compared to prior open-source x86 FPGA cores, z86 delivers 3×–5× the per-MHz integer performance of in-order z486 and ao486, 4.0× the DOOM frame rate of ao486, and 4.3×–5.2× the Quake frame rate of z486 / z486 XL:
z86 (LITE & FULL) vs. open-source FPGA x86 cores (ao486, z386, z486, TetriumSX, z486 XL) with real Pentium Pro 200 reference lines.| Processor | Pipeline & FPU | Target FPGA | Area | Clock | DMIPS/MHz | 3DBench | DOOM demo3 |
Quake demo1 |
|---|---|---|---|---|---|---|---|---|
| ao486 (MiSTer) | 486SX in-order, no FPU | Cyclone V | 15.2k CPU ALMs |
90 MHz |
0.19 |
43.6 |
21.0 FPS |
— |
| z386 (MiSTer) | 80386 microcoded, no FPU | Cyclone V | 15.5k CPU ALMs |
85 MHz |
0.23 |
34.0 |
23.0 FPS |
— |
| z486 (MiSTer) | 486DX in-order + 53-bit x87 | Cyclone V | 21.9k CPU ALMs |
85 MHz |
0.33 |
53.1 |
31.3 FPS |
6.8 FPS |
| z486 XL (KV260) | 486DX in-order + 53-bit x87 + L2 | UltraScale+ XCK26 |
50.3k PC LUTs |
100 MHz |
— | 65.1 |
38.5 FPS |
8.1 FPS |
| TetriumSX (MiSTer) | High-IPC 486SX in-order, no FPU | Cyclone V | 18.5k CPU ALMs |
69 MHz |
— | 100.1 |
37.5 FPS |
— |
z86 (LITE) |
1-dec/2-issue OOO IA-32 + 80-bit x87 | UltraScale+ XCK26 |
94.5k PC LUTs |
100 / 150 MHz |
0.52 |
66.1 / 99.4 |
37.0 / 54.8 FPS |
13.0 / 19.3 FPS |
z86 (FULL) |
3-wide OOO IA-32 + 80-bit x87 | UltraScale+ XCZU7EV |
183.6k PC LUTs |
100 / 150 MHz |
1.03 |
99.8 / 150.0 |
57.7 / 84.8 FPS |
23.8 / 35.2 FPS |
7.4 How Does an OOO x86 Compare to Open-Source OOO RISC-V on FPGA?
It is also interesting to place z86 next to Linux-capable, hardware-FP open-source out-of-order RISC-V cores on UltraScale+ FPGAs. Despite carrying variable-length CISC decode, microcode, segmentation, and an 80-bit x87 FPU, z86's higher FPGA clock rate puts its effective FPGA CoreMark roughly in line with academic OOO RISC-V cores like SonicBOOM (while trailing huge commercial ASIC-targeted cores like OpenC910):
| Core | ISA & FPU | Issue Width | Target FPGA | LUTs | FPGA Clock | CoreMark/MHz | Effective FPGA CoreMark |
|---|---|---|---|---|---|---|---|
z86 (LITE) |
IA-32 + 80-bit x87 | 1-decode / 2-issue | XCK26 |
78.3k (CPU+L2) |
100–150 MHz |
1.70* |
~170–255 |
z86 (FULL) |
IA-32 + 80-bit x87 | 3-wide (4-1-1) |
XCZU7EV |
167.4k (CPU+L2) |
100–150 MHz |
2.56–2.83* |
254 @ 100 / 383 @ 150 |
SonicBOOM Small |
RV64GC + IEEE F/D | 1-wide | ZCU106 |
~96k |
50–75 MHz |
2.41 |
~120–180 |
SonicBOOM Medium |
RV64GC + IEEE F/D | 2-wide | ZCU106 |
~144k |
50–75 MHz |
3.90 |
~195–290 |
SonicBOOM Large |
RV64GC + IEEE F/D | 3-wide | ZCU106 / VU9P |
~238k |
50–75 MHz |
4.9–5.0 |
~245–375 |
OpenC910 (XuanTie C910) |
RV64GC(V) + IEEE F/D | 3-wide (12-stage) | VU9P / VCU128 |
~670k |
~50–100 MHz (2.5 GHz ASIC) |
4.9–7.1 |
~250–710 |
*z86 CoreMark/MHz: 2.56 is live -O2 on i686 Linux (254 @ 100 MHz, 383 @ 150 MHz); 2.83 (FULL) and 1.70 (LITE) are bare-metal -O3 RTL simulation.
Try It Yourself
Both repositories are open source under the Apache 2.0 license:
- CPU RTL & open-source microcode:
github.com/nand2mario/z86 - Full PC SoC, Verilator/SDL2 simulator & FPGA bitstreams:
github.com/nand2mario/z86_pc - Universal SD card image (
42 MiB, boots both ZCU104 and Kria KV260):z86_pcReleases - No FPGA? Clone
z86_pc --recursiveand runmake sim DISK=your_disk.imgto boot interactively in Verilator + SDL2.
Big thanks to the 86Box, ao486 / MiSTer, and x86 microcode research communities (especially Martin Hinner, Rudolf Marek, and Peter Bosch) whose work and documentation made a project like this possible.
Comments