Status and FIFOs
You will learn
What a driver polls, when a send is refused, and what the testbench of the UART checks.
A driver needs to know the hardware's mood: the spec carries STATUS_IDLE as 0, STATUS_TX_BUSY as 1, STATUS_RX_BUSY as 2, and a 16-deep FIFO each way. The test uart_tx_send_returns_false_when_busy is the rule a driver lives by -- you do not push a busy transmitter. The recording lowers the UART testbench spec to Verilog: what a bench looks like when the compiler emits it.