All courses

SystemVerilog · Lesson 12 of 89

Tools, time units, and reproducible runs

SystemVerilog Fundamentals

Choose an entry point and check tool capabilities

The first two chapters are a digital-logic and Verilog refresher. If you can already write a module, distinguish combinational and sequential logic, and explain blocking versus nonblocking assignments, begin with SystemVerilog Fundamentals. Otherwise complete the refresher or the separate Verilog course first.

This course covers two tracks: synthesizable design and simulation-based verification. Dynamic arrays, class objects, constrained randomization, covergroups, and UVM testbench components are not general synthesizable hardware. The advanced protocols and physical-design lessons are introductions, not a replacement for their specifications or a complete implementation project.

Use .sv files and select SystemVerilog mode. Record the simulator version and compile/run flags. Check support separately for timing controls, classes, constraints, SVA, covergroups, and UVM. Open-source simulator coverage differs by version; a feature rejected by one tool may be valid language syntax.

Make time and compilation dependencies explicit

SystemVerilog
module time_demo;
  timeunit 1ns;
  timeprecision 1ps;
  initial begin
    $timeformat(-9, 3, " ns", 12);
    #2.5;
    $display("elapsed=%0t", $realtime);
    $finish;
  end
endmodule

Expect elapsed time equivalent to 2.500 ns. timeunit states the unit of a bare delay; timeprecision states its rounding resolution. Use explicit time declarations in each relevant scope so compilation order does not silently change inherited timescale behavior. Delay statements here are testbench behavior.

Compile packages before files that import them. Compile an interface before modules or classes that reference its type. Specify the actual simulation top, not a DUT with no stimulus. UVM also needs a compatible UVM library/package and the tool's supported configuration; adding import uvm_pkg::* alone does not install UVM.

Further study: Verilator language support, Icarus compiler flags, and Accellera UVM resources.

Further study and tool references

Check the language mode and supported features for your installed simulator.

Verilator language supportIcarus compiler flagsAccellera UVM resources