diff --git a/misoclib/tools/litescope/host/driver/uart.py b/misoclib/tools/litescope/host/driver/uart.py index 4e36ca56b..9a0b65bbd 100644 --- a/misoclib/tools/litescope/host/driver/uart.py +++ b/misoclib/tools/litescope/host/driver/uart.py @@ -4,7 +4,7 @@ from misoclib.tools.litescope.host.driver.reg import * def write_b(uart, data): - uart.write(pack('B',data)) + uart.write(pack('B', data)) class LiteScopeUARTDriver: diff --git a/misoclib/tools/litescope/host/dump/__init__.py b/misoclib/tools/litescope/host/dump/__init__.py index db00ac7f1..2b562ae02 100644 --- a/misoclib/tools/litescope/host/dump/__init__.py +++ b/misoclib/tools/litescope/host/dump/__init__.py @@ -109,5 +109,5 @@ class Dump: def __len__(self): l = 0 for var in self.vars: - l = max(len(var),l) + l = max(len(var), l) return l diff --git a/misoclib/tools/litescope/host/dump/csv.py b/misoclib/tools/litescope/host/dump/csv.py index 97209088b..601e3503b 100644 --- a/misoclib/tools/litescope/host/dump/csv.py +++ b/misoclib/tools/litescope/host/dump/csv.py @@ -46,8 +46,8 @@ class CSVDump(Dump): if __name__ == '__main__': dump = CSVDump() - dump.add(Var("foo1", 1, [0,1,0,1,0,1])) - dump.add(Var("foo2", 2, [1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0])) + dump.add(Var("foo1", 1, [0, 1, 0, 1, 0, 1])) + dump.add(Var("foo2", 2, [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0])) ramp = [i%128 for i in range(1024)] dump.add(Var("ramp", 16, ramp)) dump.write("dump.csv") diff --git a/misoclib/tools/litescope/host/dump/python.py b/misoclib/tools/litescope/host/dump/python.py index b548f1627..c0294c4a3 100644 --- a/misoclib/tools/litescope/host/dump/python.py +++ b/misoclib/tools/litescope/host/dump/python.py @@ -27,8 +27,8 @@ class PythonDump(Dump): if __name__ == '__main__': dump = PythonDump() - dump.add(Var("foo1", 1, [0,1,0,1,0,1])) - dump.add(Var("foo2", 2, [1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0])) + dump.add(Var("foo1", 1, [0, 1, 0, 1, 0, 1])) + dump.add(Var("foo2", 2, [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0])) ramp = [i%128 for i in range(1024)] dump.add(Var("ramp", 16, ramp)) dump.write("dump.py") diff --git a/misoclib/tools/litescope/host/dump/sigrok.py b/misoclib/tools/litescope/host/dump/sigrok.py index 776c1c8d3..d84d90d7d 100644 --- a/misoclib/tools/litescope/host/dump/sigrok.py +++ b/misoclib/tools/litescope/host/dump/sigrok.py @@ -141,8 +141,8 @@ samplerate = {} KHz if __name__ == '__main__': dump = SigrokDump() - dump.add(Var("foo1", 1, [0,1,0,1,0,1])) - dump.add(Var("foo2", 2, [1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0])) + dump.add(Var("foo1", 1, [0, 1, 0, 1, 0, 1])) + dump.add(Var("foo2", 2, [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0])) ramp = [i%128 for i in range(1024)] dump.add(Var("ramp", 16, ramp)) dump.write("dump.sr") diff --git a/misoclib/tools/litescope/host/dump/vcd.py b/misoclib/tools/litescope/host/dump/vcd.py index 3b43a7784..5db234f51 100644 --- a/misoclib/tools/litescope/host/dump/vcd.py +++ b/misoclib/tools/litescope/host/dump/vcd.py @@ -121,8 +121,8 @@ class VCDDump(Dump): if __name__ == '__main__': dump = VCDDump() - dump.add(Var("foo1", 1, [0,1,0,1,0,1])) - dump.add(Var("foo2", 2, [1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0])) + dump.add(Var("foo1", 1, [0, 1, 0, 1, 0, 1])) + dump.add(Var("foo2", 2, [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0])) ramp = [i%128 for i in range(1024)] dump.add(Var("ramp", 16, ramp)) dump.write("dump.vcd")