global: more pep8
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 19:33:44 +0000 (21:33 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Apr 2015 19:33:44 +0000 (21:33 +0200)
we will have to continue the work... volunteers are welcome :)

mibuild/altera/programmer.py
migen/bus/csr.py
migen/bus/wishbone.py

index 13af0f492a70d4befb347a1ca92890090cdcb1d7..e2e2cae5033529ba782d36cffa9932e890ffb86e 100644 (file)
@@ -7,5 +7,5 @@ class USBBlaster(GenericProgrammer):
     needs_bitreverse = False
 
     def load_bitstream(self, bitstream_file, port=0):
-        usb_port = "[USB-"+str(port)+"]"
-        subprocess.call(["quartus_pgm", "-m", "jtag", "-c", "USB-Blaster"+usb_port, "-o", "p;"+bitstream_file])
+        usb_port = "[USB-"+str(port) + "]"
+        subprocess.call(["quartus_pgm", "-m", "jtag", "-c", "USB-Blaster" + usb_port, "-o", "p;" + bitstream_file])
index 7c1e6feeb27fb173e4190f9a0d2002ae203b1c86..414363f9dd7e75005de6d7773cccd17cf29db65a 100644 (file)
@@ -5,10 +5,10 @@ from migen.genlib.record import *
 from migen.genlib.misc import chooser
 
 _layout = [
-    ("adr",        "address_width",    DIR_M_TO_S),
-    ("we",        1,                    DIR_M_TO_S),
-    ("dat_w",    "data_width",        DIR_M_TO_S),
-    ("dat_r",    "data_width",        DIR_S_TO_M)
+    ("adr",  "address_width", DIR_M_TO_S),
+    ("we",                 1, DIR_M_TO_S),
+    ("dat_w",   "data_width", DIR_M_TO_S),
+    ("dat_r",   "data_width", DIR_S_TO_M)
 ]
 
 
index 494da16bc7191b658e4f69166a3080e26bc34559..d4c24dd416b218e36dcd478c76b45a517ae93115 100644 (file)
@@ -6,17 +6,17 @@ from migen.genlib.fsm import FSM, NextState
 from migen.bus.transactions import *
 
 _layout = [
-    ("adr",        30,                DIR_M_TO_S),
-    ("dat_w",    "data_width",     DIR_M_TO_S),
-    ("dat_r",    "data_width",     DIR_S_TO_M),
-    ("sel",        "sel_width",    DIR_M_TO_S),
-    ("cyc",        1,                DIR_M_TO_S),
-    ("stb",        1,                DIR_M_TO_S),
-    ("ack",        1,                DIR_S_TO_M),
-    ("we",        1,                DIR_M_TO_S),
-    ("cti",        3,                DIR_M_TO_S),
-    ("bte",        2,                DIR_M_TO_S),
-    ("err",        1,                DIR_S_TO_M)
+    ("adr",             30, DIR_M_TO_S),
+    ("dat_w", "data_width", DIR_M_TO_S),
+    ("dat_r", "data_width", DIR_S_TO_M),
+    ("sel",    "sel_width", DIR_M_TO_S),
+    ("cyc",              1, DIR_M_TO_S),
+    ("stb",              1, DIR_M_TO_S),
+    ("ack",              1, DIR_S_TO_M),
+    ("we",               1, DIR_M_TO_S),
+    ("cti",              3, DIR_M_TO_S),
+    ("bte",              2, DIR_M_TO_S),
+    ("err",              1, DIR_S_TO_M)
 ]