Verilog example for Serial data transfer on Au

You can use the serial_tx.v and serial_rx.v modules to connect directly to the usb_rx and usb_tx ports

https://raw.githubusercontent.com/embmicro/mojo-base-project/master/src/serial_rx.v
https://raw.githubusercontent.com/embmicro/mojo-base-project/master/src/serial_tx.v

To set the baud set the CLK_PER_BIT parameter like this $rtoi($ceil(CLK_RATE/SERIAL_BAUD_RATE))

CLK_RATE is likely 100000000 (100MHz)

I tried uart_rx and uart_tx using Serial_Echo at 9600 and 19200. Through the USB port they work fine but using other pins not using the FTDI chip it skips characters if I scroll a text file. Typing works okay. Normally I do not need flow control but something in the structure is not buffering properly; I think.

Any ideas on this/