From 474d444f5969807c244b956d8870e8bf0cc80d6c Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Tue, 30 Sep 2025 16:14:36 +0200 Subject: [PATCH] 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. --- trashernet/trashernet_udpprot.vhd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trashernet/trashernet_udpprot.vhd b/trashernet/trashernet_udpprot.vhd index 8012093..43d4cf6 100644 --- a/trashernet/trashernet_udpprot.vhd +++ b/trashernet/trashernet_udpprot.vhd @@ -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;