Line 27... |
Line 27... |
use work.arp_types.all;
|
use work.arp_types.all;
|
|
|
entity UDP_Complete_nomac is
|
entity UDP_Complete_nomac is
|
generic (
|
generic (
|
CLOCK_FREQ : integer := 125000000; -- freq of data_in_clk -- needed to timout cntr
|
CLOCK_FREQ : integer := 125000000; -- freq of data_in_clk -- needed to timout cntr
|
ARP_TIMEOUT : integer := 60 -- ARP response timeout (s)
|
ARP_TIMEOUT : integer := 60; -- ARP response timeout (s)
|
|
ARP_MAX_PKT_TMO : integer := 5; -- # wrong nwk pkts received before set error
|
|
MAX_ARP_ENTRIES : integer := 255 -- max entries in the ARP store
|
);
|
);
|
Port (
|
Port (
|
-- UDP TX signals
|
-- UDP TX signals
|
udp_tx_start : in std_logic; -- indicates req to tx UDP
|
udp_tx_start : in std_logic; -- indicates req to tx UDP
|
udp_txi : in udp_tx_type; -- UDP tx cxns
|
udp_txi : in udp_tx_type; -- UDP tx cxns
|
Line 65... |
Line 67... |
mac_rx_tlast : in std_logic -- indicates last byte of the trame
|
mac_rx_tlast : in std_logic -- indicates last byte of the trame
|
);
|
);
|
end UDP_Complete_nomac;
|
end UDP_Complete_nomac;
|
|
|
|
|
|
|
|
|
|
|
architecture structural of UDP_Complete_nomac is
|
architecture structural of UDP_Complete_nomac is
|
|
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
-- Component Declaration for UDP TX
|
-- Component Declaration for UDP TX
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
Line 114... |
Line 119... |
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
|
|
component IP_complete_nomac
|
component IP_complete_nomac
|
generic (
|
generic (
|
CLOCK_FREQ : integer := 125000000; -- freq of data_in_clk -- needed to timout cntr
|
CLOCK_FREQ : integer := 125000000; -- freq of data_in_clk -- needed to timout cntr
|
ARP_TIMEOUT : integer := 60 -- ARP response timeout (s)
|
ARP_TIMEOUT : integer := 60; -- ARP response timeout (s)
|
|
ARP_MAX_PKT_TMO : integer := 5; -- # wrong nwk pkts received before set error
|
|
MAX_ARP_ENTRIES : integer := 255 -- max entries in the ARP store
|
);
|
);
|
Port (
|
Port (
|
-- IP Layer signals
|
-- IP Layer signals
|
ip_tx_start : in std_logic;
|
ip_tx_start : in std_logic;
|
ip_tx : in ipv4_tx_type; -- IP tx cxns
|
ip_tx : in ipv4_tx_type; -- IP tx cxns
|
Line 201... |
Line 208... |
-- Instantiate the IP layer
|
-- Instantiate the IP layer
|
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
IP_block : IP_complete_nomac
|
IP_block : IP_complete_nomac
|
generic map (
|
generic map (
|
CLOCK_FREQ => CLOCK_FREQ,
|
CLOCK_FREQ => CLOCK_FREQ,
|
ARP_TIMEOUT => ARP_TIMEOUT
|
ARP_TIMEOUT => ARP_TIMEOUT,
|
|
ARP_MAX_PKT_TMO => ARP_MAX_PKT_TMO,
|
|
MAX_ARP_ENTRIES => MAX_ARP_ENTRIES
|
)
|
)
|
PORT MAP (
|
PORT MAP (
|
-- IP interface
|
-- IP interface
|
ip_tx_start => ip_tx_start_int,
|
ip_tx_start => ip_tx_start_int,
|
ip_tx => ip_tx_int,
|
ip_tx => ip_tx_int,
|
Line 238... |
Line 247... |
|
|
|
|
end structural;
|
end structural;
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|
|
|
No newline at end of file
|
No newline at end of file
|