
You can think of a transistor as a "switch" with states "on" and "off"
## Digital Logic
- Learning about electricity, capacitors, resistors, is beyond the scope of this course
-
For now, it is useful to abstract away the details of electrical engineering
-
We will think about circuits in terms of 0s and 1s going through the wires of a circuit
## Input/Output as Voltages
- The 0s and 1s of our circuits will be "low" and "high" voltages across a wire, similar to a light bulb being "on" and "off"

## Logic Gates
- A **logic gate** is an elementary circuit that takes one or more bits as input and produces one or more bits as output
-
Many of these logic gates can be constructed with one or two transistors
## Name that Gate

---
-
An **AND** gate
## Name that Gate

---
-
An **OR** gate (inclusive OR)
## Name that Gate

---
-
A **NOT** gate
## Name that Gate

---
-
A **NAND** gate
## Name that Gate

---
-
A **NOR** gate
## Name that Gate

---
-
An **XOR** gate (exclusive OR)
### What is the truth table for the following circuit?
---