一区二区三区三上|欧美在线视频五区|国产午夜无码在线观看视频|亚洲国产裸体网站|无码成年人影视|亚洲AV亚洲AV|成人开心激情五月|欧美性爱内射视频|超碰人人干人人上|一区二区无码三区亚洲人区久久精品

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

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

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

《Xilinx—UG471中文翻譯》(3)OSERDESE2原語介紹

C29F_xilinx_inc ? 來源:賽靈思 ? 作者:賽靈思 ? 2022-02-16 16:21 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

FPGA大部分拿來做接口,不就是靠的SelectIO么~

二、輸出(并-轉(zhuǎn)-串)邏輯資源
7系列設(shè)備中的OSERDESE2是專用的 并-轉(zhuǎn)-串 轉(zhuǎn)換器,使用特定的時(shí)鐘和邏輯資源設(shè)計(jì)來使得高速源同步接口實(shí)現(xiàn)變得容易。每個(gè)OSERDESE2模塊都包含一個(gè)特定的串化器(serializer)用于數(shù)據(jù)和三態(tài)(3-state)控制。數(shù)據(jù)和3態(tài)(3-state)串化器都可以配置成SDR和DDR模式。數(shù)據(jù)串行化的位寬可以達(dá)到8:1(如果使用原語模塊級聯(lián),則可以到10:1和14:1)。3態(tài)的串行化最高可達(dá)14:1,有一個(gè)專用的DDR3模式可用于支持高速內(nèi)存應(yīng)用程序。

The OSERDESE2 in 7 series devices is a dedicated parallel-to-serial converter with specific

clocking and logic resources designed to facilitate the implementation of high-speed

source-synchronous interfaces. Every OSERDESE2 module includes a dedicated serializer

for data and 3-state control. Both data and 3-state serializers can be configured in SDR and

DDR mode. Data serialization can be up to 8:1 (10:1 and 14:1 if using OSERDESE2 Width

Expansion). 3-state serialization can be up to 14:1. There is a dedicated DDR3 mode to

support high-speed memory applications.

Figure 3-13 shows a block diagram of the OSERDESE2, highlighting all the major

components and features of the block.

下圖是 OSERDESE2的模塊圖,顯示了主要的組成部件和特性:

pYYBAGIMohSAekpWAADG7NZR0NU226.png

2.1數(shù)據(jù)(并-轉(zhuǎn)-串)轉(zhuǎn)換器
在一個(gè)OSERDESE2塊中,數(shù)據(jù)(并-轉(zhuǎn)-串)轉(zhuǎn)換器接收2-8位的并行數(shù)據(jù) (14位:使用OSERDESE2 位寬擴(kuò)展),將數(shù)據(jù)串行化,然后通過OQ輸出接口傳遞給IOB。并行數(shù)據(jù)串行化是從從最低位開始。也就是說:從D1管腳輸入的數(shù)據(jù)最先傳輸?shù)絆Q輸出管腳。數(shù)據(jù)并串轉(zhuǎn)換器支持兩種模式:SDR和DDR。

OSERDESE2數(shù)據(jù)比率轉(zhuǎn)換使用兩個(gè)時(shí)鐘:CLK 和 CLKDIV。CLK是高度的串行時(shí)鐘,CLKDIV是分頻并行時(shí)鐘。CLK和CLKDIV必須相位對齊。

在使用之前,必須對OSERDESE2進(jìn)行復(fù)位操作。OSERDESE2包含一個(gè)內(nèi)部計(jì)數(shù)器用來控制數(shù)據(jù)流。如果沒有成功對復(fù)位同步(CLKDIV時(shí)鐘域)釋放,則會引起非預(yù)期的輸出。

The data parallel-to-serial converter in one OSERDESE2 blocks receives two to eight bits of

parallel data from the fabric (14 bits if using OSERDESE2 Width Expansion), serializes the

data, and presents it to the IOB via the OQ outputs. Parallel data is serialized from lowest

order data input pin to highest (i.e., data on the D1 input pin is the first bit transmitted at

the OQ pins). The data parallel-to-serial converter is available in two modes: single-data

rate (SDR) and double-data rate (DDR).

The OSERDESE2 uses two clocks, CLK and CLKDIV, for data rate conversion. CLK is the

high-speed serial clock, CLKDIV is the divided parallel clock. CLK and CLKDIV must be

phase aligned. See OSERDESE2 Clocking Methods.

Prior to use, a reset must be applied to the OSERDESE2. The OSERDESE2 contains an

internal counter that controls dataflow. Failure to synchronize the reset deassertion with

the CLKDIV will produce an unexpected output

2.2 3-State Parallel-to-Serial Conversion
除了數(shù)據(jù)的并串轉(zhuǎn)換之外,一個(gè)OSERDESE2模塊還包含了一個(gè)3態(tài)并串轉(zhuǎn)換器。與數(shù)據(jù)的并串轉(zhuǎn)換不同,3態(tài)轉(zhuǎn)換器串行化最高只能支持4位的并行3態(tài)信號。3態(tài)轉(zhuǎn)換器不能進(jìn)行級聯(lián)。

In addition to parallel-to-serial conversion of data, an OSERDESE2 module also contains a

parallel-to-serial converter for 3-state control of the IOB. Unlike data conversion, the

3-state converter can only serialize up to four bits of parallel 3-state signals. The 3-state

converter cannot be cascaded.

三、OSERDESE2原語介紹

3.1 OSERDESE2框圖

poYBAGIMohaAQ9_cAAD4qNA6nKY323.png

3.2 OSERDESE2例化
掃一眼,直接看3.3

OSERDESE2 #(
.DATA_RATE_OQ("DDR"), // DDR, SDR
.DATA_RATE_TQ("DDR"), // DDR, BUF, SDR
.DATA_WIDTH(4), // Parallel data width (2-8,10,14)
.INIT_OQ(1'b0), // Initial value of OQ output (1'b0,1'b1)
.INIT_TQ(1'b0), // Initial value of TQ output (1'b0,1'b1)
.SERDES_MODE("MASTER"), // MASTER, SLAVE
.SRVAL_OQ(1'b0), // OQ output value when SR is used (1'b0,1'b1)
.SRVAL_TQ(1'b0), // TQ output value when SR is used (1'b0,1'b1)
.TBYTE_CTL("FALSE"), // Enable tristate byte operation (FALSE, TRUE)
.TBYTE_SRC("FALSE"), // Tristate byte source (FALSE, TRUE)
.TRISTATE_WIDTH(4) // 3-state converter width (1,4)
)
OSERDESE2_inst (
.OFB(OFB), // 1-bit output: Feedback path for data
.OQ(OQ), // 1-bit output: Data path output
// SHIFTOUT1 / SHIFTOUT2: 1-bit (each) output: Data output expansion (1-bit each)
.SHIFTOUT1(SHIFTOUT1),
.SHIFTOUT2(SHIFTOUT2),
.TBYTEOUT(TBYTEOUT), // 1-bit output: Byte group tristate
.TFB(TFB), // 1-bit output: 3-state control
.TQ(TQ), // 1-bit output: 3-state control
.CLK(CLK), // 1-bit input: High speed clock
.CLKDIV(CLKDIV), // 1-bit input: Divided clock
// D1 - D8: 1-bit (each) input: Parallel data inputs (1-bit each)
.D1(D1),
.D2(D2),
.D3(D3),
.D4(D4),
.D5(D5),
.D6(D6),
.D7(D7),
.D8(D8),
.OCE(OCE), // 1-bit input: Output data clock enable
.RST(RST), // 1-bit input: Reset
// SHIFTIN1 / SHIFTIN2: 1-bit (each) input: Data input expansion (1-bit each)
.SHIFTIN1(SHIFTIN1),
.SHIFTIN2(SHIFTIN2),
// T1 - T4: 1-bit (each) input: Parallel 3-state inputs
.T1(T1),
.T2(T2),
.T3(T3),
.T4(T4),
.TBYTEIN(TBYTEIN), // 1-bit input: Byte group tristate
.TCE(TCE) // 1-bit input: 3-state clock enable
);

3.3 OSERDESE2端口

為了便于查看,后文對端口的進(jìn)一步介紹一并寫到表格。

poYBAGIMohiAUDMIAAITqpKKNg0517.jpg

下圖為原文:

pYYBAGIMoh2AT2yQAAL23OKY9Kg856.png

3.4 OSERDESE2屬性

poYBAGIMoiCAJ_RgAAFgLhGOnkg380.jpg

下圖為原文:

pYYBAGIMoiOAB6kOAAI_GiTzLWI853.png

下圖為OSERDESE2屬性組合:

poYBAGIMoiSABW1rAABE7VyZGLc757.png

3.5 OSERDESE2時(shí)鐘

在并轉(zhuǎn)串過程中,CLK和 CLKDIV的相位關(guān)系是非常重要的。理想情況下,CLK和 CLKDIV是相位對齊的。在FPGA中有好幾種時(shí)鐘設(shè)置方式來幫助設(shè)計(jì)滿足CLK和 CLKDIV的相位關(guān)系要求。對于OSERDESE2來說,只有一種是有效的:

  • CLK由BUFIO驅(qū)動,CLKDIV由BUFR驅(qū)動
  • CLK和CLKDIV由同一個(gè)MMCM或PLL驅(qū)動 (常用)

當(dāng)使用一個(gè)MMCM來驅(qū)動OSERDESE2的CLK 和CLKDIV時(shí),buffer類型不能混用。舉個(gè)栗子:如果CLK由BUFG驅(qū)動,CLKDIV也必須由BUFG驅(qū)動。

The phase relationship of CLK and CLKDIV is important in the parallel-to-serial

conversion process. CLK and CLKDIV are (ideally) phase-aligned within a tolerance.

There are several clocking arrangements within the FPGA to help the design meet the

phase relationship requirements of CLK and CLKDIV. The only valid clocking

arrangements for the OSERDESE2 are:

? CLK driven by BUFIO, CLKDIV driven by BUFR

? CLK and CLKDIV driven by CLKOUT[0:6] of the same MMCM or PLL

When using a MMCM to drive the CLK and CLKDIV of the OSERDESE2 the buffer types

suppling the OSERDESE2 can not be mixed. For example, if CLK is driven by a BUFG,

CLKDIV must be driven by a BUFG as well.

3.6 OSERDESE2級聯(lián)
用兩個(gè)OSERDESE2模塊級聯(lián)來構(gòu)造一個(gè)超過8:1的并-串轉(zhuǎn)換器。通過連接主OSERDESE2的SHIFTIN端口和從OSERDESE2的SHIFTOUT端口,轉(zhuǎn)換器可以擴(kuò)展為10:1和14:1(僅DDR模式)。(注:筆者感覺有點(diǎn)懵,曾在項(xiàng)目用主的SHIFTOUT端口接到從的SHIFTIN端口 = =||)。對于差分輸出,連接_P管腳。當(dāng)輸出不是差分信號時(shí),從OSERDESE2的輸出buffer是不允許的,位寬擴(kuò)展無法使用。

當(dāng)使用補(bǔ)充的signal-ended標(biāo)準(zhǔn)時(shí)(也就是說DIFF_HSTL和DIFF_SSTL),位寬擴(kuò)展可能不能使用。這是因?yàn)樵贗/O塊的OLOGICE2/3塊全部用作補(bǔ)充的signal-ended標(biāo)準(zhǔn)來傳輸這兩個(gè)補(bǔ)充的信號,沒有多余的OLOOGICE2/3資源可用來位寬擴(kuò)展。

The OSERDESE2 modules be used to build a parallel-to-serial converter larger than 8:1. In

every I/O tile there are two OSERDESE2 modules; one master and one slave. By

connecting the SHIFTIN ports of the master OSERDESE2 to the SHIFTOUT ports of the

slave OSERDESE2, the parallel-to-serial converter can be expanded to up to 10:1 and 14:1

(DDR mode only). For a differential output, the master OSERDESE2 must be on the

positive (_P pin) side of the differential output pair. When the output is not differential, the

output buffer associated with the slave OSERDESE2 is not available and width expansion

cannot be used.

When using complementary single-ended standards (e.g., DIFF_HSTL and DIFF_SSTL),

width expansion might not be used. This is because both OLOGICE2/3 blocks in an I/O

tile are used by the complementary single-ended standards to transmit the two

complementary signals, leaving no OLOGICE2/3 blocks available for width expansion

purposes.

下圖是10:1DDR模式并-串轉(zhuǎn)換器,使用一主一從兩個(gè)OSERDESE2模塊。在這個(gè)例子中中從OSERDES端口D3-D4被用作并行數(shù)據(jù)接口的最后兩位。

pYYBAGIMoieAFs29AAENdLub_bk445.png

注:位寬擴(kuò)展時(shí),從OSERDESE2模塊使用端口D3-D8; D1-D2不用。

3.7 OSERDESE2潛伏期
之前文章也介紹過:

Delay:延遲,延遲時(shí)間后才發(fā)生

Latency:潛伏,潛伏時(shí)間后信號才穩(wěn)定

OSERDESE2塊輸入到輸出的潛伏期由DATA_RATE和DATA_WIDTH屬性決定。潛伏期被定義為事件a到事件b的一段時(shí)間:(a)當(dāng)CLKDIV的上升沿,D1-D8的數(shù)據(jù)輸入到OSERDESE2,(b)當(dāng)串行數(shù)據(jù)流的第一位出現(xiàn)在OQ。簡單解釋下:就是輸入到輸出的時(shí)間。下圖整理了不同OSERDESE2潛伏期的值。

The input to output latencies of OSERDESE2 blocks depend on the DATA_RATE and

DATA_WIDTH attributes. Latency is defined as a period of time between the following

two events: (a) when the rising edge of CLKDIV clocks the data at inputs D1–D8 into the

OSERDESE2, and (b) when the first bit of the serial stream appears at OQ. Table 3-11

summarizes the various OSERDESE2 latency values.

pYYBAGIMoimAZCnjAAFDhphQa50531.png

四、圖解OSERDES串行化數(shù)據(jù)流

4.1 案例①SDR模式
2:1 SDR 數(shù)據(jù)串行化的時(shí)序圖:

poYBAGIMoiuAV_CaAADhxULQYeI084.png

Clock Event 1:

在CLKDIV的上升沿,由FPGA邏輯驅(qū)動的字AB給到OSERDESE2的輸入端D1和D2(經(jīng)過一些傳播延遲)

Clock Event 2 :

在CLKDIV的上升沿,由D1和D2輸入的字AB被采樣到OSERDES。

Clock Event 3

在AB被采樣進(jìn)入OSERDESE2后,數(shù)據(jù)A在OQ輸出一個(gè)CLK時(shí)鐘周期。這個(gè)潛伏期由3.7章節(jié)的表格查詢可知。

4.2 案例②DDR模式
8:1 DDR數(shù)據(jù)串行化時(shí)序圖:

pYYBAGIMoi6ACK1mAAFbyKtgZ7s480.png

Clock Event 1:

在CLKDIV的時(shí)鐘上升沿,由FPGA邏輯驅(qū)動的字ABCDEFGH給到OSERDESE2的輸入管腳D1-D8。

Clock Event 2:

在CLKDIV的時(shí)鐘上升沿,D1-D8輸入的ABCDEFGH被采樣進(jìn)OSERDESE2。

Clock Event 3:

在ABCDEFGH被采樣進(jìn)OSERDESE2后,數(shù)據(jù)位A首先在OQ輸出4個(gè)CLK周期。這個(gè)潛伏期由3.7章節(jié)的表格查詢可知。

D1-D8輸入的第二個(gè)字 IJKLMNOP 被采樣進(jìn)入 OSERDESE2 。

Clock Event 4

在Clock Events 3和4之間, ABCDEFGH整個(gè)字被連續(xù)的傳輸?shù)絆Q,,一個(gè)完整的8位傳輸在一個(gè)CLKDIV周期內(nèi)完成。

4.3 案例③3-state
The operation of a 3-state controller:

pYYBAGIMojKAXcBYAAEAopB6ghs172.png

Clock Event 1

T1,T2,T4被驅(qū)動位低電平來釋放3-態(tài)條件。OSERDESE2的T1-T4和D1-D4串行化路徑是完全相同的(包括潛伏期),所以EFGH和0010在Clock Event 1是始終對齊的。

Clock Event 2

在EFGH被采樣進(jìn)入OSERDESE2后,數(shù)據(jù)位E出現(xiàn)在OQ一個(gè)CLK周期,潛伏期可看3.7。

在0010被采樣進(jìn)入OSERDESE2 3態(tài)塊后,三態(tài)輸入的0在TQ輸出一個(gè)CLK周期,潛伏期可看3.7。

看圖得知:OBUFT的輸出端O輸出EFH,對應(yīng)三態(tài)輸入0釋放掉三態(tài)條件時(shí)候的D1-D4輸入,并且輸出在TQ為低時(shí)有效。(這是筆者根據(jù)上圖猜測的結(jié)論,實(shí)際上筆者還沒使用過 = =)

五、后記
最后的I/O FIFO先略過。

加上前兩篇,《UG471-SelectIO》(1-3) 基本翻譯完成。

算是小小的成就,給自己打Call~

如有錯(cuò)誤,歡迎拍磚~

但是,本系列UG471文章還停留在翻譯介紹階段,下一步我會將其整理到LVDS接口的使用中進(jìn)行介紹。未完待續(xù)。

審核編輯:符乾江

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

    關(guān)注

    1645

    文章

    22046

    瀏覽量

    618283
  • Xilinx
    +關(guān)注

    關(guān)注

    73

    文章

    2185

    瀏覽量

    125299
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點(diǎn)推薦

    多軸運(yùn)動控制器JMC-F2-A6中文手冊

    電子發(fā)燒友網(wǎng)站提供《多軸運(yùn)動控制器JMC-F2-A6中文手冊.pdf》資料免費(fèi)下載
    發(fā)表于 06-23 15:14 ?0次下載

    AD7606的VxGND必須接地嗎?

    and Analog Input Pin V2. All analog input AGND pins should connect to the AGND plane of a system. 中文翻譯
    發(fā)表于 06-10 21:51

    STM32固件庫使用手冊的中文翻譯

    STM32固件庫使用手冊的中文翻譯
    發(fā)表于 06-09 22:38

    PIC16F630/676中文數(shù)據(jù)手冊

    電子發(fā)燒友網(wǎng)站提供《PIC16F630/676中文數(shù)據(jù)手冊.pdf》資料免費(fèi)下載
    發(fā)表于 04-27 17:55 ?1次下載

    ISERDESE2原語端口及參數(shù)介紹

    前面在講解HDMI接口之前,講解過IDDR、ODDR、OSERDESE2、IBUF等原語,之后一直有讀者在問什么時(shí)候更新ISERDESE2這個(gè)原語。前文講解過這些
    的頭像 發(fā)表于 03-17 10:52 ?1272次閱讀
    ISERDESE<b class='flag-5'>2</b><b class='flag-5'>原語</b>端口及參數(shù)<b class='flag-5'>介紹</b>

    AI助力實(shí)時(shí)翻譯耳機(jī)

    你是否曾經(jīng)因?yàn)檎Z言障礙而無法與外國人順暢交流?或者在旅行因?yàn)檎Z言不通而錯(cuò)過了一些精彩的經(jīng)歷?現(xiàn)在,隨著AI技術(shù)的發(fā)展,實(shí)時(shí)翻譯耳機(jī)可以幫你輕松解決這些問題。 1 什么是實(shí)時(shí)翻譯耳機(jī) 實(shí)時(shí)翻譯
    的頭像 發(fā)表于 01-24 11:14 ?1657次閱讀
    AI助力實(shí)時(shí)<b class='flag-5'>翻譯</b>耳機(jī)

    支持遠(yuǎn)程脫機(jī)密下載加密芯片SMEC編程器開發(fā)板介紹

    被監(jiān)聽,這些數(shù)據(jù)也無法下載到別的加密芯片。下面具體介紹數(shù)據(jù)產(chǎn)生和下載流程:1、從需要下載密文文件的SMEC編程器上獲取安全碼。2、開發(fā)者填入安全碼,選擇需要加密的目標(biāo)下載Hex文件,并選定設(shè)定次數(shù)
    發(fā)表于 01-08 11:30

    LM3915中文手冊

    電子發(fā)燒友網(wǎng)站提供《LM3915中文手冊.docx》資料免費(fèi)下載
    發(fā)表于 12-18 14:22 ?48次下載

    SRIO介紹xilinx的vivado 2017.4生成srio例程代碼解釋

    1. 概述 本文是用于記錄srio的學(xué)習(xí)情況,以及一些對xilinx的vivado 2017.4生成srio例程代碼的解釋。 2. 參考文件 《pg007_srio_gen2
    的頭像 發(fā)表于 12-10 16:24 ?2816次閱讀
    SRIO<b class='flag-5'>介紹</b>及<b class='flag-5'>xilinx</b>的vivado 2017.4<b class='flag-5'>中</b>生成srio例程代碼解釋

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

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

    Xilinx 7系列FPGA PCIe Gen3的應(yīng)用接口及特性

    Xilinx7系列FPGA集成了新一代PCI Express集成塊,支持8.0Gb/s數(shù)據(jù)速率的PCI Express 3.0。本文介紹了7系列FPGA PCIe Gen3的應(yīng)用接口及一些特性。
    的頭像 發(fā)表于 11-05 15:45 ?3150次閱讀
    <b class='flag-5'>Xilinx</b> 7系列FPGA PCIe Gen<b class='flag-5'>3</b>的應(yīng)用接口及特性

    全極霍爾傳感器AH471在電動牙刷起位置檢測作用

    全極霍爾傳感器AH471在電動牙刷起位置檢測作用
    的頭像 發(fā)表于 09-14 09:58 ?697次閱讀
    全極霍爾傳感器AH<b class='flag-5'>471</b>在電動牙刷<b class='flag-5'>中</b>起位置檢測作用

    OV6946中文手冊

    電子發(fā)燒友網(wǎng)站提供《OV6946中文手冊.pdf》資料免費(fèi)下載
    發(fā)表于 08-05 17:29 ?21次下載

    MSP430F471x3,MSP430F471x6, MSP430F471x7混合信號微控制器數(shù)據(jù)表

    電子發(fā)燒友網(wǎng)站提供《MSP430F471x3,MSP430F471x6, MSP430F471x7混合信號微控制器數(shù)據(jù)表.pdf》資料免費(fèi)下載
    發(fā)表于 08-01 12:49 ?0次下載
    MSP430F<b class='flag-5'>471x3</b>,MSP430F<b class='flag-5'>471</b>x6, MSP430F<b class='flag-5'>471</b>x7混合信號微控制器數(shù)據(jù)表

    IPC-6012E CN 2020中文 CN 剛性印制板的鑒定及性能規(guī)范

    *附件:IPC-6012E CN 2020中文 CN 剛性印制板的鑒定及性能規(guī)范.pdf IPC-6012E CN 2020中文 CN 剛性印制板的鑒定及性能規(guī)范
    發(fā)表于 07-27 10:16