sv2v/test/basic/duplicate_cast.v

12 lines
226 B
Verilog
Raw Normal View History

2020-07-20 03:09:57 +02:00
module top;
wire b;
wire [1:0] a;
function automatic val;
input inp;
val = inp;
endfunction
assign b = val(1);
assign a = {2 {val(1)}};
initial #1 $display("%b %b", a, b);
endmodule