mirror of
https://github.com/enjoy-digital/liteeth.git
synced 2025-01-03 03:43:37 -05:00
frontend/stream/LiteEthStream2UDPTX: Fix length computation (depends on data_width).
This commit is contained in:
parent
ba20fc7b71
commit
35b475727c
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ class LiteEthStream2UDPTX(Module):
|
|||
source.src_port.eq(udp_port),
|
||||
source.dst_port.eq(udp_port),
|
||||
source.ip_address.eq(ip_address),
|
||||
source.length.eq(1)
|
||||
source.length.eq(data_width//8)
|
||||
]
|
||||
else:
|
||||
level = Signal(max=fifo_depth+1)
|
||||
|
@ -48,7 +48,7 @@ class LiteEthStream2UDPTX(Module):
|
|||
source.src_port.eq(udp_port),
|
||||
source.dst_port.eq(udp_port),
|
||||
source.ip_address.eq(ip_address),
|
||||
source.length.eq(level),
|
||||
source.length.eq(level * (data_width//8)),
|
||||
source.data.eq(fifo.source.data),
|
||||
If(source.ready,
|
||||
fifo.source.ready.eq(1),
|
||||
|
|
Loading…
Reference in a new issue