Skip to content

Enforce x0 Register Write Protection in Decoder with Verification Testbench#2390

Open
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:fix/x0-write-protection
Open

Enforce x0 Register Write Protection in Decoder with Verification Testbench#2390
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:fix/x0-write-protection

Conversation

@Anubhav-30
Copy link
Copy Markdown

@Anubhav-30 Anubhav-30 commented Apr 14, 2026

This PR ensures compliance with RISC-V specification by preventing writes to the x0 register.

  • Updated write enable logic to block writes when destination register is x0
  • Maintains existing illegal instruction protections
  • Added System Verilog testbench to verify behavior

This improves architectural correctness and prevents silent data corruption.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

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