Question

Construct a Mealy machine that counts modulo 5,

Construct a Mealy machine that counts modulo 5,

Homework Answers

Answer #1

Let's assume, E = {0, 1, 2, 3} (Input strings in Base 4 number system)

and,    = {0, 1, 2, 3, 4} (As we have to count modulo 5)

Transition Table:

States 0 1 2 3
-> q0 q0/0 q1/1 q2/2 q3/3
q1 q4/4 q0/0 q1/1 q2/2
q2 q3/3 q4/4 q0/0 q1/1
q3 q2/2 q3/3 q4/4 q0/0
q4 q1/1 q2/2 q3/3 q4/4

Required Mealy Machine:

Sample Input:

Let's take 12 as our input string (decimal equivalent of 12 is 6) and 6 mod 5 is 1.

Now, if we input 1 to q0 it goes to q1, and q1 on getting input 2 goes to q1 itself and gives the final output symbol 1 which is our required answer for 6 mod 5.  

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Construct a Mealy machine that counts modulo 5
Construct a Mealy machine that counts modulo 5
What is a Mealy machine? Give an example.
What is a Mealy machine? Give an example.
Mealy and Moore state machine For sequence “101”
Mealy and Moore state machine For sequence “101”
Design a Mealy finite state machine that detects the bit sequence x=[111010]. Draw Mealy state diagram...
Design a Mealy finite state machine that detects the bit sequence x=[111010]. Draw Mealy state diagram Write state table Implement circuit with flip flop type of your choice
Define briefly the synchronous circuits (FSM) Mealy and Moore Machine.
Define briefly the synchronous circuits (FSM) Mealy and Moore Machine.
Mealy state machines. (a) Design a Mealy state machine to detect the sequence 10010. There is...
Mealy state machines. (a) Design a Mealy state machine to detect the sequence 10010. There is a single input “x” and a single output “z”. The output is set to 1 when the sequence is detected. Design the state machine using gates and flip-flops in the standard way, i.e., begin with a state transition diagram and state transition table, do plain state assignment (e.g., for three state variables, first state is 000, next is 001, and so on), use K-maps...
The output from a Mealy state machine depends on its internal state and on external outputs,...
The output from a Mealy state machine depends on its internal state and on external outputs, true or false?
Theory of Automata & Formal Languages Draw a mealy machine that count the occurrence "aab and...
Theory of Automata & Formal Languages Draw a mealy machine that count the occurrence "aab and also abb" in a given string and that into Moore machine? Explain in detail. Note:Do not draw aab and abb separately.They are not seperate. Also The diagram should be neat and thorough.
Make an Mealy machine with Σ = Δ = {0, 1} that satisfy  the condition. The output...
Make an Mealy machine with Σ = Δ = {0, 1} that satisfy  the condition. The output at time t is 1 if the input at time t is the same as input at time t-2.
Give a complete residue system modulo 17 consisting entirely of integers congruent to two modulo 5.
Give a complete residue system modulo 17 consisting entirely of integers congruent to two modulo 5.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT