Home›Industry News›MiSTer splits work between ARM and FPGA, lowering the barrier to replica-core development to just writing logic
← Back to Industry News
Open Source

MiSTer splits work between ARM and FPGA, lowering the barrier to replica-core development to just writing logic

Open SourceMiSTer splits workbetween ARM and FPGA,lowering the barrier…fpga.love
Illustration

An open-source project has turned the replication of old computers and game consoles into a reusable engineering template: ARM runs Linux to handle menus and files, while the FPGA handles only cycle-accurate cores. MiSTer's large number of cores does not come from any one team writing more of them, but from the framework locking down interfaces such as video, audio, gamepads, and SD cards.

The framework defines interfaces; cores only write logic

MiSTer's repositories are mainly Verilog and C, under GPL-3.0. It writes the division of labor between the ARM side and the FPGA side into the framework: ARM handles the file system, networking, UI, and dynamic loading, while the FPGA handles cycle accuracy, low latency, and parallel processing. The framework defines a standard set of interfaces covering video output, audio output, gamepad input, and SD card access. A core only needs to connect to these lines and does not need to care about the monitor or gamepad. Community developers therefore write only "the logic of that machine"; the infrastructure is ready-made. This means the rate at which new cores are added depends on the logic itself, not on peripheral adaptation.

Switching cores means loading a file, not re-synthesizing

When selecting a core, the menu lists .rbf files on the SD card, ARM writes the .rbf into the FPGA configuration port, the framework resets all IO and video output, then connects a gamepad or keyboard according to the core's configuration, and the core begins outputting video and audio. The whole process takes 1-3 seconds. The price of speed is that the core must handle cold start itself and cannot rely on the previous state. Putting the menu in the FPGA would mean re-synthesizing for tens of minutes after every UI change; letting ARM handle video output would make latency and jitter uncontrollable. With the division of labor, switching cores is loading a file, taking a few hundred milliseconds; changing the menu is changing an ARM program, taking seconds.

RepoCoreQuick start
Illustration

Timing reproduction is a behavioral problem, not a performance problem

When replicating the Amiga, the contention cycles between the CPU and the custom chips Agnus/Denise must be reproduced, otherwise some demos will show corrupted graphics. Video output resolutions range from 160×144 to 640×480, along with refresh rates such as PAL 50Hz and NTSC 59.94Hz. The framework must handle scaling and synchronization, or the monitor will not recognize the signal. Input latency is a core metric: from gamepad press to screen response, MiSTer can achieve 1-2 frames, and each additional buffer layer adds one frame. With input at 59.7Hz and output at 60Hz, a 0.3Hz difference, without buffering there will be periodic dropped or repeated frames, about once every 3 seconds, at the cost of at least 1 frame of latency. For zero latency, pass through at the same frequency; for a stable image, add buffering. You cannot have both.

Three takeaways
  • ARM handles the shell and FPGA handles the core; interface standardization is the prerequisite for a large number of cores
  • Switching cores takes 1-3 seconds, at the cost of cores having to handle cold start themselves
  • Input latency is 1-2 frames, achieved by minimizing buffering

What it means for us

For engineers in China working on high-speed interfaces and boards, MiSTer's direct usability is limited: it is a hobby project, hardware supply is unstable, and it is not suitable for direct productization. But its framework approach can be borrowed: lock down the interfaces for video, audio, input, and storage so that logic cores care only about timing. This division of labor also holds in scenarios requiring cycle-accurate interface verification and protocol replication. On the toolchain side, it relies on Quartus projects and .qsf files. If a core's top-level port names are written incorrectly, there is no error, only a black screen. This kind of debugging experience is useful reference for writing FPGA top levels. On the supply chain side, it does not involve domestic substitution, but the community-maintained cores and framework code are public. Reading how a simple core reproduces timing is more direct than reading documentation.

FPGAopen sourcecycle-accurateARM+FPGAretro computing
fpga.love

Subscribe to fpga.love

Daily Briefing · Weekly Digest · Monthly Deep Dive