Define your design in state diagram, make the design using flip flops and make the logic, it is a long process but that is the way you learn how a uart works in reality.
you can define different state like start_transmit data_transmit stop transmit idle...
just need clear design read uart tx and fsm both for 1-2 hour u will have clear picture....