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

Made wait for xon more robust (in case it is initially 'X') in proc_tech_mac_10g_tx_packet.

parent c4adc7b4
No related branches found
No related tags found
No related merge requests found
...@@ -203,7 +203,9 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS ...@@ -203,7 +203,9 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS
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; ff_src_out <= c_dp_sosi_rst;
IF ff_src_in.xon='1' THEN -- Generate this packet -- Wait until XON is active
proc_common_wait_until_high(ff_clk, ff_src_in.xon);
-- Generate this packet
-- Select header -- Select header
CASE c_data_type IS CASE c_data_type IS
...@@ -282,11 +284,6 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS ...@@ -282,11 +284,6 @@ PACKAGE BODY tb_tech_mac_10g_pkg IS
proc_dp_stream_ready_latency(c_ready_latency, ff_clk, ff_src_in.ready, ff_en, '0', '1', '0', '1', ff_src_out.sync, ff_src_out.valid, ff_src_out.sop, ff_src_out.eop); proc_dp_stream_ready_latency(c_ready_latency, ff_clk, ff_src_in.ready, ff_en, '0', '1', '0', '1', ff_src_out.sync, ff_src_out.valid, ff_src_out.sop, ff_src_out.eop);
END IF; END IF;
ELSE
-- Wait until XON is active
proc_common_wait_until_high(ff_clk, ff_src_in.xon);
END IF;
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