SlideShare a Scribd company logo
1 of 21
Moore and Mealy
Machines
Present By:
Munib Habib
Roll No: 6233
What is (Finite State Machine)FSM?
A finite state machine is a machine that has many states and has a logical way
of changing from one state to the other under guiding rules.
Types of FSM
Without output (answer true or false)
1. Finite State Automata
- With output
2. Mealy machine
- output on transition
3. Moore machine
- output on state
Mealy Machine
A Mealy Machine is an FSM whose output depends on the present state as well
as the present input. In Mealy machine every transition for a particular input
symbol has a fixed output.
Mealy Machine(Cont.)
• It can be described by a 6 tuple (Q, ∑, O, δ, X, q0) where −
1. Q is a finite set of states.
2. ∑ is a finite set of symbols called the input alphabet.
3. O is a finite set of symbols called the output alphabet.
4. δ is the input transition function where δ: Q × ∑ → Q
5. X is the output transition function where X: Q → O
6. q0 is the initial state from where any input is processed (q0 ∈ Q).
State Diagram of Mealy Machine:
Mealy Transition Table
Moore Machine:
• In Moore machine. the value of output function is depend on the present
state only. Moore machine is described by 6-tuples - (Q, Σ, Δ, δ, λ, q0)
where
1. Q = Finite non-empty set of states;
2. Σ = Set of input alphabets.
3. Δ = Set of output alphabets.
4. δ = Transition function mapping Q X Σ → Q
5. λ = Output function mapping Q → Δ
6. q0 = Initial state..
Moore Transition Table:
• There is no concept of final state in Moore machines we consider output
for each state.
Moore Machine to Mealy Machine
1. Input: Moore Machine
2. Output: Mealy Machine
3. Step 1: Take a blank Mealy Machine transition table format.
4. Step 2: Copy all the Moore Machine transition states into this table format..
5. Step 3: Check the present states and their corresponding outputs in the Moore
Machine state table; if for a state Qi output is m, copy it into the output columns
of the Mealy Machine state table wherever Qi appears in the next state..
Example:
• Let us consider Moore Table
Present State Next State
a=0 a=1
Output
a d b 1
b a d 0
c c c 0
d b a 1
Step 1 & 2
Step 3
Mealy Machine To Moore Machine
1. Input: Mealy Machine
2. Output: Moore Machine
3. Step 1: Calculate the number of different outputs for each state (Qi) that are
available in the state table of the Mealy machine.
4. Step 2: If all the outputs of Qi are same, copy state Qi. If it has n distinct
outputs, break Qi into n states as Qin where n = 0, 1, 2.......
5. Step 3: If the output of the initial state is 1, insert a new initial state at the
beginning which gives 0 output.
Example:
• Let us consider the following Mealy Machine.
Here, states ‘a’ and ‘d’ give only 1 and 0 outputs respectively, so we retain states ‘a’ and ‘d’. But
states ‘b’ and ‘c’ produce different outputs 1and0. So, we divide b into b0, b1 and c into c0, c1.
Conversion Cont.…
Differences between Mealy and Moore state
Machines
Advantages of Mealy and Moore state
Machines
• Moore machines are cheap
• They are easy to use
• Moore state machines are very fast
• Mealy machines are reactive i.e. they have a low response time (they are fast)
Disadvantages of Mealy and Moore state
Machines
• Mealy state machines are expensive to produce
• Number of states can become unmanageable (they become too many)
Uses of Mealy and Moore state Machines
• Mealy state machines are used in processors due to their property of having
many states
• Mealy state machines are also used to provide a rudimentary mathematical
model for cipher machines
• A Moore state machine is used as a right enable in SRAM because of its
speed.
• It is used in SRAM because SRAM needs a level-sensitive control (signal has
to be asserted for an amount of time)
Conclusion
• In conclusion, Mealy and Moore state machines are very important concepts
in digital design
• These state machine can be used in the design of mathematical algorithms
• Mealy and Moore state machines can come in both simple (having one input
and output) to complex (having many inputs and outputs) types

More Related Content

What's hot

Finite state machines
Finite state machinesFinite state machines
Finite state machinesdennis gookyi
 
Finite State Machine.ppt.pptx
Finite State Machine.ppt.pptxFinite State Machine.ppt.pptx
Finite State Machine.ppt.pptxSKUP1
 
Synchronous state machines. Moore and Mealy state machines (FSM)
Synchronous state machines.  Moore and Mealy state machines (FSM)Synchronous state machines.  Moore and Mealy state machines (FSM)
Synchronous state machines. Moore and Mealy state machines (FSM)Mumbi Chishimba
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languagesSOMNATHMORE2
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Clocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and designClocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and designDr Naim R Kidwai
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back trackingTech_MX
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingVimal Dewangan
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adderASHISH MANI
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}FellowBuddy.com
 
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and boundAbhishek Singh
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 

What's hot (20)

Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
Finite State Machine.ppt.pptx
Finite State Machine.ppt.pptxFinite State Machine.ppt.pptx
Finite State Machine.ppt.pptx
 
Synchronous state machines. Moore and Mealy state machines (FSM)
Synchronous state machines.  Moore and Mealy state machines (FSM)Synchronous state machines.  Moore and Mealy state machines (FSM)
Synchronous state machines. Moore and Mealy state machines (FSM)
 
Decision properties of reular languages
Decision properties of reular languagesDecision properties of reular languages
Decision properties of reular languages
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Turing machine
Turing machineTuring machine
Turing machine
 
Ontology engineering
Ontology engineering Ontology engineering
Ontology engineering
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Turing machine
Turing machineTuring machine
Turing machine
 
Clocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and designClocked Sequential circuit analysis and design
Clocked Sequential circuit analysis and design
 
8 queens problem using back tracking
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
 
Leaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shapingLeaky Bucket & Tocken Bucket - Traffic shaping
Leaky Bucket & Tocken Bucket - Traffic shaping
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Arm instruction set
Arm instruction setArm instruction set
Arm instruction set
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and bound
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 

Viewers also liked

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machineslavishka_anuj
 
Mealy and moore machines
Mealy and moore machinesMealy and moore machines
Mealy and moore machinesgrahamwell
 
Mealy state machine
Mealy state machineMealy state machine
Mealy state machineArif Siyal
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machineShreyans Pathak
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine designAdarsh Patel
 
Finite state machines
Finite state machinesFinite state machines
Finite state machinesgrahamwell
 
What Is Php
What Is PhpWhat Is Php
What Is PhpAVC
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp scienceRaghu nath
 
Sayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCASayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCAFeza BUZLUCA
 
Finite automata
Finite automataFinite automata
Finite automataPusp Sunar
 
Introduction to State Machines
Introduction to State MachinesIntroduction to State Machines
Introduction to State Machinescodeofficer
 
Affirmative Action Presentation
Affirmative Action PresentationAffirmative Action Presentation
Affirmative Action Presentationtimothy_m
 
Affirmative Action Info
Affirmative Action InfoAffirmative Action Info
Affirmative Action InfoMr Ross Miller
 
Affirmative Action Planning 101 for Employers
Affirmative Action Planning 101 for EmployersAffirmative Action Planning 101 for Employers
Affirmative Action Planning 101 for EmployersCAI
 

Viewers also liked (20)

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Mealy and moore machines
Mealy and moore machinesMealy and moore machines
Mealy and moore machines
 
Meley & moore
Meley & mooreMeley & moore
Meley & moore
 
Mealy state machine
Mealy state machineMealy state machine
Mealy state machine
 
Cldch8
Cldch8Cldch8
Cldch8
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
synchronous state machine design
synchronous state machine designsynchronous state machine design
synchronous state machine design
 
Mealy machine
Mealy machineMealy machine
Mealy machine
 
Mgd finite statemachine
Mgd finite statemachineMgd finite statemachine
Mgd finite statemachine
 
Finite state machines
Finite state machinesFinite state machines
Finite state machines
 
What Is Php
What Is PhpWhat Is Php
What Is Php
 
Affirmative Action
Affirmative ActionAffirmative Action
Affirmative Action
 
Theoryofcomp science
Theoryofcomp scienceTheoryofcomp science
Theoryofcomp science
 
Sayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCASayısal Devreler 07, Feza BUZLUCA
Sayısal Devreler 07, Feza BUZLUCA
 
Finite automata
Finite automataFinite automata
Finite automata
 
Introduction to State Machines
Introduction to State MachinesIntroduction to State Machines
Introduction to State Machines
 
Affirmative Action
Affirmative ActionAffirmative Action
Affirmative Action
 
Affirmative Action Presentation
Affirmative Action PresentationAffirmative Action Presentation
Affirmative Action Presentation
 
Affirmative Action Info
Affirmative Action InfoAffirmative Action Info
Affirmative Action Info
 
Affirmative Action Planning 101 for Employers
Affirmative Action Planning 101 for EmployersAffirmative Action Planning 101 for Employers
Affirmative Action Planning 101 for Employers
 

Similar to Moore and mealy machine

state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdfrdjo
 
Finite state automaton
Finite state automatonFinite state automaton
Finite state automatonAmmAr mobark
 
mealy moore machine conversion
mealy moore machine conversion mealy moore machine conversion
mealy moore machine conversion Chandnigupta80
 
melay and moore machine.pptx
melay and moore machine.pptxmelay and moore machine.pptx
melay and moore machine.pptxssuser1b2fab
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .pptGeekyHassan
 
20. Saima Ansari-mealy-moore-machine.pptx
20. Saima Ansari-mealy-moore-machine.pptx20. Saima Ansari-mealy-moore-machine.pptx
20. Saima Ansari-mealy-moore-machine.pptxRidyaGupta1
 
Logic and computer design.ppt
Logic and computer design.pptLogic and computer design.ppt
Logic and computer design.ppteissaalesayi1
 
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfPreparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfrdjo
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programmingVisnuDharsini
 
Mealy Machine by Daniyal Khan
Mealy Machine by Daniyal KhanMealy Machine by Daniyal Khan
Mealy Machine by Daniyal KhanDaniyal Khan
 
Formalization Machines and Sastes
Formalization Machines and SastesFormalization Machines and Sastes
Formalization Machines and SastesLahiru Danushka
 

Similar to Moore and mealy machine (20)

state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
 
Finite state automaton
Finite state automatonFinite state automaton
Finite state automaton
 
Moorey to mealy conversion
Moorey to mealy conversionMoorey to mealy conversion
Moorey to mealy conversion
 
19-MooreMealy.ppt
19-MooreMealy.ppt19-MooreMealy.ppt
19-MooreMealy.ppt
 
mealy moore machine conversion
mealy moore machine conversion mealy moore machine conversion
mealy moore machine conversion
 
Automata
AutomataAutomata
Automata
 
melay and moore machine.pptx
melay and moore machine.pptxmelay and moore machine.pptx
melay and moore machine.pptx
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .ppt
 
20. Saima Ansari-mealy-moore-machine.pptx
20. Saima Ansari-mealy-moore-machine.pptx20. Saima Ansari-mealy-moore-machine.pptx
20. Saima Ansari-mealy-moore-machine.pptx
 
Logic and computer design.ppt
Logic and computer design.pptLogic and computer design.ppt
Logic and computer design.ppt
 
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfPreparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
 
Lesson 19.ppt
Lesson 19.pptLesson 19.ppt
Lesson 19.ppt
 
Automata based programming
Automata based programmingAutomata based programming
Automata based programming
 
19-MooreMealy.ppt
19-MooreMealy.ppt19-MooreMealy.ppt
19-MooreMealy.ppt
 
Mealy Machine by Daniyal Khan
Mealy Machine by Daniyal KhanMealy Machine by Daniyal Khan
Mealy Machine by Daniyal Khan
 
Formalization Machines and Sastes
Formalization Machines and SastesFormalization Machines and Sastes
Formalization Machines and Sastes
 
Autoata.pptx
Autoata.pptxAutoata.pptx
Autoata.pptx
 
Plc Robotics
Plc RoboticsPlc Robotics
Plc Robotics
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 

Recently uploaded

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

Moore and mealy machine

  • 1. Moore and Mealy Machines Present By: Munib Habib Roll No: 6233
  • 2. What is (Finite State Machine)FSM? A finite state machine is a machine that has many states and has a logical way of changing from one state to the other under guiding rules.
  • 3. Types of FSM Without output (answer true or false) 1. Finite State Automata - With output 2. Mealy machine - output on transition 3. Moore machine - output on state
  • 4. Mealy Machine A Mealy Machine is an FSM whose output depends on the present state as well as the present input. In Mealy machine every transition for a particular input symbol has a fixed output.
  • 5. Mealy Machine(Cont.) • It can be described by a 6 tuple (Q, ∑, O, δ, X, q0) where − 1. Q is a finite set of states. 2. ∑ is a finite set of symbols called the input alphabet. 3. O is a finite set of symbols called the output alphabet. 4. δ is the input transition function where δ: Q × ∑ → Q 5. X is the output transition function where X: Q → O 6. q0 is the initial state from where any input is processed (q0 ∈ Q).
  • 6. State Diagram of Mealy Machine:
  • 8. Moore Machine: • In Moore machine. the value of output function is depend on the present state only. Moore machine is described by 6-tuples - (Q, Σ, Δ, δ, λ, q0) where 1. Q = Finite non-empty set of states; 2. Σ = Set of input alphabets. 3. Δ = Set of output alphabets. 4. δ = Transition function mapping Q X Σ → Q 5. λ = Output function mapping Q → Δ 6. q0 = Initial state..
  • 9. Moore Transition Table: • There is no concept of final state in Moore machines we consider output for each state.
  • 10. Moore Machine to Mealy Machine 1. Input: Moore Machine 2. Output: Mealy Machine 3. Step 1: Take a blank Mealy Machine transition table format. 4. Step 2: Copy all the Moore Machine transition states into this table format.. 5. Step 3: Check the present states and their corresponding outputs in the Moore Machine state table; if for a state Qi output is m, copy it into the output columns of the Mealy Machine state table wherever Qi appears in the next state..
  • 11. Example: • Let us consider Moore Table Present State Next State a=0 a=1 Output a d b 1 b a d 0 c c c 0 d b a 1
  • 12. Step 1 & 2
  • 14. Mealy Machine To Moore Machine 1. Input: Mealy Machine 2. Output: Moore Machine 3. Step 1: Calculate the number of different outputs for each state (Qi) that are available in the state table of the Mealy machine. 4. Step 2: If all the outputs of Qi are same, copy state Qi. If it has n distinct outputs, break Qi into n states as Qin where n = 0, 1, 2....... 5. Step 3: If the output of the initial state is 1, insert a new initial state at the beginning which gives 0 output.
  • 15. Example: • Let us consider the following Mealy Machine. Here, states ‘a’ and ‘d’ give only 1 and 0 outputs respectively, so we retain states ‘a’ and ‘d’. But states ‘b’ and ‘c’ produce different outputs 1and0. So, we divide b into b0, b1 and c into c0, c1.
  • 17. Differences between Mealy and Moore state Machines
  • 18. Advantages of Mealy and Moore state Machines • Moore machines are cheap • They are easy to use • Moore state machines are very fast • Mealy machines are reactive i.e. they have a low response time (they are fast)
  • 19. Disadvantages of Mealy and Moore state Machines • Mealy state machines are expensive to produce • Number of states can become unmanageable (they become too many)
  • 20. Uses of Mealy and Moore state Machines • Mealy state machines are used in processors due to their property of having many states • Mealy state machines are also used to provide a rudimentary mathematical model for cipher machines • A Moore state machine is used as a right enable in SRAM because of its speed. • It is used in SRAM because SRAM needs a level-sensitive control (signal has to be asserted for an amount of time)
  • 21. Conclusion • In conclusion, Mealy and Moore state machines are very important concepts in digital design • These state machine can be used in the design of mathematical algorithms • Mealy and Moore state machines can come in both simple (having one input and output) to complex (having many inputs and outputs) types