1 ------------------------------------------------------------------------------- 2 -- File : Pgp2bGth7VarLat.vhd 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2015-04-01 5 -- Last update: 2016-08-24 6 ------------------------------------------------------------------------------- 7 -- Description: Gth7 Variable Latency Wrapper 8 ------------------------------------------------------------------------------- 9 -- This file is part of 'SLAC Firmware Standard Library'. 10 -- It is subject to the license terms in the LICENSE.txt file found in the 11 -- top-level directory of this distribution and at: 12 -- https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. 13 -- No part of 'SLAC Firmware Standard Library', including this file, 14 -- may be copied, modified, propagated, or distributed except according to 15 -- the terms contained in the LICENSE.txt file. 16 ------------------------------------------------------------------------------- 19 use ieee.std_logic_1164.
all;
27 --! @ingroup protocols_pgp_pgp2b_gth7 31 ---------------------------------------------------------------------------------------------- 33 ---------------------------------------------------------------------------------------------- 53 -- Configure PLL sources 57 -- Configure Buffer usage 64 ---------------------------------------------------------------------------------------------- 66 ---------------------------------------------------------------------------------------------- 84 gtTxP : out sl;
-- GT Serial Transmit Positive 85 gtTxN : out sl;
-- GT Serial Transmit Negative 86 gtRxP : in sl;
-- GT Serial Receive Positive 87 gtRxN : in sl;
-- GT Serial Receive Negative 106 -- Frame Transmit Interface - Array of 4 VCs 109 -- Frame Receive Interface - Array of 4 VCs 117 -- AXI-Lite Interface 150 -- Configure PLL sources 153 -- Configure Buffer usage 159 -- Configure Number of Lanes 201 -- Frame Transmit Interface - Array of 4 VCs 204 -- Frame Receive Interface - Array of 4 VCs 212 -- AXI-Lite Interface CPLL_REFCLK_SEL_Gbit_vector := "001"
out pgpRxMastersAxiStreamMasterArray( 3 downto 0)
out pgpRxMastersAxiStreamMasterArray( 3 downto 0)
array(natural range <> ) of AxiStreamSlaveType AxiStreamSlaveArray
NUM_VC_EN_Ginteger range 1 to 4:= 4
TX_ENABLE_Gboolean := true
in txPreCursorslv( 4 downto 0) :=( others => '0')
STABLE_CLOCK_PERIOD_Greal := 4.0E-9
in axilWriteMasterAxiLiteWriteMasterType := AXI_LITE_WRITE_MASTER_INIT_C
in txPostCursorslv( 4 downto 0) :=( others => '0')
in pgpRxCtrlAxiStreamCtrlArray( 3 downto 0)
SIM_VERSION_Gstring := "2.0"
TX_OUTCLK_SRC_Gstring := "OUTCLKPMA"
VC_INTERLEAVE_Ginteger := 0
AxiStreamMasterType :=(tValid => '0',tData =>( others => '0'),tStrb =>( others => '1'),tKeep =>( others => '1'),tLast => '0',tDest =>( others => '0'),tId =>( others => '0'),tUser =>( others => '0')) AXI_STREAM_MASTER_INIT_C
STABLE_CLOCK_PERIOD_Greal := 4.0E-9
in pgpTxMastersAxiStreamMasterArray( 3 downto 0) :=( others => AXI_STREAM_MASTER_INIT_C)
in txPostCursorslv( 4 downto 0) :=( others => '0')
out pgpRxMasterMuxedAxiStreamMasterType
out axilReadSlaveAxiLiteReadSlaveType
in txDiffCtrlslv( 3 downto 0) := "1000"
CPLL_REFCLK_DIV_Ginteger := 1
SIM_GTRESET_SPEEDUP_Gstring := "FALSE"
RX_OS_CFG_Gbit_vector := "0000010000000"
TX_CLK25_DIV_Ginteger := 7
TX_PHASE_ALIGN_Gstring := "NONE"
TX_BUF_EN_Gboolean := true
out pgpRxOutPgp2bRxOutType
RX_OS_CFG_Gbit_vector := "0000010000000"
TX_PHASE_ALIGN_Gstring := "NONE"
LANE_CNT_Ginteger range 1 to 2:= 2
RX_ENABLE_Gboolean := true
in txDiffCtrlslv( 3 downto 0) := "1000"
PMA_RSV_Gbit_vector := x"00000080"
PAYLOAD_CNT_TOP_Ginteger := 7
RXCDR_CFG_Gbit_vector := x"0002007FE1000C2200018"
SIM_GTRESET_SPEEDUP_Gstring := "FALSE"
in pgpTxMastersAxiStreamMasterArray( 3 downto 0) :=( others => AXI_STREAM_MASTER_INIT_C)
slv( 1 downto 0) := "11" AXI_RESP_DECERR_C
RXCDR_CFG_Gbit_vector := x"0002007FE1000C2200018"
TX_OUTCLK_SRC_Gstring := "OUTCLKPMA"
NUM_VC_EN_Ginteger range 1 to 4:= 4
SIM_VERSION_Gstring := "2.0"
PMA_RSV_Gbit_vector := x"00000080"
out axilWriteSlaveAxiLiteWriteSlaveType
TX_BUF_EN_Gboolean := true
array(natural range <> ) of AxiStreamCtrlType AxiStreamCtrlArray
VC_INTERLEAVE_Ginteger := 0
TX_BUF_ADDR_MODE_Gstring := "FULL"
out pgpTxOutPgp2bTxOutType
out pgpTxSlavesAxiStreamSlaveArray( 3 downto 0)
array(natural range <> ) of AxiStreamMasterType AxiStreamMasterArray
out pgpRxMasterMuxedAxiStreamMasterType
AxiLiteReadMasterType :=(araddr =>( others => '0'),arprot =>( others => '0'),arvalid => '0',rready => '1') AXI_LITE_READ_MASTER_INIT_C
TX_ENABLE_Gboolean := true
RX_CLK25_DIV_Ginteger := 7
out pgpRxOutPgp2bRxOutType
out pgpTxOutPgp2bTxOutType
TX_BUF_ADDR_MODE_Gstring := "FULL"
PAYLOAD_CNT_TOP_Ginteger := 7
AxiLiteWriteMasterType :=(awaddr =>( others => '0'),awprot =>( others => '0'),awvalid => '0',wdata =>( others => '0'),wstrb =>( others => '1'),wvalid => '0',bready => '1') AXI_LITE_WRITE_MASTER_INIT_C
CPLL_FBDIV_45_Ginteger := 5
TX_CLK25_DIV_Ginteger := 7
in axilReadMasterAxiLiteReadMasterType := AXI_LITE_READ_MASTER_INIT_C
in pgpRxCtrlAxiStreamCtrlArray( 3 downto 0)
AXI_ERROR_RESP_Gslv( 1 downto 0) := AXI_RESP_DECERR_C
RX_CLK25_DIV_Ginteger := 7
CPLL_REFCLK_SEL_Gbit_vector := "001"
AXI_ERROR_RESP_Gslv( 1 downto 0) := AXI_RESP_DECERR_C
CPLL_REFCLK_DIV_Ginteger := 1
RX_ENABLE_Gboolean := true
out pgpTxSlavesAxiStreamSlaveArray( 3 downto 0)
CPLL_FBDIV_45_Ginteger := 5
in txPreCursorslv( 4 downto 0) :=( others => '0')