Z86 is an open-source, FPGA-based, superscalar out-of-order IA-32 processor intended both to preserve 1990s PC software and to make a real x86 design available for study and further development. Its central argument is that out-of-order execution is not simply a wider in-order pipeline: register renaming removes false dependencies, allowing independent instructions to run while an earlier instruction waits on memory or arithmetic. A reorder buffer still commits results and stores in program order, so faults and branch mispredictions can discard speculative work without corrupting architectural state. The 3-wide core has a variable-length x86 front end, a 40-entry reorder buffer, a 16-entry reservation station, five execution ports, and three writeback buses. Compared with the earlier in-order z486, it achieves about three times the performance per MHz; at 150 MHz, it runs DOOM at 84.8 FPS and Quake at 35.2 FPS, and boots Windows 95, 98 SE, NT 4.0, and 32-bit Linux.
The implementation tackles x86-specific complications such as instruction-boundary decoding, partial-register and flag updates, the x87 register stack, complex instructions, and precise handling of faults and self-modifying code. FPGA-oriented choices include a large BRAM-based branch predictor, DSP-assisted arithmetic, a 512 KiB UltraRAM L2 cache, and clean-room microcode with support for x87 transcendental functions. To validate instruction semantics before debugging speculative hardware, the designer built a sequential C simulator that runs the same micro-ops. It reached DOS and DOOM first, providing an end-to-end test of protected mode and the micro-op instruction set before work returned to the out-of-order RTL.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.