yosys/tests/opt/bug4413.ys

16 lines
203 B
Plaintext
Raw Normal View History

2024-06-13 15:40:12 -05:00
read_verilog <<EOT
module top(
input wire shift,
input wire [4:0] data,
output wire out
);
wire [1:0] shift2 = shift - 1'b1;
assign out = data >> shift2;
endmodule
EOT
equiv_opt -assert peepopt