Design specifications for the finite state machine.

Assignment Help Other Engineering
Reference no: EM131433566

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.

Verified Expert

This is an assignment about finite state machine. According to given conditions first drawn a state diagram, then generate relation of input and output. then perform program in Verilog language. Here Xilinx 9.2 software is used to perform and also for run the code. Here according to input switch status output is shown by LEDs and also in 7 segment displays. which switch is pressed for input are displays that number in 7 segment display unit.

Reference no: EM131433566

Questions Cloud

Which of his books are considered to be best : Patrick Lencioni is a founder of which company? Which of his books are considered to be best?
What is meant by a frame structure : What is meant by a frame structure and state the two classifications of frames
Effective project risk management factors and techniques : For your risk management assignment, do some of your own research into effective project risk management factors and techniques. Develop a working excel model that puts weights on your selected factors and produces a score that can show what the degr..
English-only rule create lower morale : 1. In a workplace with a diverse workforce, how could an English-only rule create lower morale, poorer communication, and lower productivity. Explain and provide example(s).
Design specifications for the finite state machine. : Design Specifications for the Finite State Machine. 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.
Explain part of the vba program : PAris timezone and the format should be a access database like the one I have sent you. I need the writer to explain part of the VBA program. Tell me if you can do it
Compute the probability of the top event : a. What equation should you use to compute the probability of the top event? b. Using the equation, what numerical value do you get for the top event probability? c. For the top event, what is the probability of the complimentary event (i.e., success..
Competitive forces in porters model for industry analysis : Which of the following is one of the primary competitive forces in Porter's model for industry analysis? The strategic-management process requires. The lower the barriers to entry in an industry, the more attractive that industry is.
What is change management : Select the Write New Message icon to answer the following questions. Make sure you integrate concepts from the course materials, including , with your answer.Include all of your answers in a single post of 150-300 words. Your answers should contai..

Reviews

inf1433566

1/15/2018 4:41:28 AM

Hello, after compiling I get two errors, see attachment please. Thanks. 25499553_1Doc4.docx having error now at a different place! 25499527_1Doc7.docx enum logic [left=00: right=11] (state) do this or assign input logic [left=00: right=11] (state) I am using a software "modelsim intel FPGA STARTER EDITION 10.5b" which can be downloaded free. If the expert on his end can download that and check the code, so if I need a future service that will make me come back. Stunning Expert truly addressed each viewpoint that I requested. Answered to questions and alters in a matter of moments. Will utilize once more.

inf1433566

12/8/2017 4:29:49 AM

I need help with this Lab3, I have attached all the information pertaining to this lab. Karim. 25499539_1Lecture-9 FSM1.pdf 25499539_2Lecture-9 FSM1.pdf 25499521_3LAB3 FSM 2.v Here are the files, the first one is in notepad and should be the template to use, the second is just a Pdf of a lecture guidance and the third is a PDF of the Lab itself. Let me know if it is clear now, thank you. 25499529_1LAB3 FSM 2first.txt 25499529_2Lecture-9 FSM1.pdf 25499544_3EEE 333 lab3 V6.pdf This is just a lecture on the Lab I don't know if you need it or not, thanks. 25499577_1Lecture-Lab3-FSM3.pdf Last four digit of the last name is "MAHA". For the video it is a youtube video that I can do on my end if I get the code imported from models to Quartus and working, thank you. I am guessing if the code is a Verilog code it should work both in xiling and models! enum logic [left=00: right=11] (state) do this or assign input logic [left=00: right=11] (state) I am using a software "models intel FPGA STARTER EDITION 10.5b" which can be downloaded free. If the expert on his end can download that and check the code, so if I need a future service that will make me come back.

Write a Review

Other Engineering Questions & Answers

  What is engineering and what do engineers do

Write one-page summary on: What is engineering? What do engineers do? How to succeed in engineering

  Determine the value of the forces

Determine the value of the forces Nx, Ny, Nxy, Mx, My, Mxy required to produce a curvature κx = 0.00545 mm-1, κy = -0.00486 mm-1. Neglect small numbers and shear deformation.

  Generally increases in proportion to the degree

QUESTION 1. The type of cost that generally increases in proportion to the degree they are in use is _______ costs.

  Example of a biological organism or process

Identify an example of a biological organism or process that has been used to create fracture resistant materials. Locate a relevant journal article (or articles) and describe the following:

  Calculate the critical do deficit

Calculate if raw sewage is discharged with no treatment, the critical time corresponding to the critical deficit, and the distance downstream of the discharge point at which it occurs.

  Dryer the final temperature of the air

Use the psychometric chart to determine the absolute humidity and humid volume of the entering air, and then use the results to determine the flow rate of dry air (kg/mm) through the dryer the final temperature of the air, and the rate (kg/mm) at ..

  Problem based on simple interest realted issues

Is there a difference in average selling price based on whether the house is on the water front or not?

  Calculate the change in resistance using the approximation

A copper metal wire is used as a strain gauge. The resistivity is 1.68x10-8 ?.m at 20. The length and cross-sectional area of the wire are 5mm and 4*10-4 m2. The material elongates by an amount of 0.2mm in 0.2mm increments until it reaches 6mm in ..

  Determine refractive index and kerr effect and possibly fbg

Simulation of an optical fibre SMF-28 using OPTSIM (RSOFT) software to determine the refractive index and kerr effect and possibly FBG and report

  Challenges in harness big data

Challenges in harness big data and relevant analytic for effective, timely inputs to strategic decision making

  Week on half-wave and full-wave rectifiers

Lab is based on the lab form the previous week on half-wave and full-wave rectifiers and taking that knowledge to build a bridge rectifier.

  How rayleigh scattering occurs in optical fiber cable

how rayleigh scattering occurs in optical fiber cable? explain

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd