Home›Industry News›Z86_PC squeezes a Pentium Pro-class PC into an FPGA, and it runs on the KV260
← Back to Industry News
Open Source

Z86_PC squeezes a Pentium Pro-class PC into an FPGA, and it runs on the KV260

Open SourceZ86_PC squeezes aPentium Pro-class PCinto an FPGA, and it…fpga.love
Illustration

An open-source project turns a superscalar out-of-order IA-32 CPU and a full set of PC peripherals into an FPGA SoC, targeting the ZCU104 and the $250 Kria KV260. It can boot Windows 98 SE and NT 4.0 on real hardware, and it includes an always-on hardware debugger. For engineers working on boards and interfaces, this is more a reusable platform reference than a toy.

Two development boards share one RTL

z86_pc is built around the z86 superscalar out-of-order IA-32 CPU and is positioned as a Pentium Pro-class PC-compatible SoC. The platform RTL and build scripts are shared by the ZCU104 (XCZU7EV) and the Kria KV260 (XCK26), with differences limited to CPU configuration and board-level constraints. The official microSD image is 42 MiB compressed and 321 MiB raw; the same card can boot both boards, with a boot script automatically selecting the DTB, bitstream, and hostname. This means the boundary for board porting is very narrow: switching boards mainly requires changing constraints and configuration rather than redoing the entire peripheral set.

Guest systems and audio peripherals

The guest systems listed by the project include MS-DOS 6.22, FreeDOS, Windows 3.11 with EMM386, Windows 95 OSR2, Windows 98 SE, Windows NT 4.0 Workstation, and 32-bit Linux. On the peripheral side it provides Sound Blaster 16 and OPL3 audio, an IDE hard disk, PS/2 keyboard and mouse, and DisplayPort scanout for display. The real-hardware demos include SpeedSys 4.78 at 150 MHz, Quake running at 35.2 FPS, and Windows 95 and NT 4.0 at 1024×768. These figures come from the project's own description, but coverage extending to real-hardware boot of NT 4.0 shows that compatibility does not stop at the DOS level.

RepoCoreQuick start
Illustration

Always-on debugger and clock gating

z86_platform_core integrates a hardware debugger of about 470 LUTs and 1 BRAM36, ABI 1.11, which can be disabled via a compile switch. Its approach is to wait until all in-flight AXI4 DRAM reads and writes and IDE/management transfers have drained, then freeze clk_cpu with a synchronous BUFGCE, while z86_control continues running on the always-on aclk. The accompanying z86-dbg supports state inspection, register and pipeline diagnostics, a 512-entry retired-PC ring buffer, precise cycle stepping, CS:EIP hardware breakpoints, and a watchdog. For anyone who has debugged an out-of-order pipeline, this “drain first, then stop the clock” approach is more valuable as a reference than the feature list.

Three takeaways
  • The same SD card image can boot both the ZCU104 and the KV260
  • NT 4.0 and 98 SE run on real ZCU104 hardware, not just in simulation
  • The debugger freezes the CPU via BUFGCE gating, with AXI4 drained first

What it means for us

For engineers in China working on high-speed interfaces and board design, this project does not involve domestic substitution and does not provide a solution that can go directly into production, but its platform organization is worth learning from: unified RTL with board-level constraints separated, a single binary driving guest boot and clock switching, and the debugger decoupled from the main control clock domain. If you have an UltraScale+ development board on hand, you can use it to validate PCI/IDE-class peripherals and the DisplayPort output path; the toolchain depends on Verilator 5.x, SDL2, and a Buildroot external tree, which does not conflict with common domestic EDA flows, but it is not a substitute either. The real question is that it brings PC compatibility to a bootable level, and whether such an open-source platform can be reused on your own board depends on the effort required for constraint porting and the clocking scheme.

FPGA SoCIA-32UltraScale+hardware debuggingopen-source platform
fpga.love

Subscribe to fpga.love

Daily Briefing · Weekly Digest · Monthly Deep Dive