HDLForge learning hub

SystemVerilog Assertions (SVA) Practice

Practice SystemVerilog Assertions with clocked properties, implication, bounded response, reset handling, one-hot checks and stability requirements.

What interviewers usually look for

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

How to practise this topic

  1. Write one passing trace and one deliberately failing trace.
  2. Check the exact cycle where the antecedent becomes true and where the consequent starts.
  3. Exercise reset while the property is active.

Practice problems

Valid Must Eventually Handshake
Medium · assertion · handshake · property
Write an assertion for a ready/valid interface.
Reset Clears State
Easy · assertion · reset
Verify that a synchronous reset clears a counter on the next clock edge.
Payload Stable While Stalled
Medium · sva · ready-valid · stable
Assert that a source cannot change its payload while valid is high and ready is low.
One-Hot Grant Assertion
Easy · sva · onehot · arbiter
Assert that an arbiter never grants more than one requester.
No FIFO Overflow Assertion
Easy · sva · fifo · overflow
Assert that a write is never attempted while the FIFO is full.
No FIFO Underflow Assertion
Easy · sva · fifo · underflow
Assert that a read is never attempted while the FIFO is empty.
Bounded Request Response
Medium · sva · liveness · bounded
Require a response within a bounded number of cycles.
Mutual Exclusion Assertion
Easy · sva · mutex · safety
Assert that read_active and write_active are never high together.
One-Cycle Pulse Width
Medium · sva · pulse · temporal
Assert that done is never high for two consecutive cycles.
AXI-Lite Protocol Assertions
Hard · SVA · AXI4-Lite · protocol checking
Add protocol properties that catch payload instability and missing responses.
RISC-V Core Assertions
Hard · RISC-V · SVA · processor verification
Check key architectural invariants around x0 and retirement stability.
AXI Crossbar Protocol Assertions
Hard · SVA · AXI · crossbar
Check grant exclusivity and stalled payload stability in the crossbar.

How to use this topic

Start with easier problems, implement or reason through the task without looking at a solution, then revisit medium and hard problems. Use the HDLForge roadmap to combine this topic with adjacent skills.

Follow the HDLForge roadmap or browse the complete problem set.

Related implementation guides