z86: Out-of-Order x86 FPGA Core Running Windows and Linux
A developer created an open-source out-of-order superscalar x86 core based on Intel P6, successfully running Windows NT and Linux on FPGA.

An open-source out-of-order superscalar x86 core had not existed for a long time, despite such processors dominating personal computers for over three decades. Starting in June 2026, a developer built the z86 processor from scratch, modeling it after the Intel P6 architecture. Released under the Apache 2.0 license, this core successfully boots operating systems and runs retro software on modern FPGA hardware.
- The z86 core operates on the ZCU104 board at 150 MHz, successfully booting Windows NT 4.0, Windows 95/98, and 32-bit Linux 6.18.
- It delivers impressive benchmark results, achieving 84.8 FPS in DOOM and 35.2 FPS in Quake, performing on par with a Pentium Pro 200.
- A scaled-down version of the core is also available for the $250 Kria KV260 development board.
Architecture and Out-of-Order Execution
Transitioning from previous in-order cores to z86 required a fundamental architectural redesign. Traditional in-order processors stall the entire pipeline whenever an L1 cache miss occurs or a multi-cycle division takes place. In contrast, the z86 implements a 14-stage machine inspired by the Intel P6, utilizing decoupled front-end, execution engine, and retirement units.
This dynamic scheduling approach unlocks massive Instruction-Level Parallelism (ILP), which is critical for x86 architectures with limited general-purpose registers. By employing register renaming and reorder buffers (ROB), the processor eliminates false data dependencies. This allows independent instructions to execute out-of-order while older instructions wait for slow memory access.
Read alsodamn.academy 0.4.0: browser-based DevOps learning platform with Linux and KubernetesImplementing x86 Complexity on FPGA
Building an out-of-order core for the complex x86 instruction set introduced challenges absent in academic RISC processors. The x86 architecture features variable-length instructions ranging from 1 to 15 bytes, partial register updates, and an 8-level x87 floating-point stack. Handling these CISC intricacies requires robust hardware mechanisms to maintain precise architectural states during exceptions or hardware interrupts.
To ensure correctness, the author relied on a C-based simulator and step-by-step verification against the 86Box emulator, which helped eliminate subtle bugs in both the hardware RTL and the emulator itself. This meticulous engineering enabled stable operation and high frame rates for operating systems and games on Xilinx hardware.
Significance for Developers and Education
The release of an open-source out-of-order IA-32 core fills a major gap in hardware design and computer science education. Previously, algorithms like Tomasulo's and register renaming were taught mostly through textbooks due to the lack of open x86 RTL implementations. The z86 project provides a practical foundation for future open-source FPGA and silicon silicon developments.
Source: Все публикации подряд на Хабре



