RM新时代网站-首页

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫(xiě)文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

詳解Xilinx FPGA的配置模式(Master/Slave模式,Serial/SelectMAP模式)

454398 ? 來(lái)源:硬件助手 ? 作者:硬件助手 ? 2021-01-01 10:12 ? 次閱讀

本文主要介紹Xilinx FPGA的配置模式,主要包括Master/Slave模式,Serial/SelectMAP模式,JTAG模式等。其中7系列只有Logic部分,其配置相關(guān)功能引腳全部連接到FPGA端的特定bank上;Zynq 7000系列既有PL部分,也有PS部分,其JTAG從PL側(cè)引出,其余配置相關(guān)引腳全部從PS側(cè)引出;Zynq UltraScale+系列也有PL部分和PS部分,但其配置相關(guān)功能引腳全部從PS側(cè)引出。

1、7系列配置

7系列FPGA支持的配置模式如下表所以,每一個(gè)系列的bank位置不一樣,接口電壓也不一樣。

o4YBAF9uFpWAPJA5AAFE96sa2Sw877.png

每一種模式下對(duì)應(yīng)的引腳定義如下表所示:

pIYBAF9uFpiADelZAAMJeZObx6c509.png

每一個(gè)配置引腳的定義此文不再一一羅列,詳細(xì)參見(jiàn)UG470中的表2-4。其中配置bank的電壓選擇引腳詳細(xì)介紹如下:

o4YBAF9uFpqAHdj_AAHgdN5xIqU586.png


pIYBAF9uFp2AeD0PAAJ7Qj5IXG8960.png

具體的配置模式較多,每一種都有連接示意圖,詳細(xì)可參見(jiàn)UG470的圖2-2(Slave Serial Mode)、圖2-5(Single Slave Device SelectMAP Mode)、圖2-12(Master SPI x1/x2 Mode)、圖2-14(Master SPI x4 Mode)、圖2-17(Master BPI Mode-Asynchronous)、圖2-20(Master BPI Mode-Synchronous)。另外Master Serial Mode和Slave Serial Mode一樣,只是CCLK由FPGA產(chǎn)生。

2、UltraScale系列配置

UltraScale系列FPGA的配置和7系列的類(lèi)似,主要區(qū)別如下表所示:

o4YBAF9uFp6AEGqRAAD9ADoPIDc030.png

其支持的配置模式如下表所示:

pIYBAF9uFqGAK0cBAAJ6fWpmJqA431.png

每一種模式下對(duì)應(yīng)的引腳定義如下表所示:

o4YBAF9uFqeAXKvNAAhRyzQzO6M522.png


pIYBAF9uFq2AUBPkAAoaK3EUiX0561.png

每一個(gè)配置引腳的定義此文不再一一羅列,詳細(xì)參見(jiàn)UG570中的表1-9。其中配置bank的電壓選擇引腳詳細(xì)介紹如下:

o4YBAF9uFq-AJeuzAAD3TbBnwi0964.png


pIYBAF9uFrKAFT7JAALpBMI9nYA197.png


pIYBAF9uFrSAcKrmAAI9307W2Zk854.png

具體的配置模式較多,每一種都有連接示意圖,詳細(xì)可參見(jiàn)UG570的圖2-2(Master SPI x1/x2 Mode)、圖2-4(Master SPI x4 Mode)、圖2-5(Master SPI x8 Mode)、圖3-2(Slave Serial Mode)、圖4-2(Master BPI Mode-x16 Synchronous)、圖4-4(Master BPI Mode-x16 Synchronous)、圖5-2(Slave SelectMAP Mode)。

3、UltraScale+系列配置

UltraScale+系列基本的配置和UltraScale系列一樣,主要有以下差異:

Master serial and master SelectMAP configuration modes are not supported in the UltraScale+ FPGAs. These modes are not recommended in the other UltraScale families. (US+不支持Master Serial and Master SelectMAP兩種模式。)

The configuration interface can operate only at 1.8V or 1.5V in the UltraScale+ FPGAs. There is no CFGBVS pin in UltraScale+ devices. When migrating from an UltraScale FPGA to an UltraScale+ FPGA, the CFGBVS pin location becomes RSVDGND and must be connected to GND. (US+的配置接口只支持1.8V和1.5V兩種電壓,沒(méi)有CFGBVS引腳了,而是預(yù)留RSVDGND引腳,如果要使US+系列兼容之前US系列,則該引腳必須接地。)

There is no CFGBVS pin in the Kintex UltraScale+ and Virtex UltraScale+ FPGAs because their configuration I/O only support operation at 1.8V or 1.5V. The pin location is labeled RSVDGND and it must be connected to GND.

The configuration timing and configuration rate options are different between UltraScale FPGAs and UltraScale+ FPGAs. The configuration frame size is 93 32-bit words in the UltraScale+ FPGAs and 123 32-bit words in the UltraScale FPGAs. (配置比特流的大小不一樣。)

Bank 65 is an HR bank in most Kintex UltraScale FPGAs(except KU095), an HP bank in the KU095 and Virtex UltraScale FPGAs, and an HP bank in all Kintex UltraScale+ and Virtex UltraScale+ FPGAs.

o4YBAF9uFreAKvMwAALxSWmzwl0015.png

4、Z7系列配置

Zynq 7000系列SoC的配置部分全部在ARM側(cè),除了JTAG從FPGA側(cè)引出之外(雖然對(duì)外引出FPGA側(cè)JTAG,但可以將PS部分配置成Cascade模式,這樣PL側(cè)和PS側(cè)形成JTAG鏈),所以其配置遵循ARM處理器的配置,具體支持的模式如下表所示:

pIYBAF9uFrqAMMlVAAKzZv20RBk978.png

對(duì)應(yīng)每一個(gè)外設(shè)接口的引腳定義如下表所示:

100017163-57616-14.png

不同模式下電源需求不一樣,

pIYBAF9uFsqAUuYpAADd7tO7qHw391.png

配置相關(guān)引腳的處理如下:

MIO[8:2] is used to configure the boot mode, PLL bypass, and MIO voltage. All designs must include a 20 K? pull-up or pull-down resistor on these pins to set the required setting.(配置引腳外部使用20K電阻進(jìn)行上下拉處理)

MIO[8] is a dual use pin that is shared with the high-speed QSPI/NAND/SRAM interface signals. Special care needs to be taken to avoid signal integrity issues. To avoid signal integrity issues, limit the stub length to the pull-up or pull-down resistor to

When system design requires the modes to be changeable, it is recommended to not use a resistor tree to set the mode but instead connect one pull-up/down resistor to the mode pin and place a jumper on the other side of the resistor to select between pull-up or pull-down.(為了便于切換啟動(dòng)模式,可以采用上下拉的方式預(yù)留,其實(shí)也可以采用撥碼開(kāi)關(guān)實(shí)現(xiàn))

The PL system JTAG interface, PL_JTAG, should have its signals TDI, TMS, and TCK pulled-up.(實(shí)際芯片內(nèi)部有上拉)

下面就針對(duì)SPI、NAND、NOR、SD Card、JTAG方式進(jìn)行詳細(xì)介紹如下:

4.1、Quad-SPI Boot

Quad-SPI boot has these features:

x1, x2, and x4 single device configuration.

Dual SS, 8-bit parallel I/O device configuration.

Dual SS, 4-bit stacked I/O configuration.

Execute-in-place option.

當(dāng)使用Quad-SPI模式配置時(shí),如果SPI Flash器件使用的是24bit尋址,則最大只能識(shí)別16MB的SPI Flash,如果要使用大于16MB的SPI Flash,則必須支持32bit尋址!?。?/p>

SPI boot具體注意事項(xiàng)如下:

The dual SS, 4-bit stacked I/O device configuration is supported, but the BootROM only searches within the first 16 MB address range. The BootROM accesses the device connected to the QSPI0_SS_B slave select signal.

In cases of Quad-SPI boot, if the image is authenticated, then the boot image should be placed at a 32K offset other than 0x0 (the image should not be placed starting at 0x0 offset in Quad-SPI).

There are special reset requirements when using more than 16 MBs of Flash memory. For hardware, refer to AR# 57744 for information. For software considerations, refer to UG821, Zynq-7000 All Programmable SoC Software Developers Guide.

Boot Image requirements when using larger than 16MB QSPI and RSA Authentication (refer AR# 57900).

pIYBAF9uFs2ABFP8AAK8_EyMdeU560.png

4.2、NAND Boot
NAND boot has these features:

8-bit or 16-bit NAND flash devices

Supports ONFI 1.0 device protocol

Bad block support

1-bit hardware ECC support

使用中的注意事項(xiàng)如下:

The boot image must be located within the first 128 MB address space of the NAND flash device for the BootROM Header search function.

The BootROM reads the ONFI compliant parameter information in 8-bit mode to determine the device width. If the device is 16 bits wide, then the BootROM enables the upper eight I/O signals for a 16-bit data bus. The 16-bit NAND interface is not available in 7z010 dual core and 7z007s single core CLG225 devices.

pIYBAF9uFtGAXRZ9AANA3wvZbMc478.png

4.3、NOR Boot
NOR boot has these features:

x8 asynchronous flash devices

Densities up to 256 Mb

Execute-in-place option

使用中的注意事項(xiàng)如下:

The BootROM does not try to perform any configuration detection of NOR flash devices. When NOR is the selected boot device, the BootROM programs the MIO pins as shown in Table 6-13.

The NOR interface is not available in 7z010 dual core and 7z007s single core CLG225 devices.

o4YBAF9uFtSAaIf7AAKWQDm4xls147.png

4.4、SD Card Boot
SD card boot supports these features:

Boot from standard SD or SDHC cards

FAT 16/32 file system

Up to 32 GB card densities

使用中的注意事項(xiàng)如下:

The SD card boot mode is not supported in 7z010 dual core and 7z007s single core CLG225 devices.

The SD card boot mode does not support header search or multiboot.

pIYBAF9uFtaAN6siAAGWImngOh4872.png

4.5、JTAG

JTAG部分,對(duì)外引出的是PL側(cè)的JTAG,但是PS側(cè)的JTAG可以通過(guò)Cascade模式從PL側(cè)引出,也可以通過(guò)Independent模式從MIO/EMIO引出。

pIYBAF9uFtmAX04kAAKFMkg6cNM656.png

5、ZU+系列配置

Zynq UltraScale+系列MPSoC/RFSoC的配置部分全部在ARM側(cè),所以其配置遵循ARM處理器的配置,具體支持的模式如下表所示:

o4YBAF9uFtuAWjQCAAGT4Wlk_Jg771.png


pIYBAF9uFtyATh1WAADAF_LS3dc420.png

配置時(shí)鐘的頻率是有要求的,不同的電壓等級(jí)配置時(shí)鐘頻率上限不一樣。

Boot Mode引腳的處理如下:

Connect the boot mode pins to a 4.7 kΩ or lower pull-up resister to VCCO_PSIO[3] or pull-down to ground depending on the desired setting.

If multiple switchable boot modes are desired, connect one pull-up/down resistor to the mode pin and place a jumper on the other side of the resistor to select between pull-up or pull-down.

An easily switchable boot mode configuration is recommended for debug ease-of-use.

PS_INIT_B, PS_PROG_B, and PS_DONE引腳處理如下:

Connect PS_INIT_B to a 4.7 kΩ pull-up resistor to VCCO_PSIO[3]. PS_INIT_B is open drain and should not be driven during logic built-in self test (LBIST).

Connect PS_PROG_B to a 4.7 kΩ pull-up resistor to VCCO_PSIO[3]. PS_PROG_B is open drain and should not be driven during LBIST.

Connect PS_DONE to a 4.7 kΩ pull-up resistor to VCCO_PSIO[3].

外部配置支持SPI、NAND、SD、eMMC、USB、JTAG等方式啟動(dòng),具體如下:

Quad-SPI (24b/32b): The BootROM code can boot Quad-SPI using 24- or 32-bit addressing.

Image search for multi-boot is supported in this boot mode. The QSPI boot mode also supports x1, x2 and x4 read modes for single Quad-SPI memory and x8 for a dual QSPI. This is the only boot mode that supports execute-in-place (XIP).

NAND: The NAND boot mode only supports 8-bit widths for reading the boot images. Image search for multi-boot is supported. Boot mode image search limits are 128MB.

SD0/SD1: These boot modes support FAT 16/32 file systems for reading the boot images. Image search for multi-boot is supported. The maximum number of files that can be searched as part of an image search for multi-boot are 8,192. The SD supported version is 2.0. It only supports 3.3V for the I/Os and up to 4 bits of data interface.

SD1(LS): The SD1-LS boot mode is the same as SD0/SD1 with additional support of the SD 3.0 (with an SD 3.0 compliant voltage level shifter).

eMMC(18): This boot mode is the same as the SD boot mode except it only supports 1.8V for the I/Os and up to 8 bits of data interface.

For SD and eMMC boot modes, the boot image file should be at the root of first partition of the SD card (not inside any directory).

USB0: The USB boot mode configures USB controller 0 into device mode and uses the DFU protocol to communicate with an attached host.

The USB host contains the FSBL boot image (e.g., boot.bin) that is loaded into OCM memory for the CSU BootROM code and an all encompassing boot image file (e.g., boota53_all.bin) that is loaded into DDR memory.

The size of these files are limited by the size of the OCM and DDR memories. The USB boot mode does not support multi-boot, image fallback, or XIP.

每種啟動(dòng)模式的Boot image search limits如下表所示:

o4YBAF9uFt6AbFCYAAFRiloo35s443.png

針對(duì)SPI配置,當(dāng)使用Quad-SPI模式配置時(shí),如果SPI Flash器件使用的是24bit尋址,則最大只能識(shí)別16MB的SPI Flash,如果要使用大于16MB的SPI Flash,則必須使用32bit尋址。如果要使用32bit地址,則SPI Flash的復(fù)位必須和FPGA的復(fù)位相連,以保證FPGA重新配置時(shí),SPI Flash也能重新配置。

采用SPI Flash進(jìn)行配置時(shí),由于不同的SPI Flash芯片支持的最大配置時(shí)鐘頻率不一樣,一定得同時(shí)滿(mǎn)足ZU+和SPI Flash兩邊的時(shí)鐘限制。

pIYBAF9uFuCAV92hAAHC5BduT3g001.png


pIYBAF9uFuOARIKzAAJxGiOLVeE602.png

JTAG的配置時(shí)鐘也是有限制的,根據(jù)不同速度等級(jí)不一樣!詳見(jiàn)下表。Place 4.7 kΩ pull-up resistors on the TMS, TCK, and TDI lines.

o4YBAF9uFuWAfLA-AAEYzYEhnzE310.png

以上就是針對(duì)7 Series、UltraScale、UltraScale+、Zynq 7000、Zynq UltraScale+系列的配置介紹,詳細(xì)可參見(jiàn)《UG470》、《UG570》、《UG585》、《UG1085》等文檔中關(guān)于配置的介紹。

編輯:hfy


聲明:本文內(nèi)容及配圖由入駐作者撰寫(xiě)或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問(wèn)題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • FPGA
    +關(guān)注

    關(guān)注

    1629

    文章

    21729

    瀏覽量

    602977
  • Xilinx
    +關(guān)注

    關(guān)注

    71

    文章

    2167

    瀏覽量

    121298
  • JTAG
    +關(guān)注

    關(guān)注

    6

    文章

    399

    瀏覽量

    71673
  • UltraScale
    +關(guān)注

    關(guān)注

    0

    文章

    117

    瀏覽量

    31461
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    ADS7142提供了多種I2C模式,standard,fast,fastplus,high speed,這些模式是如何切換的?

    是如何切換的?我的理解是I2C的通信速度都由Master控制,作為slave的ADS7142只要跟隨Master就可以了,不需要設(shè)定。但在ADS7142的pdf文檔7.3.10.4里提到了高速
    發(fā)表于 12-16 07:41

    調(diào)試Xilinx Zynq + ADS58C48,ADC使用的是LVDS模式,ADC不能正常工作怎么解決?

    我正在調(diào)試Xilinx Zynq + ADS58C48,ADC使用的是LVDS模式,ADC不能正常工作。有以下幾點(diǎn)問(wèn)題: 1)通過(guò)Xilinx FPGA差分原語(yǔ)輸給ADC一個(gè)10MH
    發(fā)表于 12-10 07:34

    PCM1865設(shè)置為slave模式下,register的典型配置是什么?

    你好, 我在使用PCM1865,我將其設(shè)置為slave模式有data輸入,但是我設(shè)置成master就沒(méi)有輸入了。我想知道如果將其設(shè)置為slave
    發(fā)表于 11-04 08:04

    請(qǐng)問(wèn)TAS5711 Slave模式如何設(shè)定?

    請(qǐng)問(wèn)一下,我目前用了一個(gè)DSP+5711的方案,以DSP為Matser,5711為slave模式,看了Design Guide內(nèi)容的部分,依照參數(shù)下去,聲音都沒(méi)有輸出,附上我的程式碼檔案,能否告知是哪個(gè)環(huán)節(jié)出了問(wèn)題,謝謝
    發(fā)表于 10-31 06:36

    當(dāng)AIC3204做master模式時(shí),發(fā)送正常,但是接收時(shí)沒(méi)有數(shù)據(jù)產(chǎn)生,為什么?

    使用C5517EVM,AIC3204做slave模式,數(shù)據(jù)接收發(fā)送正常,此時(shí)BCLK,WCLK都有DSP提供。 當(dāng)AIC3204做master模式時(shí),發(fā)送正常,但是接收時(shí)沒(méi)有數(shù)據(jù)產(chǎn)生
    發(fā)表于 10-23 08:03

    如何設(shè)置tlv320aic32x4為slave模式?

    1、如何設(shè)置tlv320aic32x4為slave模式? 2、tlv320aic32x4芯片通過(guò)i2s接到高通soc芯片,高通芯片作為master設(shè)備,要輸出多少的mclk呢? 3、linux驅(qū)動(dòng)
    發(fā)表于 10-17 07:46

    易靈思Trion FPGA PS配置模式--update(6)

    文件。注意修改Bitstream生成模式時(shí),不需要進(jìn)行工程的全編譯,只需運(yùn)行最后一步數(shù)據(jù)流生成即可。 PS配置啟動(dòng)過(guò)程 這里以X1模式為例,PS的配置過(guò)程如下: (1)在啟動(dòng)
    的頭像 發(fā)表于 07-23 08:48 ?618次閱讀
    易靈思Trion <b class='flag-5'>FPGA</b> PS<b class='flag-5'>配置</b><b class='flag-5'>模式</b>--update(6)

    如何在CYUSB2014-BZXC中以8位模式配置Slave FIFO?

    我有關(guān)于CYUSB2014-BZXC的問(wèn)題 我想以 8 位為單位發(fā)送和接收數(shù)據(jù)。 手冊(cè)中列出的Slave FIFO是16位模式的最小值,所以請(qǐng)教我如何在8位模式配置
    發(fā)表于 07-04 07:40

    FPGA配置模式有哪些?具體配置過(guò)程是怎樣的?

    與CPLD不同,FPGA是基于門(mén)陣列方式為用戶(hù)提供可編程資源的,其內(nèi)部邏輯結(jié)構(gòu)的形成是由配置數(shù)據(jù)決定的。那么是如何進(jìn)行配置的呢?配置模式
    發(fā)表于 06-19 14:40

    AMD FPGA中MicroBlaze的固化流程詳解

    AMD FPGA配置了適當(dāng)?shù)膯?dòng)模式后,上電即會(huì)按該模式去加載配置文件。以7系列FPGA為例,
    發(fā)表于 04-25 12:49 ?506次閱讀
    AMD <b class='flag-5'>FPGA</b>中MicroBlaze的固化流程<b class='flag-5'>詳解</b>

    cyw20719B2 SPI接口slave模式下,在執(zhí)行wiced_hal_pspi_slave_rx_data()函數(shù)的同時(shí),SPI的FIFO還能正確接收數(shù)據(jù)嗎?

    請(qǐng)問(wèn),cyw20719B2 SPI 接口slave模式下,在執(zhí)行wiced_hal_pspi_slave_rx_data()函數(shù)的同時(shí),SPI的FIFO還能正確接收數(shù)據(jù)嗎? wiced_hal_pspi_
    發(fā)表于 03-01 11:34

    超詳細(xì)的SPI原理和通信模式

    SPI分為主、從兩種模式,一個(gè)SPI通訊系統(tǒng)需要包含一個(gè)(且只能是一個(gè))主設(shè)備,一個(gè)或多個(gè)從設(shè)備。提供時(shí)鐘的為主設(shè)備(Master),接收時(shí)鐘的設(shè)備為從設(shè)備(Slave),SPI接口的讀寫(xiě)操作,都是由主設(shè)備發(fā)起。
    發(fā)表于 02-29 12:33 ?4506次閱讀
    超詳細(xì)的SPI原理和通信<b class='flag-5'>模式</b>

    請(qǐng)問(wèn)在配置CYT4BF8CES的SPI通信的Slave模式時(shí)有什么注意事項(xiàng)嗎?

    我在按照CYT4BF8CES的SDL配置SPI通信的Slave模式時(shí),主機(jī)發(fā)送數(shù)據(jù)時(shí),從機(jī)不能進(jìn)入中斷,請(qǐng)問(wèn)在配置CYT4BF8CES的SPI通信的
    發(fā)表于 02-01 06:54

    ESP32-S3模組是怎么配置低功耗模式的?低功耗模式下功耗大概是多少?

    經(jīng)常有人問(wèn)S3模組是怎么配置低功耗模式的?低功耗模式下功耗大概是多少?下面小啟就跟大家講下S3模組低功耗情況。01ESP32S3系列模組三種低功耗模式:?Modem-sleep
    的頭像 發(fā)表于 01-26 08:03 ?4318次閱讀
    ESP32-S3模組是怎么<b class='flag-5'>配置</b>低功耗<b class='flag-5'>模式</b>的?低功耗<b class='flag-5'>模式</b>下功耗大概是多少?

    hbs密碼鎖管理模式詳解

    hbs密碼鎖管理模式詳解? HBS密碼鎖是一種智能化電子鎖具,通過(guò)密碼、指紋、密碼+指紋等認(rèn)證方式來(lái)實(shí)現(xiàn)門(mén)禁的控制。它集成了現(xiàn)代化技術(shù),具有便捷、安全、智能等特點(diǎn),廣泛應(yīng)用于家庭、辦公場(chǎng)所、酒店等
    的頭像 發(fā)表于 12-29 14:01 ?4520次閱讀
    RM新时代网站-首页