1、 编 号编 号 毕业设计(论文)毕业设计(论文) 题目:题目:SPI 接口的仿真及验证 物联网工程 学 院 电 子 信 息 工 程 专 业 学 号 学生姓名 指导教师 二一三年六月 摘要 I 摘要摘要 在专用集成电路(ASIC)设计技术以及超大规模集成电路(VLSI)工艺技术的飞速发展 的今天,FPGA编程的硬件电路被越来越多的应用于实现诸如SPI接口等方面。相对于软件 实现,硬件具有更多的优点。SPI接口技术是一种高速高效率的串行接口技术, 主要用于扩 展外设及其数据交换, 已经作为一种配置标准。作为一个标准的接口,SPI具有简单方便和 节省系统资源的优点,使得大多数芯片都支持该接口。SPI
2、接口主要应用在EEPROM、 FLASH、实时时钟、AD转换器,还有数字信号处理器和数字信号解码器之间。 SPI 接口的全称是“Serial Peripheral Interface“,串行外围接口,是由 Motorola 公司首先 在其 MC68HCXX 系列处理器上定义的。现在大部分厂家都是参照 Motorola 的定义来设计 的。 因为没有确切的版本协议, 所以不同厂家的 SPI 接口在技术上存在一定程度上的差别, 甚至会引起歧义。 本文是利用Verilog硬件描述语言编写出SPI总线的主机模块,经过Xilinx ISE仿真得 出相应的仿真波形。根据仿真波形分析,所设计的 SPI 主机模
3、块的功能是正确的,并且在 Xilinx ISE 中对该模块进行综合与实现。 关键词:关键词:FPGA;SPI 接口;Verilog;Xilinx ISE Abstract II Abstract In application-specific integrated circuit (ASIC) design technology and very large scale integrated circuit (VLSI) technology rapid development today, the FPGA programming of the hardware circuit is mor
4、e and more used in implementation such as SPI interface. Relative to the software, hardware has more advantages.As 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.SPI interface block is mainly use
5、d in EEPROM, FLASH, real-time 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 no
6、w 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 comprehensive and the implementation of the module, and completed verify on the FPGA. Keywords:FPGA ;SPI interface;Verilog;Xilinx ISE 目录 i