SlideShare a Scribd company logo
1 of 45
Moore, Mealy Machine
Conversions
&
Transducers as models
of sequential circuits
Presented By:
 Anum Ayub
 Sanobir Aslam
 Aiman Hafeez
 Tasbeeh Zahra
2
SALAM!
I am Anum Ayub
I am here to present Conversion of Mealy
machine to Moore Machine.
Roll No: 101611047
Conversion of
Moore machine
to
Mealy Machine
Presented By:
Anum Ayub
(RollNo: 47 )
1
Introduction of Moore Machine
and Mealy Machine
A Mealy Machine is an FSM (Finite State Machine) whose output
depends on the present state as well as the present input.
The value of the output function is a function of the transitions and
the changes, when the input logic on the present state is done.
While,
A Moore machine is also an FSM (Finite State Machine) whose
outputs depend on only the present state.
The value of the output function is a function of the current state and
the changes at the clock edges, whenever state changes occur.
4
Conversion of Moore machine
to Mealy Machine
Moore machine cannot directly convert to its
equivalent Mealy machine because the length of
the Moore machine is one longer than the Mealy
machine for the given input.
To convert Moore machine to Mealy machine, state
output symbols are distributed into input symbol
paths.
5
STEPS to Convert
Moore machine to Mealy machine:
○ Step 1:
Take a blank Mealy Machine transition table format.
○ Step 2:
Copy all the Moore Machine transition states into this table
format.
○ 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.
6
Example 1:
7
Transition table for above Moore machine is as follows:
Present
State
Next State
Output
State State
q0 q1 q0 0
q1 q1 q2 0
q2 q1 q0 1
8
Present
State
Next State
a b
State Output State Output
q0 q1 0 q0 0
q1 q1 0 q2 1
q2 q1 0 q0 0
Transition table for above Mealy machine is as follows:
9
Transition diagram for Mealy machine will be:
Example 2:
10
Transition table for above Moore machine is as follows:
Present State
Next State
a b
A B,0 A,0
B B,0 C,0
C B,0 D,1
D B,0 A,0
A B C D
b/0
a/0
a/0
a/0 a/0
b/0
b/0
b/1
Example 3:
11
Transition table for above Moore machine is as follows:
Present
State
Next State
Output
0 1
q0 q1 q2 1
q1 q3 q2 0
q2 q2 q1 1
q3 q0 Q3 1
1/1
0/1
q3
q0q1
q2
1/11/1 1/0
0/1
0/1
0/0
Present
State
0 1
q0 q1 , 0 q2 , 1
q1 q3 , 1 q2 , 1
q2 q2 , 0 q1 , 0
q3 q0 , 0 q3 , 1
Transition table for above Mealy machine is as
follows:
Conversion of
Mealy machine
to
Moore Machine
Presented By:
Sanobir Aslam
(RollNo: 79)
2
13
SALAM!
I am Sanobir Aslam
I am here to present Conversion of Moore
machine to Mealy Machine.
Roll No: 101611079
Conversion of Mealy machine
to Moore Machine
To convert Mealy machine to Moore machine, we
will create a separate state for every new output
symbol and according to incoming and outgoing
edges are distributed.
14
STEPS to Convert
Mealy machine to Moore machine:
○ Step 1:
For each state(Qi), calculate the number of different outputs
that are available in the transition table of the Mealy machine.
○ Step 2:
Copy state Qi, if all the outputs of Qi are the same. Break qi
into n states as Qin, if it has n distinct outputs where n = 0, 1, 2....
○ Step 3:
If the output of initial state is 0, insert a new initial state at
the starting which gives 1 output.
15
Example 1:
16
Transition table for above Mealy machine is
as follows:
Present
State
Next State
a b
State Output State Output
q1 q1 0 q2 0
q2 q2 1 q3 10
q3 q2 0 q3 1
17
The state q1 has only one output. The state q2 and q3 have both output 0 and 1. So we will
create two states for these states. For q2, two states will be q20(with output 0) and q21(with
output 1). Similarly, for q3 two states will be q30(with output 0) and q31(with output 1).
Transition table for Moore machine will be:
Present
State
Next State
Output
State Output
q1 q1 q2 0
q20 q21 q30 0
q21 q21 q30 1
q30 q20 q31 0
q31 q20 q31 1
18
Transition diagram for Moore machine will be:
Example 2:
19
Transition table for above Moory machine is as follows:
Present
State
Next State
a b
State Output State Output
q1 q1 1 q2 0
q2 q4 1 q4 1
q3 q2 1 q3 1
q4 q3 0 q1 1
20
• For state q1, there is only one incident edge with output 0. So, we
don't need to split this state in Moore machine.
• For state q2, there is 2 incident edge with output 0 and 1. So, we will
split this state into two states q20( state with output 0) and q21(with
output 1).
• For state q3, there is 2 incident edge with output 0 and 1. So, we will
split this state into two states q30( state with output 0) and q31(
state with output 1).
• For state q4, there is only one incident edge with output 0. So, we
don't need to split this state in Moore machine.
21
Transition table for Mealy machine will be:
Present
State
Next State
Output
State Output
q1 q1 q2 1
q20 q4 q4 0
q21 Ø Ø 1
q30 q21 q31 0
q31 q21 q31 1
q4 q3 q4 1
22
Transition diagram for Mealy machine will be:
Transducers as
models of
Sequential
Circuits
3
Presented By:
Tasbeeh Zahra
(RollNo: 55 )
(Mealy Machine)
24
SALAM!
I am Tasbeeh Zahra
I am here to present Transducers as models
of Sequential Circuits.
Roll No: 101611055
Transducers
Convert signal from one form to another
○ E . g microphone, speaker etc.
25
NAND DELAY OR
OR
input outputA B
Transducer circuit
Mealy Machine
26
Truth Tables
AND Gate
A B A.B
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate
A B A.B
0 0 0
0 1 1
1 0 1
1 1 1
NAND Gate
A B A.B
0 0 1
0 1 1
1 0 1
1 1 0
27
Transducer Circuit
NAND DELAY OR
OR
input outputA B
• Two Points A & B.
• Total No. OF points=2=
• No of states = 2^2 = 4 = q0 ,q1,q2,q3.
 Already available Points we say Old A & Old B.
 New Equation
• New A = input NAND (Old A OR Old B)
• New B = Old A
• Output = input OR Old B
Transducer-theory of Automata
28
New A = input NAND (Old A OR Old B)
New B = Old A
Output = input OR Old B
State Table
States Old A Old B
q0 0 0
q1 0 1
q2 1 0
q3 1 1
29
Check on both input 0 and 1.
State q0 ,
Old A = 0 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 0 NAND (0 OR 0)
New A = 1
New B = Old A
New B = 0
Output = input OR Old B
Output = 0 OR 0
Output = 0
At input 0
State q0 ,
Old A = 0 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 1 NAND (0 OR 0)
New A = 1
New B = Old A
New B = 0
Output = input OR Old B
Output = 1 OR 0
Output = 0
At input 1
30
Check on both input 0 and 1.
State q1 ,
Old A = 0 , Old B = 1
New A = input NAND (Old A OR Old B)
New A= 0 NAND (0 OR 1)
New A = 1
New B = Old A
New B = 0
Output = input OR Old B
Output = 0 OR 1
Output = 1
At input 0
State q1 ,
Old A = 0 , Old B = 1
New A = input NAND (Old A OR Old B)
New A = 1 NAND (0 OR 1)
New A = 0
New B = Old A
New B = 0
Output = input OR Old B
Output = 1 OR 1
Output = 1
At input 1
31
Check on both input 0 and 1.
State q2 ,
Old A = 1 , Old B = 0
New A = input NAND (Old A OR Old B)
New A= 0 NAND (1 OR 0)
New A = 1
New B = Old A
New B = 1
Output = input OR Old B
Output = 0 OR 0
Output = 0
At input 0
State q2 ,
Old A = 1 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 1 NAND (1 OR 0)
New A = 0
New B = Old A
New B = 1
Output = input OR Old B
Output = 1 OR 0
Output = 1
At input 1
32
Check on both input 0 and 1.
State q3 ,
Old A = 1 , Old B = 1
New A = input NAND (Old A OR Old B)
New A= 0 NAND (1 OR 1)
New A = 1
New B = Old A
New B = 1
Output = input OR Old B
Output = 0 OR 1
Output = 1
At input 0
State q3 ,
Old A = 1 , Old B = 1
New A = input NAND (Old A OR Old B)
New A = 1 NAND (1 OR 1)
New A = 0
New B = Old A
New B = 1
Output = input OR Old B
Output = 1 OR 1
Output = 1
At input 1
33
State
At Input 0 At Input 1
A B Output A B Output
q0 1 0 0 1 0 1
q1 1 0 1 0 0 1
q2 1 1 0 0 1 1
q3 1 1 1 0 1 1
Transition Table
q0
Mealy Machine
1,1
q1
q2q3
1,1
1,1 1,1
0,0
0,0
0,1
0,1
Transducers as
models of
Sequential
Circuits
4
Presented By:
Aiman Hafeez
(RollNo: 53 )
(Moore Machine)
35
SALAM!
I am Aiman Hafeez
I am here to present Transducers as models
of Sequential Circuits.
Roll No: 101611053
36
NAND DELAY OR
OR
input outputA B
Transducer circuit
Moore Machine
37
Truth Tables
AND Gate
A B A.B
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate
A B A.B
0 0 0
0 1 1
1 0 1
1 1 1
NAND Gate
A B A.B
0 0 1
0 1 1
1 0 1
1 1 0
38
Transducer Circuit
• Two Points A & B.
• Total No. OF points=2=
• No of states = 2^2 = 4 = q0 ,q1,q2,q3.
 Already available Points we say Old A & Old B.
 New Equation
• New A = input NAND (Old A OR Old B)
• New B = Old A
• Output = Old A OR Old B
NAND DELAY OR
OR
input outputA B
Transducer-theory of Automata
39
New A = input NAND (Old A OR Old B)
New B = Old A
Output = Old A OR Old B
State Table
States Old A Old B
q0 0 0
q1 0 1
q2 1 0
q3 1 1
40
Check on both input 0 and 1.
State q0 ,
Old A = 0 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 0 NAND (0 OR 0)
New A = 1
New B = Old A
New B = 0
Output = Old A OR Old B
Output =0 OR 0
Output = 0
At input 0
State q0 ,
Old A = 0 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 1 NAND (0 OR 0)
New A = 1
New B = Old A
New B = 0
Output = Old A OR Old B
Output = 0 OR 0
Output = 0
At input 1
41
Check on both input 0 and 1.
State q1 ,
Old A = 0 , Old B = 1
New A = input NAND (Old A OR Old B)
New A= 0 NAND (0 OR 1)
New A = 1
New B = Old A
New B = 0
Output = Old A OR Old B
Output = 0 OR 1
Output = 1
At input 0
State q1 ,
Old A = 0 , Old B = 1
New A = input NAND (Old A OR Old B)
New A = 1 NAND (0 OR 1)
New A = 0
New B = Old A
New B = 0
Output = Old A OR Old B
Output =0 OR 1
Output = 1
At input 1
42
Check on both input 0 and 1.
State q2 ,
Old A = 1, Old B = 0
New A = input NAND (Old A OR Old B)
New A= 0 NAND (1 OR 0)
New A = 1
New B = Old A
New B = 1
Output = Old A OR Old B
Output = 1 OR 0
Output = 1
At input 0
State q2 ,
Old A = 1 , Old B = 0
New A = input NAND (Old A OR Old B)
New A = 1 NAND (1 OR 0)
New A = 0
New B = Old A
New B = 1
Output = Old A OR Old B
Output = 1 OR 0
Output = 1
At input 1
43
Check on both input 0 and 1.
State q3 ,
Old A = 1 , Old B = 1
New A = input NAND (Old A OR Old B)
New A= 0 NAND (1 OR 1)
New A = 1
New B = Old A
New B = 1
Output = Old A OR Old B
Output = 1 OR 1
Output = 1
At input 0
State q3 ,
Old A = 1 , Old B = 1
New A = input NAND (Old A OR Old B)
New A = 1 NAND (1 OR 1)
New A = 0
New B = Old A
New B = 1
Output = Old A OR Old B
Output =1 OR 1
Output = 1
At input 1
44
Transition Table
q0/0
Moore Machine
1
1
1
1
0
0
0
0
Present
State
Next State
Output
Input 0 Input 1
q0 (1,0) = q2 (1,0) = q2 0
q1 (1,0) = q2 (0,0) = q0 1
q2 (1,1) = q3 (0,1) = q1 1
q3 (1,1) = q3 (0,1) = q1 1
q1/1
q2/1q3/1
45
Any questions?
If you have any then
GOOGLE IT… ! 😉

More Related Content

What's hot

Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machinesAYESHA JAVED
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
simple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonsimple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonkanikkk
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automatadeepinderbedi
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine SardarKashifKhan
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First SearchKevin Jadiya
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFAkunj desai
 
Depth first search and breadth first searching
Depth first search and breadth first searchingDepth first search and breadth first searching
Depth first search and breadth first searchingKawsar Hamid Sumon
 
Red black tree
Red black treeRed black tree
Red black treeRajendran
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AIKirti Verma
 
Regular expression to NFA (Nondeterministic Finite Automata)
Regular expression to NFA (Nondeterministic Finite Automata)Regular expression to NFA (Nondeterministic Finite Automata)
Regular expression to NFA (Nondeterministic Finite Automata)Niloy Biswas
 
Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Shuvongkor Barman
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSGokul Hari
 

What's hot (20)

Red black tree
Red black treeRed black tree
Red black tree
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Meley & moore
Meley & mooreMeley & moore
Meley & moore
 
Bfs and Dfs
Bfs and DfsBfs and Dfs
Bfs and Dfs
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
simple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilonsimple problem to convert NFA with epsilon to without epsilon
simple problem to convert NFA with epsilon to without epsilon
 
NFA or Non deterministic finite automata
NFA or Non deterministic finite automataNFA or Non deterministic finite automata
NFA or Non deterministic finite automata
 
Applications of Mealy & Moore Machine
Applications of  Mealy  & Moore Machine Applications of  Mealy  & Moore Machine
Applications of Mealy & Moore Machine
 
Breadth First Search & Depth First Search
Breadth First Search & Depth First SearchBreadth First Search & Depth First Search
Breadth First Search & Depth First Search
 
Minimization of DFA
Minimization of DFAMinimization of DFA
Minimization of DFA
 
Depth first search and breadth first searching
Depth first search and breadth first searchingDepth first search and breadth first searching
Depth first search and breadth first searching
 
Input output interface
Input output interfaceInput output interface
Input output interface
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Red black tree
Red black treeRed black tree
Red black tree
 
Uninformed search /Blind search in AI
Uninformed search /Blind search in AIUninformed search /Blind search in AI
Uninformed search /Blind search in AI
 
Pda
PdaPda
Pda
 
Regular expression to NFA (Nondeterministic Finite Automata)
Regular expression to NFA (Nondeterministic Finite Automata)Regular expression to NFA (Nondeterministic Finite Automata)
Regular expression to NFA (Nondeterministic Finite Automata)
 
Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)Presentation on Breadth First Search (BFS)
Presentation on Breadth First Search (BFS)
 
SEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMSSEARCHING AND SORTING ALGORITHMS
SEARCHING AND SORTING ALGORITHMS
 
Moore machine (automata)
Moore  machine (automata)Moore  machine (automata)
Moore machine (automata)
 

Similar to Moore Mealy Machine Conversion

Synchronous design process
Synchronous design processSynchronous design process
Synchronous design processAbhilash Nair
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential CircuitHeman Pathak
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
SequentialcircuitsRaghu Vamsi
 
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...SANTIAGO PABLO ALBERTO
 
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaaDD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaakasheenp
 
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfFundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfshubhangisonawane6
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machineShreyans Pathak
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machineslavishka_anuj
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Hsien-Hsin Sean Lee, Ph.D.
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuitAswiniT3
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .pptGeekyHassan
 

Similar to Moore Mealy Machine Conversion (20)

Lec 25 26_27
Lec 25 26_27Lec 25 26_27
Lec 25 26_27
 
Synchronous design process
Synchronous design processSynchronous design process
Synchronous design process
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Lec9
Lec9Lec9
Lec9
 
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...
Electrónica digital: Diseño de contador con flip-flop tipo JK y D haciendo de...
 
Autoata.pptx
Autoata.pptxAutoata.pptx
Autoata.pptx
 
Flip flops
Flip flopsFlip flops
Flip flops
 
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaaDD Slides6.pptx  aaaaaaaaaaaaaaaaaaaaaaaaaaaa
DD Slides6.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdfFundamentals of digital communication UNIT 3 AND 4 notes.pdf
Fundamentals of digital communication UNIT 3 AND 4 notes.pdf
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
Moore and mealy machines
Moore and mealy machinesMoore and mealy machines
Moore and mealy machines
 
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
 
Sequential logic circuit
Sequential logic circuitSequential logic circuit
Sequential logic circuit
 
QC-UNIT 2.ppt
QC-UNIT 2.pptQC-UNIT 2.ppt
QC-UNIT 2.ppt
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .ppt
 

Recently uploaded

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Recently uploaded (20)

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

Moore Mealy Machine Conversion

  • 1. Moore, Mealy Machine Conversions & Transducers as models of sequential circuits Presented By:  Anum Ayub  Sanobir Aslam  Aiman Hafeez  Tasbeeh Zahra
  • 2. 2 SALAM! I am Anum Ayub I am here to present Conversion of Mealy machine to Moore Machine. Roll No: 101611047
  • 3. Conversion of Moore machine to Mealy Machine Presented By: Anum Ayub (RollNo: 47 ) 1
  • 4. Introduction of Moore Machine and Mealy Machine A Mealy Machine is an FSM (Finite State Machine) whose output depends on the present state as well as the present input. The value of the output function is a function of the transitions and the changes, when the input logic on the present state is done. While, A Moore machine is also an FSM (Finite State Machine) whose outputs depend on only the present state. The value of the output function is a function of the current state and the changes at the clock edges, whenever state changes occur. 4
  • 5. Conversion of Moore machine to Mealy Machine Moore machine cannot directly convert to its equivalent Mealy machine because the length of the Moore machine is one longer than the Mealy machine for the given input. To convert Moore machine to Mealy machine, state output symbols are distributed into input symbol paths. 5
  • 6. STEPS to Convert Moore machine to Mealy machine: ○ Step 1: Take a blank Mealy Machine transition table format. ○ Step 2: Copy all the Moore Machine transition states into this table format. ○ 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. 6
  • 7. Example 1: 7 Transition table for above Moore machine is as follows: Present State Next State Output State State q0 q1 q0 0 q1 q1 q2 0 q2 q1 q0 1
  • 8. 8 Present State Next State a b State Output State Output q0 q1 0 q0 0 q1 q1 0 q2 1 q2 q1 0 q0 0 Transition table for above Mealy machine is as follows:
  • 9. 9 Transition diagram for Mealy machine will be:
  • 10. Example 2: 10 Transition table for above Moore machine is as follows: Present State Next State a b A B,0 A,0 B B,0 C,0 C B,0 D,1 D B,0 A,0 A B C D b/0 a/0 a/0 a/0 a/0 b/0 b/0 b/1
  • 11. Example 3: 11 Transition table for above Moore machine is as follows: Present State Next State Output 0 1 q0 q1 q2 1 q1 q3 q2 0 q2 q2 q1 1 q3 q0 Q3 1 1/1 0/1 q3 q0q1 q2 1/11/1 1/0 0/1 0/1 0/0 Present State 0 1 q0 q1 , 0 q2 , 1 q1 q3 , 1 q2 , 1 q2 q2 , 0 q1 , 0 q3 q0 , 0 q3 , 1 Transition table for above Mealy machine is as follows:
  • 12. Conversion of Mealy machine to Moore Machine Presented By: Sanobir Aslam (RollNo: 79) 2
  • 13. 13 SALAM! I am Sanobir Aslam I am here to present Conversion of Moore machine to Mealy Machine. Roll No: 101611079
  • 14. Conversion of Mealy machine to Moore Machine To convert Mealy machine to Moore machine, we will create a separate state for every new output symbol and according to incoming and outgoing edges are distributed. 14
  • 15. STEPS to Convert Mealy machine to Moore machine: ○ Step 1: For each state(Qi), calculate the number of different outputs that are available in the transition table of the Mealy machine. ○ Step 2: Copy state Qi, if all the outputs of Qi are the same. Break qi into n states as Qin, if it has n distinct outputs where n = 0, 1, 2.... ○ Step 3: If the output of initial state is 0, insert a new initial state at the starting which gives 1 output. 15
  • 16. Example 1: 16 Transition table for above Mealy machine is as follows: Present State Next State a b State Output State Output q1 q1 0 q2 0 q2 q2 1 q3 10 q3 q2 0 q3 1
  • 17. 17 The state q1 has only one output. The state q2 and q3 have both output 0 and 1. So we will create two states for these states. For q2, two states will be q20(with output 0) and q21(with output 1). Similarly, for q3 two states will be q30(with output 0) and q31(with output 1). Transition table for Moore machine will be: Present State Next State Output State Output q1 q1 q2 0 q20 q21 q30 0 q21 q21 q30 1 q30 q20 q31 0 q31 q20 q31 1
  • 18. 18 Transition diagram for Moore machine will be:
  • 19. Example 2: 19 Transition table for above Moory machine is as follows: Present State Next State a b State Output State Output q1 q1 1 q2 0 q2 q4 1 q4 1 q3 q2 1 q3 1 q4 q3 0 q1 1
  • 20. 20 • For state q1, there is only one incident edge with output 0. So, we don't need to split this state in Moore machine. • For state q2, there is 2 incident edge with output 0 and 1. So, we will split this state into two states q20( state with output 0) and q21(with output 1). • For state q3, there is 2 incident edge with output 0 and 1. So, we will split this state into two states q30( state with output 0) and q31( state with output 1). • For state q4, there is only one incident edge with output 0. So, we don't need to split this state in Moore machine.
  • 21. 21 Transition table for Mealy machine will be: Present State Next State Output State Output q1 q1 q2 1 q20 q4 q4 0 q21 Ø Ø 1 q30 q21 q31 0 q31 q21 q31 1 q4 q3 q4 1
  • 22. 22 Transition diagram for Mealy machine will be:
  • 23. Transducers as models of Sequential Circuits 3 Presented By: Tasbeeh Zahra (RollNo: 55 ) (Mealy Machine)
  • 24. 24 SALAM! I am Tasbeeh Zahra I am here to present Transducers as models of Sequential Circuits. Roll No: 101611055
  • 25. Transducers Convert signal from one form to another ○ E . g microphone, speaker etc. 25 NAND DELAY OR OR input outputA B Transducer circuit Mealy Machine
  • 26. 26 Truth Tables AND Gate A B A.B 0 0 0 0 1 0 1 0 0 1 1 1 OR Gate A B A.B 0 0 0 0 1 1 1 0 1 1 1 1 NAND Gate A B A.B 0 0 1 0 1 1 1 0 1 1 1 0
  • 27. 27 Transducer Circuit NAND DELAY OR OR input outputA B • Two Points A & B. • Total No. OF points=2= • No of states = 2^2 = 4 = q0 ,q1,q2,q3.  Already available Points we say Old A & Old B.  New Equation • New A = input NAND (Old A OR Old B) • New B = Old A • Output = input OR Old B
  • 28. Transducer-theory of Automata 28 New A = input NAND (Old A OR Old B) New B = Old A Output = input OR Old B State Table States Old A Old B q0 0 0 q1 0 1 q2 1 0 q3 1 1
  • 29. 29 Check on both input 0 and 1. State q0 , Old A = 0 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 0 NAND (0 OR 0) New A = 1 New B = Old A New B = 0 Output = input OR Old B Output = 0 OR 0 Output = 0 At input 0 State q0 , Old A = 0 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 1 NAND (0 OR 0) New A = 1 New B = Old A New B = 0 Output = input OR Old B Output = 1 OR 0 Output = 0 At input 1
  • 30. 30 Check on both input 0 and 1. State q1 , Old A = 0 , Old B = 1 New A = input NAND (Old A OR Old B) New A= 0 NAND (0 OR 1) New A = 1 New B = Old A New B = 0 Output = input OR Old B Output = 0 OR 1 Output = 1 At input 0 State q1 , Old A = 0 , Old B = 1 New A = input NAND (Old A OR Old B) New A = 1 NAND (0 OR 1) New A = 0 New B = Old A New B = 0 Output = input OR Old B Output = 1 OR 1 Output = 1 At input 1
  • 31. 31 Check on both input 0 and 1. State q2 , Old A = 1 , Old B = 0 New A = input NAND (Old A OR Old B) New A= 0 NAND (1 OR 0) New A = 1 New B = Old A New B = 1 Output = input OR Old B Output = 0 OR 0 Output = 0 At input 0 State q2 , Old A = 1 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 1 NAND (1 OR 0) New A = 0 New B = Old A New B = 1 Output = input OR Old B Output = 1 OR 0 Output = 1 At input 1
  • 32. 32 Check on both input 0 and 1. State q3 , Old A = 1 , Old B = 1 New A = input NAND (Old A OR Old B) New A= 0 NAND (1 OR 1) New A = 1 New B = Old A New B = 1 Output = input OR Old B Output = 0 OR 1 Output = 1 At input 0 State q3 , Old A = 1 , Old B = 1 New A = input NAND (Old A OR Old B) New A = 1 NAND (1 OR 1) New A = 0 New B = Old A New B = 1 Output = input OR Old B Output = 1 OR 1 Output = 1 At input 1
  • 33. 33 State At Input 0 At Input 1 A B Output A B Output q0 1 0 0 1 0 1 q1 1 0 1 0 0 1 q2 1 1 0 0 1 1 q3 1 1 1 0 1 1 Transition Table q0 Mealy Machine 1,1 q1 q2q3 1,1 1,1 1,1 0,0 0,0 0,1 0,1
  • 34. Transducers as models of Sequential Circuits 4 Presented By: Aiman Hafeez (RollNo: 53 ) (Moore Machine)
  • 35. 35 SALAM! I am Aiman Hafeez I am here to present Transducers as models of Sequential Circuits. Roll No: 101611053
  • 36. 36 NAND DELAY OR OR input outputA B Transducer circuit Moore Machine
  • 37. 37 Truth Tables AND Gate A B A.B 0 0 0 0 1 0 1 0 0 1 1 1 OR Gate A B A.B 0 0 0 0 1 1 1 0 1 1 1 1 NAND Gate A B A.B 0 0 1 0 1 1 1 0 1 1 1 0
  • 38. 38 Transducer Circuit • Two Points A & B. • Total No. OF points=2= • No of states = 2^2 = 4 = q0 ,q1,q2,q3.  Already available Points we say Old A & Old B.  New Equation • New A = input NAND (Old A OR Old B) • New B = Old A • Output = Old A OR Old B NAND DELAY OR OR input outputA B
  • 39. Transducer-theory of Automata 39 New A = input NAND (Old A OR Old B) New B = Old A Output = Old A OR Old B State Table States Old A Old B q0 0 0 q1 0 1 q2 1 0 q3 1 1
  • 40. 40 Check on both input 0 and 1. State q0 , Old A = 0 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 0 NAND (0 OR 0) New A = 1 New B = Old A New B = 0 Output = Old A OR Old B Output =0 OR 0 Output = 0 At input 0 State q0 , Old A = 0 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 1 NAND (0 OR 0) New A = 1 New B = Old A New B = 0 Output = Old A OR Old B Output = 0 OR 0 Output = 0 At input 1
  • 41. 41 Check on both input 0 and 1. State q1 , Old A = 0 , Old B = 1 New A = input NAND (Old A OR Old B) New A= 0 NAND (0 OR 1) New A = 1 New B = Old A New B = 0 Output = Old A OR Old B Output = 0 OR 1 Output = 1 At input 0 State q1 , Old A = 0 , Old B = 1 New A = input NAND (Old A OR Old B) New A = 1 NAND (0 OR 1) New A = 0 New B = Old A New B = 0 Output = Old A OR Old B Output =0 OR 1 Output = 1 At input 1
  • 42. 42 Check on both input 0 and 1. State q2 , Old A = 1, Old B = 0 New A = input NAND (Old A OR Old B) New A= 0 NAND (1 OR 0) New A = 1 New B = Old A New B = 1 Output = Old A OR Old B Output = 1 OR 0 Output = 1 At input 0 State q2 , Old A = 1 , Old B = 0 New A = input NAND (Old A OR Old B) New A = 1 NAND (1 OR 0) New A = 0 New B = Old A New B = 1 Output = Old A OR Old B Output = 1 OR 0 Output = 1 At input 1
  • 43. 43 Check on both input 0 and 1. State q3 , Old A = 1 , Old B = 1 New A = input NAND (Old A OR Old B) New A= 0 NAND (1 OR 1) New A = 1 New B = Old A New B = 1 Output = Old A OR Old B Output = 1 OR 1 Output = 1 At input 0 State q3 , Old A = 1 , Old B = 1 New A = input NAND (Old A OR Old B) New A = 1 NAND (1 OR 1) New A = 0 New B = Old A New B = 1 Output = Old A OR Old B Output =1 OR 1 Output = 1 At input 1
  • 44. 44 Transition Table q0/0 Moore Machine 1 1 1 1 0 0 0 0 Present State Next State Output Input 0 Input 1 q0 (1,0) = q2 (1,0) = q2 0 q1 (1,0) = q2 (0,0) = q0 1 q2 (1,1) = q3 (0,1) = q1 1 q3 (1,1) = q3 (0,1) = q1 1 q1/1 q2/1q3/1
  • 45. 45 Any questions? If you have any then GOOGLE IT… ! 😉