verilator/test_regress/t/t_const_sel_sel_extend.v
2022-10-28 14:54:00 +01:00

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