The Design and Implementation of Embedded USB2.0 Host Controller IP Core

Author
HuLiQin
Advisor
HuJin
School
Hunan University
Major
Microelectronics and Solid State Electronics
Classification
TP334.7 Interface devices,plug-in
Degree
Master's thesis
Year
2009
Downloads
149
Citations
0

Request the full text

Abstract

Firstly, this paper discusses the generation and development of USB (Universal Serial Bus), and the research status of embedded USB host controller in the world. Secondly, this paper describes USB2.0 protocol briefly, including USB architecture, physical interface, structure of packet in data transfers and the four types of data transfers.In the following, this paper discusses the design proposal of our embedded USB host controller, describes the structure and the design of function modules in detail, and the application of embedded USB host controller in electronic system is also described briefly. In our design, embedded USB host controller IP core supports high speed transfers and fast speed transfers, and it doesn’t support low speed transfers. And the embedded USB host controller IP core implements four types of data transfers, which are control transfers, bulk transfers, isochronous transfers and interrupt transfers. In our design, a DMA master/slave controller is embedded whose work mode can be selected by setting the bits of registers accordingly by software. When there is not DMA master controller outside of the USB host controller, then the DMA controller in USB host controller works in master mode to exchange the data between transmissions / receive buffer and memory in system. When there is a DMA master controller, then the DMA controller in USB host controller works in slave mode. This design of DMA controller improves the flexibility of USB host controller and the speed of data transfers greatly. Meanwhile, the buffer is designed as ping-pong buffer. The design makes the data synchronization between CPU and USB host controller easier.This paper also describes the software system architecture of USB host controller, and the implementation of USB host controller driver is described in detail.Lastly, this paper describes the simulation and verification platform of embedded USB host controller, and describes the implementation of bus enumeration and data transfers on the platform, and the simulation result is analyzed. After FPGA verification and tapped out with 0.18 um process of Silterra corporation by MPW mode, we have tested the functions of chips come back.

Table of contents

Abstract 5-6 ABSTRACT 6-7 directory 7-9 Chapter 1 Introduction 9-14 1.1 USB bus generation and development 9-10 1.2 embedded USB host concept proposed and the research situation 10-12 1.3 USB bus characteristics 1.4 source of this topic and the main contents 12-14 Chapter 2 USB 2.0 bus protocol research 14-25 2.1 USB bus topology 14-15 2.2 USB physical interface 15-16 2.2.1 USB Electrical Characteristics 15-16 2.2.2 USB power 16 2.3 USB data communication structure 16-21 2.3.1 USB packet domain type 17-20 2.3.2 USB packet types 20-21 2.4 USB data stream type 21-25 Chapter 3 embedded USB host controller design 25-46 3.1 embedded USB host overall structure 26-29 the embedded USB 3.2 host each module design 29-46 of 3.2.1 embedded controller (embedding controller) 29-32 of 3.2.2 embedded Registers (embedding register) 32-34 3.2.3 DMA controller 34-36 3.2.4 Memory block 36-37 3.2.5 root hub 37-41 3.2.6 PIE module (Parallel Interface Engine) 41-46 Chapter 4 USB host software design 46-51 4.1 USB host software structure 46-47 4.2 USB host controller driver design 47-51 Chapter 5 system verification 51-60 5.1 verification environment 51-53 5.1.1 MIPS CPU 51-52 5.1.2 memory model 52 5.1.3 the PHY model 52 5.1.4 USB device model 52-53 5.2 functional simulation 53-55 5.3 FPGA validation 55-57 5.4 circuit realization 57-58 5.5 test results and analysis 58-60 concluded 60-62 the References 62-65 the directory of academic papers published in Appendix A degree 65-66 The Appendix B device enumeration state machine code to achieve 66-72 Appendix C design part of the gate-level circuit 72-74 Acknowledgements 74

Related dissertations

  1. The IP Core Implement and Improvement of Image Compression Algorithm
    GongXiaoLei ·Donghua University ·2014 ·Master's thesis
  2. Research and Design of the Des Encryption Chip Based on Resource Optimization
  3. Design and Implementation of Video Tracking and Encoding System Based on FPGA
    PengDanYang ·Northeastern University ·2013 ·Master's thesis
  4. USB Universal Serial Bus IP CORE Design and Implementation
    ZhangGe ·Northwestern Polytechnical University ·2002 ·Master's thesis
  5. Research of USB Host Interface on Digital Set-Top-Box
  6. Design of USB Controller IP Core for SoC
  7. Design and Implementation of USB Controller and General Purpose IO Interface Controller IP Core for SoC
  8. The Design and Implementation of MCU & USB Device Controller
    ChenXunLiang ·Hunan University ·2009 ·Master's thesis
  9. USB Host Controller IP Core Research and Design
    ShiJunShan ·Chongqing University ·2010 ·Master's thesis
  10. Universal Serial Bus (USB2.0) IP core design
    LvXianWang ·Harbin Institute of Technology ·2009 ·Master's thesis
  11. Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
    XuZuoFang ·Hunan University ·2013 ·Master's thesis
  12. Optical Fiber Perimeter Alarm System Based on DSP and FPGA
  13. Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
    LiuWen ·Xiangtan University ·2013 ·Master's thesis
  14. Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
  15. Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
  16. Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
    ZhangZhiQiang ·Tianjin University ·2009 ·Master's thesis
  17. Research of Dual Chanel High Speed Data Acquisition Card
    DanGuangXing ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
    ZuoJiaLin ·Tianjin University ·2012 ·Master's thesis
  19. The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
    LiuRongPeng ·Tianjin University ·2012 ·Master's thesis
  20. Design of Remote Strain Measurement System Based on FGPA
    LiuNanNan ·Harbin Engineering University ·2013 ·Master's thesis