frontend/stream/LiteEthStream2UDPTX: Condition source.last_be to source.last.
This commit is contained in:
parent
79ccffcfa7
commit
a0d59dd264
|
@ -63,11 +63,12 @@ class LiteEthStream2UDPTX(LiteXModule):
|
|||
source.ip_address.eq(_ip_address),
|
||||
source.length.eq(level * (data_width//8)),
|
||||
source.data.eq(fifo.source.data),
|
||||
If(source.last,
|
||||
source.last_be.eq({
|
||||
32 : 0b1000,
|
||||
16 : 0b10,
|
||||
8 : 0b1}[data_width]
|
||||
),
|
||||
8 : 0b1
|
||||
}[data_width])),
|
||||
If(source.ready,
|
||||
fifo.source.ready.eq(1),
|
||||
NextValue(counter, counter + 1),
|
||||
|
|
Loading…
Reference in New Issue