Home

Awesome

Compact USB HID host FPGA core

nand2mario, 8/2023

Usb_hid_host is a compact FPGA core designed to support USB keyboards, mice and gamepads. It is designed mainly for FPGA retro gaming and computing projects. The most significant advantage is its all-in-one design. It does not require a CPU to work. And it is quite small (<300 LUTs, <250 registers and 1 BRAM block).

To use usb_hid_host, simply add usb_hid_host.v, usb_hid_host_rom.v and usb_hid_host_rom.hex to your project. The module interface in usb_hid_host.v should be sufficiently documented to get you started.

For FPGA boards with pmod ports, usb_host_pmod is a pmod module designed to work with usb_hid_host.

Please refer to usb_hid_host.md for a more comprehensive introduction to the design of the core.

Sample projects

Sample projects are available for the following boards to demonstrate the usage of usb_hid_host.

Connect your USB devices and expect results similar to the following.

<img src='doc/usb_hid_host_demo.png' width=450> <img src='doc/usb_hid_host_setup.jpg' width=380>

Usb_hid_host does not rely on vendor-specific primitives, making it compatible with most FPGAs and boards. If you encounter any problems, please submit an issue.

Improvements under consideration

Credit