【正文】
the hardware circuit is more and more used in implementation such as SPI interface. Relative to the software, hardware has more a standard interface, SPI has advantages of simple and convenient and saving system resources, makes the most of the chip is supported by the interface block is mainly used in EEPROM, FLASH, realtime clock, AD converter, and between the digital signal processor and digital signal decoder. SPI Interface is the full name of Serial Peripheral Interface, Serial Peripheral Interface, Motorola is first defined on its MC68HCXX series processors, most manufacturers are now based on the definition of Motorola to design. This paper is to use the Verilog hardware description language to write the SPI bus host module, the simulation of the ModelSim simulation waveform. According to the simulation waveform analysis, the design of SPI host module function is right. Finally in Xilinx ISE in prehensive and the implementation of the module, and pleted verify on the FPGA. Keywords: FPGA ; SPI interface; Verilog; Xilinx ISE Abstract IV 目錄 i 目錄 摘要 .................................................................................................................................................II Abstract.......................................................................................................................................... III 目錄 .................................................................................................................................................. i 第 1 章 緒論 ................................................................................................................................... 1 研究背景 .......................................................................................................................... 1 系統(tǒng)芯片的發(fā)展 .................................................................................................... 1 IP 核 ........................................................................................................................ 1 數(shù)據(jù)傳送 ................................................................................................................ 2 SPI 研究的目的及意義 .................................................................................................... 3 本文的主要工作及構(gòu)架 ................................................................................................... 3 研究的基本內(nèi)容 .................................................................................................... 3 技術(shù)方案 ................................................................................................................ 3 第 2 章 SPI 原理分析 .................................................................................................................... 5 SPI 通信總線 ................................................................................................................. 5 SPI 簡介 ......................................................................................................................... 5 SPI 的工作模式 ................................................................................................................ 6 主模式 .................................................................................................................... 6 從模式 ................................................................................................................... 7 SPI 的傳輸模式 ................................................................................................................ 7 SPI 協(xié)議 ............................................................................................................................ 8 第 3 章方案論證 ........................................................................................................................... 11 用 FPGA 來設(shè)計 SPI ..................................................................................................... 11 用 51 系列單片機(jī)實現(xiàn) SPI ........................................................................................... 11 第 4 章 SPI 的電路設(shè)計 ............................................................................................................... 13 管腳說明 ......................................................................................................................... 13 SPI 系統(tǒng)中所用的寄存器 .............................................................................................. 13 SPI 速率控制 .................................................................................................................. 14 SPI 控制狀態(tài)機(jī) .............................................................................................................. 15 SPI 程序設(shè)計流程圖 ...................................................................................................... 16 第 5 章仿真及驗證 ....................................................................................................................... 19 仿真分析 ......................................................................................................................... 19 第 6 章 結(jié)論與展望 ..................................................................................................................... 22 結(jié)論 ................................................................................................................................. 22 不足之處及未來展望 ..................................................................................................... 22 參考文獻(xiàn) ....................................................................................................................................... 23 致 謝 ........................................................................................................................................... 24 附錄 A ............................................................................