logoalt Hacker News

wanderingjew • today at 12:28 AM • 0 replies • view on HN

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.