@marcan42 let's say I want to reimplement an USB device in Verilog, any suggestion on simulating it in Linux userspace so that I can verify drivers work with it? usbip or is there something better?
-
-
Replying to @whitequark
I'm not aware of any userspace hook for USB *devices* (other than usbip I guess? never tried it). You could use hardware (e.g. a facedancer) or virtualization (hack it into qemu). This feels strange though, not something you'd normally do. What is your goal?
1 reply 0 retweets 1 like -
Replying to @marcan42
reimplement the MPSSE engine from buggy FTDI silicon in an FPGA so that our JTAG adapters stop hanging if you ^C openocd or just for no damn reason whatsoever
1 reply 0 retweets 2 likes -
-
Replying to @whitequark
This does sound like overkill. Why not just use a microcontroller? With an FPGA you also need to find yourself a USB PHY and unless you put in a small CPU core anyway implementing USB state machines in hardware is ugh.
1 reply 0 retweets 2 likes -
Replying to @marcan42
Oh, I was going to do everything except FIFOs in software, on a real board it'd be a CYP68013A anyway
2 replies 0 retweets 0 likes
Then most of the parts that matter for driver compatibility should be in software, so your compile/test cycle with real hardware should be short enough to be acceptable. If you want to test the FPGA functionality you should probably just write a Verilog testbench.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.