Posts tagged "out-of-order"

1 post

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.

Read more →