Migrating notes from Notion - Initial stage

This commit is contained in:
2025-02-14 16:56:31 +00:00
parent 8e3b07730b
commit 2c6d0e104d
167 changed files with 39800 additions and 1 deletions

View File

@@ -0,0 +1,125 @@
---
Status: Ready
Created by: Trude EH
tags:
- computer-science
- electronics
- notes
author: TrudeEH
draft: false
searchHidden: false
showToc: true
title: Logic Gates
---
## 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]]