Finished importing notes
BIN
content/notes/ready/logic_gates/image42.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
content/notes/ready/logic_gates/image43.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
content/notes/ready/logic_gates/image44.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
content/notes/ready/logic_gates/image45.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
content/notes/ready/logic_gates/image46.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
content/notes/ready/logic_gates/image47.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
content/notes/ready/logic_gates/image48.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
content/notes/ready/logic_gates/image49.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
content/notes/ready/logic_gates/image50.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
content/notes/ready/logic_gates/image51.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
content/notes/ready/logic_gates/image52.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
content/notes/ready/logic_gates/image53.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
123
content/notes/ready/logic_gates/index.md
Normal file
@@ -0,0 +1,123 @@
|
||||
---
|
||||
title: Logic Gates
|
||||
description:
|
||||
date: 2025-02-17T08:25:49+00:00
|
||||
draft: false
|
||||
tags:
|
||||
- electronics
|
||||
- computer-science
|
||||
author: TrudeEH
|
||||
showToc: true
|
||||
---
|
||||
|
||||
## NOT
|
||||
|
||||
Invert the input.
|
||||
![[image42.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|**Input**|**Output**|
|
||||
|---|---|
|
||||
|0|1|
|
||||
|1|0|
|
||||
|
||||
## AND
|
||||
|
||||
Output `1` only when both inputs are `1`.
|
||||
![[image43.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|0|
|
||||
|0|1|0|
|
||||
|1|0|0|
|
||||
|1|1|1|
|
||||
|
||||
## OR
|
||||
|
||||
Output `1` if at least one input is `1`.
|
||||
![[image44.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|0|
|
||||
|0|1|1|
|
||||
|1|0|1|
|
||||
|1|1|1|
|
||||
|
||||
## NAND
|
||||
|
||||
An `AND` gate followed by a `NOT` gate.
|
||||
![[image45.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|1|
|
||||
|0|1|1|
|
||||
|1|0|1|
|
||||
|1|1|0|
|
||||
|
||||
## NOR
|
||||
|
||||
An `OR` gate followed by a `NOT` gate.
|
||||
![[image46.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|1|
|
||||
|0|1|0|
|
||||
|1|0|0|
|
||||
|1|1|0|
|
||||
|
||||
## XOR
|
||||
|
||||
Either input is `1`, exclusively.
|
||||
![[image47.png]]
|
||||
![[image48.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|0|
|
||||
|0|1|1|
|
||||
|1|0|1|
|
||||
|1|1|0|
|
||||
|
||||
## XNOR
|
||||
|
||||
Inverted `XOR`.
|
||||
![[image49.png]]
|
||||
|
||||
### Truth Table
|
||||
|
||||
|A|**B**|**Output**|
|
||||
|---|---|---|
|
||||
|0|0|1|
|
||||
|0|1|0|
|
||||
|1|0|0|
|
||||
|1|1|1|
|
||||
|
||||
## Implementation Examples
|
||||
|
||||
### NOT
|
||||
|
||||
![[image50.png]]
|
||||
|
||||
### AND
|
||||
|
||||
![[image51.png]]
|
||||
![[image52.png]]
|
||||
|
||||
### OR
|
||||
|
||||
![[image53.png]]
|
||||