verilator/test_regress/t/t_func_bad_width.v

24 lines
448 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2003 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
module t;
2026-03-08 23:26:40 +01:00
reg [3:0] out;
reg [38:0] in;
initial begin
in = 39'h0;
out = MUX(in);
$write("bad widths %x", out);
end
2026-03-08 23:26:40 +01:00
function [31:0] MUX;
input [39:0] XX;
begin
MUX = XX[39:8];
end
endfunction
endmodule