Serial 7 Segment using FPGA

I am attempting to use the Serial 7-Segment Display with a CMOD-A7 FPGA board to simply display a 16 bit value as hex on the display. I have the values showing correctly on the display, but the order of the numbers changes every time.

For example, I am testing trying to get it to show “1234” on the display, but when programing the board it will show “2341”, “3412”, “4123”, or sometimes “1234”.

Attached here is my code.

uart_tx.pdf (141 KB)

uart.pdf (135 KB)

Top_Level.pdf (135 KB)