Question: A . 5 A Smart Snail In this question, you will implement a finite state machine ( FSM ) for a smart snail robot. Similar

A.5 A Smart Snail
In this question, you will implement a finite state machine (FSM) for a smart snail robot.
Similar to the snail example discussed in class, your smart snail robot follows a path of '0' and '1' and uses the detected digit as input. However, your smart snail doesn't like long strings of the same digit. In particular, this is how your smart snail robot behaves:
- The snail follows a path of '0' and '1' and uses that as input.
- If your snail sees 3 or more of the same digit, it outputs an angry face by asserting a '1' in its tm output (stands for Too Many). It also outputs the digit that is being repeated in its oz (one or zero) output.
- The snail's angry face will only be reset after encountering 2 or more consecutive input of the opposite digit.
The following shows a sample timing diagram of the action of your smart snail:
Your task for this question is to design an FSM that implements the smart snail robot's brain. Specifically, you will design a circuit called ssbrain which has the following input and output signals:
A.5.1 Describe the decision logic of the snail with a state transition diagram. Your design should ensure that it produces the correct timing for tm and oz as shown in the example timing diagram above. Submit this part of homework as part of your written exercise.
A.5.2 Implement your design in VHDL. Save your VHDL design as ssbrain. vhd and submit it in GradeScope.
A . 5 A Smart Snail In this question, you will

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!