Commit c65a971e authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

wr_streamers: latch tx_flush_p1_i at any time

parent ef003dbd
......@@ -486,22 +486,25 @@ begin -- rtl
fsm_escape <= '0';
ser_count <= (others => '0');
else
if(tx_reset_seq_i = '1') then
seq_no <= (others => '0');
end if;
if(tag_valid = '1') then
if tx_flush_p1_i = '1' or tx_timeout_hit = '1' then
tx_flush_latched <= '1';
end if;
tx_flush_latched <= '0'; -- overriden in IDLE
case state is
when IDLE =>
tx_flush_latched <= (tx_flush_p1_i or tx_timeout_hit) and not tx_fifo_empty;
crc_en <= '0';
crc_reset <= '0';
fsm_out.eof <= '0';
tx_frame_p1_o <= '0';
if(fsm_out.dreq = '1' and tx_fifo_empty = '0' and (tx_flush_latched = '1' or tx_flush_p1_i = '1' or tx_threshold_hit = '1')) then
if(fsm_out.dreq = '1' and tx_fifo_empty = '0' and ( tx_flush_latched = '1' or tx_threshold_hit = '1')) then
state <= SOF;
fsm_out.sof <= '1';
end if;
......@@ -510,6 +513,8 @@ begin -- rtl
fsm_escape <= '0';
when SOF =>
tx_flush_latched <= '0';
fsm_out.sof <= '0';
ser_count <= (others => '0');
state <= ETH_HEADER;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment