actorlib/spi/DMAWriteController: len -> flen
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 11 Jul 2013 17:22:56 +0000 (19:22 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 11 Jul 2013 17:22:56 +0000 (19:22 +0200)
migen/actorlib/spi.py

index fdf72c281bfbe99babe69514eb8b568dc17aaec5..9bb4f0400433be031624da7d34ac11dc68689bf3 100644 (file)
@@ -149,8 +149,8 @@ class DMAReadController(_DMAController):
 
 class DMAWriteController(_DMAController):
        def __init__(self, bus_accessor, *args, **kwargs):
-               bus_aw = len(bus_accessor.address_data.payload.a)
-               bus_dw = len(bus_accessor.address_data.payload.d)
+               bus_aw = flen(bus_accessor.address_data.payload.a)
+               bus_dw = flen(bus_accessor.address_data.payload.d)
                _DMAController.__init__(self, bus_accessor, bus_aw, bus_dw, *args, **kwargs)
                
                g = DataFlowGraph()