For this assignment you must implement a simple simulation of an elevator. The elevator has two inputs. Input 1 (C) represents the Current floor (0-7). Input 2 (D) represents the Destination floor to move to (0-7). The elevator is only allowed to stop on Floors 1, 2, 3, 5, and 7. Floors 0, 4 and 6 are private and the elevator will not stop there even if the button for that floor is pressed. The elevator movement is successful if C = 1, 2, 3, 5, or 7, D = 1, 2, 3, 5, or 7, and C ≠ D. Any other values will result in an elevator movement error and the elevator will not move.

Example 1: The current floor (C) is 2 and the floor we want to move to (D) is 5. In this case the move to floor 5 is successful.

Example 2: The current floor (C) is 2 and the floor we want to move to (D) is 4. In this case D is 4 (a private floor) and there is an elevator movement error. The elevator does not move.

Example 3: The current floor (C) is 4 and the floor we want to move to (S) is 2. In this case the starting floor is 4 (a private floor) and there is an elevator movement error.

The elevator does not move Note: These are just a couple of examples. There are (many) more cases that result in successful or unsuccessful elevator moves. Your circuit must correctly show a successful or unsuccessful elevator move for each possible case. The Current floor (C) will be represented by three inputs (3 bits). The three C inputs are named as C1, C2, and C3.

Part A Only (35 marks): The implementation for this part must use only the three basic logic gates (AND, OR, NOT) with maximum 2 inputs. You are required to implement a circuit where the user (you) can input a value for the Current floor (C) using value (C1, C2, and C3) and a Destination floor to move to (D) using value (D1, D2, and D3) and the circuit decodes the C1, C2, C3 and D1, D2, D3 values using a decoder (see lecture notes) made up of only the permitted logic gates to determine if the requirement for moving in the requirements section on page 4 is met. The output will be a single LED labelled Successful which is lit if C = 1, 2, 3, 5, or 7, D = 1, 2, 3, 5, or 7, and C ≠ D. The LED is not lit for any other values of C and D.