Package: Pgp4Pkg
- File: Pgp4Pkg.vhd
Constants
Name | Type | Value | Description |
---|---|---|---|
PGP4_VERSION_C | slv(7 downto 0) | toSlv(4, 8) |
Version = 0x04 |
PGP4_DEFAULT_TX_CELL_WORDS_MAX_C | positive | 128 | Number of 64-bit words per cell |
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" | Define K code BTFs |
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
Name | Type | Description |
---|---|---|
Pgp4TxInType | ||
Pgp4TxInArray | array (natural range<>) of Pgp4TxInType | |
Pgp4TxOutType | ||
Pgp4TxOutArray | array (natural range<>) of Pgp4TxOutType | |
Pgp4RxInType | ||
Pgp4RxInArray | array (natural range<>) of Pgp4RxInType | |
Pgp4RxOutType | ||
Pgp4RxOutArray | array (natural range<>) of Pgp4RxOutType |
Functions
- pgp4MakeLinkInfo ( locRxFifoCtrl : AxiStreamCtrlArray;
locRxLinkReady : sl) return slv
- pgp4ExtractLinkInfo ( linkInfo : in slv(PGP4_LINKINFO_FIELD_C);
remRxFifoCtrl : inout AxiStreamCtrlArray;
remRxLinkReady : inout sl;
version : inout slv(7 downto 0)) return ()
- pgp4KCodeCrc ( kCodeWord : slv(63 downto 0)) return slv