[uart] Condition of Overflow
Previous overflow interrupt didn't consider frame error or parity error.
If a frame error or a parity error occurs, the logic doesn't push a
entry into rx fifo. So it shouldn't trigger overflow at that time.
diff --git a/hw/ip/uart/rtl/uart_core.sv b/hw/ip/uart/rtl/uart_core.sv
index 9cf4403..6c3000a 100644
--- a/hw/ip/uart/rtl/uart_core.sv
+++ b/hw/ip/uart/rtl/uart_core.sv
@@ -346,7 +346,7 @@
end
end
- assign event_rx_overflow = rx_valid & ~rx_fifo_wready;
+ assign event_rx_overflow = rx_fifo_wvalid & ~rx_fifo_wready;
assign event_tx_overflow = reg2hw.wdata.qe & ~tx_fifo_wready;
assign event_rx_break_err = break_err && (break_st == BRK_CHK);