Skip to content

decoder: Add formal-style safety assertions for control, memory, and illegal instruction handling#2387

Open
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:verification/decoder-assertions
Open

decoder: Add formal-style safety assertions for control, memory, and illegal instruction handling#2387
Anubhav-30 wants to merge 1 commit intolowRISC:masterfrom
Anubhav-30:verification/decoder-assertions

Conversation

@Anubhav-30
Copy link
Copy Markdown

This PR introduces a set of safety assertions in the decoder to
improve verification and ensure correct control behavior.

The assertions cover:

  • No register writes on illegal instructions
  • No memory requests during illegal or branch conditions
  • Mutual exclusion of branch and jump signals
  • No CSR access on illegal instructions
  • No register reads on illegal instructions

These checks align the decoder behavior with real hardware
verification practices and improve robustness against unintended
side effects.

This enhances confidence in control-path correctness and makes
the design more verification-friendly.

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