Skip to content
Snippets Groups Projects
Commit 8cf2845d authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Add func_eth_tester_eth_packet_on_link_length().

parent e8818702
No related branches found
No related tags found
1 merge request!288Resolve L2SDP-836
...@@ -46,6 +46,9 @@ PACKAGE tb_eth_tester_pkg is ...@@ -46,6 +46,9 @@ PACKAGE tb_eth_tester_pkg is
-- Ethernet packet length in octets inclduing eth header and CRC -- Ethernet packet length in octets inclduing eth header and CRC
FUNCTION func_eth_tester_eth_packet_length(block_len : NATURAL) RETURN NATURAL; FUNCTION func_eth_tester_eth_packet_length(block_len : NATURAL) RETURN NATURAL;
-- Ethernet packet lenght on link including c_network_eth_preamble_len and one idle word
FUNCTION func_eth_tester_eth_packet_on_link_length(block_len : NATURAL) RETURN NATURAL;
END tb_eth_tester_pkg; END tb_eth_tester_pkg;
...@@ -76,5 +79,10 @@ PACKAGE BODY tb_eth_tester_pkg IS ...@@ -76,5 +79,10 @@ PACKAGE BODY tb_eth_tester_pkg IS
RETURN c_eth_len; RETURN c_eth_len;
END func_eth_tester_eth_packet_length; END func_eth_tester_eth_packet_length;
FUNCTION func_eth_tester_eth_packet_on_link_length(block_len : NATURAL) RETURN NATURAL IS
BEGIN
RETURN c_network_eth_preamble_len + func_eth_tester_eth_packet_length(block_len) + c_word_sz;
END func_eth_tester_eth_packet_on_link_length;
END tb_eth_tester_pkg; END tb_eth_tester_pkg;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment