Design a circuit that calculates the parity of an 8-bit input vector. The output of the circuit must be 0 if the input vector has an even number of zeros, otherwise the output must be 1.
module parity8(v, parity);
input [7:0] v;
output parity;v is the 8-bit input vector.
parity indicates the parity of the input
vector.