Skip to content

VLSIFacts

Let's Program the Transistors

  • Home
  • DHD
    • Digital Electronics
    • Fault Tolerant System Design
    • TLM
    • Verification
    • Verilog
    • VHDL
    • Xilinx
  • Embedded System
    • 8085 uP
    • 8086 uP
    • 8051 uC
  • VLSI Technology
    • Analog Electronics
    • Memory Devices
    • VLSI Circuits
  • Interview
    • Interview Experience
    • Training Experience
    • Question Bank
  • Notifications
  • QUIZ
  • Community
  • Job Board
  • Contact Us
  • Toggle search form

State Machine Diagram for Parity Generator

Posted on February 5, 2016June 17, 2025 By vlsifacts No Comments on State Machine Diagram for Parity Generator

Parity generator can be of two types:

(i) Even Parity Generator

(ii) Odd Parity Generator

In this post we will derive the state machine for an even parity generator.

Even Parity Generator Conceptual Diagram
Even Parity Generator Conceptual Diagram

Consider input “I” is a stream of binary bits. When an input comes, the even parity generator checks whether the total number of 1’s received till then are even or odd. If even then the output becomes “0” [O = 0], otherwise output would be “1” [O = 1].

Let’s design the Mealy state machine for the Even Parity Generator.

Define 2 states

  • S0: Number of 1’s received till now is even
  • S1: Number of 1’s received till now is odd

The state machine diagram would be as follows:

Mealy Machine for Even Parity Generator
Mealy Machine for Even Parity Generator

Now let’s understand how we get the transitions and corresponding outputs:

Let’s say we are at the state S0: Even number of 1’s received yet

for input “0”: Since the present state represents that till now even number of 1’s are received, an input “0” will keep the number of 1’s received as even. So, the next state would be S0 and the output (parity bit generated) would be “0”.

for input “1”: An input “1” will make the number of 1’s received as odd. So, the next state would be S1 and the output (parity bit generated) would be “1”.

Let’s say we are at the state S1: Odd number of 1’s received yet

for input “0”: Since the present state represents that till now odd number of 1’s are received, an input “0” will keep the number of 1’s received as odd. So, the next state would be S1 and the output (parity bit generated) would be “1”.

for input “1”: An input “1” will make the number of 1’s received as even. So, the next state would be S0 and the output (parity bit generated) would be “0”.

Spread the Word

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Related posts:

  1. Circuit Design of Parity Generator
  2. State Machine Diagram for Pattern Recognition / Sequence Detector
  3. Mealy Vs. Moore Machine
  4. Step by Step Method to Design a Combinational Circuit
DHD, Digital Electronics Tags:Even Parity Generator, Mealy Machine, Parity, State Machine Diagram

Post navigation

Previous Post: Circuit Design of a Sequence Detector
Next Post: Circuit Design of Parity Generator

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top Posts & Pages

  • ASCII Code
  • NAND and NOR gate using CMOS Technology
  • Circuit Design of a 4-bit Binary Counter Using D Flip-flops
  • Truth Tables, Characteristic Equations and Excitation Tables of Different Flipflops
  • Difference between $display, $monitor, $write and $strobe in Verilog


 

Copyright © 2025 VLSIFacts.

Powered by PressBook WordPress theme

%d