1
0
mirror of synced 2026-01-18 17:27:06 +00:00
YosysHQ.yosys/tests/opt/bug2318.ys
2020-08-04 16:30:24 +02:00

13 lines
219 B
Plaintext

read_verilog <<EOT
module t(input [3:0] A, input [3:0] B, output signed [3:0] Y);
wire [7:0] P = A * B;
wire signed [7:0] SP = P;
wire signed [3:0] SB = B;
assign Y = SP / SB;
endmodule
EOT
equiv_opt -assert peepopt