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