Skip to content

Add: Basic RAW hazard detection in decoder#2381

Closed
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:feature/hazard-detection-decoder
Closed

Add: Basic RAW hazard detection in decoder#2381
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:feature/hazard-detection-decoder

Conversation

@Anubhav-30
Copy link
Copy Markdown

This PR introduces a simple RAW (Read After Write) hazard detection
mechanism in the decoder.

The added logic detects when the current instruction reads a register
that is also being written, which can lead to incorrect data usage
in pipelined execution.

Currently, this change only exposes a hazard_detected_o signal and
does not implement stalling or forwarding. This provides a clean
foundation for future pipeline hazard handling.

This improves pipeline awareness and aligns with standard CPU
design practices.

@SamuelRiedel
Copy link
Copy Markdown
Contributor

The proposed logic only checks whether a single instruction reads and writes to the same register. Ibex already handles RAW hazards. Furthermore, this PR introduces syntax errors. Please ensure all future contributions pass basic tests.

We are closing this PR as the proposed changes do not align with our current development priorities, address any tracked issues, or meet our required technical standards.

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