Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 1 - Design a state machine solution for the state diagram in Figure 5-1. Use D flip-flops and only equations (assign statements) to

PART 1 - Design a state machine solution for the state diagram in Figure 5-1. Use D flip-flops and only equations (assign statements) to implement this design. (No if else OR case statements can be used here, [just for RESET]). Use K-maps to find the equations for each of the inputs to the D flip-flops. Implement your equations from the K-maps into Verilog code, and bring your Verilog file to lab. Compile your file and assign pins, download and test your solution. Since this type of state machine has an implied system clock you will have to provide a clock for your testing. Monitor the outputs of your state machine. You will have four types of outputs: the present state of the flip-flops, the Next State logic outputs for the D-F/Fs the Moore output and the Mealy output. These should all be assigned to LEDs. X- INPUT Y- Mealy OUTPUT W- Moore OUTPUT X/Y S1 X/*y SO S2 W-1 X/Y S3 X/Y S4 S5, S6 W-1 X/Y X/Y X/-y S7 Reset- 0 Figure 5-1: State Diagram

PART 1 - Design a state machine solution for the state diagram in Figure 5-1. Use D flip-flops and only equations (assign statements) to implement this design. (No "if else" OR "case" statements can be used here, [just for RESET]). Use K-maps to find the equations for each of the inputs to the D flip-flops. Implement your equations from the K-maps into Verilog code, and bring your Verilog file to lab. Compile your file and assign pins, download and test your solution. Since this type of state machine has an "implied" system clock you will have to provide a clock for your testing. Monitor the outputs of your state machine. You will have four types of outputs: the present state of the flip-flops, the Next State logic outputs for the D-F/Fs the Moore output and the Mealy output. These should all be assigned to LEDs. ~X/~Y ~X/Y SO W=0 S4, S5, S6 W=1 X/Y X/~Y ~X/~Y Reset = 0 Figure 5-1: State Diagram S2 W=1 X/Y S7 W=0 ~X/Y ~X/~Y X/Y S3 W=1 ~X/Y X/Y X-INPUT Y- Mealy OUTPUT W - Moore OUTPUT S1 W=0 X/~Y

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

11th edition

9781305323230, 1285196147, 1305323238, 978-1285196145

More Books

Students also viewed these Programming questions

Question

If X has distribution function F(t) = 0, t Answered: 1 week ago

Answered: 1 week ago