The machine also supports a cancel feature means that the person can withdraw the request and the money will be returned back to the user. The user will get a bill of total number of products delivered with total price. This machine can be used at various places like Hotels, Restaurants and food streets. This reduces the time and cost.
Figure 2.10 One Hot Vending Machine
2.11 OPERATION OF VENDING MACHINE:
I. When the user puts in money, money counter tells the control unit, the amount of money inserted in the Vending Machine.
II. When the user presses the button to purchase the item that he wants, the control unit turns on the motor and dispenses the product if correct amount is inserted.
III. If there is any change, machine will return it to the user.
IV. The machine will demand for servicing when the products are not available inside the machine.
Figure 2.11 : FSM Next and Present State …show more content…
• When initialize=>
• money_count=0;
• Change=0;
• Product=0;
• When select1=>Sel1&!sel2&!sel3
When product_available=1=> nx_st1 nx_st1
When rs_1&!rs_2=> nx_st1 nx_st1=3nx_st1
Rs_1=1 & rs_2=0; Change=0; Product=0;
Money_count=money_count+11;
CHAPTER 3
INTRODUCTION TO VERILOG
In the semiconductor and electronic design industry, Verilog is a hardware description language (HDL) used to model electronic systems. Verilog HDL, not to be confused with VHDL (a competing language), is most commonly used in the design, verification, and implementation of digital logic chips at the register-transfer level of abstraction. It is also used in the verification of analog and mixed-signal circuits.
3.1 overview
Hardware description languages such as Verilog differ from software programming languages because they include ways of describing the propagation of time and signal dependencies (sensitivity). There are two assignment operators, a blocking assignment (=), and a non-blocking (); $finish; end endmodule Ex2: A simple example of two flip-flops follows: module toplevel(clock,reset);