bus/wishbone: style
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 24 Nov 2013 22:42:54 +0000 (23:42 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 24 Nov 2013 22:42:54 +0000 (23:42 +0100)
migen/bus/wishbone.py

index af5ae5c048f773e977c8aef3bba399dc39ef3d56..fec23a18d83d96fc90f3f94ea6024e6de7c22c19 100644 (file)
@@ -119,7 +119,6 @@ class DownConverter(Module):
        # L is the target data-width
        # M = N/L
        def __init__(self, dw_i, dw_o):
-
                self.wishbone_i = Interface(dw_i)
                self.wishbone_o = Interface(dw_o)
                self.ratio = dw_i//dw_o
@@ -172,12 +171,8 @@ class DownConverter(Module):
                self.submodules += fsm
                
                fsm.act("IDLE",
-                       If(write_ack,
-                               NextState("WRITE_ADAPT")
-                       ),
-                       If(read_ack,
-                               NextState("READ_ADAPT")
-                       )
+                       If(write_ack, NextState("WRITE_ADAPT")),
+                       If(read_ack, NextState("READ_ADAPT"))
                )
                
                fsm.act("WRITE_ADAPT",