this is vhdl design code for usb2.0 you can you it in fpga.