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

TestBench: What Are Abstraction Levels?

SystemVerilog Introduction & Basics

Runnable example from the SystemVerilog TestBench tutorial (What Are Abstraction Levels?)

Open in IDE
testbench.sv
module tb_top;

	bit resetn;

	task apply_reset ();
		#5  resetn <= 0;
		#20 resetn <= 1;
	endtask

	initial begin
		apply_reset();
	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.