赛灵思
直播中

李丽

8年用户 304经验值
私信 关注
[问答]

怎么使用AXI Quad SPI IP Core对带有PROM文件的SPI Flash进行编程

你好,
我有一个设计,我希望能够在初始编程后更新SPI配置闪存上的PROM文件。
到目前为止,我的研究表明,在完成FPGA编程后,应该可以与配置spi flash连接。
在我的设计中,我有一个内存映射AXI总线,由AXI主机(PCIe)控制,从主机PC接收其事务。
我的想法是能够通过PCIe链路发送PROM bistream到使用新PROM文件对SPI闪存进行编程的AXI Quad SPI IP Core  - 这应该是可能的,对吗?
如果我错在某处,请纠正我,因为我很不高兴。
我现在的问题是,在将PROM文件解析为SPI闪存之前,PROM文件应该采用哪种格式,在将其发送到SPI Flash之前是否需要对PROM文件(MCS)进行任何解释?
先谢谢你!

以上来自于谷歌翻译


以下为原文

Hello,

I have a design where i wish to be able to update the PROM file on the SPI Configuration Flash after initial programming. My research so far has showed that it should be possible to interface with the configuration spi flash after the FPGA is finished being programmed from it.

On my design i have a memory mapped AXI bus that is controlled from an AXI master (PCIe) that receives its transactions from a host PC.

My idea is the be able to send PROM bistream over the PCIe link, to the AXI Quad SPI IP Core that programs the SPI flash with the new PROM file - This should be possible, right? Please correct me if i'm wrong somewhere as i'm pretty new to alot of this.

My question now is, which format should the PROM file be in before parsing it over to the SPI flash and do i need to do any interpretation of the PROM file(MCS) before sending it to the SPI Flash?

Thank you in advance!

回帖(8)

刘丰标

2019-3-14 14:00:33
mcs文件包含地址信息。
检查以下链接以获取mcs文件格式
http://www.xilinx.com/support/answers/476.html
mcs文件具有地址信息,因此您需要将其删除并将数据单独发送到spi flash。
mcs文件也包括编程信息。
您可以检查.bin文件格式,这可能有助于您的预期程序
有关mcs文件和bin文件详细信息和生成的更多详细信息,请查看以下链接
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/devref.pdf
检查以下链接,了解为spartan-3a设备实现的闪存编程器设计
http://www.xilinx.com/products/boards/s3astarter/reference_designs.htm
--Krishna
在原帖中查看解决方案

以上来自于谷歌翻译


以下为原文

mcs file contains the address information.
check the following link for the mcs file format
http://www.xilinx.com/support/answers/476.html
mcs file has the address info so you need to remove this and send data alone to the spi flash. Also mcs file includes programming information.
You can check the .bin file format which might help your intended procedure
check the following link for more details on the mcs file and bin file details and generation
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/devref.pdf
check the following link for the flash programmer designs which was implemented for spartan-3a devices
http://www.xilinx.com/products/boards/s3astarter/reference_designs.htm
 
--Krishna
View solution in original post
举报

刘丰标

2019-3-14 14:19:18
是的,在配置FPGA之后,您将能够编写SPI闪存。
查看以下可能有用的应用说明,
http://www.xilinx.com/support/documentation/application_notes/xapp1020.pdf
--Krishna

以上来自于谷歌翻译


以下为原文

Yes, after configuration of the FPGA you will be able to write the SPI flash.
check the following app note which might be helpful,
http://www.xilinx.com/support/documentation/application_notes/xapp1020.pdf
 
--Krishna
举报

陈具松

2019-3-14 14:37:10
你好,
感谢您提供应用笔记 - 关于与SPI Flash的接口非常有用。
然而,关于如何在将比特流传递到AXI Quad SPI IP核的写寄存器之前正确格式化比特流的问题。
我可以直接传递.MCS文件的内容吗?
有关于此的任何建议材料吗?

以上来自于谷歌翻译


以下为原文

Hello,
 
Thank you for the application note - Very usefull with regards to interfacing with the SPI Flash.

However the question on how to format the bitstream correctly before passing it over to the write register of the AXI Quad SPI IP Core. Can i just pass the contents of the .MCS file directly over?
 
Any suggestion material on that?
 
 
举报

陈具松

2019-3-14 14:46:56
你好,
在上一篇文章中,没有人对我的问题有任何有用的信息?
任何帮助将非常感激。
谢谢

以上来自于谷歌翻译


以下为原文

Hello,
 
No one has any useful information regarding my question in the previous post? Any help would be much appreciated.
 
Thank you
举报

更多回帖

发帖
×
20
完善资料,
赚取积分