From 1fd189512f00f6485b900bff9b68394b647dfa50 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 7 May 2015 20:03:55 +0200 Subject: [PATCH] liteusb/frontend/dma: remove +4 to length for CRC (we'll do it in core) --- misoclib/com/liteusb/frontend/dma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoclib/com/liteusb/frontend/dma.py b/misoclib/com/liteusb/frontend/dma.py index 79f7ab67f..d656eca34 100644 --- a/misoclib/com/liteusb/frontend/dma.py +++ b/misoclib/com/liteusb/frontend/dma.py @@ -78,7 +78,7 @@ class LiteUSBDMAReader(Module, AutoCSR): source.stb.eq(unpack.source.stb), source.sop.eq(cnt == 0), source.eop.eq(cnt == (self.dma.length*pack_factor-1)), - source.length.eq(self.dma.length*pack_factor+4), + source.length.eq(self.dma.length*pack_factor), source.data.eq(unpack.source.data), source.dst.eq(tag), unpack.source.ack.eq(source.ack)