Design a logical parity checker circuit: The circuit receives 3-bit data input (a2, a1, a0)and produces 1-bit output "y" which represents the parity of the input data. The outputshould be equal to zero if the number of ones in the input data is even, and it should beequal to 1 otherwise.
For example,If (a2, a1, a0)=(1,0,1) then y=0If (a2, a1, a0)=(1,0,0) then y=1