Skip to content

Commit

Permalink
frontend/stream/LiteEthStream2UDPTX: Condition source.last_be to sour…
Browse files Browse the repository at this point in the history
…ce.last.
  • Loading branch information
enjoy-digital committed Apr 11, 2024
1 parent 79ccffc commit a0d59dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions liteeth/frontend/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ def __init__(self, ip_address, udp_port, data_width=8, fifo_depth=None):
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,
16 : 0b10,
8 : 0b1}[data_width]
),
If(source.last,
source.last_be.eq({
32 : 0b1000,
16 : 0b10,
8 : 0b1
}[data_width])),
If(source.ready,
fifo.source.ready.eq(1),
NextValue(counter, counter + 1),
Expand Down

0 comments on commit a0d59dd

Please sign in to comment.