HeadlinesBriefing favicon HeadlinesBriefing.com

z386 Brings Original Intel Microcode to Open-Source FPGA

Hacker News •
×

A new open-source FPGA implementation of the Intel 80386 called z386 can now run real software including DOS 6/7, protected-mode applications, and classic games like Doom. Built around recovered original microcode, the project follows the same approach as the earlier z8086 effort but tackles the significantly more complex 386 architecture.

The z386 project reconstructs the original 386's eight major functional units: prefetch, decode, microcode sequencer, ALU/shifter, segmentation, protection, paging, and cache/memory interface. Unlike modern pipelined designs, the 386 operates as multiple overlapping state machines processing up to six instructions simultaneously. The implementation uses FPGA-friendly shortcuts like DSP blocks for multiplication while preserving the 37-bit-wide, 2,560-entry microcode ROM structure.

Performance metrics show z386 completing roughly 8K lines of code versus ao486's 17.6K, achieving 85MHz clock speed with Doom running at 16.5 FPS. The design successfully boots real protected-mode DOS software after four months of development work, demonstrating that original microcode-driven CPU reconstruction is viable for both education and practical applications.

This achievement matters because it provides an authentic reference implementation for studying historical CPU microarchitecture while offering a working platform for retro computing enthusiasts. The project fills gaps left by Intel's original documentation and creates a foundation for understanding pre-RISC processor design decisions that shaped modern computing.