verilator/test_regress/t/t_var_vec_sel.v
2013-01-09 19:00:12 -05:00

27 lines
632 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2012 by Wilson Snyder.
// bug601
module t (
input clk,
input [3:0] in3, // worky
input [0:0] in2 [3:0], // worky
input in1 [3:0], // no worky
input [1:0] sel,
output reg out1,
output reg out2,
output reg out3
);
always @(posedge clk) begin
out3 <= in3[sel] ? in3[sel] : out3;
out2 <= in2[sel] ? in2[sel] : out2;
out1 <= in1[sel] ? in1[sel] : out1; // breaks
$write("*-* All Finished *-*\n");
$finish;
end
endmodule