Github: http://github.com/ultraembedded/core_usb_cdc
This component is a simple USB Peripheral Interface (Device) implementation which enumerates as either a high-speed (480Mbit/s) or full-speed (12Mbit/s) CDC-ACM device.
This IP has a simple FIFO interface (valid, data, accept) for input and output data, and an UTMI interface for connection to a USB PHY.
- High or Full speed USB CDC device.
- Enumeration in hardware - no SW intervention required.
- UTMI PHY interface (see my UTMI to ULPI Conversion wrapper project to allow connection to a ULPI PHY e.g. USB3300)
- Simple 8-bit data input / output interface with handshaking (compliant with a 8-bit wide AXI4-Stream interface).
- Top: usb_cdc_core
- Clock: clk_i - 48MHz or 60MHz
- Reset: rst_i - Asynchronous, active high
- VID/PID can be changed in usb_desc_rom.v
- Param: USB_SPEED_HS = "False"
- Top: usb_cdc_core
- Clock: clk_i - 60MHz
- Reset: rst_i - Asynchronous, active high
- VID/PID can be changed in usb_desc_rom.v
- Param: USB_SPEED_HS = "True"
- Really basic USB-CDC class device implementation, will ignore encap, line state and line coding change requests!
- USB suspend/resume will not work correctly.
Verified under simulation then tested on FPGA against Linux, Windows and MAC OS-X.
USB CDC can be linted with verilator or made into a GDSII with OpenLANE using FuseSoC. Quick FuseSoC instructions
#install FuseSoC
pip3 install fusesoc
#Create and enter a new workspace
mkdir workspace && cd workspace
#Register usb cdc as a library in the workspace
fusesoc library add usb_cdc /path/to/core_usb_cdc
#...if repo is available locally or...
fusesoc library add usb_cdc https://github.com/ultraembedded/core_usb_cdc
#...to get the upstream repo
#To run linter
fusesoc run --target=lint ultraembedded:core:usb_cdc
#List all targets
fusesoc core show ultraembedded:core:usb_cdc
#Create a GDSII using a dockerized OpenLANE
#Requires the sky130 PDK and an Edalize launcher script
export PDK_ROOT=/path/to/sky130_pdk
export EDALIZE_LAUNCHER=/path/to/openlane_runner.py
fusesoc run --target=sky130 ultraembedded:core:usb_cdc