Question: The skeleton code is at https://www.edaplayground.com/x/2at_ 3.2 Lab Task 2: Vending Machine Using previous knowledge of sequential circuits, you will now construct a vending machine

The skeleton code is at https://www.edaplayground.com/x/2at_
3.2 Lab Task 2: Vending Machine Using previous knowledge of sequential circuits, you will now construct a vending machine controller according to the following specifications. 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. You must implement the controller based on the following properties. The skeleton code is available here at https://www.edaplayground.com/x/2at. Name vour file as task2.sv 1. The item (and change, if any) is dispensed when S1 is inserted into the machine. 2. Change outputs a binary number indicating the number of quarters to dispense. 3. The dispense and change signals are set to 1 on the same clock tick that the amount is met Note: 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 clk dispense quarter Vending Machine Controller loonie 3-wire bus toonie change Figure 1: Vending Machine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
