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

Wait for XON proc_tech_mac_10g_tx_packet.

parent e5f8f6bf
No related branches found
No related tags found
No related merge requests found
...@@ -202,6 +202,9 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS ...@@ -202,6 +202,9 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS
VARIABLE v_num : UNSIGNED(c_tech_mac_10g_data_w-1 DOWNTO 0) := (OTHERS=>'0'); VARIABLE v_num : UNSIGNED(c_tech_mac_10g_data_w-1 DOWNTO 0) := (OTHERS=>'0');
VARIABLE v_hdr_words_arr : t_network_total_header_64b_arr; VARIABLE v_hdr_words_arr : t_network_total_header_64b_arr;
BEGIN BEGIN
ff_src_out <= c_dp_sosi_rst;
IF ff_src_in.xon='1' THEN -- Generate this packet
-- Select header -- Select header
CASE c_data_type IS CASE c_data_type IS
WHEN c_tb_tech_mac_10g_data_type_arp => v_hdr_words_arr := c_arp_words_arr; WHEN c_tb_tech_mac_10g_data_type_arp => v_hdr_words_arr := c_arp_words_arr;
...@@ -280,11 +283,10 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS ...@@ -280,11 +283,10 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS
END IF; END IF;
-- Initialize for next tx packet ELSE
ff_src_out.data <= TO_DP_DATA(0); -- Wait until XON is active
ff_src_out.valid <= '0'; proc_common_wait_until_high(ff_clk, ff_src_in.xon);
ff_src_out.eop <= '0'; END IF;
ff_src_out.empty <= TO_DP_EMPTY(0);
END proc_tech_mac_10g_tx_packet; END proc_tech_mac_10g_tx_packet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment