282 points · by ingve · 4y ago · 49 comments
Thanks Shitman!
GateBoy runs surprisingly fast for a gate-level simulation.
I used to work with circuit simulators to design circuits (discrete and integrated) and there are many transistor models (mathematical models) depending on the use case. In spirit, not too unlike DFT for Schrodinger equations in quantum mechanics.
In this context it means emulating "perfectly" by actually simulating the hardware in full instead of taking the aforementioned approach.
From what I can tell, this 3-minute video shows the process of generating 2 and a bit frames.
9000 cycles/s / 1.79 MHz = 0.5% of realtime. The only time you ever see rendering a line at a time is single stepping through an emulator.
I wonder if this is how FPGA developers working in VHDL/Verilog see the world? https://www.patreon.com/posts/37038491 here's a short clip of the VRAM of a PSX rendering about half of a completed frame of Final Fantasy 7's battle screen.
-Austin, GateBoy guy.
Helpful? Extremely not.
I just ran this on my high-end M1 Max, and it rendered 2 frames in roughly 3 minutes.
Hardware-accurate emulation is, generally speaking, not fast emulation.
Like, for an extreme example there's no world in which the in-development PSX mister core, running on a de10 nano, is particularly more accurate than a software emulator. The chips involved have too many transistors to completely simulate. But this will be true to some degree for everything above some complexity threshold. Maybe the Atari 2600 core is perfectly accurate.
I wouldn't be surprised if the most accurate software emulators are more accurate than the most accurate fpga cores, especially for anything newer than the NES, just because that's where most of the original work involved happens.
This idea that FPGAs are inherently more accurate seems to be rooted in marketing FUD from a company called Analogue.