News for hackers. Stuff that matters.
Re:Cooperative Threading by artemonster on Wednesday November 13, 2019 @03:59AM (#21522238)
I wonder whether writing whole system in verilog, synthesizing cycle accurate simulator with verilator would yield better results...
Re:Cooperative Threading by ginko on Wednesday November 13, 2019 @04:24AM (#21522364)
I work for a silicon IP company and the verilog simulation of our product is about a factor of ten slower than our "cycle accurate" software model.

The FPGA version is about 40 times or so faster than the model and the actual silicon is another 10 times or so faster than that.

Re:Cooperative Threading by bhouston on Wednesday November 13, 2019 @06:52AM (#21523081)
How cheap are fgpas that could simulate an SNES or similar?

Any chance we standardize and commoditize fpgas so that it can be just another device on a laptop or phone that anyone could use? Like bluetooth or a GPU or gps?

This has to happen at some point but how far off from that are we now?

I assume there are different grades of fpgas and that likely complicates things but it is like desktop GPUs are way way better than phone GPUs... But both run opengl/vulkan and essentially the same code.

Re:Cooperative Threading by gpderetta on Wednesday November 13, 2019 @06:58AM (#21523116)
I know of FPGA based implementation of whole Amigas [1] and I do not htink they are particularly expensive. It is very likely that SNES reimplementations also exist already.

Edit: this [2] is a full system for 220 euros and in addition to Amiga it emulates a bunch of 8 bit consoles.

[1]: https://en.wikipedia.org/wiki/Minimig

[2]: https://amigastore.eu/en/358-mist-midi-fpga-computer-with-mi...

Re:Cooperative Threading by krupan on Wednesday November 13, 2019 @10:40AM (#21525303)
Those are very good questions. I have a feeling that Intel is looking into this now that they have purchased Altera.
Re:Cooperative Threading by krupan on Wednesday November 13, 2019 @10:38AM (#21525288)
Like ginko says, it probably wouldn't. Verilator still requires you to model at a very low level (sythesizable RTL), much lower than this article is describing. That detailed of a model is going to be slower than what you can do without that restriction.

Now, that's not to say that it wouldn't be good enough, i.e., fast enough that your games would still be playable. It's an interesting idea.

Re:Cooperative Threading by byuu on Wednesday November 13, 2019 @06:50AM (#21523069)
Verilog lets you model things natively in parallel, but few people have user-programmable FPGAs lying around sadly. Very cool tech, though!
Re:Cooperative Threading by krupan on Wednesday November 13, 2019 @10:53AM (#21525486)
Just to be clear, artemonster isn't talking about using an FPGA. Verilator is software that complies Verilog to C++, so you'd still end up with a software emulator.

The upside to this is that Verilog makes it very easy to model parallel hardware. The downside is that you have to model the hardware at the clock-cycle, "flip-flops and Boolean logic" level of detail.