SystemVerilog

Learn SystemVerilog

Move from Verilog syntax to reusable classes, constraints, interfaces, assertions, and verification-oriented code.

What you will learn

Study each lesson by reading the concept, running the example, changing one detail, and checking the resulting behavior. These skills form the language foundation for UVM.

Start with the learning path

SystemVerilog adds the data types, object-oriented programming, constrained randomization, interfaces, assertions, and coverage features used by modern verification environments.

Lesson 8 of 8: Assertions and Self-Checking

Check important protocol properties automatically during simulation.

property stable_while_waiting;
  @(posedge clk) disable iff (!reset_n)
    valid && !ready |=> $stable(data);
endproperty

assert property (stable_while_waiting)
  else $error("Data changed while waiting");

What to notice

  • The property samples signals at each rising clock edge.
  • disable iff prevents checks during reset.
  • The implication requires data to remain stable while a transfer is stalled.
Practice: Write an assertion that requires ready to be low during reset.

Verification habits to build

SkillHabitWhy it matters in UVM
ClassesKeep data and behavior togetherCreates reusable sequence items and configuration objects
ConstraintsGenerate legal, meaningful valuesExplores scenarios without producing invalid noise
InterfacesBundle signals and directionsGives drivers and monitors a stable DUT boundary
AssertionsState timing rules preciselyCatches protocol violations near their cause
CoverageMeasure planned behaviorShows which verification scenarios still need stimulus