Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE write this in VERILOG code. Thank you so much! Laboratorv Procedure 1. The following figure shows a vending machine controller that dispenses beverage bottles

PLEASE write this in VERILOG code. Thank you so much!

image text in transcribed

Laboratorv Procedure 1. The following figure shows a vending machine controller that dispenses beverage bottles at 50 cents per bottle. The encoding of the input signal "Coin (2 bits)" is as shown in table below. Upon receiving a total of 50 cents or more, the controller should return the remaining change (only 5 cents and/or 10 cents) by asserting appropriate signals("Return05" and/or "Return 10%, respectively) for one clock period, and should release one bottle by asserting signal "Bottle" for one clock period Describe the design using VHDL and Verilog. Clock Vending Machine Controller Bottle ResetN Return05 Coin Return 10 Coin Deposited coin0 cents 5 cents 10 cents |25 cents 2. Compile each design using QUARTUS II and target to device EP2C20F484C7 (Cyclone II family) with 484-pin package. Simulate each using the graphic simulator of the QUARTUS II by providing the following sequences: 3. (a)5 cents, 10 cents, 10 cents, 10 cents, 10 cents and 5 cents (total 50 cents) (b)10 cents, 10 cents, 10 cents and 25 cents (total 55 cents) (c)5 cents, 5 cents, 10 cents, 10 cents, 5 cents and 25 cents (total 60 cents) (d)25 cents, 5 cents, 10 cents and 25 cents (total 65 cents) (e)10 cents, 10 cents, 25 cents and 25 cents (total 70 cents) 4. Download each design to the DEl Educational Board, and connect three witches to inputs "ResetN' and "Coin (2 bits)", a pushbutton to "Clock", and three LEDs to outputs "Bottle", "Return05" and "Return10". Test each design by providing all of the above sequences through the 4 switches, and verifying the outputs on the 3 LEDs. Demonstrate your working designs to your instructor. Laboratorv Procedure 1. The following figure shows a vending machine controller that dispenses beverage bottles at 50 cents per bottle. The encoding of the input signal "Coin (2 bits)" is as shown in table below. Upon receiving a total of 50 cents or more, the controller should return the remaining change (only 5 cents and/or 10 cents) by asserting appropriate signals("Return05" and/or "Return 10%, respectively) for one clock period, and should release one bottle by asserting signal "Bottle" for one clock period Describe the design using VHDL and Verilog. Clock Vending Machine Controller Bottle ResetN Return05 Coin Return 10 Coin Deposited coin0 cents 5 cents 10 cents |25 cents 2. Compile each design using QUARTUS II and target to device EP2C20F484C7 (Cyclone II family) with 484-pin package. Simulate each using the graphic simulator of the QUARTUS II by providing the following sequences: 3. (a)5 cents, 10 cents, 10 cents, 10 cents, 10 cents and 5 cents (total 50 cents) (b)10 cents, 10 cents, 10 cents and 25 cents (total 55 cents) (c)5 cents, 5 cents, 10 cents, 10 cents, 5 cents and 25 cents (total 60 cents) (d)25 cents, 5 cents, 10 cents and 25 cents (total 65 cents) (e)10 cents, 10 cents, 25 cents and 25 cents (total 70 cents) 4. Download each design to the DEl Educational Board, and connect three witches to inputs "ResetN' and "Coin (2 bits)", a pushbutton to "Clock", and three LEDs to outputs "Bottle", "Return05" and "Return10". Test each design by providing all of the above sequences through the 4 switches, and verifying the outputs on the 3 LEDs. Demonstrate your working designs to your instructor

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions

Question

4. Who would lead the group?

Answered: 1 week ago