Skip to content

fix: APB_UART RX FIFO threshold uses wrong register - #4045

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
ashnaaseth2325-oss:fix/apb-uart-rx-threshold
Mar 25, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
ashnaaseth2325-oss:fix/apb-uart-rx-threshold

Conversation

@ashnaaseth2325-oss

Copy link
Copy Markdown
Contributor

1. SUMMARY

This PR fixes an incorrect register reference in the APB UART module where the RX FIFO threshold logic was comparing against the TX threshold register. This caused RX threshold interrupts to trigger at incorrect levels.

The issue affects flow/designs/src/chameleon/IPs/APB_UART.v (around line 145) and impacts correct interrupt generation based on RX FIFO occupancy.


2. FIX

// Before (incorrect threshold comparison)
wire rx_more_threshold = (rx_level > TXFIFOTR);

// After (correct threshold comparison)
wire rx_more_threshold = (rx_level > RXFIFOTR);

3. VERIFICATION

Configure different threshold values (e.g., TXFIFOTR = 4, RXFIFOTR = 8) and enable the RX threshold interrupt. Fill the RX FIFO gradually and observe interrupt behavior.

Before the fix, the interrupt triggers based on TXFIFOTR; after the fix, it correctly triggers only when rx_level > RXFIFOTR.

Signed-off-by: Ashnaa Seth <ashnaaseth2325@gmail.com>
Signed-off-by: ashnaaseth2325-oss <ashnaaseth2325@gmail.com>
@ashnaaseth2325-oss
ashnaaseth2325-oss force-pushed the fix/apb-uart-rx-threshold branch from 410eae5 to 843726a Compare March 24, 2026 13:51
@ashnaaseth2325-oss

Copy link
Copy Markdown
Contributor Author

Hi @eder-matheus @maliberty,
Please review this PR whenever you get time.
Thanks!

@maliberty
maliberty merged commit 7b9c592 into The-OpenROAD-Project:master Mar 25, 2026
5 checks passed
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.

2 participants