logoalt Hacker News

Neywiny • today at 12:16 AM • 1 reply • view on HN

I forgot about the spinal core, that's true. That core says no phy needed (like most/all of the full speed FPGA cores I've seen) so did you put a shim? Or you can configure it to use the phy? I really need to learn spinal one day. I can't make heads or tails of what their documented example will compile to in terms of I/O.


Replies

wanderingjew • today at 12:28 AM

The Spinal code has a PHY block that does all the USB signaling in logic. Underneath that, it's a simple interface with enable, tx and rx data, D+/D- out. I'm bringing that interface out of the generated verilog with a 100-line shim that maps everything onto the TUSB.

I'm using real transceivers because the bare FPGA balls won't work. Well, they would probably work for USB1. But I'm going to put something between the port and an FPGA.

You don't need to read scala, just write a wrapper that names the ports you want, generate, and look at the port list of the .v file.