Skip to content

Add RX FIFO overflow detection and status flag in UART - #41

Open
Anubhav-30 wants to merge 1 commit into
riscv-mcu:masterfrom
Anubhav-30:uart-rx-overflow
Open

Anubhav-30 wants to merge 1 commit into
riscv-mcu:masterfrom
Anubhav-30:uart-rx-overflow

Conversation

@Anubhav-30

Copy link
Copy Markdown

Adds overflow detection and reporting to UART RX path for improved robustness.

Changes

  • Introduced rx_overflow register to track overflow condition
  • Detects overflow when RX FIFO is full and new data arrives
  • Exposes overflow status via Line Status Register (LSR) bit [1]
  • Clears overflow flag when LSR is read

Impact

  • Improves UART reliability and debugging capability
  • Helps detect data loss due to FIFO overflow
  • No impact on existing functionality
  • Fully backward compatible

Notes

  • Overflow logic implemented in sequential (clocked) block
  • Avoids combinational assignment to sequential signals
  • Follows standard RTL design practices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant