verilator/test_regress/t/t_queue_var_slice.v

24 lines
468 B
Systemverilog
Raw Normal View History

2023-07-03 19:55:24 +02:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2023 Antmicro Ltd
2023-07-03 19:55:24 +02:00
// SPDX-License-Identifier: CC0-1.0
2026-03-08 23:26:40 +01:00
module t (
input clk
);
2023-07-03 19:55:24 +02:00
2026-03-08 23:26:40 +01:00
integer i = 0;
integer q[$] = {0, 1};
2023-07-03 19:55:24 +02:00
2026-03-08 23:26:40 +01:00
always @(posedge clk) begin
$display("%p", q[i:i+1]);
q.push_back(i + 2);
i++;
if (i >= 3) begin
$write("*-* All Finished *-*\n");
$finish;
end
end
2023-07-03 19:55:24 +02:00
endmodule