Last Sync: 2022-12-06 07:54:42

This commit is contained in:
tactonbishop 2022-12-06 07:54:42 +00:00
parent 5d44900e70
commit 001d64a579
2 changed files with 37 additions and 0 deletions

View file

@ -13,6 +13,21 @@ tags: [logic-gates, binary]
Logic gates are the basic building blocks of digital computing. **A logic gate is an electrical circuit that has one or more than one input and only one output.** The input controls the output and the logic determining which types of input (on/off) lead to specific outputs (on/off) is identical to the truth-conditions of the [Boolean connectives](/Logic/Truth-functional_connectives.md) specifiable in terms of [truth-tables](/Logic/Truth-tables.md).
Physically, what 'travels through' the gates is electrical current and what constitutes the 'gate' is a [transistor](/Electronics/Digital_Circuits/Transistors.md) responding to the current. At the next level of abstraction it is bits that go into the gate and bits which come out: binary information that may be either 1 or 0.
## NOT gate
> The NOT gate inverts the value of whatever input it receives
### Symbol
### Truth conditions
| P | ~ P |
| --- | --- |
| T | F |
| F | T |
### Interactive circuit
## AND gate
> The AND gate represents the truth conditions of the [conjunction](/Logic/Truth-functional_connectives.md#conjunction) truth functional connective
@ -45,6 +60,8 @@ Physically, what 'travels through' the gates is electrical current and what cons
| F | T | F |
| F | F | T |
### Interactive circuit
NAND is a **universal logic gate**: equipped with just a NAND we can represent every other possible logical condition. In practice with circuits, it is more efficient to use specific dedicated gates (i.e OR, AND, NOT etc) for the other Boolean connectives but in principle the same output can be achieved through NANDs alone.
## OR gate
@ -62,6 +79,8 @@ NAND is a **universal logic gate**: equipped with just a NAND we can represent e
| F | T | T |
| F | F | F |
### Interactive circuit
## XOR gate
> The OR gate represents the truth conditions of the exclusive OR
@ -79,6 +98,23 @@ NAND is a **universal logic gate**: equipped with just a NAND we can represent e
### Interactive circuit
## NOR gate
> The NOR gate inverts the function of an OR gate
### Symbol
### Truth conditions
| P | Q | P v Q |
| --- | --- | ----- |
| T | T | F |
| T | F | F |
| F | T | F |
| F | F | T |
### Interactive circuit
## References
Scott, J. Clark. 2009. _But how do it know?: the basic principles of computers for everyone_. Self-published.

1
scripts/automate_commit.sh Symbolic link
View file

@ -0,0 +1 @@
/home/thomas/repos/bash_scripts/automate_commit.sh