1007ICT - Snack Vending Machine Circuit Using Basic Logic Assignment

Download Solution Order New Solution

Assignment Task

Description

For this assignment, you are required to implement a simple simulation of a snack/vending machine. The snack machine is a 8x8 grid where the left to right diagonal is reserved for the claw to retrieve snacks. Snacks are selected by inputting a top (T) and left Snacks that are missing are tagged with an “X”.

The snack machine has two inputs:

  • Input 1 (T) represents the Top number (0-7).
  • Input 2 (L) represents the Left number (0-7).

Requirements

The snack machine can only vend where there are snacks (across locations 2, 3, 5, and 6). Snack slots 1, 4 and 7 are currently empty and the venting machine will not work if these locations are selected. The snack machine will vend if L = 0, 2, 3, 5, or 6, T = 0, 2, 3, 5, or 6, and L ≠ T. Any other combination of L and T values will result in a vending error and no snack will be vended.

Part A:

The implementation for this part must use only the three basic logic gates

  • Each AND gate and each OR gate can have only 2 inputs.
  • Each NOT gate can have only 1 input.
  • No other logic gates or circuits are permitted to be used in your circuit for Part

You are required to implement a circuit where the user (you) can input a value for the Left number (L) using value (L1, L2, and L3) and a Top number (T) using value (T1, T2, and T3).

The circuit decodes the L1, L2, L3 and T1, T2, T3 values using a decoder (see lecture notes) made up of only the permitted logic gates to determine if the requirements for vending a snack are met (see the requirements section on page 2).

L value

L1

L2

L3

 

T value

T1

T2

T3

0

0

0

0

0

0

0

0

1

0

0

1

1

0

0

1

2

0

1

0

2

0

1

0

3

0

1

1

3

0

1

1

4

1

0

0

4

1

0

0

5

1

0

1

5

1

0

1

6

1

1

0

6

1

1

0

7

1

1

1

7

1

1

1

The output is via a single output pin (green circle in Logisim):

Part B

For this part, the snack machine has an alert mechanism that notifies the vending machine company if a certain number (N) of unsuccessful vending errors happen. People are pushing the wrong numbers – either requesting lots of missing snacks (maybe the most popular snacks are missing) or straining the claw by requesting the locations the claw is using.

A vend error is when the snack machine tries to vend from an empty snack slot, or if the vending input is in the same space as the claw (e.g., L=3, T=3). The number N ranges from 1 to 7 and must be set via a combination of three separate inputs: N1, N2, and N3. An N value of 0 is not allowed and you need to set N to be non-zero (1..7) before setting the numbers for L and T. Note: In Logisim, you can combine the 3 inputs for into a single 3 bit input.

Using the same circuit file containing Part A, add additional circuitry to count how many successful and unsuccessful venting actions have been made. Each time a successful vending action is made, add 1 to the number of successful vending actions. Each time an unsuccessful vending action is made, add 1 to the number of unsuccessful vending actions.

Vending Error shutdown (Vending machine no longer works):

If the number of unsuccessful vending actions is equal to N, then an LED labelled “Vending shutdown” is lit, and the circuit is permanently locked. No matter the changes to the input after this happens, the “Vending shutdown” LED will remain lit and cannot be turned off.

This It Computer Science have been solved by our PhD Experts at My Uni Paper. Our Assignment Writing Experts are efficient in providing a fresh solution to this question. We are serving more than 10000+ Students in Australia, the UK, and the US by helping them to score HD in their academics. Our Experts are well-trained to follow all marking rubrics and referencing styles.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.