22 lines
445 B
Systemverilog
22 lines
445 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
|
|
|
|
class A;
|
|
rand logic [31:0] rdata;
|
|
endclass
|
|
|
|
module t;
|
|
A a;
|
|
A aa;
|
|
initial begin
|
|
a = new;
|
|
aa = new;
|
|
if (a.randomize() with {rdata == aa.randomize();} == 0) $stop;
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
endmodule
|