verilator/test_regress/t/t_select_bad_width0.v
2024-04-30 18:38:37 -04:00

25 lines
517 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t(/*AUTOARG*/);
parameter int ZERO = 0;
initial begin
bit [31:0] val = '1;
int left = 4;
int part = val[left +: ZERO];
$display(part);
part = val[left -: ZERO];
$display(part);
$write("*-* All Finished *-*\n");
$finish;
end
endmodule