Verilog Vending Machine
![Picture](/uploads/1/2/4/1/12419750/9977370.jpg?374)
There are many applications for controller circuits, and one of them is a vending machine control. This design is a sequential logic circuit that may be used to control the operation of a drink vending machine.
Inputs
Clk – Use the board clock generator MCLK and adjust the frequency to be greater than 60HZ so that we can see a stable display without any flickering.
Enter – It signifies that information is available from the input device or from the output device. Use BTN1.
A, B and C – Coin, paper money, and flavor selection inputs described in Table 1. Use SW1, SW2 and SW3 respectively.
Outputs
X, Y and Z – Action taken outputs described in Table 1. Use LED1, LED2 and LED3.
2 x 7-Segment Display – To display the change being returned.
The controller will communicate with the input devices that receive the coins and paper money and also the output devices that dispense the drinks and change, by the use of codes described in the table given below.
Inputs
Clk – Use the board clock generator MCLK and adjust the frequency to be greater than 60HZ so that we can see a stable display without any flickering.
Enter – It signifies that information is available from the input device or from the output device. Use BTN1.
A, B and C – Coin, paper money, and flavor selection inputs described in Table 1. Use SW1, SW2 and SW3 respectively.
Outputs
X, Y and Z – Action taken outputs described in Table 1. Use LED1, LED2 and LED3.
2 x 7-Segment Display – To display the change being returned.
The controller will communicate with the input devices that receive the coins and paper money and also the output devices that dispense the drinks and change, by the use of codes described in the table given below.
This table can be used to interpret the input and the output of the device:
Here is the Project file and the lab report for more information.
![]()
|
![]()
|
![]()
|
![]()
|