dma_lasmi/Writer: fix default FIFO depth
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 7 Jul 2013 18:01:55 +0000 (20:01 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 7 Jul 2013 18:01:55 +0000 (20:01 +0200)
migen/actorlib/dma_lasmi.py

index 4dab301825761f9bd03c430472f0f4b61c6ffd16..5490b8d22f423de1960f4067b2cc2e6a8791dac4 100644 (file)
@@ -72,7 +72,7 @@ class Writer(Module):
                ###
 
                if fifo_depth is None:
-                       fifo_depth = lasmim.req_queue_size + lasmim.read_latency + 2
+                       fifo_depth = lasmim.req_queue_size + lasmim.write_latency + 2
 
                fifo = SyncFIFO(lasmim.dw, fifo_depth)
                self.submodules += fifo