class SimpleUART(Elaboratable):
"""Simple transmit-only UART"""
- def __init__(self, baud_rate=9600):
+ 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()
def build(platform, do_program):
- platform.build(UartDemo("Hello World!\n"), do_program=do_program)
+ platform.build(UartDemo("Hello World!\r\n"), do_program=do_program)
PLATFORMS = {
DEFAULT_PLATFORM = next(iter(PLATFORMS.keys()))
DEFAULT_TOOLCHAIN = "yosys_nextpnr"
-DEFAULT_TEXT = "Hello World!\n"
+DEFAULT_TEXT = "Hello World!\r\n" # carriage-return line-feed
PLATFORMS_TEXT = '\n'.join(PLATFORMS.keys())
HELP_TEXT = f"""