AhmetNSHN / VHDL_Vending_Machine

Cola vending machine design written with VHDL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VHDL_Vending_Machine

Cola vending machine design written with VHDL

Diagram

D1 = 1$ D2 = 2$ D5 = 5$

There are two output signals; give_can, give_change. Machine give can if give_can is equal to 1 and give change if give_change is equal to 1. Machine Have 4 States(Moore Machine): insert_coin: machine will remain in this state if there is no coin.when we inset 1$ it change state to insert_again and wait for another coin. If client insert 2$ state become “givecan" which change give_can signal to 1. If we insert 5$ state become givechange. Insert_again:If machine is in this state it means client didn’t put enough coin to get can.If client insert 1$ state become givecan, if he insert 2$ or 5$ state become givechange. givecan: this state change give_can signal to 1. Always turn back to insert_coin state. givechange: Macine choose this state if more than 2$ accumulated in it. give_can and give_change signals become 1 in this state. Always turn back to insert_coin state.

signal

About

Cola vending machine design written with VHDL


Languages

Language:VHDL 100.0%