autopep8 cleanup
[nmigen-soc.git] / nmigen_soc / scheduler.py
index 588238abecd547c2b01982a31726b137749cda85..9fffac58ebc392c097f461d9391dc8569c449ce9 100644 (file)
@@ -24,6 +24,7 @@ class RoundRobin(Elaboratable):
         Strobe signal to enable granting access to the next device
         requesting. Externally driven.
     """
+
     def __init__(self, n):
         self.n = n
         self.request = Signal(n)
@@ -37,7 +38,7 @@ class RoundRobin(Elaboratable):
             with m.Switch(self.grant):
                 for i in range(self.n):
                     with m.Case(i):
-                        for j in reversed(range(i+1, i+self.n)):
+                        for j in reversed(range(i + 1, i + self.n)):
                             # If i+1 <= j < n, then t == j;     (after i)
                             # If n <= j < i+n, then t == j - n  (before i)
                             t = j % self.n