Pin-Level C64 Simulator Lets You Break Chips and Watch Results
Original source
The Commodore 64 hardware simulator: break chips and pins, see the results
Hacker News →c64-hw-sim simulates the Commodore 64 motherboard (ASSY 250407) at the pin level, allowing users to lift chip legs, short them to ground or +5V, pull chips from sockets, or open resistors—then observe the results on screen. The simulator contains models of the board’s electrical connections and how each chip behaves at its pins, computing results purely from the circuit rather than predicting expected outcomes.
The tool serves two main purposes: learning how the Commodore 64 works without risking damage to real hardware, and diagnosing failures in broken boards by testing hypotheses about what might be broken before attempting desoldering work. Users can load programs into DRAM as if using a freezer cartridge and run the simulator in headless mode for automated testing. The simulator runs at 31–48% of real speed depending on processor, using cycle-accurate cores for the 6510 CPU, VIC-II graphics chip, CIA and SID chips, plus pin-level models for RAM, ROM, and logic chips.
The implementation combines chip cores from floooh’s chips library (under zlib license), a KiCad board replica by bwack (under CERN OHL), and PLA logic equations from Mark Smith and Marko Mäkelä. The simulator models floating nets, power faults, and pin contention, though analog components like video output and the power supply are not simulated.
Read the full article
Continue reading at Hacker News →This is an AI-generated summary. Read the original for the full story.