Ready-to-run snippets

Code Examples

Ready-to-run Verilog, SystemVerilog, and UVM examples. Click any to open it live in the IDE.

← All examples

Timescale Scope: Default timescale

Verilog Examples

Runnable example from the Verilog Timescale Scope tutorial (Default timescale)

Open in IDE
testbench.v
module tb;
  initial begin
    // Print timescale of this module
    $printtimescale(tb);
    // $printtimescale($root);
  end
endmodule
Admin mode — edit and delete controls are visible on each row. Use the IDE to add new snippets via File → Save as Snippet.