SVA · Easy · SystemVerilog

No FIFO Underflow Assertion

Assert that a read is never attempted while the FIFO is empty.

Task

Whenever empty is high, rd_en must be 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

Edge cases worth testing

Common mistakes

Interview follow-up questions

Concepts to review

sva, fifo, underflow

Open No FIFO Underflow Assertion in the HDLForge interactive editor.

Related problems

Explore the SystemVerilog Assertions (SVA) Practice hub.

Continue practising