xilinx FPGA的远程更新(动态加载)详解(Using a Microprocessor to Configure 7 Series FPGAs)
目錄
- 1 概述
- 2 參考文件
- 3 遠(yuǎn)程更新思路
- 4 MIC配置FPGA的模式
- 4.1 slave serial mode情況
- 4.2 slave selectMAP mode情況
- 5 FPGA配置時序
- **5.1** **serial** **配置時序**
- **5.2** **SelectMAP****配置時序**
- 6 程序配置順序
- 6.1 程序的基本配置順序
- 6.2 Slave Serial Configuration Flow Diagram
- 6.3 Select MAP Configuration Flow Diagram
- 7 數(shù)據(jù)格式與bit交換規(guī)律
- 7.1 數(shù)據(jù)格式
- 7.2 Bit交換規(guī)律
- 8 參考代碼
1 概述
本文用于講解FPGA的遠(yuǎn)程更新的一種思路。
遠(yuǎn)程更新是指不用在本地靠近再用JTAG燒寫程序,可以在遠(yuǎn)端通過上位機(jī)加載程序。
至于上位機(jī)通過什么方式把程序發(fā)送到本地則看使用者自己設(shè)計(jì),比如以太網(wǎng)、串口、SPI、GTX等等。
2 參考文件
《ug470》
《xapp502》
《xapp583》
3 遠(yuǎn)程更新思路
借用微處理器(簡稱MIC)配置FPGA的思路進(jìn)行遠(yuǎn)程更新。雖然一般情況下MIC配置FPGA只是用于動態(tài)加載,即遠(yuǎn)程燒寫bit臨時調(diào)試,掉電后程序會丟失。但若是想將遠(yuǎn)程傳輸過來的程序(例如bin文件)寫入MIC上掛的flash中,然后MIC再將flash中的程序?qū)懭隖PGA,每次MIC上電后都會先把FLASH中的程序讀取后傳輸去燒寫FPGA,則就實(shí)現(xiàn)了掉電不丟失的遠(yuǎn)程更新功能。
其架構(gòu)如下圖所示:
圖 1 程序燒寫架構(gòu)圖
4 MIC配置FPGA的模式
7 Series FPGA Configuration Modes如下所示:
MIC配置FPGA有兩種模式:
slave serial mode ;
slave selectMAP mode。
當(dāng)然為了調(diào)試的方便性,無論是用slave serial mode 與slave selectMAP mode設(shè)計(jì)時建議都加上JTAG。
4.1 slave serial mode情況
圖 2 slave serial mode配置示例
其使用的管腳情況如下所示:
4.2 slave selectMAP mode情況
圖 3 slave selectMAP mode配置示意
其使用的管腳情況如下所示:
5 FPGA配置時序
5.1 serial 配置時序
注意:
1)Bit 0 represents the MSB of the first byte. For example, if the first byte is 0xAA (1010_1010), bit 0 = 1, bit 1 = 0, bit 2 = 1, etc.
2) For Master configuration mode, CCLK is driven only after INIT_B goes High to shortlyafter DONE goes High. Otherwise CCLK is in a high-Z state. Data sheet timing isrelative to the CCLK pin.
3) CCLK can be free-running in Slave Serial mode.
5.2 SelectMAP****配置時序
6 程序配置順序
6.1 程序的基本配置順序
圖 4 基本配置順序
6.2 Slave Serial Configuration Flow Diagram
6.3 Select MAP Configuration Flow Diagram
7 數(shù)據(jù)格式與bit交換規(guī)律
7.1 數(shù)據(jù)格式
要將bit流燒寫進(jìn)flash中一般都要對應(yīng)的數(shù)據(jù)格式,XILINX FPGA的數(shù)據(jù)格式有:
7.2 Bit交換規(guī)律
8 參考代碼
1)slave serial mode的參考代碼:
https://download.csdn.net/download/u014586651/71894363
2)slave selectMAP mode的參考代碼:
https://download.csdn.net/download/u014586651/71895288
總結(jié)
以上是生活随笔為你收集整理的xilinx FPGA的远程更新(动态加载)详解(Using a Microprocessor to Configure 7 Series FPGAs)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Web 前端攻防(2014版)-baid
- 下一篇: Xilinx FPGA GTX的DRP速