WAN Yao,LI Li.An Online Upgrade Scheme based on FPGA[J].Journal of Chengdu University of Information Technology,2020,35(05):493-498.[doi:10.16836/j.cnki.jcuit.2020.05.002]
一种基于FPGA的在线升级方案
- Title:
- An Online Upgrade Scheme based on FPGA
- 文章编号:
- 2096-1618(2020)05-0493-06
- Keywords:
- SPI; Flash; RS232 serial communication; ICAP; MultiBoot
- 分类号:
- TP332.1
- 文献标志码:
- A
- 摘要:
- 一般对FPGA程序升级,需要使用下载器通过JTAG接口与FPGA连接,在一些不方便开盖的环境下,此种升级方案非常困难。基于XILINX公司的XC6SLX9芯片,利用FPGA的MultiBoot将多个配置文件下载入Flash中的特性, 介绍一种基于Flash、FPGA和RS232串行通信的在线升级方案。FPGA通过SPI总线配置Flash,ICAP接口使FPGA跳转到Flash的对应地址读取烧写到Flash中的.bin文件。方案可在不增加额外器件且不开盖的情况下仅通过一个RS232通信接口,上位机软件就能完成对用户设计的功能程序或产品程序的升级,对程序存储芯片Flash的操作均由FPGA内部逻辑实现。结果表明,该方法有效且具有很好的移植性和可扩展性。
- Abstract:
- In general, to upgrade FPGA program, we need to use the downloader to connect with FPGA through JTAG interface, which is very difficult when it is inconvenient to uncover the device. Based on XC6SLX9chip of Xilinx company, this paper introduces an online upgrade scheme based on flash, FPGA and RS232 serial communication, which uses FPGA’s MultiBoot to download multiple configuration files into flash. FPGA configures flash through SPI bus, and ICAP interface makes FPGA jump to the corresponding address of flash to read.bin file written into flash. This scheme can upgrade the function program or product program designed by the userby the Upper computer software through only one RS232 communication interface without adding additional devices and opening the cover. Through only one RS232 communication interface the upper computer software can upgrade the function program or product program designed by the user at which in this scheme without the additional devices and without opening the cover.Inthis scheme,the operation of program memory chip Flash is implemented by FPGA internal logic.The result shows that this method is effective and has good portability and expansibility.
参考文献/References:
[1] 陈炳成.基于FPGA的SPI Flash控制器的设计与实现[J].电子世界,2013(12):137+231.
[2] 陈明义,连帅军,周建国.基于FPGA的FLASH控制器系统设计及实现[J].电子科技,2008(7): 11-13+16.
[3] 刘俊.基于FPGA的FLASH控制器的设计[J].电子技术与软件工程,2016(23):125-126.
[4] 罗莉,夏军,邓宇.通用SPI Flash控制器的设计与验证[J].计算机工程,2011,37(8):22-24+27.
[5] 赵庆平,李素文,杜伟宁,等.基于FPGA的SPI接口Flash控制器设计及其在存储配置数据中的应用[J].吉林大学学报(理学版),2014,52(5):1022-1026.
[6] 贾嘉,王新安,雍珊珊.基于W25Q80BL的FPGA配置控制器的设计与验证[J].电子器件,2014,37(3):474-477.
[7] 张立为,钟慧敏.实现基于FPGA的SPI Flash控制器设计[J].微计算机信息,2010,26(17):124-126.
[8] 林天静,阮翔,刘春.基于Flash控制器的FPGA在线加载功能设计[J].电子技术应用,2019,45(1):88-91.
[9] 关珊珊,周洁敏.基于Xilinx FPGA的SPI Flash控制器设计与验证[J].电子器件,2012,35(2):216-220.
[10] 冯明发,卢锦川.基于FPGA的NAND Flash控制器设计[J].煤炭技术,2010,29(11):201-202+205.
[11] 徐立国,李德建,于宝东,et al.一种支持在线升级的NOR Flash控制器设计[J].电子技术应用,2019,45(10):50-57.
[12] 刘钊,杜永锋,许知博.基于Xilinx-Spartan6 FPGA的MultiBoot设计的实现[J].电子科技,2012,25(3):28-31.
[13] 李平,吴晓,山寿.基于SPI FLASH的FPGA多重配置[J].现代电子技术,2013,36(22):127-130.
[14] 邱金蕙,李振全.基于Max Ⅱ CPLD和Flash实现FPGA的多重配置[J].河北科技大学学报,2008(2):158-160.
[15] 张江伟.基于Virtex-5和FLASH实现FPGA的多重配置[J].计算机与网络,2012,38(Z1):130-132.
备注/Memo
收稿日期:2019-11-26
基金项目:国家自然科学基金资助项目(61601065)