The Computer: Basic Levels of Abstraction - OverwriteMatrix/RosettaCode GitHub Wiki

Transistors

A transistor is an electrical component that when powered, allows current
to flow through it. When the transistor is not powered it does not.
Similar to a water spigot. Transistors allow us to create logical
gates by turning power on and off by turning on the transistor(s) or not.

Boolean Logic & Logic Gates - CCCS#3

Binary: Binary is a base-2 number system that uses only two digits: 0 and 1. It is the fundamental language of computers, where data is represented using sequences of binary digits (bits). Each binary digit corresponds to a power of 2, making it efficient for digital circuits and logical operations.
"On" state or "true" is represented by electricity flowing (1)
"Off" state or "false" is represented by no electricity flowing (0)\

Why Binary?

The more intermediate states between on and off (more numbers) the harder it is to keep them separate (low on power = even harder)
Placing signals as far apart as possible gives us distinct signals that minimize issues
Computers also use binary because Boolean Algebra already existed.

  • Operations in Boolean Algebra: Not, And, Or

Three Basic Logic Gates

Name: Info: Truth Table:
And And takes in two boolean values. Both input A and input B need to be true for the output to be true otherwise it is false And Truth Table
Or Or takes in two boolean values. Either input A or input B need to be true for the output to be true otherwise it is false Or Truth Table
Not Not Takes a single Boolean value and negates (inverts) it
Input Output
True False
False True

Three Basic Logic Gates: Resistor Logic

And Logic Gate Or Logic Gate Not Logic Gate

⚠️ **GitHub.com Fallback** ⚠️