mirror of
https://github.com/verilator/verilator.git
synced 2025-02-08 14:41:48 +00:00
24 lines
521 B
Systemverilog
24 lines
521 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
|
||
|
|
||
|
module t (/*AUTOARG*/);
|
||
|
initial begin
|
||
|
bit q1[$] = {1'b1};
|
||
|
bit q2[$];
|
||
|
bit [1:0] d1[] = {2'b10};
|
||
|
bit [1:0] d2[];
|
||
|
q2 = {q1};
|
||
|
if (q2[0] != 1) $stop;
|
||
|
|
||
|
d2 = {2'b11};
|
||
|
if (d2[0] != 2'b11) $stop;
|
||
|
|
||
|
$write("*-* All Finished *-*\n");
|
||
|
$finish;
|
||
|
end
|
||
|
|
||
|
endmodule
|