2015-03-13 12:06:06 +01: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: 2015 Duraid Madina
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2015-03-13 12:06:06 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module t (
|
|
|
|
|
input clk
|
|
|
|
|
);
|
2015-03-13 12:06:06 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
parameter logic [1:0] t0[2][2] = '{'{2'd0, 2'd1}, '{2'd2, 2'd3}};
|
|
|
|
|
parameter logic [1:0] t1[0:1][0:1] = '{'{2'd0, 2'd1}, '{2'd2, 2'd3}};
|
|
|
|
|
parameter logic [1:0] t2[1:0][1:0] = '{'{2'd3, 2'd2}, '{2'd1, 2'd0}};
|
2015-03-13 12:06:06 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
if (t0[0][0] != t1[0][0]) $stop;
|
|
|
|
|
if (t0[0][1] != t1[0][1]) $stop;
|
|
|
|
|
if (t0[1][0] != t1[1][0]) $stop;
|
|
|
|
|
if (t0[1][1] != t1[1][1]) $stop;
|
|
|
|
|
if (t0[0][0] != t2[0][0]) $stop;
|
|
|
|
|
if (t0[0][1] != t2[0][1]) $stop;
|
|
|
|
|
if (t0[1][0] != t2[1][0]) $stop;
|
|
|
|
|
if (t0[1][1] != t2[1][1]) $stop;
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2015-03-13 12:06:06 +01:00
|
|
|
|
|
|
|
|
endmodule
|