verilator/test_regress/t/t_select_bad_range4.v

31 lines
607 B
Systemverilog
Raw Normal View History

2022-11-05 16:40:34 +01:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2022 Wilson Snyder
2022-11-05 16:40:34 +01:00
// SPDX-License-Identifier: CC0-1.0
2026-03-10 02:38:29 +01:00
module t ( /*AUTOARG*/
// Inputs
clk,
unk,
nonconst,
mi
);
input clk;
input unk;
input nonconst;
2022-11-05 16:40:34 +01:00
2026-03-10 02:38:29 +01:00
input [45:40] mi;
reg [3:0] sel2;
reg [1<<29 : 0] hugerange;
2022-11-05 16:40:34 +01:00
2026-03-10 02:38:29 +01:00
always @(posedge clk) begin
sel2 = mi[44+:-1];
sel2 = mi[44+:1<<29];
sel2 = mi[44+:nonconst];
sel2 = mi[nonconst];
sel2 = mi[nonconst : nonconst];
sel2 = mi[1<<29 : 0];
end
2022-11-05 16:40:34 +01:00
endmodule