SURF
Loading...
Searching...
No Matches
Pgp4Pkg Package Reference
Package >> Pgp4Pkg

Functions

slv   pgp4MakeLinkInfo ( locRxFifoCtrl: in AxiStreamCtrlArray , locRxLinkReady: in sl )
slv   pgp4KCodeCrc ( kCodeWord: in slv( 63 downto 0) )
slv   pgp4MakeLinkInfo ( locRxFifoCtrl: in AxiStreamCtrlArray , locRxLinkReady: in sl )
slv   pgp4KCodeCrc ( kCodeWord: in slv( 63 downto 0) )

Procedures

  pgp4ExtractLinkInfo(
linkInfo: in slv ( PGP4_LINKINFO_FIELD_C )
remRxFifoCtrl: inout AxiStreamCtrlArray
remRxLinkReady: inout sl
version: inout slv ( 7 downto 0 )
)
  pgp4ExtractLinkInfo(
linkInfo: in slv ( PGP4_LINKINFO_FIELD_C )
remRxFifoCtrl: inout AxiStreamCtrlArray
remRxLinkReady: inout sl
version: inout slv ( 7 downto 0 )
)

Libraries

ieee 
surf 

Use Clauses

std_logic_1164 
std_logic_unsigned 
std_logic_arith 
StdRtlPkg  Package <StdRtlPkg>
AxiStreamPkg  Package <AxiStreamPkg>
SsiPkg  Package <SsiPkg>

Constants

PGP4_VERSION_C  slv ( 7 downto 0 ) := toSlv ( 4 , 8 )
PGP4_DEFAULT_TX_CELL_WORDS_MAX_C  positive := 128
PGP4_AXIS_CONFIG_C  AxiStreamConfigType := ssiAxiStreamConfig ( dataBytes = > 8 , tKeepMode = > TKEEP_COMP_C , tUserMode = > TUSER_FIRST_LAST_C , tDestBits = > 4 , tUserBits = > 2 )
PGP4_IDLE_C  slv ( 7 downto 0 ) := X " 99 "
PGP4_SOF_C  slv ( 7 downto 0 ) := X " AA "
PGP4_EOF_C  slv ( 7 downto 0 ) := X " 55 "
PGP4_SOC_C  slv ( 7 downto 0 ) := X " CC "
PGP4_EOC_C  slv ( 7 downto 0 ) := X " 33 "
PGP4_SKP_C  slv ( 7 downto 0 ) := X " 66 "
PGP4_USER_C  slv ( 7 downto 0 ) := X " 78 "
PGP4_VALID_BTF_ARRAY_C  Slv8Array := ( 0 = > PGP4_IDLE_C , 1 = > PGP4_SOF_C , 2 = > PGP4_EOF_C , 3 = > PGP4_SOC_C , 4 = > PGP4_EOC_C , 5 = > PGP4_SKP_C , 6 = > PGP4_USER_C )
PGP4_D_HEADER_C  slv ( 1 downto 0 ) := " 01 "
PGP4_K_HEADER_C  slv ( 1 downto 0 ) := " 10 "
PGP4_SCRAMBLER_TAPS_C  IntegerArray ( 0 to 1 ) := ( 0 = > 39 , 1 = > 58 )
PGP4_CRC_POLY_C  slv ( 31 downto 0 ) := X " 04C11DB7 "
PGP4_TX_IN_INIT_C  Pgp4TxInType := ( disable = > ' 0 ' , flowCntlDis = > ' 0 ' , resetTx = > ' 0 ' , skpInterval = > toSlv ( 5000 , 32 ) , opCodeEn = > ' 0 ' , opCodeData = > ( others = > ' 0 ' ) , locData = > ( others = > ' 0 ' ) )
PGP4_TX_OUT_INIT_C  Pgp4TxOutType := ( locPause = > ( others = > ' 0 ' ) , locOverflow = > ( others = > ' 0 ' ) , phyTxActive = > ' 0 ' , linkReady = > ' 0 ' , opCodeReady = > ' 0 ' , frameTx = > ' 0 ' , frameTxErr = > ' 0 ' )
PGP4_RX_IN_INIT_C  Pgp4RxInType := ( loopback = > ( others = > ' 0 ' ) , resetRx = > ' 0 ' )
PGP4_RX_OUT_INIT_C  Pgp4RxOutType := ( phyRxActive = > ' 0 ' , phyRxInit = > ' 0 ' , gearboxAligned = > ' 0 ' , linkReady = > ' 0 ' , remRxLinkReady = > ' 0 ' , frameRx = > ' 0 ' , frameRxErr = > ' 0 ' , linkDown = > ' 0 ' , linkError = > ' 0 ' , ebOverflow = > ' 0 ' , opCodeEn = > ' 0 ' , opCodeData = > ( others = > ' 0 ' ) , remLinkData = > ( others = > ' 0 ' ) , remRxOverflow = > ( others = > ' 0 ' ) , remRxPause = > ( others = > ' 0 ' ) , cellError = > ' 0 ' , cellSofError = > ' 0 ' , cellSeqError = > ' 0 ' , cellVersionError = > ' 0 ' , cellCrcModeError = > ' 0 ' , cellCrcError = > ' 0 ' , cellEofeError = > ' 0 ' )

Types

Pgp4TxInArray  array ( natural range <> ) of Pgp4TxInType
Pgp4TxOutArray  array ( natural range <> ) of Pgp4TxOutType
Pgp4RxInArray  array ( natural range <> ) of Pgp4RxInType
Pgp4RxOutArray  array ( natural range <> ) of Pgp4RxOutType

Subtypes

PGP4_BTF_FIELD_C  natural range 63 downto 56
PGP4_K_CODE_CRC_FIELD_C  natural range 55 downto 48
PGP4_SKIP_DATA_FIELD_C  natural range 47 downto 0
PGP4_USER_OPCODE_FIELD_C  natural range 47 downto 0
PGP4_LINKINFO_FIELD_C  natural range 31 downto 0
PGP4_SOFC_VC_FIELD_C  natural range 35 downto 32
PGP4_SOFC_SEQ_FIELD_C  natural range 47 downto 36
PGP4_EOFC_TUSER_FIELD_C  natural range 7 downto 0
PGP4_EOFC_BYTES_LAST_FIELD_C  natural range 15 downto 12
PGP4_EOFC_CRC_FIELD_C  natural range 47 downto 16

Records

Pgp4TxInType 
Pgp4TxOutType 
Pgp4RxInType 
Pgp4RxOutType 

The documentation for this design unit was generated from the following files: