19 lines
421 B
Systemverilog
19 lines
421 B
Systemverilog
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
|
//
|
||
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||
|
|
// any use, without warranty, 2024 by Antmicro.
|
||
|
|
// SPDX-License-Identifier: CC0-1.0
|
||
|
|
|
||
|
|
class Packet;
|
||
|
|
rand int m_dyn_arr[];
|
||
|
|
rand int m_unp_arr[10];
|
||
|
|
endclass
|
||
|
|
|
||
|
|
module t;
|
||
|
|
initial begin
|
||
|
|
Packet p = new;
|
||
|
|
p.m_dyn_arr[0].rand_mode(0);
|
||
|
|
p.m_unp_arr[0].rand_mode(0);
|
||
|
|
end
|
||
|
|
endmodule
|