# Lab 2 (Part 2) - Exercise 10
## Question
1. Realize NOT, AND & OR gates only using 2 input NAND gate(s)?
## Solution
### Truth Table of 1 input NOT gate - `Y = A'`
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
### Truth Table of 2 input AND gate - `Y = A.B`
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
### Truth Table of 2 input OR gate - `Y = A+B`
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
led1:A
led1:C
gnd1:GND
vcc1:VCC
sw1:1
sw1:2
sw1:3
nand1:A
nand1:B
nand1:OUT
vcc2:VCC
led2:A
led2:C
gnd2:GND
nand2:A
nand2:B
nand2:OUT
nand3:A
nand3:B
nand3:OUT
sw2:1
sw2:2
sw2:3
sw3:1
sw3:2
sw3:3
vcc3:VCC
led3:A
led3:C
gnd3:GND
nand4:A
nand4:B
nand4:OUT
nand5:A
nand5:B
nand5:OUT
nand6:A
nand6:B
nand6:OUT
sw4:1
sw4:2
sw4:3
sw5:1
sw5:2
sw5:3