exam2a_sol

# Inputs output a b c z 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1

• Notes
• 9

This preview shows page 6 - 9 out of 9 pages.

Inputs Output A B C Z 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1

Subscribe to view the full document.

7 Problem 7 (3 points) The figure below shows a block diagram of the Von Neumann model. List the steps in writing a value x0002 to a location x3010 in the memory. Your steps should mention the MAR and MDR where applicable. 1) _Write the data x0002 to MDR ______________________________________ 2) _Write the address x3010 into the MAR _______________________________ 3) _Send a “write” signal to the memory _________________________________
8 Problem 8 (4 points) A Vending machine delivers a package of gum after 15 cents are deposited. It has a single coin slot which accepts only dimes (10 cents) or nickels (5 cents). (No other types of coins are accepted). The vending machine does not return back changes. I. Draw the finite state machine diagram for the vending machine. The machine takes one input every clock cycle which can be N, D or reset. The machine outputs a 1 when it opens to deliver a gum package, otherwise it outputs a 0. II. How many flip-flops (storage elements) will be needed to implement this finite state machine designed in your answer to part I?

Subscribe to view the full document.

{[ snackBarMessage ]}

###### "Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern