PS1 FPGA project update from Laxer
patreon.com/posts/unexpected-13-37634230Posted May 28, 2020, 11:23 PM UTC
Posted May 28, 2020, 11:23 PM UTC
Can anyone explain to me how an FPGA works on a one to one scale with something like the ps1? I don’t understand the whole logic gate/transistor count translation of hardware like this and would just like the technical but not too technical explanation.
Basically, Laxer is converting the hardware found in the PS1 into code that the FPGA uses to recreate the circuit when it is run. This is what allows the MiSTer and other FPGA projects to have 1:1 hardware emulation of the original systems for multiple systems.
Granted, FPGAs are used for far more than just games as they're mainly used to prototype System on a Chip implementations.
I understand this part but what I’m getting at is how do you equate what size FPGA you can fit a ps1 on to. Like what are you programming? Just how logic gates are set up. I always read about the de-10 nano having like 180 thousand logic gates or something to that nature. That just doesn’t seem like a lot when I imagine a complete system like the ps1 and millions of transistors.
I am far from an expert, and this is probably completely wrong, but my understanding is that the DE-10 has approx. 110,000 "logic elements". I believe the reason you can fit relatively large chips in it is because you're not simulating every individual transistor. You're only really interested in making sure inputs and outputs match an actual machine, so you can organise logic elements in such a way as to allow that, as I think each logic element is a collection of gates. This also means that theoretically an fpga implementation could have a very different internal structure from the machine it's replicating.
Also this affects some cores more than others; you should only start running into limitations once you start looking at the more recent 16/32 bit machines, for example the MOS 6502 CPU used in the NES only had around 3200 transistors while the Motorola 68020 had about 190,000.
In terms of how the logic elements are actually programmed and arranged unfortunately I have no idea.
I wonder how you equate a single logic element into something measurable. I wish I was smarter and had kept up with programming so I didn’t feel like such a moron.
And another update, things progress really smoothly right now
Laxer hit another milestone in ironing out the palette bugs he had.
He's also on the Smokemonster discord talking about the work ahead. There's still a lot to be done. He estimates at least another year, maybe two of work at current speed.