Record in Table 1 the results for test combinations you...

This preview shows page 1 - 4 out of 15 pages.

Be sure to attach your Lab Data Sheets! EEE/CSE 120 Hardware Lab 4 Answer Sheet Vending Machine Controller Design Name:__________________________ Instructor and Class Time:________________________ Date:________________________ Task 4-1: Create Your Design Specification List all inputs, outputs and states for your design here: Reset Nickels Dimes Design controller Money Return Quarters Vend Sample Sum Price Describe how your controller should respond to each of its inputs. Nickels, Dimes, Quarters: Inputs that the machine accepts. Price: This is the comparator to compare with the inputs from the customer. If price equals machine and customer input, the machine will vend. Reset: Brings machine back to the 1 st state on diagram. Sample Sum: the pulse when a coin is inserted. Coin Return: If customer chooses to opt out of the money that was inserted. 1
Task 4-2: Simulate the Adder Hardware Circuit Cut and paste here your LogicWorks™ adder circuit created for this task. Test your circuit. Do you need to test that the sum output works correctly when two or three of the coin-sensor input lines are active simultaneously? yes Explain your answer: I need to ensure that if the customer didn’t input enough change in the machine will prompt for more; likewise, if there is an excess amount of change given. The table below will determine the logic is working correctly. 2
Record in Table 1 the results for test combinations you choose. Table 1 Quarter Dime Nickel Tally 3 Tally 2 Tally 1 Tally 0 Output 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 0 1 0 1 0 1 1 What is the maximum amount of money that your adder’s output can indicate? $1 Will the adder’s output be sufficient to represent our revised ultimate price ($0.75) plus some overage due to excess deposits? yes Task 4-3: Simulate the Adder with Output Register & Clear-Tally Hardware Cut and paste your LogicWorks™ adder circuit with output register here: 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture