1 ------------------------------------------------------------------------------- 2 -- File : RawEthFramerWrapper.vhd 3 -- Company : SLAC National Accelerator Laboratory 4 -- Created : 2016-05-23 5 -- Last update: 2016-05-26 6 ------------------------------------------------------------------------------- 7 -- Description: Wrapper for RawEthFramer Module 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;
20 use ieee.std_logic_unsigned.
all;
21 use ieee.std_logic_arith.
all;
28 --! @ingroup ethernet_RawEthFramer 32 ETH_TYPE_G : slv(15 downto 0) := x"0010";
-- 0x1000 (big-Endian configuration) 35 -- Local Configurations 36 localMac :
in slv(
47 downto 0); -- big-Endian
configuration 37 -- Interface to Ethernet Media Access Controller (MAC) 42 -- Interface to Application engine(s) 55 end RawEthFramerWrapper;
64 ----------------------------- 65 -- Raw Ethernet Framer Engine 66 ----------------------------- 72 -- Local Configurations 76 -- Interface to Ethernet Media Access Controller (MAC) 81 -- Interface to Application engine(s) 108 -- AXI-Lite Interface in axilReadMasterAxiLiteReadMasterType := AXI_LITE_READ_MASTER_INIT_C
out obAppSlaveAxiStreamSlaveType
in addrslv( ADDR_WIDTH_G- 1 downto 0) :=( others => '0')
AXI_ERROR_RESP_Gslv( 1 downto 0) := AXI_RESP_DECERR_C
SYS_BYTE_WR_EN_Gboolean := false
in ibAppSlaveAxiStreamSlaveType
out obMacSlaveAxiStreamSlaveType
slv( 47 downto 0) remoteMac
in obAppMasterAxiStreamMasterType
out doutslv( DATA_WIDTH_G- 1 downto 0)
DATA_WIDTH_Ginteger := 32
out obAppSlaveAxiStreamSlaveType
in obAppMasterAxiStreamMasterType
out ibAppMasterAxiStreamMasterType
out axiReadSlaveAxiLiteReadSlaveType
out ibMacMasterAxiStreamMasterType
in ibMacSlaveAxiStreamSlaveType
slv( 1 downto 0) := "11" AXI_RESP_DECERR_C
in axiWriteMasterAxiLiteWriteMasterType
COMMON_CLK_Gboolean := false
in ibMacSlaveAxiStreamSlaveType
in localMacslv( 47 downto 0)
SYS_WR_EN_Gboolean := false
in obMacMasterAxiStreamMasterType
AXI_ERROR_RESP_Gslv( 1 downto 0) := AXI_RESP_DECERR_C
in ibAppSlaveAxiStreamSlaveType
in obMacMasterAxiStreamMasterType
in localMacslv( 47 downto 0)
out axilWriteSlaveAxiLiteWriteSlaveType
AxiLiteReadMasterType :=(araddr =>( others => '0'),arprot =>( others => '0'),arvalid => '0',rready => '1') AXI_LITE_READ_MASTER_INIT_C
in axiReadMasterAxiLiteReadMasterType
out ibAppMasterAxiStreamMasterType
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
out axiWriteSlaveAxiLiteWriteSlaveType
BRAM_EN_Gboolean := false
out obMacSlaveAxiStreamSlaveType
out ibMacMasterAxiStreamMasterType
in remoteMacslv( 47 downto 0)
ETH_TYPE_Gslv( 15 downto 0) := x"0010"
MODE_Gstring := "read-first"
ADDR_WIDTH_Ginteger range 1 to ( 2** 24):= 5
in axilWriteMasterAxiLiteWriteMasterType := AXI_LITE_WRITE_MASTER_INIT_C
ETH_TYPE_Gslv( 15 downto 0) := x"0010"
out tDestslv( 7 downto 0)
AXI_WR_EN_Gboolean := true
out axilReadSlaveAxiLiteReadSlaveType