FPGA ICAP在線升級 MultiBoot


 原理:使用icap IP模塊,會自動通過spi串口從外部w25q64讀取bin文件到內部,然后執行,若沒有uart升級指令傳來,20秒后跳轉到外部w25q64的0x400000處,讀取Bin文件到fpga。

測試流程:先使用ISE下載ICAP代碼到板子,然后使用fpga_update軟件下載icap的bin文件到w25q64的0地址,重啟板子,使用fpga_update軟件下載其他應用的bin到0x400000.

//實例化icap原語
ICAP_SPARTAN6 #(
.DEVICE_ID('h4001093), //不同型號的芯片,ID號不同 x9 ID='h4001093
.SIM_CFG_FILE_NAME("NONE") // Specifies the Raw Bitstream (RBT) file to be parsed by the simulationendmodule
// model
)
ICAP_SPARTAN6_inst (
.BUSY(BUSY), // 1-bit output: Busy/Ready output
.O(O), // 16-bit output: Configuartion data output bus
.CE(c_en), // 1-bit input: Active-Low ICAP Enable input
.CLK(sclk), // 1-bit input: Clock input
.I(i_crop), // 16-bit input: Configuration data input bus
.WRITE(wr_en) // 1-bit input: Read/Write control input
);

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM