RTL Studio Open IDE

3.9 · SYSTEMVERILOG CLASS

Concurrent Assertions (SVA)

Define and verify a next-cycle request–acknowledge protocol with concurrent assertions.

Watch on YouTube

What you practice

Concurrent Assertions (SVA) (3.9). Define and verify a next-cycle request–acknowledge protocol with concurrent assertions. It is in Assertions — Part 3 · Advanced SV & Mini-UVM of the SystemVerilog Masterclass. Timing, concurrency, constrained-random verification, assertions, and a pure-SV Mini-UVM environment.

The same IDE is the SystemVerilog simulator. Slang lints the file, Verilator runs it, and the waveform viewer sits next to the source.

What you will learn

You will learn how to define and use concurrent assertions in SystemVerilog to verify temporal behavior across clock cycles, specifically ensuring that an acknowledgment signal follows a request signal with precise timing.

Learning objectives

  • Write a concurrent assert property statement using the |=> (next cycle) operator.
  • Place the assertion in the testbench to avoid affecting DUT synthesis.
  • Run simulation and verify that the assertion passes for correct protocol behavior.
  • Interpret INFO log lines to confirm assertion behavior and testbench correctness.

Theory

Concurrent assertions in SystemVerilog (SVA) evaluate properties over time, synchronized to a clock edge. They are ideal for verifying protocol timing without modifying synthesizable RTL.

OperatorMeaningExampleDescription
`=>`Next cycle`req=> ack`ack must be true on the *next* clock edge after req is true
`->`Implication`req-> ack`If req is true *now*, then ack must be true *now* (same cycle)
##1Delayreq ##1 ackack must be true exactly one cycle after req (not clock-aligned)

Concurrent assertions are written as: They are evaluated at the specified clock edge and do not consume synthesis resources when placed in the testbench.

Practice

  1. Open this chapter in RtlStudio.

Files appear in the Explore panel.

  1. Edit student/tb/tb.sv and complete the assert property(__TODO__) blank (DUT RTL stays synthesizable).
  2. Run Simulation and check the Log panel for INFO messages.
  3. (Optional) Open the Waveform tab to inspect signal timing aligned with INFO log checkpoints.

The TODO in student/tb/tb.sv requires the property clocking and implication, e.g. @(posedge clk) disable iff (!rst_n) req |=> ack. Use the |=> operator to express: *when req is high, ack must be high on the next clock cycle*.

Summary

Students practiced writing concurrent assertions in SystemVerilog to enforce temporal protocol requirements in testbenches. They placed the assert property in student/tb/tb.sv to verify that ack follows req on the next clock edge, confirming correct handshake timing. This approach keeps verification logic separate from synthesizable RTL, preserving design integrity and enabling precise, cycle-accurate checking during simulation.

Run it in the Verilog IDE

  1. Open the lesson in the IDE. The SystemVerilog for this topic is already in the editor.
  2. Lint with Slang before you simulate. It covers both Verilog and SystemVerilog in this IDE.
  3. Run Verilator and inspect the VCD. Interfaces, classes, and assertions count only if the simulator agrees.
  4. Run Yosys when the lesson is synthesizable RTL, and keep testbench-only constructs out of that module.

The lesson is done when the simulation matches Concurrent Assertions (SVA). Change the source, run the Verilog simulator again, and read the waveform without leaving the IDE. Simulation guide · Yosys guide.