module parity(a,p); input [31:0] a; output p; assign p = ^a; endmodule