diff --git a/liteeth/frontend/stream.py b/liteeth/frontend/stream.py index d02990d..21385d1 100644 --- a/liteeth/frontend/stream.py +++ b/liteeth/frontend/stream.py @@ -58,7 +58,11 @@ class LiteEthStream2UDPTX(LiteXModule): source.ip_address.eq(ip_address), source.length.eq(level * (data_width//8)), source.data.eq(fifo.source.data), - source.last_be.eq({32:0b1000, 8:0b1}[data_width]), + source.last_be.eq({ + 32 : 0b1000, + 16 : 0b10, + 8 : 0b1}[data_width] + ), If(source.ready, fifo.source.ready.eq(1), NextValue(counter, counter + 1),