Related Concepts: 01 BCD & Weighted Digital Codes | 02 Excess-3 Code & Self-Complementing Logic | 03 Gray Code & Code Conversions

2.04 Error Control, Parity Generators & Checkers

Error Control Concepts

During serial data transmission over noisy communication channels, electromagnetic interference can cause bit inversion errors { or }.

To safeguard data integrity, systems employ Error Control Codes by appending redundant check bits to transmitted data packets.


1. Error Detecting vs. Error Correcting Codes

Major Exam Theory Question (2017, 2018 - 4 Marks)

Question: Explain the fundamental differences between Error Detecting codes and Error Correcting codes.

ParameterError Detecting CodesError Correcting Codes
Primary FunctionDetects the presence of errors during transmission.Detects the error AND automatically determines its bit location to correct it.
Action on ErrorFlags error to receiver; requires retransmission.Automatically corrects error without requesting retransmission.
Redundancy OverheadLow overhead; requires few redundant bits {e.g., 1 parity bit}.High overhead; requires multiple redundant check bits {e.g., Hamming distance}.
Implementation ComplexitySimple hardware {cascaded XOR gates}.Complex logic {syndrome decoders & bit-flipping networks}.
Standard ExamplesParity bits, Checksums, CRC.Hamming Code, Reed-Solomon Code, BCH Code.

2. Parity Architecture & Operation

graph LR
    subgraph Transmitter End
        DataTx[Data Bits: x y z] --> GenXOR[Parity Generator Logic]
        GenXOR --> Packet[Transmitted Packet: x y z P]
    end
    
    Packet -->|Serial Channel| RxPacket[Received Packet: x' y' z' P']
    
    subgraph Receiver End
        RxPacket --> CheckXOR[Parity Checker Logic]
        CheckXOR -->|C = 0| NoError[No Error Detected]
        CheckXOR -->|C = 1| ErrorDet[Bit Error Flagged!]
    end

3. Even Parity Generator & Checker

  • Even Parity Rule: The parity bit is generated so that the total count of 1s in is always EVEN.
  • 3-Bit Generator (Transmitter):
  • 4-Bit Checker (Receiver):

4. Design: 3-Bit Odd Parity Generator & 4-Bit Checker

Major Exam Design Problem (2022 - 8 Marks, 2025 - 10 Marks)

Question: Design a 3-bit parity generator and 4-bit parity checker circuit using an odd parity bit.

Part A: 3-Bit Odd Parity Generator (Transmitter)

  • Logic Rule: Generates such that total 1s in is ODD. If has an even number of 1s, must be 1.

Truth Table:

Input Message ()Generated Odd Parity Bit ()
0 0 01
0 0 10
0 1 00
0 1 11
1 0 00
1 0 11
1 1 01
1 1 10

Boolean Function:

The minterms for are , which is the exact inverse of a 3-input XOR function {an XNOR function}:


Part B: 4-Bit Odd Parity Checker (Receiver)

  • Logic Rule: Evaluates received bits . If total 1s is EVEN, an error has occurred Error output .

Boolean Function:

Implemented by cascading three 2-input XNOR gates.


5. Critical Limitations of Parity Error Checking

Limitations of Simple Parity

  1. Odd-Bit Error Detection Only: Parity can ONLY detect an odd number of bit errors {1, 3, 5 flipped bits}.
  2. Fails on Even-Bit Errors: If an even number of bits flip {e.g., 2 bits change state}, total parity remains unchanged, and remains {error undetected}.
  3. No Correction Capability: Parity indicates that an error occurred, but cannot identify which bit flipped.

Past Year Questions (PYQs)

  • [PYQ 2017]: Define Error Detection Code. (04 Marks)
  • [PYQ 2018]: Differences between Error Detecting and Error Correcting codes. (04 Marks)
  • [PYQ 2015, 2020, 2023, 2024]: 4-bit even parity checker design. (08 Marks)
  • [PYQ 2022, 2025]: Design 3-bit generator & 4-bit checker using odd parity bit. (08 to 10 Marks)