{"slug": "z8086-rebuilding-the-8086-from-original-microcode", "title": "z8086: Rebuilding the 8086 from Original Microcode", "summary": "The z8086 is a compact, FPGA-friendly 8086/8088 processor core that runs original Intel microcode by loading a recovered 512x21 ROM, rather than hand-coding individual instructions. Written in about 2,000 lines of SystemVerilog, it uses around 2,500 LUTs on a Gowin GW5A device, achieves a maximum clock speed of 60 MHz, and passes all ISA test vectors while booting small programs and controlling peripherals, though it does not yet boot DOS.", "body_md": "After 486Tang, I wanted to go back to where x86 started. The result is z8086: a 8086/8088 core that runs the original Intel microcode. Instead of hand‑coding hundreds of instructions, the core loads the recovered 512x21 ROM and recreates the micro‑architecture the ROM expects.\nz8086 is compact and FPGA‑friendly: it runs on a single clock domain, avoids vendor-specific primitives, and offers a simple external bus interface. Version 0.1 is about 2000 lines of SystemVerilog, and on a Gowin GW5A device, it uses around 2500 LUTs with a maximum clock speed of 60 MHz. The core passes all ISA test vectors, boots small programs, and can directly control peripherals like an SPI display. While it doesn’t boot DOS yet, it’s getting close.", "url": "https://wpnews.pro/news/z8086-rebuilding-the-8086-from-original-microcode", "canonical_source": "https://nand2mario.github.io/posts/2025/z8086/", "published_at": "2025-12-13 00:00:00+00:00", "updated_at": "2026-05-23 15:53:40.250944+00:00", "lang": "en", "topics": ["open-source", "hardware", "semiconductor", "research"], "entities": ["z8086", "8086", "Intel", "Gowin", "GW5A", "SystemVerilog", "486Tang"], "alternates": {"html": "https://wpnews.pro/news/z8086-rebuilding-the-8086-from-original-microcode", "markdown": "https://wpnews.pro/news/z8086-rebuilding-the-8086-from-original-microcode.md", "text": "https://wpnews.pro/news/z8086-rebuilding-the-8086-from-original-microcode.txt", "jsonld": "https://wpnews.pro/news/z8086-rebuilding-the-8086-from-original-microcode.jsonld"}}