1 2 3 4 5 6 7 8 9 10 11 12 13
module top ( input [3:0] x, input [3:0] y, output [3:0] A, output [3:0] B ); assign A = x + y; assign B = x - y; endmodule