verilator/test_regress/t/t_covergroup_with_sample_ze...

16 lines
378 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2025 Antmicro
// SPDX-License-Identifier: CC0-1.0
/* verilator lint_off COVERIGN */
module t;
covergroup cg0 with function sample ();
endgroup
cg0 cov = new();
function void run();
cov.sample();
endfunction
endmodule