Line 4... |
Line 4... |
|
|
`ifdef usbHostSlave_h_vdefined
|
`ifdef usbHostSlave_h_vdefined
|
`else
|
`else
|
`define usbHostSlave_h_vdefined
|
`define usbHostSlave_h_vdefined
|
|
|
// Version 6 - Feb 4th 2005. Fixed bit stuffing and de-stuffing. This version succesfully supports
|
// Version 0.6 - Feb 4th 2005. Fixed bit stuffing and de-stuffing. This version succesfully supports
|
// control reads and writes to USB flash dongle
|
// control reads and writes to USB flash dongle
|
// Version 7 - Feb 24th 2005. Added support for isochronous transfers, fixed resume, connect and disconnect
|
// Version 0.7 - Feb 24th 2005. Added support for isochronous transfers, fixed resume, connect and disconnect
|
// time outs, added low speed EOP keep alive. The TX bit rate is now controlled by
|
// time outs, added low speed EOP keep alive. The TX bit rate is now controlled by
|
// SIETransmitter, and takes account of the requirement that SOF, and PREAMBLE are always full
|
// SIETransmitter, and takes account of the requirement that SOF, and PREAMBLE are always full
|
// speed, and TX resume is always low speed.
|
// speed, and TX resume is always low speed.
|
// Fixed read clock recovery (readUSBWireData.v) issue which was resulting
|
// Fixed read clock recovery (readUSBWireData.v) issue which was resulting
|
// in missing receive packets.
|
// in missing receive packets.
|
// Fixed broken SOF Sync mode (where transacations are synchronized with the SOF transmission)
|
// Fixed broken SOF Sync mode (where transacations are synchronized with the SOF transmission)
|
// by adding kludged delay to softranmit. This needs to be fixed properly.
|
// by adding kludged delay to softranmit. This needs to be fixed properly.
|
// This version has undergone limited testing
|
// This version has undergone limited testing
|
// with full speed flash dongle, low speed keyboard, and a PC in full and low speed modes.
|
// with full speed flash dongle, low speed keyboard, and a PC in full and low speed modes.
|
// Version 8 - June 24th 2005. Added bus access to the host SOFTimer. This version has been tested
|
// Version 0.8 - June 24th 2005. Added bus access to the host SOFTimer. This version has been tested
|
// with uClinux, and is known to work with a full speed USB flash stick.
|
// with uClinux, and is known to work with a full speed USB flash stick.
|
// Moving Opencores project status from Beta to done.
|
// Moving Opencores project status from Beta to done.
|
// TODO: Test isochronous mode, and low speed mode using uClinux driver
|
// TODO: Test isochronous mode, and low speed mode using uClinux driver
|
// Create a seperate clock domain for the bus interface
|
// Create a seperate clock domain for the bus interface
|
// Add frame period adjustment capability
|
// Add frame period adjustment capability
|
// Add compilation flags for slave only and host only versions
|
// Add compilation flags for slave only and host only versions
|
// Create data bus width options beyond 8-bit
|
// Create data bus width options beyond 8-bit
|
`define USBHOSTSLAVE_VERSION_NUM 8'h08
|
// Version 1.0 - October 14th 2005. Seperated the bus clock from the usb logic clock
|
|
// Removed TX and RX fifo status registers, and removed
|
|
// TX fifo data count register.
|
|
// Added RESET_CORE bit to HOST_SLAVE_CONTROL_REG.
|
|
// Fixed slave mode bug which caused receive fifo to be filled with
|
|
// incoming data when the slave was responding with a NAK, and the
|
|
// data should have been discarded.
|
|
|
|
// Most significant nibble corresponds to major revision.
|
|
// Least significant nibble corresponds to minor revision.
|
|
`define USBHOSTSLAVE_VERSION_NUM 8'h10
|
|
|
//Host slave common registers
|
//Host slave common registers
|
`define HOST_SLAVE_CONTROL_REG 1'b0
|
`define HOST_SLAVE_CONTROL_REG 1'b0
|
`define HOST_SLAVE_VERSION_REG 1'b1
|
`define HOST_SLAVE_VERSION_REG 1'b1
|
|
|