Research and Design of USB2.0 OTG IP Core full-speed host controller

Author
LiaoWenBing
Advisor
LinShuiSheng
School
University of Electronic Science and Technology
Major
Information and Communication Engineering
Classification
TP334.7 Interface devices,plug-in
Degree
Master's thesis
Year
2008
Downloads
149
Citations
5

Request the full text

Abstract

An increasing number of portable peripherals are using the USB interface to communicate with the PC, but the USB interface does not support the direct communication between two peripherals generally. However, with the release of OTG supplement, this problem is resloved. The USB OTG dual device which support OTG supplement can be either host or device. So the direct communication between two dual devices can be achieved while does not need the PC. This paper discusses about the design of USB2.0 OTG IP core based on ARM. And it is mainly about the design of the full speed host controller and the verification of the IP core.The USB2.0 OTG IP core support the protocols below: the USB2.0 specification, the OTG supplement, UTMI+ specification, Open Host Controller Interface and Enhanced Host Controller Interface. This IP core is connected between the memory controller of ARM and the PHY which designed base on UTMI+ to communicate with the other OTG device.The USB2.0 OTG IP core mainly includes OTG Controller(OTGC), Enhanced Host Controller(EHC), Open Host Controller(OHC) and Device Controller(DC). The OHC which designed base on the standard OHCI specification has bus control capability. It hebaves as a master. But the IP core which is independent on MCU acts as an interface which does not have bus control capability. And the data transfer between its buffer and MCU is achieved through the interrupt which initiated by the IP core.So it behaves as a slave. Therefore in the design of the OHC, the transaction scheduling and the data structure which describes the endpoint descriptor and transfer descriptor need be improved to achieve the full speed host controller without bus controll capability. And the data structure is changed from chain list stored in the outside memory to sequence list stored in the inside buffer.I am charging for the design of the full speed host controller and the verification of the IP core. The OHC includes OHC_GR, OHC_USC, OHC_LPB, OHC_BC, OHC_SIE and OHC_RH. OHC_GR controls the soft and hard reset. OHC_USC controls the USB status transition. OHC_LPB completes the USB host transaction scheduling. OHC_BC controls the access of the buffer by OHC_LPB and OHC_SIE. OHC_SIE is charge of the USB transfer types, including assembling and analyzing the packets. OHC_RH is used to detect the device connecting and disconnecting, reset, suspend and resume the device.The VIP of Synopsys which acts as USB OTG dual device is used as the stimulus in the side of UTMI+. And the other side is ARM(s3c2410) of whose main function is used is memory controller, DMA controller and interrupt controller. Only coding these controllers in behavior to reduce the verification complication of ARM side.The FPGA test of this IP core has two steps, the first is testing the high speed host controller(EHC), full speed host controller(OHC) and device controller(DC) independently. When the IP core can operate as both USB host and device, test the IP core with OTG controller to make sure the USB2.0 OTG IP core can achieve the OTG function. And now we have achieved the function of the full speed host controller, the files can be transferred successfully in the FPGA test.

Table of contents

Abstract 4-6 ABSTRACT 6-17 Chapter Introduction 17-22 1.1 USB OTG protocol and foreign research development 17-19 1.2 USB domestic research and development status 19-20 1.3 subject design goals 20-21 1.4 I work task 21 1.5 of this paper arrangements 21-22 Chapter II USB2.0 OTG bus protocol 22-28 2.1 USB2.0 protocol overview 22 2.2 USB system structure 22-24 2.2.1 USB host 22-24 2.2.2 USB devices 24 2.3 transfer type 24-26 2.3.1 Control Transmission 24-25 2.3.2 synchronous transmission 25 2.3.3 interrupt transmission 25 2.3.4 bulk transfer 25-26 2.4 OTG supplementary specification 26 2.5 OTG electrical specifications 26-27 2.6 UTMI Interface Specification 27-28 Chapter OHCI protocol specification 28-34 3.1 USB host system 28 3.2 OHCI data structure 28-31 3.2.1 the list structures 28-29 3.2.2 endpoint description character 29-30 3.2.3 transfer descriptor character 30-31 3.3 host controller driver 31-32 3.3.1 host controller management 31-32 3.3.2 Bandwidth Allocation 32 3.3.3 List Management 32 3.4 host controller 32-33 3.4.1 USB state control 32 3.4.2 frame management 32-33 3.4.3 list processing 33 3.5 OHCI operational registers 33-34 the USB2.0 OTG IP the nuclear full speed host controller design 34-68 4.1 USB2.0 OTG IP-core system architecture 34-35 4.2 Module Features 35-36 4.3 data transfer 36-37 4.3.1 PIO way 37 4.3.2 DMA way 37 4.4 full-speed host controller design 37-68 4.4.1 GR module design 38-39 4.4.2 USC module design 39-42 4.4.3 LPB module design 42-50 4.4.4 BC module design 50 4.4.5 SIE module design 50-64 4.4.6 RH module design 64-68 the CHAPTER full-speed USB transaction scheduling Skill 68-74 5.1 standard OHCI protocol USB transaction scheduling 68-69 5.1.1 OHCI protocol USB host hardware and software interaction channel 68-69 5.1.2 OHCI protocol USB transaction scheduling 69 5.2 this design USB transaction scheduling 69-73 5.2.1 data structure 70-73 5.2.2 Full Speed ??USB transaction scheduling process 73 5.3 to avoid multi-clock domain processing 73-74 the sixth chapter USB2.0 OTG IP cores EDA verification and FPGA test 74-100 6.1 authentication significance 74-75 6.2 USB2.0 OTG IP core verification platform 75-86 6.2.1 USB2.0 OTG BFM 75-77 6.2.2 ARM control 77-86 6.2.3 SRAM 86 6.3 USB2.0 OTG IP core simulation 86-92 6.3.1 full speed host controller function simulation 86-89 6.3.2 IP cores EDA verification 89-92 6.4 USB2.0 OTG IP core FPGA test 92-100 6.4.1 FPGA test platform hardware 92-94 6.4.2 FPGA test platform software introduced 94-95 6.4.3 FPGA test results 95-100 Chapter VII Summary and Outlook 100-101 7.1 summarizes 100 7.2 Looking 100-101 Acknowledgements 101-102 the References 102-104 biographical research in the school during the academic papers 104-105

Related dissertations

  1. Design of a USB2.0 Interface Controller
    ZhangJianYong ·Taiyuan University of Technology ·2008 ·Master's thesis
  2. Based on ARM core AHB_USB2.0 Interface ASIC design
  3. USB2.0 interface controller chip Design and Implementation of USB - based applications
  4. USB2.0IP nuclear master controller design
  5. FPGA Implementation of USB Interface Based on UPLI Protocol
    LvZhiChao ·Dalian Maritime University ·2013 ·Master's thesis
  6. Research on Electromagentic Leakage Emanations of USB Keyboard
  7. A Research and Design of the Secure Storaged USB Device Controller Based on FPGA
    LiAiGuo ·PLA Information Engineering University ·2012 ·Master's thesis
  8. Implementation of USB OHCI Host Stack Based on μC/OS-Ⅱ
  9. The design of USB2.0 device controller and C code verification
  10. Flight Control Integrated Test Facility Hardware System Design and Implementation
  11. The Reasearch and Application of NCUC-Bus and USB Conversion
  12. Storage USB2.0 interface test system design
    LiuJiMing ·University of North ·2008 ·Master's thesis
  13. Record playback unit designed based on USB2.0 data
  14. The Research of Communication and Storage Technology on Distributed Fault Detecting System of the Train
    ZhouDong ·Beijing Jiaotong University ·2008 ·Master's thesis
  15. USB-based parallel multi -channel design frequency tester
    LiDanDan ·West China University ·2008 ·Master's thesis
  16. The Research on Multi-Channel Real Signal Acquisition System Based on TMS320C6713 and USB2.0
    YangJunBo ·Shanghai Jiaotong University ·2008 ·Master's thesis
  17. Development of the Tramcar Speed Measuring and Recording System Based on USB
  18. Based on embedded operating system USB device driver development
    ZhaoMing ·Xi'an Optics and Fine Mechanics ·2007 ·Master's thesis
  19. The Control Logic and Software Design in Data Acquisition System for a Novel Patch-Clamp
  20. Design and Implementation of Video Capture in Water Quality Online Monitor System