News for hackers. Stuff that matters.
Re:Recreating RP2040 PIO Interface in an FPGA by ThrowawayTestr on Sunday May 21, 2023 @01:35PM (#36023099)
While I love the idea of FPGA co-processors on CPUs, I'm wondering how useful they could be. I guess you could replace the video transcoding unit so you're not tied to one codec but how often do those change anyway.
Re:Recreating RP2040 PIO Interface in an FPGA by sfrigon on Sunday May 21, 2023 @01:47PM (#36023196)
I must admit I did not think this whole thing fully.

But what was interesting to me was the fact that you could add a peripheral that was not initially intended by the manufacturers, making a mainstream motherboard more versatile.

For you it may be a video transcoding unit, for someone else it may be an SPI or I2C device, PCIe, or extra ethernet, or high quality audio.

I'm not sure what peripherals were implemented by the community for the RP2040 either, maybe they would not make sense on a PC.

Re:Recreating RP2040 PIO Interface in an FPGA by bpye on Sunday May 21, 2023 @01:55PM (#36023253)
Doesn’t PCIe already get you that today? Either with an existing PCIe -> X bridge chip, or an FPGA with PCIe capability?

It’s not cheap, and you need to write device drivers etc - but that’s the case regardless.

Re:Recreating RP2040 PIO Interface in an FPGA by sfrigon on Sunday May 21, 2023 @02:22PM (#36023455)
Maybe PCIe already does something similar, that's not something I have knowledge about.

Though there is a small difference in my opinion, where, from the point of view of the CPU, it should behave as a normal interface, thus the driver should already exist, and only require a change in the device tree (for linux).

It would still require quite a bit of work: - The PIO has to behave bug-for-bug compatible with an existing driver - The exposed pins need have the proper voltage levels & electrical protection

.. but that's just fantasy for now.

Re:Recreating RP2040 PIO Interface in an FPGA by naikrovek on Sunday May 21, 2023 @09:18PM (#36026336)
sounds like PCIe, as mentioned.

there are a few FPGA dev kits which are set up this way. I have one which has a dual core Atom CPU and a large FPGA connected via PCIe, and the speed is fast.

Re:Recreating RP2040 PIO Interface in an FPGA by mschuster91 on Sunday May 21, 2023 @01:56PM (#36023257)
> I'm not sure what peripherals were implemented by the community for the RP2040 either, maybe they would not make sense on a PC.

Well, someone implemented bit-banging Ethernet TX: https://news.ycombinator.com/item?id=35810281

Re:Recreating RP2040 PIO Interface in an FPGA by Accujack on Sunday May 21, 2023 @02:31PM (#36023555)
Check out the Xilinx "Zynq" series of FPGAs. They have a lot of uses.
Re:Recreating RP2040 PIO Interface in an FPGA by rcxdude on Sunday May 21, 2023 @02:34PM (#36023580)
In that case the CPU is basically the co-processor for the FPGA. I've yet to see a use that wasn't primarily using the FPGA because it needed to be an FPGA, they're not great if you just want to run something fast (outside of a few small uses).