~shiny/gbcap

a25dd0983623581abecf3791793d81ada467d066 — Thomas Spurden 3 months ago 1da1303
Increase baud rate to 2Mbaud

This seems to be the fastest I can get to work.
2 files changed, 6 insertions(+), 6 deletions(-)

M gbcap.py
M uart_echo.py
M gbcap.py => gbcap.py +3 -3
@@ 211,7 211,7 @@ if __name__ == '__main__':
        led = plat.request('user_led')
        lcd = plat.request('gb_lcd')
        m = Module()
        m.submodules.cap = PixelsToUART(lcd, plat.request('serial'), plat.default_clk_period, baud_rate=1000000, ddr_inp=True)
        m.submodules.cap = PixelsToUART(lcd, plat.request('serial'), plat.default_clk_period, baud_rate=2000000, ddr_inp=True)
        m.comb += led.eq(m.cap.lcd.capturing)

        plat.build(m)


@@ 282,8 282,8 @@ if __name__ == '__main__':
                self.pads = Record([('vsync', 1), ('hsync', 1), ('cpl', 1), ('clk', 1), ('pixel', 2)])
                self.serial_pads = Record([('tx', 1), ('rx', 1)])
                self.loop_serial_pads = Record([('tx', 1), ('rx', 1)])
                self.submodules.pixel_uart = PixelsToUART(self.pads, self.serial_pads, 31.25, baud_rate=1000000, ddr_inp=False)
                self.submodules.loopback = uart.RS232PHY(self.loop_serial_pads, 31.25, baud_rate=1000000)
                self.submodules.pixel_uart = PixelsToUART(self.pads, self.serial_pads, 31.25, baud_rate=2000000, ddr_inp=False)
                self.submodules.loopback = uart.RS232PHY(self.loop_serial_pads, 31.25, baud_rate=2000000)

                self.comb += [
                    self.serial_pads.rx.eq(self.loop_serial_pads.tx),

M uart_echo.py => uart_echo.py +3 -3
@@ 28,7 28,7 @@ if __name__ == '__main__':

        led = plat.request("user_led")
        m = Module()
        m.submodules.echo = Echo(plat.request('serial'), plat.default_clk_period, baud_rate=1000000)
        m.submodules.echo = Echo(plat.request('serial'), plat.default_clk_period, baud_rate=2000000)

        plat.build(m)



@@ 62,8 62,8 @@ if __name__ == '__main__':
                self.serial_pads = Record([('tx', 1), ('rx', 1)])
                self.loop_serial_pads = Record([('tx', 1), ('rx', 1)])

                self.submodules.echo = Echo(self.serial_pads, 31.25, baud_rate=1000000)
                self.submodules.loopback = uart.RS232PHY(self.loop_serial_pads, 31.25, baud_rate=1000000)
                self.submodules.echo = Echo(self.serial_pads, 31.25, baud_rate=2000000)
                self.submodules.loopback = uart.RS232PHY(self.loop_serial_pads, 31.25, baud_rate=2000000)

                self.comb += [
                    self.serial_pads.rx.eq(self.loop_serial_pads.tx),