Home›Industry News›Open-source out-of-order x86 core runs on FPGA, filling a gap in teaching materials
← Back to Industry News
Open Source

Open-source out-of-order x86 core runs on FPGA, filling a gap in teaching materials

Open SourceOpen-sourceout-of-order x86 coreruns on FPGA, filling…fpga.love
Illustration

Out-of-order x86 processors have dominated PCs for more than three decades, yet there has been no readable, modifiable open-source RTL. z86, under the Apache-2.0 license, boots MS-DOS, Windows 95/98/NT 4.0 and 32-bit Linux on the Xilinx ZCU104 and Kria KV260; the author claims 3x the per-MHz performance of his own in-order core z486.

The architectural gap between in-order and out-of-order

z86 is not a widened z486 pipeline. The author notes that in-order and out-of-order cores are two different machines: x86 has only eight integer general-purpose registers, and false dependencies from compiler reuse of EAX block independent instruction chains. An out-of-order engine uses a register alias table to allocate a private physical slot in the reorder buffer for each write, splitting two chains for parallel execution while still committing in program order. The author claims this mechanism yields a 3x per-MHz performance gain. The real problem is that the bookkeeping hardware is far more complex than the textbook Tomasulo demonstration, and prior open-source FPGA/ASIC CPU work has been almost entirely concentrated on RISC-V, leaving out-of-order x86 RTL absent for a long time.

Write a C simulator first, then return to Verilog

The project started in June 2026; the author first gathered Intel P6 documentation, released z486 in August, and in early September obtained a Dell OptiPlex GXpro (Pentium Pro stepping 0619). In October he paused RTL for three weeks and wrote an in-order functional C simulator, p6.c, executing the same micro-op ISA in order, separating validation of IA-32 protected mode, paging, virtual 8086 and x87 semantic rules from the out-of-order machinery; by early November p6.c was booting MS-DOS and running DOOM under SDL, and the full out-of-order machine was integrated in SystemVerilog within a month. On resources, z86 uses 183.6k LUTs, of which about 16.2k are for PC peripherals, with CPU plus L2 at 167.4k.

RepoCoreQuick start
Illustration

Micro-tests on real silicon

The official manuals leave gray areas on fault priorities, reserved control and debug register bits, and status flag updates for masked x87 exceptions. The author wrote a DOS serial monitor, P6MON.COM, for the GXpro, paired with a USB relay on the reset header, to upload and execute assembly micro-tests on a real Pentium Pro over RS-232, covering real mode, ring 0/ring 3 protected mode, virtual 8086, 4 KiB paging and custom GDT descriptors. This method lets micro-op semantics be checked against hardware before returning to RTL. For those working on high-speed interfaces and boards, the more direct message is that dual-board v0.1 targets both the ZCU104 and the $250 Kria KV260, the latter bringing trial-and-error cost down to the level of a single development board.

Three takeaways
  • z86 is open-sourced under Apache-2.0 and can boot DOS, Win9x and 32-bit Linux on the ZCU104 and KV260
  • The author claims the out-of-order mechanism delivers 3x the per-MHz performance of z486, at a cost of 183.6k LUTs
  • An in-order C simulator validates micro-op semantics first, then the SystemVerilog out-of-order core is integrated

What it means for us

FPGA teams in China will not replace RISC-V solutions with it in the short term: z86 targets 1990s PC preservation and teaching, and its clock speed, interfaces and peripherals do not point at modern boards. Its real value lies in toolchain and methodology—the Apache-2.0 out-of-order x86 RTL can be read and modified directly, filling the classroom gap where only algorithms exist and no RTL does; the p6.c-style in-order simulator plus real-silicon micro-test flow offers lessons for validating homegrown cores. On the supply chain, it does not involve domestic substitution; the KV260 is an off-the-shelf development board, and stable procurement depends on existing channels.

out-of-order x86FPGA coreopen-source RTLmicroarchitecture
fpga.love

Subscribe to fpga.love

Daily Briefing · Weekly Digest · Monthly Deep Dive