Your Cart
Loading

CSCE-312 | Skill Assessment 1 Combinational Logic and Computer Arithmetic Problems

On Sale
$25.00
$25.00
Added to cart


This assessment consists of two problems, each of varying difficulty. There are 10 points total divided among the problems. Please read the instructions and the starter code thoroughly before attempting to solve a problem. Partial or complete test scripts are included with each problem.


Problem A [4 points]


Task


An Aggie is creating a security chip for his house. The specifications of the chip are given below:


  • The chip accepts a 3-digit security code as input along with the identity (ID) code of the person who is trying to enter the house.


  • Each family member receives their personalized, unique 3-digit security code:


  • Son: a=0, b=1, c=1


  • Mom: a=1, b=0, c=0


  • Dad: a=1, b=1, c=0


  • Each family member also has their unique ID code (MSB i[1] is the first bit, LSB i[0] is the second bit):


  • Son = 00


  • Mom = 01


  • Dad = 10


  • 11 is an illegal state and will not be tested.


  • When either an incorrect security code is entered OR the entered ID code does not match that of the selected person, the chip will not unlock the door.


  • If the security code is correct AND the ID code of the selected person is correct, the chip will unlock the door.


The dad tested the chip, but the results were not satisfactory (refer to the bottom table on Page 4).


Specifically, the following issues were noted:


  1. The chip unlocks in 4 cases instead of 3 cases.


  1. Three cases are found to be implemented incorrectly.


Could you help this fellow Aggie fix his chip and secure the house? Your goal is to find and fix the two bugs that cause the faulty behaviors above. The order of the bugs discovered and fixed is not important. No need to worry about test cases beyond the provided ones.













Schematic





Note: The above schematic diagram details the faulty circuit

Example Test Cases


Expected outputs of the chip:


a

b

c

i[1]

i[0]

unlock

0

1

1

0

0

1

1

0

0

0

1

1

1

1

0

1

0

1

0

0

0

1

0

0

0

1

0

0

1

0

1

0

1

0

0

0

1

1

0

0

1

0

1

1

1

1

0

0

Actual outputs of the implemented chip:

a

b

c

i[1]

i[0]

unlock

0

1

1

0

0

1

1

0

0

0

1

0

1

1

0

1

0

1

0

0

0

1

0

0

0

1

0

0

1

1

1

0

1

0

0

1

1

1

0

0

1

0

1

1

1

1

0

0














4

Problem B [6 points]


Task


You talked to NVIDIA, a major graphics card company, during the SEC Career Fair and got an Online Assessment (OA) from their recruiter. The OA wants you to design a 3-input Majority Chip and verify that your design works as intended. The specifications of the chip are given below:


  • Name: Majority


  • Description: The 3-input chip outputs 1 if 1 is the majority bit in the input, and 0 otherwise.


  • Expected outputs: Given in the Test Cases table shown below.


  • Limitations: Implementation is limited to 7 or fewer total number of gates, using only the


built-in gates from the following catalog: AND, OR, NOT, NAND, NOR.


  • Provided files: Majority.hdl (incomplete), Majority.cmp (completed), Majority.tst (completed)


Your goal is to complete the Majority.hdl file and run the design through the given .cmp and .tst file to ensure its correctness. The successful completion of this OA will allow you to enter the in-person interview round at NVIDIA’s headquarters in Santa Clara, CA along with a private meeting with the company’s CEO, Jensen Huang.


Rubric


Component

Points

Design compiles without error (correct HDL syntax)

0.5

Only built-in gates

0.5

No more than 7 gates

1

Chip working as intended (passing all test cases)

4

Total

6

Test Cases


a

b

c

out

0

0

0

0

0

0

1

0

0

1

0

0

0

1

1

1

1

0

0

0

1

0

1

1

1

1

0

1

1

1

1

1









5


You will get a ZIP (5KB) file