Flush uart print statements on \n

This commit is contained in:
David Harris 2021-05-03 19:37:45 -04:00
parent 2f5649832a
commit 8758b6efa1

View File

@ -377,7 +377,7 @@ module uartPC16550D(
txhrfull <= #1 1;
end
$write("%c",Din); // for testbench
if (Din == '\n') $flush;
if (Din == 13) $flush;
end
if (txstate == UART_IDLE) begin // move data into tx shift register if available
if (fifoenabled) begin