USB DEVICE FS mode controll and phy interface, you can refer this code for USB device design.