1. Homepage
  2. Homework
  3. CSE 140 Components and Design Techniques for Digital Systems - HW6: Finite State Machine (FSM)
This question has been solved

CSE 140 Components and Design Techniques for Digital Systems - HW6: Finite State Machine (FSM)

Engage in a Conversation
USUCSDUniversity of California-San DiegoCSE 140Components and Design Techniques for Digital SystemsFinite State MachineFSM

CSE140 SP23 HW6 CourseNana.COM

Due: Thu 5/18/2023, 11:00 AM PDT CourseNana.COM

  CourseNana.COM

NAME     ___________________        PID   ___________________

            COLLABORATORS  _____________________________________
CourseNana.COM

  CourseNana.COM

Assignments must be completed individually. To get started, navigate to the response template GDoc and click on “Make a copy” from the “File” menu. Concisely respond to all prompts, save the file as a PDF, then upload to GradeScope, and mark all pages. While we accept physically written/annotated submissions, type out or insert digital images (ex. “Drawing” from the “Insert” menu) as far as possible. Contain your responses to the answer boxes, which you may resize. Please highlight or circle your final answer(s) for questions where you must show work. Review course material like lecture slides, recordings, and Piazza to best use our office hours, for guidance. CourseNana.COM

  CourseNana.COM

Question 1: Professor Rick decides to continue his journey by visiting Grinnell Glacier at Glacier National Park. He will be going on a journey around the park for a couple of weeks to explore the beauty of the great outdoors. On his way there, he has been tinkering with his trusty computer, trying to build finite state machines that can recognize different patterns. Help Professor Rick build  two FSM in parts a and b that accepts the following string as its input: CourseNana.COM

X = 10010 CourseNana.COM

You can draw your diagrams by hand or using  https://www.cs.unc.edu/~otternes/comp455/fsm_designer/ CourseNana.COM

  CourseNana.COM

a)    Build a Moore FSM with the least number of states that accepts X. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

b)    Build a Mealy FSM with the least number of states that accepts X. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Question 2: Professor Rick has a knack for designing finite state machines that are very efficient. As soon as he set foot on the trail, he was struck by inspiration and now wants to design a state machine using one-hot encoding. Help Professor Rick by decoding the state machine and answering the question below. CourseNana.COM

CourseNana.COM

The diagram above is drawn with: https://www.cs.unc.edu/~otternes/comp455/fsm_designer/ . CourseNana.COM

Use the following one-hot encoding for the states: CourseNana.COM

            S0: 0001 CourseNana.COM

            S1: 0010 CourseNana.COM

            S2: 0100 CourseNana.COM

            S3: 1000 CourseNana.COM

  CourseNana.COM

a. Given the finite state machine above, write down the excitation table (without don’t care). The bits of one-hot encoding for the states is represented as p3, p2, p1, and p0, where p0 is the right-most bit of the encoding. The input is represented as b. The rows in the table below are enough to record all possibilities. CourseNana.COM

  CourseNana.COM

Inputs CourseNana.COM

Outputs CourseNana.COM

p3(t) CourseNana.COM

p2(t) CourseNana.COM

p1(t) CourseNana.COM

p0(t) CourseNana.COM

b CourseNana.COM

p3(t+1) CourseNana.COM

p2(t+1) CourseNana.COM

p1(t+1) CourseNana.COM

p0(t+1) CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

b. Minimize the states in the FSM above. Draw it below. Extra states can be left empty. CourseNana.COM

  CourseNana.COM

CourseNana.COM

  CourseNana.COM

Question 3: As Professor Rick continues his walk along the trail, he surprisingly stumbles across a piece of paper with a complex state diagram that encodes a string of 1s and 0s into a different string of 1s and 0s. He wants to find a way to convert the given Mealy machine into a Moore machine. Help Professor Rick by completing the questions below.  CourseNana.COM

  CourseNana.COM

CourseNana.COM

  CourseNana.COM

a) Write a state table for the Mealy Machine. CourseNana.COM

  CourseNana.COM

Current CourseNana.COM

State CourseNana.COM

b = 0 CourseNana.COM

b = 1 CourseNana.COM

Next State CourseNana.COM

Output (y) CourseNana.COM

Next State CourseNana.COM

Output (y) CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

b) Write the state table for an equivalent Moore Machine and how it relates to the Mealy states (with no more than eight states including the new states. ) CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Current State CourseNana.COM

Output CourseNana.COM

b = 0 CourseNana.COM

Next State CourseNana.COM

b = 1 CourseNana.COM

Next State CourseNana.COM

How it relates to Mealy States CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

c) Draw the new Moore Machine, using no more than eight states (Assume that we don’t care about the output when we reset) CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Question 4: Once the circuit was completed, Professor Rick found a second complex state diagram when he flipped over the paper. He wants to take a step further and draw out the FSM circuit for the following diagram. Help Professor Rick complete the steps below. CourseNana.COM

  CourseNana.COM

Given the state diagram below, design a finite state machine step by step; each state is represented by two bits in the form of Q1Q0 and transitions are represented as input/output. CourseNana.COM

CourseNana.COM

a)    Based on the state diagram above, first fill in the state table below; CourseNana.COM

  CourseNana.COM

Present State CourseNana.COM

Input CourseNana.COM

Next State CourseNana.COM

Output CourseNana.COM

Q1 CourseNana.COM

Q0 CourseNana.COM

X CourseNana.COM

D1 CourseNana.COM

D0 CourseNana.COM

Y CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

b)    After filling the state table above, using K-map to come up with minimal expressions of next state and output Y. You need to use Q1, Q0 and input x to write these expressions (You can use XOR gate to minimize the SOP); CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

c)    Finally, draw the circuit for the FSM. CourseNana.COM

  CourseNana.COM

CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
US代写,UCSD代写,University of California-San Diego代写,CSE 140代写,Components and Design Techniques for Digital Systems代写,Finite State Machine代写,FSM代写,US代编,UCSD代编,University of California-San Diego代编,CSE 140代编,Components and Design Techniques for Digital Systems代编,Finite State Machine代编,FSM代编,US代考,UCSD代考,University of California-San Diego代考,CSE 140代考,Components and Design Techniques for Digital Systems代考,Finite State Machine代考,FSM代考,UShelp,UCSDhelp,University of California-San Diegohelp,CSE 140help,Components and Design Techniques for Digital Systemshelp,Finite State Machinehelp,FSMhelp,US作业代写,UCSD作业代写,University of California-San Diego作业代写,CSE 140作业代写,Components and Design Techniques for Digital Systems作业代写,Finite State Machine作业代写,FSM作业代写,US编程代写,UCSD编程代写,University of California-San Diego编程代写,CSE 140编程代写,Components and Design Techniques for Digital Systems编程代写,Finite State Machine编程代写,FSM编程代写,USprogramming help,UCSDprogramming help,University of California-San Diegoprogramming help,CSE 140programming help,Components and Design Techniques for Digital Systemsprogramming help,Finite State Machineprogramming help,FSMprogramming help,USassignment help,UCSDassignment help,University of California-San Diegoassignment help,CSE 140assignment help,Components and Design Techniques for Digital Systemsassignment help,Finite State Machineassignment help,FSMassignment help,USsolution,UCSDsolution,University of California-San Diegosolution,CSE 140solution,Components and Design Techniques for Digital Systemssolution,Finite State Machinesolution,FSMsolution,