Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/** - The chip accepts a 3-digit code as input along with the name of the person who is trying to enter the house. -

/** - The chip accepts a 3-digit code as input along with the name of the person who is trying to enter the house. - Each family member has a unique 3-digit 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 a unique identity 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 - If the code and the selected person are incorrect, the chip will not unlock the door. - If the code is correct, but the selected person is incorrect, the chip will not unlock the door. - If the code is correct and the selected person is correct, the chip will unlock the door. - Check the AggiePass.cmp file for the correct outputs - Check the Faulty.cmp file for the current faulty outputs **/ /** Bug 1: - What is it and how you found it? (1 - 2 sentences): Bug 2: - What is it and how you found it? (1 - 2 sentences): **/ CHIP AggiePass { IN a, b, c, i[2]; OUT unlock; PARTS: // Inverted inputs for convenience Not(in=a, out=notA); Not(in=b, out=notB); Not(in=c, out=notC); Not(in=i[0], out=notI0); Not(in=i[1], out=notI1); // Implementation, there are two bugs here. Feel free to modify, delete, add HDL codes as necessary. And5Way(a=notA, b=b, c=c,d=notI0, e=notI1, out=and1); And5Way(a=notA, b=b, c=notC,d=notI1, e=i[0], out=and2); And5Way(a=a, b=notB, c=c, d=notI1, e=notI0, out=and3); And5Way(a=a, b=b, c=notC, d=i[1], e=notI0, out=and4); Or3Way(a=and1, b=and2, c=and3, out=or1); Or(a=or1, b=and4, out=unlock); }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions