aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40/tests/test_arith.v
blob: 77f79b973d75d96f55fb67cfe102ba4dc9b515db (plain)
1
2
3
module test(input [4:0] a, b, c, output [4:0] y);
	assign y = ((a+b) ^ (a-c)) - ((a*b) + (a*c) - (b*c));
endmodule
span class="n">b + c*d + e*f; endmodule module test2(a, b, c, d, e, f, y); input [19:0] a, b, c; input [15:0] d, e, f; output [41:0] y; assign y = a*b + (c*d + e*f); endmodule