From 1f207bcafbd9301fd6a149ed05c279da944684be Mon Sep 17 00:00:00 2001 From: Jacob Pease Date: Thu, 20 Oct 2022 17:35:49 -0500 Subject: [PATCH] Extended rxfifotimeout count to actually be 4 characters long. --- pipelined/src/uncore/uartPC16550D.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/src/uncore/uartPC16550D.sv b/pipelined/src/uncore/uartPC16550D.sv index 9cd2e82a..e312eeb4 100644 --- a/pipelined/src/uncore/uartPC16550D.sv +++ b/pipelined/src/uncore/uartPC16550D.sv @@ -357,7 +357,7 @@ module uartPC16550D( (rxfifohead + 16 - rxfifotail); // verilator lint_on WIDTH assign rxfifotriggered = rxfifoentries >= rxfifotriggerlevel; - assign rxfifotimeout = rxtimeoutcnt[6]; // time out after 4 character periods; *** probably not right yet + assign rxfifotimeout = rxtimeoutcnt == {rxbitsexpected, 6'b0}; // time out after 4 character periods; *** probably not right yet //assign rxfifotimeout = 0; // disabled pending fix // detect any errors in rx fifo