摘要
传统的Flash读写是通过CPU软件编程实现,其读写速度较慢,且占用CPU资源,另外由于Flash芯片本身功能指令较多,使得对芯片进行直接操作变得非常困难。本文提出一个基于FPGA的SPI Flash读写硬件实现方案,该方案利用硬件对SPI Flash进行控制,能够非常方便地完成Flash的读写、擦除、刷新及预充电等操作,同时编写的SPI Flash控制器IP核能够进行移植和复用,作为SOC芯片的功能模块。SPI Flash控制器采用VHDL语言进行编写,在Modelsim 6.5g上通过功能仿真,并且在XUPV5-LX110T FPGA开发板上通过硬件测试,实现结果表明方案的可行性。
General y,the data read/write of Flash is realized by software programming of CPU,but the data rate of this way is relatively low and causes CPU resource consumption. Meanwhile,since the instruction of Flash is more,it is hard to operate the chip directly.This paper presents a program which realizes the SPI Flash data read/write by hardware based on FPGA.In this program,SPI Flash could be control ed by hardware and the operations of Flash,such as data read/write,erase,refresh and pre-charge,could be easy to implement.The SPI Flash control er IP core could be transplant and reuse,as a SOC function module.The SPI Flash control er in this program is coded by VHDL,simulated in Modelsim 6.5g EDA tool, and successful y tested on XUPV5-LX110T FPGA development board.The experimental results show that the program is feasible.
出处
《电子世界》
2013年第12期137-137,F0003,共2页
Electronics World