不枉初心,砥砺前行

皮皮祥的博客

欢迎留言,评论

导航

GT基础知识

1、GT基础知识

    SATA 接口只有几根线为什么那么快?连上网线显示的10Gbps(万兆网)是不是很令人兴奋!没错,他们都用了高速GTX技术、GTX全称Gigabit transceiver,是为了满足高速、实时传输而生的技术。传统的并行传输技术存在抗干扰能力低,同步能力差,传输速度低和信号质量差等问题。GTX目前的线速度范围是1Gbps - 12Gbps,有效负载范围0.8Gbps - 10Gbps。目前GTX已经应用于光纤通道(FC),PCIE,Rapid io,串行SATA ,千兆以太网,万兆以太网等。

    GTX收发器采用的是差分信号对数据进行传输,其中LVDS(Low voltage different signal )和CML(current mode logic)是常用的两种差分信号标准。差分信号因为线路上收到的噪声干扰几乎完全相同,在计算差值相减从而达到抵消的效果,这就使得差分信号抗干扰能力特别强,高速传输时不易出错。

    除了差分信号外,GTX采用自同步技术来解决时钟问题。目前常用的同步方式有:系统同步、源同步、自同步。系统同步利用片外的晶振进行同步,由于板间线路的长度不一致,以及片内延迟不一致,在时钟速到提高时可能存在较大误差。源同步是在发送数据同时发送一个时钟副本,这种设计需要更多的时钟端口。自同步讲时钟包含在数据流中,从数据流中恢复时钟,不仅端口使用较少,而且不论是高速还是低速,时钟延迟和数据延迟都是一样的,可以保证采样的正确性。

 自同步接口主要包含三个模块分别是并串转换、串并转换和时钟恢复。时钟恢复是利用锁相环(PLL)合成出一个与输入串行信号的时钟频率一致的时钟,供采集数据用。

GTX包含两大部分,PMA PCS。
PMA(物理媒介附加子层)主要功能是 :  串并\并串转换和模拟部分。提供高性能的串行接口,如预加重、均衡。
PCS(物理编码子层)主要是并行数字电路处理。数字流的编码/解码,8B\10B等。

 

2 GTX速度到底可以跑到多少

关于器件速度的问题首先找到 ds182->Kintex-7 FPGAs Data Sheet:DC and AC Switching Characteristics,可以自己对应的器件去找,不过这个在设计电路板器件选型的时候就应该考虑到,除非是买的开发部学习用。这里面包括所有的FPGA各个器件能跑到的最高频率和器件延时,建立时间,保持时间等,对高速设计有很大的参考价值。找到GTX Transceiver Switching Characteristics

可以看到,虽然K7系列GTX最高可以跑到12.5Gbps,但这跟速度等级和封装都有关系,是在-3的速度等级,FF封装下才有的最高速度12.5Gbps。而现在手头的芯片型号是K7480TFFG901-1,所以最高支持8.0Gbps。其实这在配置IP核的时候就会发现了,线速范围是(0.5-8.0)。所以IP核都是严格和工程的器件相关联的,这点Vivado越做越好了。

另外,速度还和CPLL QPLL 有关,以前一直以为CPLL 和QPLL 的区别就是在用时钟共享的时候会有区别。

3. GTX 硬件结构 

 下面图均以325T为例

当整个芯片多个GTX被使用时,需要合理的分布GTX与时钟输入。从一个Quad输入的时钟往上只能给相邻的一个Quad提供时钟,往下也只能给相邻的一个Quad提供时钟输入,最多只能驱动三个Quad,当整个芯片多个GTX使用到同样的参考时钟输入时,合理的分布时钟输入可以节省需要的时钟数量,并为时钟的提供冗余设计。因此,基本的原则是同一个物理接口的几个GTX放在一起,由同一个参考时钟作为时钟输入;不同物理接口的GTX如果在同一个参考时钟的驱动覆盖范围内,可以采用同一个参考时钟输入。有条件的情况下,可以做时钟备份;当一个时钟可以覆盖更多个GTX的时候,考虑到时钟驱动能力的不确定性,为留有更多余量,没必要使用到极限(一个时钟驱动12个GTX)(比如我在调试aurora的时候,一个参考时钟输入,驱动3个bank,理论上是没问题的,但是编译时报错。报错原因不是一个qpll不能驱动3个bank,而是上图中每个qpll都包含了一个common,这个common模块是不能共享的。aurora在使用为从核模式,共享逻辑在example下,自动的屏蔽掉了common逻辑,导致其他两个bank的qpll里面没有common。修改IP 源码,把common模块添加到QPLL里,问题得到解决。其实,最好的办法是,每个bank都预留一个参考时钟)。另外在V5的GTP中,关于多个GTP共用同一个参考时钟输入,要求在这个输入时钟的时钟链上,每一个GTP都被使用(即使不需要,也要例化),不允许共用同一个参考时钟的两个GTP中间有一个没有使用的GTP

 

 

GTX整体功能结构

 

4.  7 Series FPGAs TransceiversWizard IP 核介绍

1)选择shared logic选项,最好选include shared logic in example design

2)

-------------------------------------- 下面摘自其他文章,内部参数和上图不匹配,解析具有参考价值-----------------

先是协议,最简单的strat from cratch,就是没有协议。然后是线速,可以看到范围是(0.5-8.0)。参考时钟,这个可以根据需要选个合适的。软件都根据你的线速把参考时钟的可选项计算好了。接收端同样设置,当然可以不一样的。这是全双工,收发链路没有什么关系,也可以关掉其中一个Tx off 或Rx off。然后是PLL选择,到底选哪个呢?根据时钟频率选择

然后是比较重要的,选择用哪个收发器,这当然不是拍脑袋决定的,跟设计有关,可以查找原理图

比如说这样的,然后去查手册UG476-> 7 Series FPGAsGTX/GTH Transceivers 找到 Placement Information by Package如下

这样就知道用的是X0Y8,输入时钟在上面的原理图可以找到,是同一组的clk0。
3)

4)

5)

可选端口其实有的挺有用的,增加了可控性,比如说环回控制,LOOPBACK。顺便说一下内部环回有四种,
1.“000”:正常模式不环回
2.“001”:近端PCS环回
3.“010”:近端PMA环回
4.“100”:远端PMA环回
5.“110”:远端PCS环回)

6)

接下来是通道绑定和时钟校正。通道绑定的作用是把多个物理通道对齐,绑定成一个的逻辑通道。其实就是用FIFO消除通道间的延时不确定性。由于只有一个通道,没有绑定可言。

7)检查一下对不对

5. 调用例程

  1.  
     
  2.  
    gtwizard_0 u_gtwizard_0
  3.  
    (
  4.  
    .soft_reset_tx_in(rst | reg_gtp_rst[0]),
  5.  
    .soft_reset_rx_in(rst | reg_gtp_rst[1]),
  6.  
    .dont_reset_on_data_error_in(1'b0),
  7.  
    .q0_clk1_gtrefclk_pad_n_in(gtp_refclk_n),
  8.  
    .q0_clk1_gtrefclk_pad_p_in(gtp_refclk_p),
  9.  
    .gt0_tx_mmcm_lock_out( ),
  10.  
    .gt0_rx_mmcm_lock_out( ),
  11.  
    .gt0_tx_fsm_reset_done_out( ),
  12.  
    .gt0_rx_fsm_reset_done_out( ),
  13.  
    .gt0_data_valid_in(1'b1),
  14.  
    .gt1_tx_mmcm_lock_out( ),
  15.  
    .gt1_rx_mmcm_lock_out( ),
  16.  
    .gt1_tx_fsm_reset_done_out( ),
  17.  
    .gt1_rx_fsm_reset_done_out( ),
  18.  
    .gt1_data_valid_in(1'b1),
  19.  
    .gt2_tx_mmcm_lock_out( ),
  20.  
    .gt2_rx_mmcm_lock_out( ),
  21.  
    .gt2_tx_fsm_reset_done_out( ),
  22.  
    .gt2_rx_fsm_reset_done_out( ),
  23.  
    .gt2_data_valid_in(1'b1),
  24.  
    .gt3_tx_mmcm_lock_out( ),
  25.  
    .gt3_rx_mmcm_lock_out( ),
  26.  
    .gt3_tx_fsm_reset_done_out( ),
  27.  
    .gt3_rx_fsm_reset_done_out(gt3_rx_fsm_reset_done_out),
  28.  
    .gt3_data_valid_in(1'b1),
  29.  
     
  30.  
    .gt0_txusrclk_out( ),
  31.  
    .gt0_txusrclk2_out(gt0_txusrclk_out),
  32.  
    .gt0_rxusrclk_out( ),
  33.  
    .gt0_rxusrclk2_out(gt0_rxusrclk_out),
  34.  
     
  35.  
    .gt1_txusrclk_out( ),
  36.  
    .gt1_txusrclk2_out(gt1_txusrclk_out),
  37.  
    .gt1_rxusrclk_out( ),
  38.  
    .gt1_rxusrclk2_out(gt1_rxusrclk_out),
  39.  
     
  40.  
    .gt2_txusrclk_out( ),
  41.  
    .gt2_txusrclk2_out(gt2_txusrclk_out),
  42.  
    .gt2_rxusrclk_out( ),
  43.  
    .gt2_rxusrclk2_out(gt2_rxusrclk_out),
  44.  
     
  45.  
    .gt3_txusrclk_out( ),
  46.  
    .gt3_txusrclk2_out(gt3_txusrclk_out),
  47.  
    .gt3_rxusrclk_out( ),
  48.  
    .gt3_rxusrclk2_out(gt3_rxusrclk_out),
  49.  
    //_________________________________________________________________________
  50.  
    //GT0 (X0Y0)
  51.  
    //____________________________CHANNEL PORTS________________________________
  52.  
    //------------------------------- CPLL Ports -------------------------------
  53.  
    .gt0_cpllfbclklost_out ( ), // output wire gt0_cpllfbclklost_out
  54.  
    .gt0_cplllock_out ( ), // output wire gt0_cplllock_out
  55.  
    .gt0_cpllreset_in (1'b0), // input wire gt0_cpllreset_in
  56.  
    //-------------------------- Channel - DRP Ports --------------------------
  57.  
    .gt0_drpaddr_in (9'd0), // input wire [8:0] gt0_drpaddr_in
  58.  
    .gt0_drpdi_in (16'd0), // input wire [15:0] gt0_drpdi_in
  59.  
    .gt0_drpdo_out ( ), // output wire [15:0] gt0_drpdo_out
  60.  
    .gt0_drpen_in (1'b0), // input wire gt0_drpen_in
  61.  
    .gt0_drprdy_out ( ), // output wire gt0_drprdy_out
  62.  
    .gt0_drpwe_in (1'b0), // input wire gt0_drpwe_in
  63.  
    //------------------------- Digital Monitor Ports --------------------------
  64.  
    .gt0_dmonitorout_out ( ), // output wire [7:0] gt0_dmonitorout_out
  65.  
    //----------------------------- Loopback Ports -----------------------------
  66.  
    .gt0_loopback_in (3'd0), // input wire [2:0] gt0_loopback_in
  67.  
    //------------------- RX Initialization and Reset Ports --------------------
  68.  
    .gt0_eyescanreset_in (1'b0), // input wire gt0_eyescanreset_in
  69.  
    .gt0_rxuserrdy_in (1'b1), // input wire gt0_rxuserrdy_in
  70.  
    //------------------------ RX Margin Analysis Ports ------------------------
  71.  
    .gt0_eyescandataerror_out ( ), // output wire gt0_eyescandataerror_out
  72.  
    .gt0_eyescantrigger_in (1'b0), // input wire gt0_eyescantrigger_in
  73.  
    //---------------- Receive Ports - FPGA RX interface Ports -----------------
  74.  
    .gt0_rxdata_out (gt0_rxdata_out), // output wire [31:0] gt0_rxdata_out
  75.  
    //----------------- Receive Ports - Pattern Checker Ports ------------------
  76.  
    .gt0_rxprbserr_out (gt0_rxprbserr_out), // output wire gt0_rxprbserr_out
  77.  
    .gt0_rxprbssel_in (3'b0), // input wire [2:0] gt0_rxprbssel_in
  78.  
    //----------------- Receive Ports - Pattern Checker ports ------------------
  79.  
    .gt0_rxprbscntreset_in (1'b0), // input wire gt0_rxprbscntreset_in
  80.  
    //---------------- Receive Ports - RX 8B/10B Decoder Ports -----------------
  81.  
    .gt0_rxdisperr_out (gt0_rxdisperr_out), // output wire [3:0] gt0_rxdisperr_out
  82.  
    .gt0_rxnotintable_out (gt0_rxnotintable_out), // output wire [3:0] gt0_rxnotintable_out
  83.  
    //------------------------- Receive Ports - RX AFE -------------------------
  84.  
    .gt0_gtxrxp_in (rx_serdout0_p), // input wire gt0_gtxrxp_in
  85.  
    //---------------------- Receive Ports - RX AFE Ports ----------------------
  86.  
    .gt0_gtxrxn_in (rx_serdout0_n), // input wire gt0_gtxrxn_in
  87.  
    //----------------- Receive Ports - RX Buffer Bypass Ports -----------------
  88.  
    .gt0_rxbufstatus_out ( ), // output wire [2:0] gt0_rxbufstatus_out
  89.  
    //------------ Receive Ports - RX Byte and Word Alignment Ports ------------
  90.  
    .gt0_rxbyterealign_out ( ), // output wire gt0_rxbyterealign_out
  91.  
    .gt0_rxmcommaalignen_in (gt0_rxmcommaalignen_in), // input wire gt0_rxmcommaalignen_in
  92.  
    .gt0_rxpcommaalignen_in (gt0_rxmcommaalignen_in), // input wire gt0_rxpcommaalignen_in
  93.  
    //------------------- Receive Ports - RX Equalizer Ports -------------------
  94.  
    .gt0_rxdfelpmreset_in (1'b0), // input wire gt0_rxdfelpmreset_in
  95.  
    .gt0_rxmonitorout_out ( ), // output wire [6:0] gt0_rxmonitorout_out
  96.  
    .gt0_rxmonitorsel_in (2'b0), // input wire [1:0] gt0_rxmonitorsel_in
  97.  
    //------------- Receive Ports - RX Fabric Output Control Ports -------------
  98.  
    .gt0_rxoutclkfabric_out ( ), // output wire gt0_rxoutclkfabric_out
  99.  
    //----------- Receive Ports - RX Initialization and Reset Ports ------------
  100.  
    .gt0_gtrxreset_in (1'b0), // input wire gt0_gtrxreset_in
  101.  
    .gt0_rxpmareset_in (1'b0), // input wire gt0_rxpmareset_in
  102.  
    //----------------- Receive Ports - RX8B/10B Decoder Ports -----------------
  103.  
    .gt0_rxchariscomma_out ( ), // output wire [3:0] gt0_rxchariscomma_out
  104.  
    .gt0_rxcharisk_out (gt0_rxcharisk_out), // output wire [3:0] gt0_rxcharisk_out
  105.  
    //------------ Receive Ports -RX Initialization and Reset Ports ------------
  106.  
    .gt0_rxresetdone_out (gt0_rxresetdone_out), // output wire gt0_rxresetdone_out
  107.  
    //------------------- TX Initialization and Reset Ports --------------------
  108.  
    .gt0_gttxreset_in (1'b0), // input wire gt0_gttxreset_in
  109.  
    .gt0_txuserrdy_in (1'b0), // input wire gt0_txuserrdy_in
  110.  
    //-------------------- Transmit Ports - TX Buffer Ports --------------------
  111.  
    .gt0_txbufstatus_out ( ), // output wire [1:0] gt0_txbufstatus_out
  112.  
    //---------------- Transmit Ports - TX Data Path interface -----------------
  113.  
    .gt0_txdata_in (gt0_txdata_in), // input wire [31:0] gt0_txdata_in
  114.  
    //-------------- Transmit Ports - TX Driver and OOB signaling --------------
  115.  
    .gt0_gtxtxn_out (tx_serdin0_n), // output wire gt0_gtxtxn_out
  116.  
    .gt0_gtxtxp_out (tx_serdin0_p), // output wire gt0_gtxtxp_out
  117.  
    //--------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
  118.  
    .gt0_txoutclkfabric_out ( ), // output wire gt0_txoutclkfabric_out
  119.  
    .gt0_txoutclkpcs_out ( ), // output wire gt0_txoutclkpcs_out
  120.  
    //------------------- Transmit Ports - TX Gearbox Ports --------------------
  121.  
    .gt0_txcharisk_in (gt0_txcharisk_in), // input wire [3:0] gt0_txcharisk_in
  122.  
    //----------- Transmit Ports - TX Initialization and Reset Ports -----------
  123.  
    .gt0_txresetdone_out (gt0_txresetdone_out), // output wire gt0_txresetdone_out
  124.  
    //---------------- Transmit Ports - pattern Generator Ports ----------------
  125.  
    .gt0_txprbssel_in (3'b0), // input wire [2:0] gt0_txprbssel_in
  126.  
     
  127.  
    //GT1 (X0Y1)
  128.  
    //____________________________CHANNEL PORTS________________________________
  129.  
    //------------------------------- CPLL Ports -------------------------------
  130.  
    .gt1_cpllfbclklost_out ( ), // output wire gt1_cpllfbclklost_out
  131.  
    .gt1_cplllock_out ( ), // output wire gt1_cplllock_out
  132.  
    .gt1_cpllreset_in (1'b0), // input wire gt1_cpllreset_in
  133.  
    //-------------------------- Channel - DRP Ports --------------------------
  134.  
    .gt1_drpaddr_in (9'd0), // input wire [8:0] gt1_drpaddr_in
  135.  
    .gt1_drpdi_in (16'd0), // input wire [15:0] gt1_drpdi_in
  136.  
    .gt1_drpdo_out ( ), // output wire [15:0] gt1_drpdo_out
  137.  
    .gt1_drpen_in (1'b0), // input wire gt1_drpen_in
  138.  
    .gt1_drprdy_out ( ), // output wire gt1_drprdy_out
  139.  
    .gt1_drpwe_in (1'b0), // input wire gt1_drpwe_in
  140.  
    //------------------------- Digital Monitor Ports --------------------------
  141.  
    .gt1_dmonitorout_out ( ), // output wire [7:0] gt1_dmonitorout_out
  142.  
    //----------------------------- Loopback Ports -----------------------------
  143.  
    .gt1_loopback_in (3'd0), // input wire [2:0] gt1_loopback_in
  144.  
    //------------------- RX Initialization and Reset Ports --------------------
  145.  
    .gt1_eyescanreset_in (1'b0), // input wire gt1_eyescanreset_in
  146.  
    .gt1_rxuserrdy_in (1'b1), // input wire gt1_rxuserrdy_in
  147.  
    //------------------------ RX Margin Analysis Ports ------------------------
  148.  
    .gt1_eyescandataerror_out ( ), // output wire gt1_eyescandataerror_out
  149.  
    .gt1_eyescantrigger_in (1'b0), // input wire gt1_eyescantrigger_in
  150.  
    //---------------- Receive Ports - FPGA RX interface Ports -----------------
  151.  
    .gt1_rxdata_out (gt1_rxdata_out), // output wire [31:0] gt1_rxdata_out
  152.  
    //----------------- Receive Ports - Pattern Checker Ports ------------------
  153.  
    .gt1_rxprbserr_out (gt1_rxprbserr_out), // output wire gt1_rxprbserr_out
  154.  
    .gt1_rxprbssel_in (3'b0), // input wire [2:0] gt1_rxprbssel_in
  155.  
    //----------------- Receive Ports - Pattern Checker ports ------------------
  156.  
    .gt1_rxprbscntreset_in (1'b0), // input wire gt1_rxprbscntreset_in
  157.  
    //---------------- Receive Ports - RX 8B/10B Decoder Ports -----------------
  158.  
    .gt1_rxdisperr_out (gt1_rxdisperr_out), // output wire [3:0] gt1_rxdisperr_out
  159.  
    .gt1_rxnotintable_out (gt1_rxnotintable_out), // output wire [3:0] gt1_rxnotintable_out
  160.  
    //------------------------- Receive Ports - RX AFE -------------------------
  161.  
    .gt1_gtxrxp_in (rx_serdout1_p), // input wire gt1_gtxrxp_in
  162.  
    //---------------------- Receive Ports - RX AFE Ports ----------------------
  163.  
    .gt1_gtxrxn_in (rx_serdout1_n), // input wire gt1_gtxrxn_in
  164.  
    //----------------- Receive Ports - RX Buffer Bypass Ports -----------------
  165.  
    .gt1_rxbufstatus_out ( ), // output wire [2:0] gt1_rxbufstatus_out
  166.  
    //------------ Receive Ports - RX Byte and Word Alignment Ports ------------
  167.  
    .gt1_rxbyterealign_out ( ), // output wire gt1_rxbyterealign_out
  168.  
    .gt1_rxmcommaalignen_in (gt0_rxmcommaalignen_in), // input wire gt1_rxmcommaalignen_in
  169.  
    .gt1_rxpcommaalignen_in (gt0_rxmcommaalignen_in), // input wire gt1_rxpcommaalignen_in
  170.  
    //------------------- Receive Ports - RX Equalizer Ports -------------------
  171.  
    .gt1_rxdfelpmreset_in (1'b0), // input wire gt1_rxdfelpmreset_in
  172.  
    .gt1_rxmonitorout_out ( ), // output wire [6:0] gt1_rxmonitorout_out
  173.  
    .gt1_rxmonitorsel_in (2'b0), // input wire [1:0] gt1_rxmonitorsel_in
  174.  
    //------------- Receive Ports - RX Fabric Output Control Ports -------------
  175.  
    .gt1_rxoutclkfabric_out ( ), // output wire gt1_rxoutclkfabric_out
  176.  
    //----------- Receive Ports - RX Initialization and Reset Ports ------------
  177.  
    .gt1_gtrxreset_in (1'b0), // input wire gt1_gtrxreset_in
  178.  
    .gt1_rxpmareset_in (1'b0), // input wire gt1_rxpmareset_in
  179.  
    //----------------- Receive Ports - RX8B/10B Decoder Ports -----------------
  180.  
    .gt1_rxchariscomma_out ( ), // output wire [3:0] gt1_rxchariscomma_out
  181.  
    .gt1_rxcharisk_out (gt1_rxcharisk_out), // output wire [3:0] gt1_rxcharisk_out
  182.  
    //------------ Receive Ports -RX Initialization and Reset Ports ------------
  183.  
    .gt1_rxresetdone_out (gt1_rxresetdone_out), // output wire gt1_rxresetdone_out
  184.  
    //------------------- TX Initialization and Reset Ports --------------------
  185.  
    .gt1_gttxreset_in (1'b0), // input wire gt1_gttxreset_in
  186.  
    .gt1_txuserrdy_in (1'b0), // input wire gt1_txuserrdy_in
  187.  
    //-------------------- Transmit Ports - TX Buffer Ports --------------------
  188.  
    .gt1_txbufstatus_out ( ), // output wire [1:0] gt1_txbufstatus_out
  189.  
    //---------------- Transmit Ports - TX Data Path interface -----------------
  190.  
    .gt1_txdata_in (gt1_txdata_in), // input wire [31:0] gt1_txdata_in
  191.  
    //-------------- Transmit Ports - TX Driver and OOB signaling --------------
  192.  
    .gt1_gtxtxn_out (tx_serdin1_n), // output wire gt1_gtxtxn_out
  193.  
    .gt1_gtxtxp_out (tx_serdin1_p), // output wire gt1_gtxtxp_out
  194.  
    //--------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
  195.  
    .gt1_txoutclkfabric_out ( ), // output wire gt1_txoutclkfabric_out
  196.  
    .gt1_txoutclkpcs_out ( ), // output wire gt1_txoutclkpcs_out
  197.  
    //------------------- Transmit Ports - TX Gearbox Ports --------------------
  198.  
    .gt1_txcharisk_in (gt1_txcharisk_in), // input wire [3:0] gt1_txcharisk_in
  199.  
    //----------- Transmit Ports - TX Initialization and Reset Ports -----------
  200.  
    .gt1_txresetdone_out (gt1_txresetdone_out), // output wire gt1_txresetdone_out
  201.  
    //---------------- Transmit Ports - pattern Generator Ports ----------------
  202.  
    .gt1_txprbssel_in (3'b0), // input wire [2:0] gt1_txprbssel_in
  203.  
     
  204.  
    //GT2 (X0Y2)
  205.  
    //____________________________CHANNEL PORTS________________________________
  206.  
    //------------------------------- CPLL Ports -------------------------------
  207.  
    .gt2_cpllfbclklost_out ( ), // output wire gt2_cpllfbclklost_out
  208.  
    .gt2_cplllock_out ( ), // output wire gt2_cplllock_out
  209.  
    .gt2_cpllreset_in (1'b0), // input wire gt2_cpllreset_in
  210.  
    //-------------------------- Channel - DRP Ports --------------------------
  211.  
    .gt2_drpaddr_in (9'd0), // input wire [8:0] gt2_drpaddr_in
  212.  
    .gt2_drpdi_in (16'd0), // input wire [15:0] gt2_drpdi_in
  213.  
    .gt2_drpdo_out ( ), // output wire [15:0] gt2_drpdo_out
  214.  
    .gt2_drpen_in (1'b0), // input wire gt2_drpen_in
  215.  
    .gt2_drprdy_out ( ), // output wire gt2_drprdy_out
  216.  
    .gt2_drpwe_in (1'b0), // input wire gt2_drpwe_in
  217.  
    //------------------------- Digital Monitor Ports --------------------------
  218.  
    .gt2_dmonitorout_out ( ), // output wire [7:0] gt2_dmonitorout_out
  219.  
    //----------------------------- Loopback Ports -----------------------------
  220.  
    .gt2_loopback_in (3'd0), // input wire [2:0] gt2_loopback_in
  221.  
    //------------------- RX Initialization and Reset Ports --------------------
  222.  
    .gt2_eyescanreset_in (1'b0), // input wire gt2_eyescanreset_in
  223.  
    .gt2_rxuserrdy_in (1'b1), // input wire gt2_rxuserrdy_in
  224.  
    //------------------------ RX Margin Analysis Ports ------------------------
  225.  
    .gt2_eyescandataerror_out ( ), // output wire gt2_eyescandataerror_out
  226.  
    .gt2_eyescantrigger_in (1'b0), // input wire gt2_eyescantrigger_in
  227.  
    //---------------- Receive Ports - FPGA RX interface Ports -----------------
  228.  
    .gt2_rxdata_out (gt2_rxdata_out), // output wire [31:0] gt2_rxdata_out
  229.  
    //----------------- Receive Ports - Pattern Checker Ports ------------------
  230.  
    .gt2_rxprbserr_out (gt2_rxprbserr_out), // output wire gt2_rxprbserr_out
  231.  
    .gt2_rxprbssel_in (3'b0), // input wire [2:0] gt2_rxprbssel_in
  232.  
    //----------------- Receive Ports - Pattern Checker ports ------------------
  233.  
    .gt2_rxprbscntreset_in (1'b0), // input wire gt2_rxprbscntreset_in
  234.  
    //---------------- Receive Ports - RX 8B/10B Decoder Ports -----------------
  235.  
    .gt2_rxdisperr_out (gt2_rxdisperr_out), // output wire [3:0] gt2_rxdisperr_out
  236.  
    .gt2_rxnotintable_out (gt2_rxnotintable_out), // output wire [3:0] gt2_rxnotintable_out
  237.  
    //------------------------- Receive Ports - RX AFE -------------------------
  238.  
    .gt2_gtxrxp_in (fb_serdout0_p), // input wire gt2_gtxrxp_in
  239.  
    //---------------------- Receive Ports - RX AFE Ports ----------------------
  240.  
    .gt2_gtxrxn_in (fb_serdout0_n), // input wire gt2_gtxrxn_in
  241.  
    //----------------- Receive Ports - RX Buffer Bypass Ports -----------------
  242.  
    .gt2_rxbufstatus_out ( ), // output wire [2:0] gt2_rxbufstatus_out
  243.  
    //------------ Receive Ports - RX Byte and Word Alignment Ports ------------
  244.  
    .gt2_rxbyterealign_out ( ), // output wire gt2_rxbyterealign_out
  245.  
    .gt2_rxmcommaalignen_in (gt2_rxmcommaalignen_in), // input wire gt2_rxmcommaalignen_in
  246.  
    .gt2_rxpcommaalignen_in (gt2_rxmcommaalignen_in), // input wire gt2_rxpcommaalignen_in
  247.  
    //------------------- Receive Ports - RX Equalizer Ports -------------------
  248.  
    .gt2_rxdfelpmreset_in (1'b0), // input wire gt2_rxdfelpmreset_in
  249.  
    .gt2_rxmonitorout_out ( ), // output wire [6:0] gt2_rxmonitorout_out
  250.  
    .gt2_rxmonitorsel_in (2'b0), // input wire [1:0] gt2_rxmonitorsel_in
  251.  
    //------------- Receive Ports - RX Fabric Output Control Ports -------------
  252.  
    .gt2_rxoutclkfabric_out ( ), // output wire gt2_rxoutclkfabric_out
  253.  
    //----------- Receive Ports - RX Initialization and Reset Ports ------------
  254.  
    .gt2_gtrxreset_in (1'b0), // input wire gt2_gtrxreset_in
  255.  
    .gt2_rxpmareset_in (1'b0), // input wire gt2_rxpmareset_in
  256.  
    //----------------- Receive Ports - RX8B/10B Decoder Ports -----------------
  257.  
    .gt2_rxchariscomma_out ( ), // output wire [3:0] gt2_rxchariscomma_out
  258.  
    .gt2_rxcharisk_out (gt2_rxcharisk_out), // output wire [3:0] gt2_rxcharisk_out
  259.  
    //------------ Receive Ports -RX Initialization and Reset Ports ------------
  260.  
    .gt2_rxresetdone_out (gt2_rxresetdone_out), // output wire gt2_rxresetdone_out
  261.  
    //------------------- TX Initialization and Reset Ports --------------------
  262.  
    .gt2_gttxreset_in (1'b0), // input wire gt2_gttxreset_in
  263.  
    .gt2_txuserrdy_in (1'b0), // input wire gt2_txuserrdy_in
  264.  
    //-------------------- Transmit Ports - TX Buffer Ports --------------------
  265.  
    .gt2_txbufstatus_out ( ), // output wire [1:0] gt2_txbufstatus_out
  266.  
    //---------------- Transmit Ports - TX Data Path interface -----------------
  267.  
    .gt2_txdata_in (gt2_txdata_in), // input wire [31:0] gt2_txdata_in
  268.  
    //-------------- Transmit Ports - TX Driver and OOB signaling --------------
  269.  
    .gt2_gtxtxn_out (tx_serdin2_n), // output wire gt2_gtxtxn_out
  270.  
    .gt2_gtxtxp_out (tx_serdin2_p), // output wire gt2_gtxtxp_out
  271.  
    //--------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
  272.  
    .gt2_txoutclkfabric_out ( ), // output wire gt2_txoutclkfabric_out
  273.  
    .gt2_txoutclkpcs_out ( ), // output wire gt2_txoutclkpcs_out
  274.  
    //------------------- Transmit Ports - TX Gearbox Ports --------------------
  275.  
    .gt2_txcharisk_in (gt2_txcharisk_in), // input wire [3:0] gt2_txcharisk_in
  276.  
    //----------- Transmit Ports - TX Initialization and Reset Ports -----------
  277.  
    .gt2_txresetdone_out (gt2_txresetdone_out), // output wire gt2_txresetdone_out
  278.  
    //---------------- Transmit Ports - pattern Generator Ports ----------------
  279.  
    .gt2_txprbssel_in (3'b0), // input wire [2:0] gt2_txprbssel_in
  280.  
     
  281.  
    //GT3 (X0Y3)
  282.  
    //____________________________CHANNEL PORTS________________________________
  283.  
    //------------------------------- CPLL Ports -------------------------------
  284.  
    .gt3_cpllfbclklost_out ( ), // output wire gt3_cpllfbclklost_out
  285.  
    .gt3_cplllock_out ( ), // output wire gt3_cplllock_out
  286.  
    .gt3_cpllreset_in (1'b0), // input wire gt3_cpllreset_in
  287.  
    //-------------------------- Channel - DRP Ports --------------------------
  288.  
    .gt3_drpaddr_in (9'd0), // input wire [8:0] gt3_drpaddr_in
  289.  
    .gt3_drpdi_in (16'd0), // input wire [15:0] gt3_drpdi_in
  290.  
    .gt3_drpdo_out ( ), // output wire [15:0] gt3_drpdo_out
  291.  
    .gt3_drpen_in (1'b0), // input wire gt3_drpen_in
  292.  
    .gt3_drprdy_out ( ), // output wire gt3_drprdy_out
  293.  
    .gt3_drpwe_in (1'b0), // input wire gt3_drpwe_in
  294.  
    //------------------------- Digital Monitor Ports --------------------------
  295.  
    .gt3_dmonitorout_out ( ), // output wire [7:0] gt3_dmonitorout_out
  296.  
    //----------------------------- Loopback Ports -----------------------------
  297.  
    .gt3_loopback_in (3'd0), // input wire [2:0] gt3_loopback_in
  298.  
    //------------------- RX Initialization and Reset Ports --------------------
  299.  
    .gt3_eyescanreset_in (1'b0), // input wire gt3_eyescanreset_in
  300.  
    .gt3_rxuserrdy_in (1'b1), // input wire gt3_rxuserrdy_in
  301.  
    //------------------------ RX Margin Analysis Ports ------------------------
  302.  
    .gt3_eyescandataerror_out ( ), // output wire gt3_eyescandataerror_out
  303.  
    .gt3_eyescantrigger_in (1'b0), // input wire gt3_eyescantrigger_in
  304.  
    //---------------- Receive Ports - FPGA RX interface Ports -----------------
  305.  
    .gt3_rxdata_out (gt3_rxdata_out), // output wire [31:0] gt3_rxdata_out
  306.  
    //----------------- Receive Ports - Pattern Checker Ports ------------------
  307.  
    .gt3_rxprbserr_out (gt3_rxprbserr_out), // output wire gt3_rxprbserr_out
  308.  
    .gt3_rxprbssel_in (3'b0), // input wire [2:0] gt3_rxprbssel_in
  309.  
    //----------------- Receive Ports - Pattern Checker ports ------------------
  310.  
    .gt3_rxprbscntreset_in (1'b0), // input wire gt3_rxprbscntreset_in
  311.  
    //---------------- Receive Ports - RX 8B/10B Decoder Ports -----------------
  312.  
    .gt3_rxdisperr_out (gt3_rxdisperr_out), // output wire [3:0] gt3_rxdisperr_out
  313.  
    .gt3_rxnotintable_out (gt3_rxnotintable_out), // output wire [3:0] gt3_rxnotintable_out
  314.  
    //------------------------- Receive Ports - RX AFE -------------------------
  315.  
    .gt3_gtxrxp_in (fb_serdout1_p), // input wire gt3_gtxrxp_in
  316.  
    //---------------------- Receive Ports - RX AFE Ports ----------------------
  317.  
    .gt3_gtxrxn_in (fb_serdout1_n), // input wire gt3_gtxrxn_in
  318.  
    //----------------- Receive Ports - RX Buffer Bypass Ports -----------------
  319.  
    .gt3_rxbufstatus_out ( ), // output wire [2:0] gt3_rxbufstatus_out
  320.  
    //------------ Receive Ports - RX Byte and Word Alignment Ports ------------
  321.  
    .gt3_rxbyterealign_out ( ), // output wire gt3_rxbyterealign_out
  322.  
    .gt3_rxmcommaalignen_in (gt3_rxmcommaalignen_in), // input wire gt3_rxmcommaalignen_in
  323.  
    .gt3_rxpcommaalignen_in (gt3_rxmcommaalignen_in), // input wire gt3_rxpcommaalignen_in
  324.  
    //------------------- Receive Ports - RX Equalizer Ports -------------------
  325.  
    .gt3_rxdfelpmreset_in (1'b0), // input wire gt3_rxdfelpmreset_in
  326.  
    .gt3_rxmonitorout_out ( ), // output wire [6:0] gt3_rxmonitorout_out
  327.  
    .gt3_rxmonitorsel_in (2'b0), // input wire [1:0] gt3_rxmonitorsel_in
  328.  
    //------------- Receive Ports - RX Fabric Output Control Ports -------------
  329.  
    .gt3_rxoutclkfabric_out ( ), // output wire gt3_rxoutclkfabric_out
  330.  
    //----------- Receive Ports - RX Initialization and Reset Ports ------------
  331.  
    .gt3_gtrxreset_in (1'b0), // input wire gt3_gtrxreset_in
  332.  
    .gt3_rxpmareset_in (1'b0), // input wire gt3_rxpmareset_in
  333.  
    //----------------- Receive Ports - RX8B/10B Decoder Ports -----------------
  334.  
    .gt3_rxchariscomma_out ( ), // output wire [3:0] gt3_rxchariscomma_out
  335.  
    .gt3_rxcharisk_out (gt3_rxcharisk_out), // output wire [3:0] gt3_rxcharisk_out
  336.  
    //------------ Receive Ports -RX Initialization and Reset Ports ------------
  337.  
    .gt3_rxresetdone_out (gt3_rxresetdone_out), // output wire gt3_rxresetdone_out
  338.  
    //------------------- TX Initialization and Reset Ports --------------------
  339.  
    .gt3_gttxreset_in (1'b0), // input wire gt3_gttxreset_in
  340.  
    .gt3_txuserrdy_in (1'b0), // input wire gt3_txuserrdy_in
  341.  
    //-------------------- Transmit Ports - TX Buffer Ports --------------------
  342.  
    .gt3_txbufstatus_out ( ), // output wire [1:0] gt3_txbufstatus_out
  343.  
    //---------------- Transmit Ports - TX Data Path interface -----------------
  344.  
    .gt3_txdata_in (gt3_txdata_in), // input wire [31:0] gt3_txdata_in
  345.  
    //-------------- Transmit Ports - TX Driver and OOB signaling --------------
  346.  
    .gt3_gtxtxn_out (tx_serdin3_n), // output wire gt3_gtxtxn_out
  347.  
    .gt3_gtxtxp_out (tx_serdin3_p), // output wire gt3_gtxtxp_out
  348.  
    //--------- Transmit Ports - TX Fabric Clock Output Control Ports ----------
  349.  
    .gt3_txoutclkfabric_out ( ), // output wire gt3_txoutclkfabric_out
  350.  
    .gt3_txoutclkpcs_out ( ), // output wire gt3_txoutclkpcs_out
  351.  
    //------------------- Transmit Ports - TX Gearbox Ports --------------------
  352.  
    .gt3_txcharisk_in (gt3_txcharisk_in), // input wire [3:0] gt3_txcharisk_in
  353.  
    //----------- Transmit Ports - TX Initialization and Reset Ports -----------
  354.  
    .gt3_txresetdone_out (gt3_txresetdone_out), // output wire gt3_txresetdone_out
  355.  
    //---------------- Transmit Ports - pattern Generator Ports ----------------
  356.  
    .gt3_txprbssel_in (3'b0), // input wire [2:0] gt3_txprbssel_in
  357.  
     
  358.  
    //____________________________COMMON PORTS________________________________
  359.  
    .gt0_qplloutclk_out(gt0_pll0outclk_out),
  360.  
    .gt0_qplloutrefclk_out(gt0_pll0outrefclk_out),
  361.  
    .sysclk_in(core_clk)
  362.  
     
  363.  
    );

除了下图蓝色的,其他的不是全0 就是全1 。

 

posted on 2022-11-02 13:38  皮皮祥  阅读(587)  评论(0编辑  收藏  举报