SVA · Hard · SystemVerilog

RISC-V Core Assertions

Check key architectural invariants around x0 and retirement stability.

Task

Assert that x0 is always zero and that retirement payload stays stable while retire_valid is high and retire_ready is low.

Examples

Constraints

What this problem is testing

SVA questions test temporal reasoning: exactly when signals are sampled, overlapped versus non-overlapped implication, reset disabling, and whether an assertion can pass vacuously.

Interview habit: before coding, state reset behavior, the state that must be stored, and the conditions that update each output.

Verification plan

Common mistakes

Interview follow-up questions

Concepts to review

RISC-V, SVA, processor verification

Open RISC-V Core Assertions in the HDLForge interactive editor.

Related problems

Explore the SystemVerilog Assertions (SVA) Practice hub.

Continue practising