SlideShare a Scribd company logo
1 of 2
Download to read offline
Design a circuit that detect the sequence 0110.
Draw the Moore state machine for detecting non-overlapping sequences
Write the truth table that shows the next state based on T flip flops
Draw the circuit
Re-do the More state machine graph for overlapping sequences (do the state machine only)
Solution
A)This sort of situation might arise for a simple code lock, where the user must enter the correct
4 bits to open the lock. If the user doesn’t input the correct 4 bits, they must start over. Or, it
might be used in a simple communication system which receives bits off a line one at a time, and
the word size is 4 bits. In this case, the patterns might be start and stop signals, or some other
communication protocol-related information. The input is defined as X. Thus, the value of X is
the value of the input line in a given clock cycle. The output, Y, goes high for 1 clock cycle as
soon as it receives the 4th bit that matches a pattern. We have only one input and only one
output, so we don’t need to use ASM charts. We can use a simple state diagram. Note that
because the output must go high as soon as the 4th matching bit is received, we need this to be a
Mealy machine. Also, note that in this example, when we are looking for 1010, we assume the
most significant bit is the first bit received, so the order of the inputs would be 1-0-1-0, not 0-1-
0-1.
Our state machine starts in a state in which we have received no bits. We will call this state
START. The state transitions will be depending on whether the input X is a 0 or 1 – we can
essentially use the states to record which values have been received. If the input is 0, we
transition to a state called S0; if X is 1, we transition to S1. These states are named after the
value received in the previous clock cycle. From each of S0 and S1, we can likewise go to new
states based on the value of X. If in S0, and X is 0, we go to state S00; if X is 1, we go to state
S01. Similarly, if in S1, and X is 0, we go to state S10; if X is 1, we go to state S11. Again, the
states are named after the two previously received values. Now, each of those four states can
again go to one of two possible states, based on the value of X. The states are S000, S001, S010,
S011, S100, S101, S110, S111. At this point, the state machine knows we have received 3 bits,
and knows what those 3 bits are. When it receives the next bit, it can determine whether a
matching sequence was input, or whether we need to restart.
So, S000, S001, S010, S100, S110, and S111 all transition back to START and output 0, no
matter what the input, because none of those states correspond to having received the first 3 bits
of sequences 0110 or 1010. States S011 and S101, however, do depend on the input. They both
still transition back to START, but if the input is 0, the output is 1. Otherwise, the output remains
0. Thus the state machine meets our design requirements.
So we have a state machine that has 15 states. 15 states is quite a lot. This requires at least 4 state
variables (i.e. 4 flip-flops). If using one-hot design, there will be 15 flip-flops! Maybe we can
reduce the number of states. We try to apply state reduction – look for redundancy or
unnecessary repetition in the diagram or state table. We don’t necessarily care that the system
knows what it has received exactly, so long as it sets the output appropriately to indicate a
matching sequence has been detected. First, we notice that everything from S00 down and S11
down is identical. That is, the state machine behaves exactly the same after this point, with
respect to receiving 0 and 1. So why not combine S00 and S11 and thus we can get rid of 3 states
that way. So we combine them into S00_11, and the 2 states after become S110_000 and
S111_001.
Now, we can also see that S01 and S10 are followed by the exact same structure. This is because
the last 2 bits of the sequences we’re looking for are the same – 0110 and 1010. So we can
combine this states, too, getting S01_10 which leads to S100_010 and S101_011. This gets rid of
another 3 states.
So now we have only 9 states. Can we reduce more? Notice that now we have two branches of
states, those which might be leading to a possible sequence match, and those which are definitely
wrong. For the branches that are definitely wrong, we don’t need to bother with going to
different states depending on whether 1 or 0 is input – we just need to go to another state in the
“wrong” path. Combining all the “wrong” states into a single “wrong” path can save us a few
more states.
Now we have only 7 states. That is less than half of what we started with, and we now only need
3 flip-flops instead of 4. The state table is simpler, as is the implementation. We can now write
out our state table and excitation table. We’ll use 3 D-type flip-flops (Ck , Bk , and Ak ) and
assign START = 000, S0 = 001, S1 = 010, S10_01 = 011, S11_00 = 100, S101_011 = 101, and
SREST = 110.

More Related Content

Similar to Design a circuit that detect the sequence 0110. Draw the Moore sta.pdf

a simple idealized machine used to recognize patterns within input taken from...
a simple idealized machine used to recognize patterns within input taken from...a simple idealized machine used to recognize patterns within input taken from...
a simple idealized machine used to recognize patterns within input taken from...NALESVPMEngg
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncrEdhole.com
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncrEdhole.com
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdfrdjo
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
SequentialcircuitsRaghu Vamsi
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .pptGeekyHassan
 
Control systems formula book
Control systems formula bookControl systems formula book
Control systems formula bookHussain K
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpExcel Homework Help
 

Similar to Design a circuit that detect the sequence 0110. Draw the Moore sta.pdf (20)

a simple idealized machine used to recognize patterns within input taken from...
a simple idealized machine used to recognize patterns within input taken from...a simple idealized machine used to recognize patterns within input taken from...
a simple idealized machine used to recognize patterns within input taken from...
 
Unit iii-stability
Unit iii-stabilityUnit iii-stability
Unit iii-stability
 
DFA
DFA DFA
DFA
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Ch2 finite automaton
Ch2 finite automatonCh2 finite automaton
Ch2 finite automaton
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
state_machines1.pdf
state_machines1.pdfstate_machines1.pdf
state_machines1.pdf
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Theory of computation and automata
Theory of computation and automataTheory of computation and automata
Theory of computation and automata
 
Sequentialcircuits
SequentialcircuitsSequentialcircuits
Sequentialcircuits
 
Flip Flops DLD
Flip Flops DLDFlip Flops DLD
Flip Flops DLD
 
Lesson 18 Automata .ppt
Lesson 18 Automata .pptLesson 18 Automata .ppt
Lesson 18 Automata .ppt
 
Lec41
Lec41Lec41
Lec41
 
Control systems formula book
Control systems formula bookControl systems formula book
Control systems formula book
 
Lec14
Lec14Lec14
Lec14
 
Lec27
Lec27Lec27
Lec27
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
Lec 25 26_27
Lec 25 26_27Lec 25 26_27
Lec 25 26_27
 
Number System
Number SystemNumber System
Number System
 

More from FashionColZone

In order to determine the overall chromosome map for E. coli, four Hf.pdf
In order to determine the overall chromosome map for E. coli, four Hf.pdfIn order to determine the overall chromosome map for E. coli, four Hf.pdf
In order to determine the overall chromosome map for E. coli, four Hf.pdfFashionColZone
 
In a fantasy world where organisms can augment diffusion by using ma.pdf
In a fantasy world where organisms can augment diffusion by using ma.pdfIn a fantasy world where organisms can augment diffusion by using ma.pdf
In a fantasy world where organisms can augment diffusion by using ma.pdfFashionColZone
 
Hello, I need some assistance in writing a java program THAT MUST US.pdf
Hello, I need some assistance in writing a java program THAT MUST US.pdfHello, I need some assistance in writing a java program THAT MUST US.pdf
Hello, I need some assistance in writing a java program THAT MUST US.pdfFashionColZone
 
Explain how consumer judges the quality of service (Including price .pdf
Explain how consumer judges the quality of service (Including price .pdfExplain how consumer judges the quality of service (Including price .pdf
Explain how consumer judges the quality of service (Including price .pdfFashionColZone
 
Early Americans did not practice equality according to today’s defin.pdf
Early Americans did not practice equality according to today’s defin.pdfEarly Americans did not practice equality according to today’s defin.pdf
Early Americans did not practice equality according to today’s defin.pdfFashionColZone
 
Do you think that the level of prosperity of a given society influen.pdf
Do you think that the level of prosperity of a given society influen.pdfDo you think that the level of prosperity of a given society influen.pdf
Do you think that the level of prosperity of a given society influen.pdfFashionColZone
 
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdf
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdfCyanide is a potent toxin that can kill a human in minutes. It funct.pdf
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdfFashionColZone
 
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdfA Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdfFashionColZone
 
Assume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdfAssume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdfFashionColZone
 
Briefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdfBriefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdfFashionColZone
 
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdfA satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdfFashionColZone
 
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdfFashionColZone
 
You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfFashionColZone
 
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdfYou are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdfFashionColZone
 
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
Why animals migrate  I need 5 new ideas (exclude  reproduction , s.pdfWhy animals migrate  I need 5 new ideas (exclude  reproduction , s.pdf
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdfFashionColZone
 
Which of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdfWhich of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdfFashionColZone
 
What are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdfWhat are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdfFashionColZone
 
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdfTYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdfFashionColZone
 
The total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdfThe total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdfFashionColZone
 
1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdfFashionColZone
 

More from FashionColZone (20)

In order to determine the overall chromosome map for E. coli, four Hf.pdf
In order to determine the overall chromosome map for E. coli, four Hf.pdfIn order to determine the overall chromosome map for E. coli, four Hf.pdf
In order to determine the overall chromosome map for E. coli, four Hf.pdf
 
In a fantasy world where organisms can augment diffusion by using ma.pdf
In a fantasy world where organisms can augment diffusion by using ma.pdfIn a fantasy world where organisms can augment diffusion by using ma.pdf
In a fantasy world where organisms can augment diffusion by using ma.pdf
 
Hello, I need some assistance in writing a java program THAT MUST US.pdf
Hello, I need some assistance in writing a java program THAT MUST US.pdfHello, I need some assistance in writing a java program THAT MUST US.pdf
Hello, I need some assistance in writing a java program THAT MUST US.pdf
 
Explain how consumer judges the quality of service (Including price .pdf
Explain how consumer judges the quality of service (Including price .pdfExplain how consumer judges the quality of service (Including price .pdf
Explain how consumer judges the quality of service (Including price .pdf
 
Early Americans did not practice equality according to today’s defin.pdf
Early Americans did not practice equality according to today’s defin.pdfEarly Americans did not practice equality according to today’s defin.pdf
Early Americans did not practice equality according to today’s defin.pdf
 
Do you think that the level of prosperity of a given society influen.pdf
Do you think that the level of prosperity of a given society influen.pdfDo you think that the level of prosperity of a given society influen.pdf
Do you think that the level of prosperity of a given society influen.pdf
 
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdf
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdfCyanide is a potent toxin that can kill a human in minutes. It funct.pdf
Cyanide is a potent toxin that can kill a human in minutes. It funct.pdf
 
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdfA Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
A Fullerene is a 3-regular planar graph with faces of degree 5 and 6.pdf
 
Assume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdfAssume that the paired date came from a population that is normally .pdf
Assume that the paired date came from a population that is normally .pdf
 
Briefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdfBriefly describe three processing schema used in cochlear implants..pdf
Briefly describe three processing schema used in cochlear implants..pdf
 
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdfA satellite moves in a circular orbit around Earth at a speed of 470.pdf
A satellite moves in a circular orbit around Earth at a speed of 470.pdf
 
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
7. What do we mean by “spreading signal”in CDMA systems16. Name a.pdf
 
You will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdfYou will write a multi-interface version of the well-known concentra.pdf
You will write a multi-interface version of the well-known concentra.pdf
 
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdfYou are interested in using the plasmid pGEE as a vector for incorpor.pdf
You are interested in using the plasmid pGEE as a vector for incorpor.pdf
 
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
Why animals migrate  I need 5 new ideas (exclude  reproduction , s.pdfWhy animals migrate  I need 5 new ideas (exclude  reproduction , s.pdf
Why animals migrate I need 5 new ideas (exclude reproduction , s.pdf
 
Which of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdfWhich of the following characteristics of the fetus distinguishes it.pdf
Which of the following characteristics of the fetus distinguishes it.pdf
 
What are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdfWhat are the major sources of cash (inflows) in a statement of cash .pdf
What are the major sources of cash (inflows) in a statement of cash .pdf
 
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdfTYPES OF AUDIT1. Is there an internal audit function within your o.pdf
TYPES OF AUDIT1. Is there an internal audit function within your o.pdf
 
The total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdfThe total exergy is an extensive property of a system. True or False.pdf
The total exergy is an extensive property of a system. True or False.pdf
 
1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf1.Define culture. How can culture be conceptionalized Your resp.pdf
1.Define culture. How can culture be conceptionalized Your resp.pdf
 

Recently uploaded

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Recently uploaded (20)

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Design a circuit that detect the sequence 0110. Draw the Moore sta.pdf

  • 1. Design a circuit that detect the sequence 0110. Draw the Moore state machine for detecting non-overlapping sequences Write the truth table that shows the next state based on T flip flops Draw the circuit Re-do the More state machine graph for overlapping sequences (do the state machine only) Solution A)This sort of situation might arise for a simple code lock, where the user must enter the correct 4 bits to open the lock. If the user doesn’t input the correct 4 bits, they must start over. Or, it might be used in a simple communication system which receives bits off a line one at a time, and the word size is 4 bits. In this case, the patterns might be start and stop signals, or some other communication protocol-related information. The input is defined as X. Thus, the value of X is the value of the input line in a given clock cycle. The output, Y, goes high for 1 clock cycle as soon as it receives the 4th bit that matches a pattern. We have only one input and only one output, so we don’t need to use ASM charts. We can use a simple state diagram. Note that because the output must go high as soon as the 4th matching bit is received, we need this to be a Mealy machine. Also, note that in this example, when we are looking for 1010, we assume the most significant bit is the first bit received, so the order of the inputs would be 1-0-1-0, not 0-1- 0-1. Our state machine starts in a state in which we have received no bits. We will call this state START. The state transitions will be depending on whether the input X is a 0 or 1 – we can essentially use the states to record which values have been received. If the input is 0, we transition to a state called S0; if X is 1, we transition to S1. These states are named after the value received in the previous clock cycle. From each of S0 and S1, we can likewise go to new states based on the value of X. If in S0, and X is 0, we go to state S00; if X is 1, we go to state S01. Similarly, if in S1, and X is 0, we go to state S10; if X is 1, we go to state S11. Again, the states are named after the two previously received values. Now, each of those four states can again go to one of two possible states, based on the value of X. The states are S000, S001, S010, S011, S100, S101, S110, S111. At this point, the state machine knows we have received 3 bits, and knows what those 3 bits are. When it receives the next bit, it can determine whether a matching sequence was input, or whether we need to restart. So, S000, S001, S010, S100, S110, and S111 all transition back to START and output 0, no matter what the input, because none of those states correspond to having received the first 3 bits of sequences 0110 or 1010. States S011 and S101, however, do depend on the input. They both
  • 2. still transition back to START, but if the input is 0, the output is 1. Otherwise, the output remains 0. Thus the state machine meets our design requirements. So we have a state machine that has 15 states. 15 states is quite a lot. This requires at least 4 state variables (i.e. 4 flip-flops). If using one-hot design, there will be 15 flip-flops! Maybe we can reduce the number of states. We try to apply state reduction – look for redundancy or unnecessary repetition in the diagram or state table. We don’t necessarily care that the system knows what it has received exactly, so long as it sets the output appropriately to indicate a matching sequence has been detected. First, we notice that everything from S00 down and S11 down is identical. That is, the state machine behaves exactly the same after this point, with respect to receiving 0 and 1. So why not combine S00 and S11 and thus we can get rid of 3 states that way. So we combine them into S00_11, and the 2 states after become S110_000 and S111_001. Now, we can also see that S01 and S10 are followed by the exact same structure. This is because the last 2 bits of the sequences we’re looking for are the same – 0110 and 1010. So we can combine this states, too, getting S01_10 which leads to S100_010 and S101_011. This gets rid of another 3 states. So now we have only 9 states. Can we reduce more? Notice that now we have two branches of states, those which might be leading to a possible sequence match, and those which are definitely wrong. For the branches that are definitely wrong, we don’t need to bother with going to different states depending on whether 1 or 0 is input – we just need to go to another state in the “wrong” path. Combining all the “wrong” states into a single “wrong” path can save us a few more states. Now we have only 7 states. That is less than half of what we started with, and we now only need 3 flip-flops instead of 4. The state table is simpler, as is the implementation. We can now write out our state table and excitation table. We’ll use 3 D-type flip-flops (Ck , Bk , and Ak ) and assign START = 000, S0 = 001, S1 = 010, S10_01 = 011, S11_00 = 100, S101_011 = 101, and SREST = 110.