The Design and Implementation of Security SD Card SoC Chip SPI Interface

Author
ZhangJianLong
Advisor
WuChunZuo
School
Liaoning University
Major
Microelectronics and Solid State Electronics
Classification
TN47 LSI,ultra LSI
Degree
Master's thesis
Year
2011
Downloads
85
Citations
0

Request the full text

Abstract

The SPI(Serial peripheral interface) put forward by Motorola is a high-speed and efficient serial interface technology, support full-duplex, synchronous, serial communication. SD card (Secure Digital Memory Card) which is a new memory equipment based on semiconductor storage memory is widely applied in portable device. SD card has enough storage, fast data transfer rate, high flexibility and security. It is integrated solid medium without any motion part, so that the damage of the mechanical movement needn’t to be worried. The structure of SD card not only ensure the security of the digital document transaction, but also make the anew of the format easier. As SD card supports SPI transfer mode, its SPI controller’s design becomes very important.To the users, the advantage of SPI controller is the compatibility for many devices. The Motorola puts forward a facial standard without unified protocol. While most companies designed SPI controller by consulting Motorola’s standard, some difference will appear between different companies in SPI technical aspect. Therefore, designing a widely applied SPI controller needs many detail questions to be noticed. To the users, the advantage of SPI controller is the compatibility for many devices. If someone wants to achieve application widely, the first need is to meet multiple transmission formats. Although one device’s transmission format is fixed, different devices usually have different transmission formats.If you want to ensure the SPI interface controller to communicate with the SD card, requirements the the interface controller must support Slave mode of operation. In this mode, the transmission clock and chip select signals are provided by the master device, this time involving not only the technical aspects of cross-clock domain, but also the diversity of problems encountered in transmission timing. In the design process synchronous transfer control signal design programs to address the problem of cross-clock domains, multi-mode transmission using support programs to address the transmission sequence diversity. Have shown that the design of various verification the accuracy and reliability.In addition to ensuring communication with the SD card, the interface module can also communicate with SPI FLASH, LCD displays, then the interface module in Master mode, in which the work mode leaves the clock selection signals and transmission by modules within. When the interface module in Master mode, the same sequence diversity encountered transmission problems, SPI protocol supports a master more from work, in order to achieve a main module and two modules without the need for hardware reset from the premise alternately work in the original basis of a chip select signal added on a chip select signal line, making the operation becomes easy.After careful designing, this SPI controller can support four transmission forms and choose whether the data is transferred the most significant bit first or the least significant bit first. Because there is a FIFO when the SPI sends data, the speed of data transmission is also improved.In the process of chip’s design in modern times, verification becomes the most important part. There will be no eligible products without strict verification. Therefore, in the process of the designing of the SPI controller, every step is going with strict verification, especially the massive platform verification of the RTL level code.After massive platform verification, simulation and FPGA verification to the SPI controller IP core, the SPI controller is applied in a SoC chip successfully. At current time, the chip has been taped out successfully, the finishing test result indicates the IP’s function and performance all achieve the design target, all kinds of tests results proves the design is highly reliable and flexible.

Table of contents

Abstract 4-6 ABSTRACT 6-14 Chapter 1 Introduction 14-17 1.1 subject background 14-15 < br /> 1.2 research the meaning of 15 1.3 paper structure and content 15-17 Chapter 2 SoC chip and on-chip bus analysis and 17-33 2.1 SoC technology Overview 17-22 2.1.1 SoC design flow 18 2.1.2 SoC key to 18 - 20 2.1.3 SoC technology widely used 20-22 2.2 SoC chip bus Research 22-32 2.2.1 Introduction 22-29 22 2.2.2 SoC bus analysis and introduction 5 2.2.3 SoC bus analysis and 29-32 2.2.4 Conclusion 32 2.3 Summary 32-33 Chapter 3 SPI protocol status quo and the SD card's SPI transfer mode 33-45 3.1 the SPI the status quo agreement 33-37 3.1.1 SPI interface signals 33-34 3.1.2 SPI master mode transmission 34-35 3.1. 3 SPI Slave mode transmission 35 3.1.4 SPI transmission format and timing 35-37 3.2 SD card SPI transfer mode 37-43 <br / 3.2.1 Mode Selection 38 3.2.2 bus transfer protection 38-39 3.2.3 Data read 39-40 3.2.4 Data write 40-42 3.2.5 erase and write protection management 42 3.2.6 read CID (channel logo) / the CSD (Directive signal decoder) register 42-43 3.2.7 Reset order 43 3.2.8 the CRC and invalid command 43 3.3 of this chapter summary 43-45 Chapter 4 of SPI interface module design 45-64 4.1 SPI interface module features an overview of 45-48 4.1. support master mode and slave mode 45 4.1.2 supports four modes of communication 45 4.1.3 support for two selected from the equipment piece 45-46 4.1.4 supports an external three-wire / 4 wire mode LCD display 46-47 4.1.5 supports interrupt request 47 4.1.6 to support low-power mode 47 4.1.7 supports the way the error interrupt request 47-48 4.2 SPI interface module, system architecture design 48-51 4.2.1 SPI interface module system architecture diagram 48-49 4.2.2 SFR bus interface module 49 4.2.3 system signal module 49-50 4.2.4 interrupt request module 50 4.2.5 the PAD interface module 50-51 4.3 SPI interface module structure design 51 4.4 SPI interface module function module design 51-62 4.4.1 SFR bus interface function modules (spi_sfrbi) 51-52 4.4.2 SPI PAD interface function module (spi_pi) 52-53 4.4.3 SPI interrupt interface function modules (spi_int) 53-54 4.4.4 SPI core functionality module (spi_core,) 54-61 4.4.5 SPI CRC checking function module (spi_redundancy_code,) 61-62 4.5 Summary 62-64 Chapter 5 SPI interface module of the simulation and verification 64-84 5.1 functional verification and simulation 64-74 5.1.1 module-level code, functional verification 64-72 5.1.2 validation the overall validation of the platform 72-74 5.2 FPGA verification 74-81 5.2.1 FPGA verification system profile 75-76 5.2.2 communication with the SD card verification mode 76-77 5.2.3 CRC checksum verification 77-78 5.2.4 the main mode of communication with SPI FLASH 78-79 5.2.5 Main mode with the LCD monitor communications 79-81 5.3 chip the tapeout test (final test) 81-83 5.4 Summary 83-84 Conclusion to Chapter 6, 84-85 thank 85-86 reference literature 86 -89 during the study for a degree of academic papers and to participate in the research situation 89-90

Related dissertations

  1. Research on Collaborative Optimization of city group logistics base and multi task
  2. Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
    XuZuoFang ·Hunan University ·2013 ·Master's thesis
  3. Optical Fiber Perimeter Alarm System Based on DSP and FPGA
  4. Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
    LiuWen ·Xiangtan University ·2013 ·Master's thesis
  5. Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
  6. Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
  7. Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
    ZhangZhiQiang ·Tianjin University ·2009 ·Master's thesis
  8. Research of Dual Chanel High Speed Data Acquisition Card
    DanGuangXing ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
    ZuoJiaLin ·Tianjin University ·2012 ·Master's thesis
  10. The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
    LiuRongPeng ·Tianjin University ·2012 ·Master's thesis
  11. Design of Remote Strain Measurement System Based on FGPA
    LiuNanNan ·Harbin Engineering University ·2013 ·Master's thesis
  12. The Design of Digital Ultrasonic Nondestructive Testing System
  13. Design and Implementation of High Speed Data Recorder Based on FPGA
  14. Design of the High-speed Data Acquisition System Based on USB Interface
    LiuYu ·Harbin Engineering University ·2013 ·Master's thesis
  15. Research on Distributed Industrial Signal Modularized Data Acquisition System Based on ARM
    CuiXiaoNan ·Hebei University of Technology ·2013 ·Master's thesis
  16. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  17. Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
    XieJiaZu ·Tianjin Normal University ·2013 ·Master's thesis
  18. The Design and Research of PCI Data Acquisition Card Based on FPGA
  19. Usb Without Invasive Data Collection Technology Research
  20. Research on On-line Diameter Measurement System Based on FPGA