吉林大学学报(理学版)

• 计算机科学 • 上一篇    下一篇

基于FPGA的SPI接口Flash控制器设计及其在存储配置数据中的应用

赵庆平1, 李素文1, 杜伟宁2, 姜恩华1   

  1. 1. 淮北师范大学 物理与电子信息学院, 安徽 淮北 235000; 2. 空军航空大学 飞行训练基地, 长春 130062
  • 收稿日期:2014-04-11 出版日期:2014-09-26 发布日期:2014-09-26
  • 通讯作者: 赵庆平 E-mail:zhaoqingping1215@163.com

Design of SPI Interface Flash Controller Based on FPGA

ZHAO Qingping1, LI Suwen1, DU Weining2, JIANG Enhua1   

  1. 1. School of Physics and Electronic Information, Huaibei Normal University, Huaibei 235000, Anhui Province, China;2. Flight Training Basic, Aviation University of Air Force, Changchun 130062, China
  • Received:2014-04-11 Online:2014-09-26 Published:2014-09-26
  • Contact: ZHAO Qingping E-mail:zhaoqingping1215@163.com

摘要:

针对现场可编程门阵列(FPGA)丰富的逻辑资源及产生精确时序的能力, 给出一种基于FPGA的SPI控制器的设计方法. 可方便地对SPI flash进行读写、 擦除等操作, 从而能快速、 准确地存储数据. 在SPI控制器设计过程中使用Modelsim进行仿真验证, 并用VHDL硬件描述语言进行编程,下载到FPGA开发板上进行测试, 对SPI接
口flash进行操作, 证明了系统设计方法的正确性和可靠性, 该方法对flash存储控制系统的设计具有普遍适用性, 实现了对以FPGA为控制核心的系统数据长时间存储.

关键词: 串行外设接口控制器, 现场可编程门阵列, VHDL设计, Modelsim仿真

Abstract:

The authors presented a designed method using serial peripheral interface controller based on field programmable gate array. Using logic resources of FPGA with the ability to produce accurate time series, we can expediently readwrite and wipe SPI flash and store data rapidly and accurately. It also expounds the designing process of SPI controller, which utilizes the simulation and verification by Modelsim and uses VHDL hardware description lang
uage to programme. Then we downloaded the program to FPGA development board to test and verify the readwrite and wipe SPI flash and finally operated the SPI interface flash. It is proved that the method is correct and reliable, and has general applicability to the system designment of the flash controller. This method with FPGA as the control core of system achieved data storage for a long time.

Key words: serial peripheral interface (SPI) controller, field programmable gate array(FPGA), VHDL design, Modelsim simulation

中图分类号: 

  • TP332.3