0% found this document useful (0 votes)
41 views2 pages

Digital Design Exam: Vending Machine

This document describes an examination for a digital design course. It provides instructions for the exam, stating it is open book and notes, to write answers in the spaces provided and can use the back of the pages. It describes the exam will consist of designing a digital controller for a vending machine through a state diagram, truth table, VHDL module, and simulation each worth 25 points for a total of 100 points. It then provides a description of the features and components of the vending machine the digital controller needs to control.

Uploaded by

Baco Coronel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

Digital Design Exam: Vending Machine

This document describes an examination for a digital design course. It provides instructions for the exam, stating it is open book and notes, to write answers in the spaces provided and can use the back of the pages. It describes the exam will consist of designing a digital controller for a vending machine through a state diagram, truth table, VHDL module, and simulation each worth 25 points for a total of 100 points. It then provides a description of the features and components of the vending machine the digital controller needs to control.

Uploaded by

Baco Coronel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

E2C6A1/330799 NAME:

Digital Design 2/25/2019

Examination # 3
Write your name at the top of this page now

This examination is OPEN BOOK and OPEN NOTES.

Write all your answers on the examination in the space provided. You may use the back of the
examination for extra space. Partial credit will be given, but you must justify your work. If you do
not understand a question, ask. It will be to your advantage to read the entire examination before
beginning to work.

The examination will end exactly 72 hours after it begins. Good luck.

State Diagram: /25

True table: /25

VHDL module: /25

Simulation: /25

Total: /100

Designing a Vending Machine

Design a digital controller for the vending machine shown in Fig.

The vending machine has the following features (textual description):

- The vending machine sells just one type of product, and each product costs $0.25;
- Only $0.25 coins are accepted;
- A valid $0.25 coin weights 5.670 g;
- Invalid coins are rejected automatically, and the control circuit does not need to do anything
about that;
- There is a slot to insert 50.25 coins in the vending machine;
- There is a coin detection circuit that outputs '1' every time a $0.25 coin is inserted in the slot,
or '0' otherwise;
- There is a digital scale that outputs ‘1’ when a weight of 5.670 g (or more) is detected;
- There is a “delivery button” that outputs ‘1’ every time it is pushed;
- There is a “coin return button” that outputs ‘1’ every time it is pushed;
- There is a “coin return cup” to collect coins ejected by the “coin return button” (and also
rejected coins);
- There is a door where the user can collect their product, after have pushed the “delivery
button”;
- When the vending machine runs out of products, it shuts itself, and the control circuit does not
need to do anything about that.

Signature: __________________________________

You might also like