Hacker News new | ask | show | jobs
by tombert 44 days ago
I remember Byuu (RIP) wrote an article around ~10 years ago talking about why BSNES/Higan was "slow", explaining that it's really not slow given what it's trying to do. The more accurately you simulate the chips, there is simply more over overhead involved with synchronization and whatnot.

I remember in that article they mentioned a Pong circuit simulation like this that was getting something along the lines of 10FPS of gameplay, which astonished me. You don't get a lot simpler of a game than Pong and even on amazing hardware it was still unplayable if you want the truest form of emulation.

2 comments

Full mask sets for leading edge nodes cost tens of millions these days, and it takes months from committing to the design to actually getting the silicon in hand.

Companies that design CPUs today commonly simulate the designs on massive server farms to find bugs before they commit to building masks. Running purely on CPU, such simulations of leading edge chips struggle to reach 1kHz, which is a problem given how long it takes to just boot an operating system these days. (And this is at full scale-out -- dedicating sufficient compute to the problem that it no longer gets faster if you use more, due to communication latencies.)

Because of this, it is now common to use FPGAs to emulate better understood parts of the circuits, to get better speeds and do more validation work in software before committing to the masks. This can get them up to a MHz.

Pong had no CPU, so its board is filled with small chips that collectively work together. It's probably harder to emulate Atari Pong Arcade than a C64.