format code
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 26 Apr 2022 05:14:09 +0000 (22:14 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 26 Apr 2022 05:14:09 +0000 (22:14 -0700)
uart_demo.py

index cf318d507b23d94032b05822db7f4ab790faf030..4054f9b0fcf96f3687335902d5cf2893863c6b85 100755 (executable)
@@ -63,7 +63,7 @@ class TickGenerator(Elaboratable):
 class SimpleUART(Elaboratable):
     """Simple transmit-only UART"""
 
-    def __init__(self, baud_rate=115200): # default for minicom/screen: 115200
+    def __init__(self, baud_rate=115200):  # default for minicom/screen: 115200
         self.__tick_gen = TickGenerator(baud_rate)
         self.data_in = Signal(8)
         self.data_in_valid = Signal()
@@ -229,7 +229,7 @@ PLATFORMS = {
 
 DEFAULT_PLATFORM = next(iter(PLATFORMS.keys()))
 DEFAULT_TOOLCHAIN = "yosys_nextpnr"
-DEFAULT_TEXT = "Hello World!\r\n" # carriage-return line-feed
+DEFAULT_TEXT = "Hello World!\r\n"  # carriage-return line-feed
 
 PLATFORMS_TEXT = '\n'.join(PLATFORMS.keys())
 HELP_TEXT = f"""