Please written by computer source Create a vending machine controller in Verilog(using Xilinx vivado) and create a testbench to validate its operation. The controller will have three inputs. Each of these three inputs will indicate to the controller what coins are being inserted (name them: quarterin, dimein, nicklein). One input will signal that a quarter was inserted by toggling from the default “low” state to high (active high) for a duration of one clock cycle. The other two inputs will do the same but for dimes and nickels. The vending machine controller will also have three additional inputs that are used to indicate the beverage selected by the user (name them: indrink1, indrink2, indrink3). These inputs will be active high for a duration of one clock cycle. The beverage costs will be $1.00, $1.10, and $1.20 for drink1, drink2, and drink3 respectively. The vending machine controller must have three outputs to indicate to the change dispenser how much change it needs to provide. Similar to the coin input logic, the vending machine controller must provide a sequence of active high pulses to the change dispenser indicating what coins must be released (name them: quarterout, dimeout, nickleout). The vending machine controller must have three additional outputs used to dispense one of the three beverages selected if enough coins were inserted into the machine (name them: outdrink1, outdrink2, outdrink3). These outputs must also be active high for a duration of one clock cycle.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please written by computer source

Create a vending machine controller in Verilog(using Xilinx vivado) and create a testbench to validate its operation. The controller will have three inputs. Each of these three inputs will indicate to the controller what coins are being inserted (name them: quarterin, dimein, nicklein). One input will signal that a quarter was inserted by toggling from the default “low” state to high (active high) for a duration of one clock cycle. The other two inputs will do the same but for dimes and nickels.

The vending machine controller will also have three additional inputs that are used to indicate the beverage selected by the user (name them: indrink1, indrink2, indrink3). These inputs will be active high for a duration of one clock cycle. The beverage costs will be $1.00, $1.10, and $1.20 for drink1, drink2, and drink3 respectively.

The vending machine controller must have three outputs to indicate to the change dispenser how much change it needs to provide. Similar to the coin input logic, the vending machine controller must provide a sequence of active high pulses to the change dispenser indicating what coins must be released (name them: quarterout, dimeout, nickleout).

The vending machine controller must have three additional outputs used to dispense one of the three beverages selected if enough coins were inserted into the machine (name them: outdrink1, outdrink2, outdrink3). These outputs must also be active high for a duration of one clock cycle.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education