udpprot: Fix end-of-packet detection in mux
The previous logic reset the mux before the end of the packet was transmitted, effectively dropping almost all payload bytes for any port other than the highest priority one.
This commit is contained in:
parent
a98a9cbf06
commit
474d444f59
@ -110,7 +110,7 @@ begin
|
||||
state <= WAITDONE when (not udp_in.tx_en);
|
||||
|
||||
when WAITDONE =>
|
||||
if udp_out.tx_err_stb or udp_out.tx_ok_stb or udp_out.tx_data_ack then
|
||||
if udp_out.tx_err_stb or udp_out.tx_ok_stb then
|
||||
state <= IDLE;
|
||||
tx_sel <= udpprot_tx_in'left; -- To avoid arbitration errors, always select the highest priority one by default
|
||||
end if;
|
||||
|
Loading…
x
Reference in New Issue
Block a user