Prepare a clock divider module to divide the master clock

Assignment Help Other Engineering
Reference no: EM131285201

Project - Simple Vending Machine FSM

Objective

The objective of this project is to implement, in VHDL, a Finite State Machine, using the main clock of the Digilent Board to drive the state machine. The finite state machine will control a vending machine to dispense soda cans that are worth 50¢. Since this project will require several modules, consider using a mixed schematic/VHDL design, where you can use a schematic as the top level module, and have each sub-module defined in VHDL.

The vending machine has three inputs:

QUARTER: a signal that goes high and then low when a quarter has been deposited
CLOCK: a clock that will drive the FSM
RESET: a signal that will reset the FSM to its initial state

The vending machine has two outputs:

COUNT: a signal that goes high when a single quarter has been accepted. This signal should remain high for one clock cycle.
DISPENSE: a signal that goes high when the soda has been dispensed

Part I

Create a clock divider module to divide the master clock (at 50MHz) to a 1Hz clock. You may also need to create a switch debouncer for the QUARTER input to avoid confusing the FSM.

Part 2

Create your state diagram that you will use to implement the FSM VHDL module. The vending machine behaves as follows:

· If the RESET input is asserted, the FSM will go to the initialization state (S_init) immediately. All of the outputs should be zero in this state.

· From the initialization state S_init, the FSM will unconditionally go to the wait state (S_wait)

· From the wait state S_wait, the FSM waits for the QUARTER switch to be activated.

· If QUARTER is asserted, the FSM goes to state S_Q1. In this state, the COUNT output is set to 1, indicating that a quarter has been accepted. The FSM will stay in this state until the QUARTER input is de-asserted. When this occurs, the FSM goes to state S_QW1, then unconditionally to state S_QW2 and the COUNT output is set to 0. The FSM waits for the QUARTER switch to be activated.

· If QUARTER is asserted while the FSM is in S_QW2, then the state machine goes to state S_Q2. In this state, the COUNT output is again set to 1. The FSM will stay in this state until the QUARTER input is de-asserted. When this occurs, the FSM goes to S_QW3, and then unconditionally to state S_dispense, the COUNT output is set to 0, and the DISPENSE output is set to 1.

· From state S_dispense, the FSM unconditionally goes to state S_init.

Your VHDL MUST have two process: a next-state process to determine the change of states, and a output_logic process, to determine the outputs. Please include a state diagram and test bench outputs in your report. Put all VHDL code, including test benches in the appendix.

Reference no: EM131285201

Questions Cloud

What changes should the firm make in its production style : Medfin Accounting Company (MAC) specializes in providing accounting and tax services for medical establishment and professionals. Presently, the company's production method is highly labor-intensive because many of the book keeping tasks are done man..
What is the current gain of the transistor : A transistor has a collector current of 12 mA and a base current of 40 µA. What is the current gain of the transistor? A transistor has a current gain of 260. If the base current is 90 µA, what is the collector current?
Company employs the tqm principles : Find an example of successful TQM implementation. For your examples, explain how the company employs the TQM principles. (Question 6, page 262)
Summary of the manufacturing : Find an example of successful JIT manufacturing. For your chosen examples, provide a brief summary of the manufacturing and explain how they successful use JIT. (Question 4, page 262)
Prepare a clock divider module to divide the master clock : Create a clock divider module to divide the master clock (at 50MHz) to a 1Hz clock. You may also need to create a switch debouncer for the QUARTER input to avoid confusing the FSM.
What is the thermal efficiency of that cycle : evaluate the compression ratio that results in the maximum work output from the cycle. What is the thermal efficiency of that cycle? What effect does the peak pressure have on the result?
How heavily the company should invest in manufacturing : Why a local bank has been losing customers.- How heavily the company should invest in manufacturing and marketing home fax machines.
Uses activity-based costing overhead allocation system : X Company uses an activity-based costing overhead allocation system. It has identified three activities - Setup, Purchasing, Packaging - and their respective cost drivers - setup hours, purchase orders, packages. The following cost driver information..
Fundamentals of human resource management : In Chapter 11 of Fundamentals of Human Resource Management, the text discusses the process people often go through as dissatisfaction sours their commitment to the organization or their job. For this discussion, choose one of these options as a re..

Reviews

Write a Review

Other Engineering Questions & Answers

  What is the distance between m and p in km

Four branches of a company are located at M,N,O, and P. M is north of N at a distance of 4 km; P is south of O at a distance of 2 km; N is southeast of O by 1 km. What is the distance between M and P in km?

  The complete expression for the lowest-order tem

The complete expression for the lowest-order TEMo.o mode can be obtained by solving the paraxial wave equation.

  Find the frequencies of the two poles in radians per second

With CC connected, find ωP2. Then find the value of CC that will result in a unity-gain frequency ωt at least two octaves below ωP2. For this value of CC, find ωP1 and Ωz and sketch a Bode plot for the gain magnitude.

  Implement a traffic light controller

Implement a traffic light controller on the DSX Experimenter Module Seven Segment Displays

  Determine the porosity of the soil

When sub merged in the oil the saturated sample displaces 137,100 nun3 of oil. Determine the porosity of the soil.

  Search the internet for a lm datasheet

Search the Internet for a LM741 datasheet. texas Instruments can be a good source. Answer the following questions:

  Common-mode signal and cmrr related issues

Discuss what is meant by "CMRR" and whether it should be a large or small number.

  What is a phasor measurement unit in electric power systems

What is a flexible ac transmission systems (FACTS) device? One example of a FACTS device is a static synchronous compensator and what is a phasor measurement unit (PMU) in electric power systems?

  Draw a gate diagram implementing the sop using nand gates

For the function F(w, x, y, z) = Σ(0, 1, 4, 5, 7, 10, 11, 13, 14, 15), Simplify the function using a K-map to form a sum of products. Draw a gate diagram implementing the SOP using NAND gates

  Conduct traffic impact assessment for a proposed development

Conduct a Traffic Impact Assessment for a proposed development as shown in the following figures, located on North Creek Road with frontage to Henderson Lane and Hutley Drive, Lennox Head.

  How many channels can be used to send data

An E1 is the European version of our T1. An E1 frame has 32 channels. The first channel is channel 0. All 8 bits of channel 0 are used for framing. Channels 1 to 15 are used for data or voice and no bit robbing is used or needed.

  Natural resourse managemnt the topic will be fresh water

the topic will be fresh water and i need the assignment to b highly proffesional.all the details attatched in

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