mirror of
https://github.com/verilator/verilator.git
synced 2025-01-21 05:44:03 +00:00
54c4351c39
Fixes #3716
23 lines
446 B
Systemverilog
23 lines
446 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
// any use, without warranty, 2022 by Geza Lore.
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
module t(
|
|
output wire res
|
|
);
|
|
|
|
function automatic logic foo(logic bar);
|
|
foo = '0;
|
|
endfunction
|
|
|
|
logic a, b;
|
|
logic [0:0][1:0] array;
|
|
|
|
assign b = 0;
|
|
assign a = foo(b);
|
|
assign res = array[a][a];
|
|
|
|
endmodule
|