CPSC 121 Pre Lab 2
Pre Lab 2
Instructions:
1. Do not change the questions and document that is given. Simply add solutions by editing
this document, using the soln environment we provided as follows:
Your soluti
...
CPSC 121 Pre Lab 2
Pre Lab 2
Instructions:
1. Do not change the questions and document that is given. Simply add solutions by editing
this document, using the soln environment we provided as follows:
Your solution will then appear in blue, and be easier to differentiate from the rest of the
document.
2. If you need more space, add a page between the existing pages using the \newpage command.
3. Export the completed assignment as a PDF file for upload to gradescope.
CPSC 121 Pre Lab 2
There are three pre-lab questions to prepare you for the upcoming lab. In this lab, your
TA will assign you with two mystery ICs. An integrated circuit (IC) is a manufactured
electronic circuit and in the 121 labs, this will refer to the black chips that you have already
seen in lab 1 - they are the subcircuits that you can see on the left side of your Logisim
window. The labels on both mystery ICs will be covered. One of these chips is a hex
inverter, a chip with six inverters. The other is one of: a quad 2-input NAND gate, a quad
2-input AND gate, a quad 2-input OR gate, or a quad 2-input XOR gate. Your job is to
(Optional Reading) The physical probe: For a physical Magic Box we’d work with
in the lab, this is how the probe output works. The probe input pin is in line with, and to
the left of the clock outputs, and is connected to the red LED directly above it. The probe
is on when the top half of the leftmost switch is down. An unused probe will blink. It will
also blink if connected to an input that is not connected to anything. This is a common
error, and the probe will help you quickly identify it. The probe will otherwise output the
value of any input or output that it connects to. (The probe is detailed in Appendix B and
Section 2.1 in The Magic Box User’s Manual).
2
CPSC 121 Pre Lab 2
1. [1.00 marks] Using the probe, how will you determine which of the two chips is the hex
inverter?
(a) Sketch your wiring plan. Provide enough details so that your TAs could implement the
plan just by looking at your diagram.
(b) Write down the steps you’ll take.
Hint: This simple example wiring diagram that might be useful:
3
CPSC 121 Pre Lab 2
2. [0.50 marks] Once you’ve done that, how will you determine which “quad” chip you
have? Again, sketch your wiring plan with sufficient details and write down your steps.
4
CPSC 121 Pre Lab 2
3. [0.50 marks] Why didn’t we include the quad 2-input NOR gate as one of the possible
“quad” chips?
[Show More]