/    /  Digital Logic-Parity Generator 

Parity Generator 

A parity generator is a combinational circuit that accepts n-1 bits of data and generates additional bits. The additional bit of data is known as the parity bit. 

There are two kinds of parity generators: Even parity generators and Odd parity generators.

 

Even Parity Generator

To understand even parity generator, let us take an example:

Let us assume a 3-bit message that needs to be transmitted using an even parity bit.  

The truth table will be as follows:

3-bit messageEven parity generator
ABCY
0000
0011
0101
0110
1001
1010
1100
1111

 

The logical expression will be:

 

Odd Parity Generator

The truth table for an odd parity generator will be as follows:

3-bit messageOdd parity generator
ABCY
0001
0010
0100
0111
1000
1011
1101
1110

Logical expression:

P = A ⊕ (B ⊕ C) 

 

Reference

Parity Generator