mac/sram: Fix length_lsb slicing (+1).
This commit is contained in:
parent
1b25f7781c
commit
2827e9947f
|
@ -213,7 +213,7 @@ class LiteEthMACSRAMReader(Module, AutoCSR):
|
|||
self.comb += self._timestamp.status.eq(stat_fifo.source.timestamp)
|
||||
|
||||
# Encode Length to last_be.
|
||||
length_lsb = cmd_fifo.source.length[0:int(math.log2(dw//8))]
|
||||
length_lsb = cmd_fifo.source.length[:int(math.log2(dw/8)) + 1]
|
||||
self.comb += If(source.last,
|
||||
Case(length_lsb, {
|
||||
1 : source.last_be.eq(0b00000001),
|
||||
|
|
Loading…
Reference in New Issue