forked from M-Labs/artiq
dma: fix off-by-one error in RawSlicer (#2090)
Signed-off-by: Jonathan Coates <jonathan.coates@oxionics.com>
This commit is contained in:
parent
9c12d8b1de
commit
cfc396cbc8
@ -110,7 +110,7 @@ class RawSlicer(Module):
|
||||
for i in range(out_size)})),
|
||||
If(shift_buf, Case(self.source_consume,
|
||||
{i: buf.eq(buf[i*g:])
|
||||
for i in range(out_size)})),
|
||||
for i in range(out_size + 1)})),
|
||||
]
|
||||
|
||||
fsm = FSM(reset_state="FETCH")
|
||||
|
@ -67,6 +67,7 @@ def do_dma(dut, address):
|
||||
test_writes1 = [
|
||||
(0x01, 0x23, 0x12, 0x33),
|
||||
(0x901, 0x902, 0x11, 0xeeeeeeeeeeeeeefffffffffffffffffffffffffffffff28888177772736646717738388488),
|
||||
(0x82, 0x289, 0x99, int.from_bytes(b"\xf0" * 64, "little")),
|
||||
(0x81, 0x288, 0x88, 0x8888)
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user