2 module opt_expr_or_test(input [3:0] i, input [7:0] j, output [8:0] o);
12 equiv_opt -assert opt_expr -fine
15 select -assert-count 1 t:$or r:A_WIDTH=4 r:B_WIDTH=4 r:Y_WIDTH=4 %i %i %i
18 read_verilog -sv <<EOT
19 module opt_expr_add_test(input [3:0] i, input [7:0] j, output [8:0] o);
29 equiv_opt -assert opt_expr -fine
32 select -assert-count 1 t:$add r:A_WIDTH=9 r:B_WIDTH=8 r:Y_WIDTH=9 %i %i %i
35 read_verilog -sv <<EOT
36 module opt_expr_xor_test(input [3:0] i, input [7:0] j, output [8:0] o);
46 equiv_opt -assert opt_expr -fine
49 select -assert-count 1 t:$xor r:A_WIDTH=4 r:B_WIDTH=4 r:Y_WIDTH=4 %i %i %i
52 read_verilog -sv <<EOT
53 module opt_expr_sub_test(input [3:0] i, input [7:0] j, output [8:0] o);
63 equiv_opt -assert opt_expr -fine
66 select -assert-count 1 t:$sub r:A_WIDTH=9 r:B_WIDTH=8 r:Y_WIDTH=9 %i %i %i
69 read_verilog -sv <<EOT
70 module opt_expr_and_test(input [3:0] i, input [7:0] j, output [8:0] o);
71 wire[8:0] a = 8'b11111111;
80 equiv_opt -assert opt_expr -fine
83 select -assert-count 1 t:$and r:A_WIDTH=4 r:B_WIDTH=4 r:Y_WIDTH=4 %i %i %i