actorlib/spi/DMAWriteController: make ack_when_inactive a keyword-only arg
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 2 Nov 2013 22:21:05 +0000 (23:21 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 2 Nov 2013 22:21:05 +0000 (23:21 +0100)
migen/actorlib/spi.py

index 45f3b21f80693e62a4ff592a2bfd1fc518043a16..35e4b21f49746c788b5f16bd36758844f2973a5a 100644 (file)
@@ -157,7 +157,7 @@ class DMAReadController(_DMAController):
                self.comb += self.r_busy.status.eq(self.busy)
 
 class DMAWriteController(_DMAController):
-       def __init__(self, bus_accessor, ack_when_inactive=False, *args, **kwargs):
+       def __init__(self, bus_accessor, *args, ack_when_inactive=False, **kwargs):
                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)