1
0
mirror of synced 2026-01-25 20:06:27 +00:00
Files
YosysHQ.yosys/tests/techmap/bug2332.ys
Marcelina Kościelnicka c1ed1c28be peeopt.shiftmul: Add a signedness check.
Fixes #2332.
2020-08-05 21:01:20 +02:00

12 lines
177 B
Plaintext

read_verilog <<EOT
module top(input [31:0] a, input signed [2:0] x, output [2:0] o);
wire [5:0] t = x * 3;
assign o = a >> t;
endmodule
EOT
wreduce
equiv_opt -assert peepopt