yosys/techlibs/ice40/tests/test_arith.v

4 lines
115 B
Verilog

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