SURF
|
Functions | |
Slv16Array | EthPortArrayBigEndian ( portNum: in PositiveArray , portSize: in positive ) |
Procedures | |
getEthMacCsum( udpDet: in sl last: in sl hdr: in Slv8Array ( 19 downto 0 ) tKeep: in slv ( 15 downto 0 ) tData: in slv ( 127 downto 0 ) len: in slv ( 15 downto 0 ) ibcsum: in slv ( 15 downto 0 ) r: in EthMacCsumAccumArray ( 1 downto 0 ) v: inout EthMacCsumAccumArray ( 1 downto 0 ) ipValid: inout sl ipCsum: inout slv ( 15 downto 0 ) valid: inout sl csum: inout slv ( 15 downto 0 ) ) |
Libraries | |
ieee | |
surf |
Use Clauses | |
std_logic_1164 | |
std_logic_unsigned | |
std_logic_arith | |
StdRtlPkg | Package <StdRtlPkg> |
AxiStreamPkg | Package <AxiStreamPkg> |
Constants | |
MAC_ADDR_INIT_C | slv ( 47 downto 0 ) := x " 000000560008 " |
ARP_TYPE_C | slv ( 15 downto 0 ) := x " 0608 " |
IPV4_TYPE_C | slv ( 15 downto 0 ) := x " 0008 " |
UDP_C | slv ( 7 downto 0 ) := x " 11 " |
TCP_C | slv ( 7 downto 0 ) := x " 06 " |
ICMP_C | slv ( 7 downto 0 ) := x " 01 " |
IGMP_C | slv ( 7 downto 0 ) := x " 02 " |
DHCP_CPORT | slv ( 15 downto 0 ) := x " 4400 " |
DHCP_SPORT | slv ( 15 downto 0 ) := x " 4300 " |
EMAC_FRAG_BIT_C | integer := 0 |
EMAC_SOF_BIT_C | integer := 1 |
EMAC_EOFE_BIT_C | integer := 0 |
EMAC_IPERR_BIT_C | integer := 1 |
EMAC_TCPERR_BIT_C | integer := 2 |
EMAC_UDPERR_BIT_C | integer := 3 |
EMAC_AXIS_CONFIG_C | AxiStreamConfigType := ( TSTRB_EN_C = > false , TDATA_BYTES_C = > 16 , TDEST_BITS_C = > 8 , TID_BITS_C = > 0 , TKEEP_MODE_C = > TKEEP_COMP_C , TUSER_BITS_C = > 4 , TUSER_MODE_C = > TUSER_FIRST_LAST_C ) |
INT_EMAC_AXIS_CONFIG_C | AxiStreamConfigType := ( TSTRB_EN_C = > EMAC_AXIS_CONFIG_C.TSTRB_EN_C , TDATA_BYTES_C = > EMAC_AXIS_CONFIG_C.TDATA_BYTES_C , TDEST_BITS_C = > 0 , TID_BITS_C = > EMAC_AXIS_CONFIG_C.TID_BITS_C , TKEEP_MODE_C = > EMAC_AXIS_CONFIG_C.TKEEP_MODE_C , TUSER_BITS_C = > EMAC_AXIS_CONFIG_C.TUSER_BITS_C , TUSER_MODE_C = > EMAC_AXIS_CONFIG_C.TUSER_MODE_C ) |
ETH_MAC_CONFIG_INIT_C | EthMacConfigType := ( macAddress = > MAC_ADDR_INIT_C , filtEnable = > ' 1 ' , pauseEnable = > ' 1 ' , pauseTime = > x " 00FF " , pauseThresh = > toSlv ( ( 9000 / 16 ) , 16 ) , ipCsumEn = > ' 1 ' , tcpCsumEn = > ' 1 ' , udpCsumEn = > ' 1 ' , dropOnPause = > ' 0 ' ) |
ETH_MAC_STATUS_INIT_C | EthMacStatusType := ( rxFifoDropCnt = > ' 0 ' , rxPauseCnt = > ' 0 ' , txPauseCnt = > ' 0 ' , rxCountEn = > ' 0 ' , rxOverFlow = > ' 0 ' , rxCrcErrorCnt = > ' 0 ' , txCountEn = > ' 0 ' , txUnderRunCnt = > ' 0 ' , txNotReadyCnt = > ' 0 ' ) |
EMAC_CSUM_PIPELINE_C | natural := 3 |
ETH_MAC_CSUM_ACCUM_INIT_C | EthMacCsumAccumType := ( step = > ( others = > ' 0 ' ) , sum1 = > ( others = > ( others = > ' 0 ' ) ) , sum3 = > ( others = > ' 0 ' ) , sum5 = > ( others = > ' 0 ' ) ) |
Types | |
EthMacConfigArray | array ( natural range <> ) of EthMacConfigType |
EthMacStatusArray | array ( natural range <> ) of EthMacStatusType |
EthMacCsumAccumArray | array ( natural range <> ) of EthMacCsumAccumType |
Records | |
EthMacConfigType | |
EthMacStatusType | |
EthMacCsumAccumType |