Combinational Logic Design: Parity Checkers
1. What is a Parity Checker?
A parity checker is a digital circuit used to detect errors in binary data transmission or storage. It checks whether the number of 1s (or 0s) in a data word is even or odd. Parity checkers are commonly used in communication systems, memory systems, and error detection systems to ensure data integrity.
The main goal of a parity checker is to verify the correctness of the data by comparing the calculated parity bit with the transmitted or stored parity bit.
2. Basic Concept of Parity Check
For a given set of binary bits, a parity checker calculates the parity bit to ensure that the total number of 1s in the data word (including the parity bit) meets the required parity condition (either even or odd).
For example, if we have the data bits 101101:
0 to keep the parity even.1 to make the total count of 1s odd.3. Structure of a Parity Checker
A parity checker typically uses an XOR (exclusive OR) gate to perform the parity check. XOR gates have the following property:
1 if the number of 1s in the input is odd, and 0 if the number of 1s is even.Consider a 4-bit word 1011. To perform a parity check:
Even Parity Check: We count the 1s:
1 to indicate an error because the number of 1s is not even.Odd Parity Check: We count the 1s:
0 (no error) because the number of 1s is odd.Let’s consider a 4-bit input data word D = D3 D2 D1 D0:
D3 D2 D1 D0 and calculates the parity bit to verify if the total number of 1s is even.| D3 | D2 | D1 | D0 | Parity (Even) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 0 | 1 | 1 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |
4. Types of Parity Checkers
5. Applications of Parity Checkers
6. Conclusion
A parity checker is a simple yet effective combinational logic circuit used to verify the correctness of transmitted or stored data based on the number of 1s (parity). It relies on XOR gates to perform the check and determine whether the data word adheres to the desired parity condition (even or odd).
Open this section to load past papers