2. Basic Gates
Feel free to use your laptop
You are strongly encourage to work with others
When you get stuck, ask those sitting around you for help
Get used to working together in the labs
Peer teaching and peer learning has been empirically shown to be very effective
For these questions, feel free to use a single Digital workspace for all the circuits. However, label each circuit with labelled rectangles. These are components that can be found under Components -> Misc. -> Decoration -> Rectangle.
Where possible, each question should have complete tests. The test component can be found under Components -> Misc. -> Test case. Once a test component is placed on the workspace, right click on the component to edit the test data.
Questions may have restrictions on the logic gates that may be used. When restrictions are stated, they only apply to the gates; inputs, outputs, wires, etc. may be still be used.
2.1. Creating Gates with Universal Operators
For these questions, although only a single gate type may be used, feel free to use as many copies of these gates as needed.
2.1.1. NAND
Using only
NAND
, create a circuit that performsNAND
This circuit is intentionally trivial
Using only
NAND
, create a circuit that performsNOT
Using only
NAND
andNOT
, performAND
Using only
NAND
andNOT
, performOR
Using only
NAND
andNOT
, performNOR
2.1.2. NOR
Using only
NOR
, create a circuit that performsNOR
This circuit is intentionally trivial
Using only
NOR
, create a circuit that performsNOT
Using only
NOR
andNOT
, performOR
Using only
NOR
andNOT
, performAND
Using only
NOR
andNOT
, performNAND
2.2. From Truth Tables
For these questions, first create the truth table if one is not already provided.
Using at least one
NOT
, create a circuit that performs the following\(A\)
\(O\)
0
0
1
1
Using only
OR
andNOT
, create a circuit that always outputs1
, regardless of the inputDo not use a voltage source or a ground component
\(A\)
\(O\)
0
1
1
1
Using only
AND
andNOT
, create a circuit that always outputs0
, regardless of the inputDo not use a voltage source or a ground component
\(A\)
\(O\)
0
0
1
0
Using only
AND
,OR
, andNOT
, create a circuit that performsXOR
Using only a single
AND
and a singleOR
, create a circuit that performs \((a \lor b) \land (a \lor c)\)Using only a single
AND
and a singleOR
, create a circuit that performs the followingThis circuit must have two inputs connected
Here, the
X
signifies that the state of \(B\) does not matterIn other words, the circuit should function as described, regardless of the state of \(B\)
\(A\)
\(B\)
\(O\)
0
X
0
1
X
1
Complete the following truth table and implement the functionality using only
AND
,OR
, andNOT
\(a\)
\(b\)
\(\lnot b\)
\(a \land b\)
\(a \land \lnot b\)
\(\lnot(a \land b)\)
\(\lnot(a \land b) \lor (a \land \lnot b)\)