基于verilog的SPI设计

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

武汉理工大学本科学生毕业设计(论文)开题报告

目录

摘要.................................................................................. I Abstract ............................................................................. II 1 绪论.. (3)

1.1课题研究背景 (3)

1.2 SPI研究目的及意义 (4)

1.3 本章小结 (4)

2 SPI原理分析 (5)

2.1 SPI介绍 (5)

2.2 SPI工作模式 (6)

2.3 SPI传输模式 (6)

2.4 SPI协议 (7)

2.5 本章小结 (8)

3 方案论证 (10)

3.1在51系列单片机系统中实现 (10)

3.2 用可编程逻辑器件设计SPI (11)

3.3 本章小结 (11)

4 SPI的电路设计 (12)

4.1 SPI设计系统的功能 (12)

4.2 SPI各部分具体实现 (12)

4.2.2 SPI系统中所用的寄存器 (13)

4.2.3 SPI速率控制 (14)

4.2.4 SPI控制状态机 (14)

4.2.5 SPI程序设计流程图 (15)

4.3 SPI仿真及开发板上调试验证分析 (16)

4.3.1 仿真分析 (16)

4.3.2开发板上调试 (18)

4.4 本章小结 (20)

5 论文总结 (21)

致谢 (22)

参考文献 (23)

附录1 (24)

附录2 (28)

摘要

随着专用集成电路(ASIC)设计技术的进步以及超大规模集成电路(VLSI)工艺技术的飞速发展,以及其价格的日益降低,采用FPGA编程的硬件电路来实现诸如SPI接口也日益切实可行,相对软件实现具有更好的优点。SPI接口是一种常用的标准接口,由于其使用简单方便且节省系统资源,很多芯片都支持该接口,SPI接口主要应用在EEPROM,FLASH,实时时钟,AD转换器,还有数字信号处理器和数字信号解码器之间等等。

由于SPI接口是一种事实标准,并没有标准协议,大部分厂家都是参照Motorola的SPI接口定义来设计的,但正因为没有确切的版本协议,不同厂家产品的SPI接口在技术上存在一定的差别,容易引起歧义,有的甚至无法互联(需要用软件进行必要的修改)。本文基于一种使用较为普遍的协议来进行设计,并参照Motorola公司的MC68HC11A8单片机中的SPI模块定义来设计的简化的SPI接口,用Verilog语言进行编写设计,并在ISE 软件上进行设计仿真,并在基于Xlinx公司的Spartan-3E芯片的Digilent公司出品的Nexys2开发板上用在线逻辑分析仪chipscope进行板上调试验证观察结果,并完成实现功能,并具有一些独创性的设计。

关键词:FPGA Verilog SPI协议 chipscope ISE

Abstract

With the advances in design technology of ASIC and VLSI’s rapid development, and its price is lower, the hardware circuit based on FPGA programming interface to achieve such as SPI is feasible, and it realizes better than software. SPI interface is a common standard interface, due to its simple and convenient use and save system resource , a lot of chips support this interface. SPI interface is extensively applied in EEPROM, FLASH, real-time clock, AD converter, and digital signal processor and digital signals decoder, etc.

Due to the interface is a fact SPI standard, and it has no standard protocol, most manufacturers design the SPI refer to the interface definition of Motorola's reference.Because of no definite agreement, there is a lot of different versions of the products in the technology exists on SPI interface, easy cause of ambiguity, some even cannot interconnect (need to do some m odification).Based on a common protocols for design, and the company MC68HC11A8 microcontroller of Motorola module definition to design the SPI simplified SPI interface, with Verilog language writing, and in the design of the software design ISE simulation, and based on the Xlinx company Digilent chip Spartan 3E - the Nexys2 development board with online logic analyzers chipscope on board, and debugging validation observations, and complete functionality has some distinctive design.

Keywords:FPGA Verilog SPI protocol chipscope ISE

相关文档
最新文档