module xor_test (A, B, C, D, S); input A; input B; input C; input D; output S; assign S = A^B^C^D; endmodule