2024-08-26 18:18:52 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain
|
|
|
|
|
// SPDX-FileCopyrightText: 2024 Antmicro
|
2024-08-26 18:18:52 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
class cls;
|
2026-03-08 23:26:40 +01:00
|
|
|
task t;
|
|
|
|
|
t;
|
|
|
|
|
endtask
|
|
|
|
|
task pre_randomize;
|
|
|
|
|
t;
|
|
|
|
|
endtask
|
2024-08-26 18:18:52 +02:00
|
|
|
endclass
|
|
|
|
|
module t;
|
2026-03-08 23:26:40 +01:00
|
|
|
cls obj;
|
|
|
|
|
task static t;
|
|
|
|
|
int _ = obj.randomize() with {1 == 1;};
|
|
|
|
|
endtask
|
2024-08-26 18:18:52 +02:00
|
|
|
endmodule
|