From 1f2da4c457556caba84a1c9ef100ea6b2097f554 Mon Sep 17 00:00:00 2001 From: David Harris Date: Mon, 3 May 2021 19:25:28 -0400 Subject: [PATCH] Flush uart print statements on \n --- wally-pipelined/src/uncore/uartPC16550D.sv | 1 + 1 file changed, 1 insertion(+) diff --git a/wally-pipelined/src/uncore/uartPC16550D.sv b/wally-pipelined/src/uncore/uartPC16550D.sv index a98543cab..c3e5af1cf 100644 --- a/wally-pipelined/src/uncore/uartPC16550D.sv +++ b/wally-pipelined/src/uncore/uartPC16550D.sv @@ -377,6 +377,7 @@ module uartPC16550D( txhrfull <= #1 1; end $write("%c",Din); // for testbench + if (Din == '\n') $flush; end if (txstate == UART_IDLE) begin // move data into tx shift register if available if (fifoenabled) begin