Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 2: The vending machine controller. Using previous knowledge of sequential circuits, you will now construct a vending machine controller according to the following specification.

image text in transcribed

Part 2: The vending machine controller. Using previous knowledge of sequential circuits, you will now construct a vending machine controller according to the following specification. The circuit has four inputs: clk, quarter, loonie, and toonie. The controller also has two outputs: change and dispense. Change is a 3-bit bus which outputs a binary number indicating the number of quarters to dispense. Dispense is a single on/off wire. clk dispense quarter change Vending machine loonie Controller toonie Every time a coin is inserted, there is a clock pulse to go along with it. Every time the coin is inserted, the controller must decide how much (if any) change to dispense, and whether or not to dispense the item. You must implement the controller based on the following properties: 1. 2. 3. The item (and change, if any) is dispensed when $1 is inserted into the machine. The change output outputs a binary number indicating the number of quarters to dispense. The dispense and change signals are set to 1 on the same clock tick that the amount is met. In the lecture, you designed sequential circuits using 6 steps from specification to minimizing the circuit. In Verilog however, you need to mainly focus on the specification and the state transition diagram. The rest of the circuit design is done with high-level Verilog statements. The skeleton code for the vending machine is provided here: Please save this file as vending.sv https://www.edaplayground.com//2at

Step by Step Solution

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

Students also viewed these Databases questions

Question

Discuss communication challenges in a global environment.

Answered: 1 week ago