Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

Lab Assignment

The objective of this lab is to practice your Verilog coding and the design of a Finite State Machine.

Lab Goal:

For this lab, you will code a Verilog module to implement the FSM described in this document. This lab will also require that you use the Seven-Segment Display on the DE0-CV FPGA board.

Design Specifications for the FSM

Implement the following simple state machine on the DE0-CV FPGA board. This FSM will have 5 states. The clock to this FSM will be provided by yourself using KEY0 (one of the push buttons on the board). It is highly recommended that you use a debounce module (to be covered in class) to ensure that spurious clocks do not occur when using a push-button to emulate a clock.

The transitions from any one state to another are determined by switches 0 through 4 of the board (SW0, SW1, SW2, SW3, and SW4) as shown in the state diagram below. This will be easier than using pushbuttons for the inputs to switch to states. That means you set the switch and then clock using KEY0. It really only matters what the switches are doing when the clocking occurs.

NOTE reiterating this use Switches instead of pushbuttons for input. Use KEY0 for clock.

Any input transition not explicitly referenced in the diagram keeps the machine in the same state. Moreover, if two or more switches are asserted simultaneously, no transition should occur. In other words, the switches are to be treated as one-hot and your design should enforce this provision. The only exception to this is SW0 which acts as the reset and should reset the FSM to S_00 regardless of all other switches or the pushbutton. (note you could use KEY1 pushbutton instead but it isn't clear that would be better).

923_Finite State Machine.jpg

Required use of the 4-digit, 7-segment display

The 7-segment display should be used to indicate which state the FSM is in. For S_01, S_02, S_03, and S_04 the 4-digit display should display exactly that: S_01, S_02, S_03, or S_04. The one exception is that whenever the machine is in S_00, the 4-digit, 7-segment display should display the first four digits of your last name using the table below.

There is an onboard oscillator (50 MHz). Do not use the clock to clock the FSM, use KEY0, the FSM cannot work from the internal clock because you have to change input between clocks. Pin configurations can be found in section 3.4 of the DE0-CV manual. For information on how to use 7-segment display, refer to the section 3.3 in the manual.

141_7-Segment Display.jpg

Required use of LEDs

Whenever any of the switches (SW0, SW1, SW2, SW3, and SW4) are in the ON position, the corresponding LED (LEDR0, LEDR1, LEDR2, LEDR3, and LEDR4) should be ON.

Submission of Completed Lab:

Please upload the following files to the Lab3 Submission link on Blackboard:

• All Verilog source files (including testbech, and submodules)
• Board programming file (lab3.sof file which can be found in output files directory)
• A lab report in PDF format, include following in the report:

o Waveform simulations covering all transitions and proving the full functionality.
o Brief explanations of the design and organization of your code (Code snippets can be helpful in your explanations)
o Brief explanation of the tests you performed in your testbench

• You can use the following test sequence: SW0 - 10000000000000000

SW1 - 00111010010101000
SW2 - 00000000001000010
SW3 - 00000001100000100
SW4 - 00000100000010001.

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M92242341
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Other Engineering

Mine safety amp environmental engineeringpart 1 questions1

Mine Safety & Environmental Engineering Part 1. Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the following terms ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Q 1a discontinuity is found fully developed from the toe to

Q. 1 A discontinuity is found fully developed from the toe to the bench surface on a 15 m high slope, slope angle 65°. The discontinuity (frictional angle 32° and cohesion 20 kN/m2) is planar and its strike is parallel t ...

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

Load fault level analysis amp protection design of a remote

LOAD, FAULT LEVEL ANALYSIS & PROTECTION DESIGN OF A REMOTE AREA MICROGRID Assignment Please undertake the following analyses: 1. Calculate the 3-phase fault levels on Bus 2, Bus 3 and Bus 4 with the main supply connected ...

Part 1configure verify and troubleshoot wan links and ip

Part 1 Configure, verify and troubleshoot WAN links and IP services Answer to all questions below: 1. What is the name of the Safe Work Australia code of practise that provides guidance on how to manage the risks of elec ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Conceptual design of forced-free-mixed convection

Conceptual Design of Forced-Free-Mixed Convection Experiment This assessment is to be completed individually. 1. Learning Outcomes: - Develop a basic ability to conceptually design an experimental apparatus - Use theory ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As