Open Hardware & RISC-V

CLK emulator adds Linux support with signal-accurate CRT and composite video emulation

Key Takeaway

Clock Signal (CLK) emulates vintage computers by reconstructing their original video and audio signal paths on the GPU rather than using conventional framebuffer approximation.

Summary

Thomas Harte's Clock Signal, or CLK, is an open-source emulator designed to run classic software directly from the desktop with minimal user configuration. The project supports a broad range of 8-bit and 16-bit systems including the Acorn Electron, BBC Micro, Archimedes, Amstrad CPC, Apple II series, early Macintosh, Atari 2600 and ST, ColecoVision, Enterprise 64/128, Commodore VIC-20 and Amiga, MSX 1/2, Oric 1/Atmos, early PC compatibles, Sega Master System, Sinclair ZX80/81 and ZX Spectrum, and Tandy CoCo and Thomson MO5/6.

Rather than requiring users to import files or manually configure machines, CLK performs static and runtime analysis on disk, tape, or ROM images to automatically select the correct hardware, issue appropriate loading commands, and accelerate loading where possible. On Linux, BSD, and other UNIX-like systems, the emulator renders through OpenGL using either Qt or SDL backends.

Signal-path emulation architecture

  • Automatic machine detection: CLK analyzes disk, tape, and ROM images at load time and during execution to identify the target platform, configure the emulated hardware, and issue system-specific loading commands without user intervention.
  • Signal-path video emulation: The emulator reconstructs original video signals such as composite output rather than filtering or approximating the final image, delegating actual decoding to the GPU to preserve authentic artifacts including color bleeding and interference patterns.
  • CRT phosphor simulation: The display model emulates physical CRT behavior with phosphor decay, enabling a 140Hz 4K monitor to present up to 140 distinct frames per second rather than duplicating or interpolating frames.
  • High-rate audio generation: Audio is synthesized at the emulated machine's native rate, such as 192kHz for certain systems, then downsampled through filtering to maintain 5-10ms output latency.
  • Cross-platform rendering backends: macOS uses native Cocoa and Metal, while Linux and BSD builds target OpenGL through either Qt or SDL frameworks.

Why it matters

CLK's signal-accurate approach distinguishes it from conventional emulators that approximate display output, offering Linux users and preservationists a tool that prioritizes hardware fidelity over convenience-layer abstractions. The automatic configuration and direct file execution model reduces friction for users exploring vintage computing software without managing separate ROM sets or BIOS files.

Original reference: blog.adafruit.com →