A strong foundation in core concepts is essential for understanding more complex topics.
Below is a collection of baseline knowledge regarding hardware components and their functions involved in physical computing.
The Central Processing Unit (CPU) functions as the brain of the computer, it is made up of electronic circuitry that executes instructions of a computer program, such as arithmetic, logic, controlling, and input/output (I/O) operations. Early CPUs were custom designs built into larger sometimes distinctive computers made for a particular program. Transistor CPUs allowed for faster processing speeds due to built in switching elements allowing for increased reliability and lower power consumption. This also led the way for Integrated CPUs. Microprocessors overtook these designs and paved the way for modern CPUs these are CPUs manufactured on a very small number of integrated circuits usually only one. The smaller CPU size meant faster switching times, as well as increased clock rates (frequency at which the clock generator of a processor can generate pulses used to synchronize operations of internal components).
CPUs execute a sequence of stored instructions called a program, that are to be kept in computer memory. This instruction cycle consists of fetching, decoding, and executing steps. After each execution this process repeats for each step using next-in-sequence instructions based on an incremented value in the program counter, alternatives are jump instructions that contain addresses of instructions needing to be fetched, decoded, and executed simultaneously. Jumps facilitate loops, conditional execution, and functions. There are also instructions that use flags registers to influence how programs operate.
Within the Fetch, Decode, Execute sequence the operations act as the following. Fetch, retrieving instructions, represented by a number or sequence of numbers, from program memory. Decode converts the fetched instructions into signals that control other parts of the CPU. After decoding this step executes the step that has been fetched, consisting of a single action or a series of actions signals are controlled electrically to enable or disable various parts of the CPU. These actions are then completed, typically in response to a clock pulse. Results are usually written to an internal register for quick access by subsequent instructions, in other cases they may be written to main memory.
CPUs are structured with the following design, a Control Unit (CU), or the component that directs the operation of the processor, it tells the computer's memory, arithmetic and logic unit, as well as input and output devices.
The Arithmetic Logic Unit (ALU) is a digital circuit within a processor that performs integer arithmetic and bitwise logic operations usually in relation to status information from previous operations, data words to be operated on, and a code from the Control Unit indicating which operation to perform.
Address Generation Units (AGU), sometimes called the Address computation unit, is an execution unit inside the CPU that calculates addresses used by the CPU to access main memory. This assists with various operations required by the CPU.
Memory Management Unit (MMU) is present in many microprocessors and translates logical addresses into physical Random Access Memory (RAM) addresses, providing memory protection and paging abilities. Another important component is the Cache, a hardware cache used by the CPU of a computer to reduce the average cost to access data from the main memory, they are smaller, faster memory, closer to a processor core, which store copies of the data from frequently used main memory locations. These are typically organized as a hierarchy of cache levels, L1, L2, L3, L4, etc. There are multiple ways all of this is implemented in the design of a CPU, I would advise further reading into CPUs if you are interested.
CPUs performance and speed depend on the clock rate, and instructions per clock, together these factors determine the instructions per second the CPU can perform. Processing performance increases by using multi-core processors, that plug two or more processors into one integrated circuit. These come in a variety of sizes such as dual-core, quad-core, octa-core, and hexa-core. This can be further improved with multi-threading and software-based monitoring. Additional CPUs can be overclocked to increase the clock speed and in turn improve performance.
Random-Access Memory or RAM, is a form of electronic computer memory that can be read and changed in any order, this is typically used to store working data and machine code. It usually takes the form of integrated circuit chips and is commonly associated with volatile memory where stored information is lost when power is removed.
These devices allow data to be read and written at the same amount of time regardless of the physical location of the data inside of the memory. In electronics today RAM takes the form of integrated circuits with memory cells, while non-volatile RAM exists, they do not allow read and write operations, only read. Early devices used relays, mechanical counters, or delay lines for main memory functions. A cathode-ray tube, the Williams Tube, was used later. From there magnetic-core memory, and then MOS-RAM.
There are a few types of RAM, two modern forms are Static RAM (SRAM) and Dynamic RAM (DRAM). SRAM being the more expensive is faster and requires less power than DRAM, however, is often used as cache memory for the CPU, while DRAM is used in place of the standard computer RAM, both are considered volatile. Read-Only Memory (ROM) also exists, and stores data permanently by enabling and disabling transistors.
The components of RAM consist of Memory Cells, a building block that stores one bit of binary information and must be set to store a logical 1 from high voltage, and a 0, low voltage. IN SRAM this is a flip-flop circuit, in DRAM a capacitor is used. They function using Addressing, using multiplexing and de-multiplexing circuitry to select memory cells, they typically have a set of address lines for each combination of bits that may be applied to these lines, due to this the RAM device itself tends to have a memory capacity to the power of two.
Other uses consist of Virtual Memory, RAM Disk, and Shadow RAM, these are available options for RAM, and each one has a specialized use case in that it is valuable to the computer operator. Modern devices come standard in 4GiB, 8GiB, 16GiB, and 32GiB, allowing for combinations of sets of two, in each memory lane, 2x 4GiB for 8GiB, 2x 16GiB for 32GiB.
The Motherboard; it is the main circuit board that connects all components and peripherals allowing them to communicate with the device itself. This is where the Power, CPU, RAM, Storage, and any External Hardware connects to through use of main connection points, or secondary connections. These were commonly referred to as Logic Boards previously; these are printed circuit boards used in general-purpose computers and other expandable systems.
Historically, before the introduction of microprocessors, CPUs were typically implemented using multiple printed circuit boards, interconnected with a backplane board containing sockets that the individual circuit boards were inserted. Early systems used discrete copper wiring between connector pins. CPUs Memory, and Peripherals were each located on separate boards connected through the backplane. Once microprocessors were introduced, CPU functionality and supporting circuitry were consolidated, while memory and peripherals remained on separate extension cards.
Modern designs now include I/O (Input/Output) Control Chips, capable of supporting peripherals, as well as embedded audio, video, storage, and networking functions. Allowing Systems to exist with everything built in. While expansion cards still exist, they tend to be favored in higher end workstations or personal gaming computers. Typically included when the need for robust functions, or higher speed components are needed.
Outside of integrated components, a modern bare bones motherboard will typically include a CPU Socket, Memory Slots for RAM, Chipsets that allow for I/O interfacing between the CPU, Peripherals, and RAM. Non-Volatile memory that usually contains systems firmware or BIOS (Basic Input/Output System), a clock generator that produces the system clock signal for synchronization. Expansion slots for expansion cards, Power connectors for Power Supplies, for components that require more power than the motherboard can provide. Sata and NVMe connections for storage components and optical drives.
Motherboards come in multiple form factors as well, depending on design, embedded components, and additional features such as heatsinks, or integrated Power Supplies, you can get multiple sizes ranging from Full ATX, ATX, MicroATX, Mini-ATX, Mini-ITX, Nano-ITX, and Pico-ITX. As well as many more sizes for purposes down to a watch, up to a Wide Screen TV.
Many features of the Motherboard take place between the hardware and software level of the Operating System, a computer will need these three components to turn on. With a CPU, RAM, and a Motherboard, once power is supplied from a PSU, you can run an entire Operating System off of the RAM. Due to this being volatile memory, there is no persistence, but it is still amazing to think about.
Power supplies usually convert your wall electricity into the proper usable current for your device. Switched power supply units allow you to select the correct voltage, while more modern ones may adapt depending on the input. All output is lower voltage direct current compared to the higher main line of alternating current voltage. This is due to the sensitivity and precision required in the electrical components of your hardware and peripherals.
Historically power supply units have gone through multiple standards, from using step-down transformers (an electrical device that converts high voltage to low voltage) with a linear power supply. To switched power supplies, with no cooling fans. With now modern power supplies that have short circuit protection, overload protection, over-voltage protection, under-voltage protection, over-current protection, and over-temperature protection.
The first IBM PC, XT and AT standard, supplied +5 Volts, +12 Volts, and -5 Volts and -12 Volts, with limited amounts of powers. With the +12 Volts used to primarily operate motors for disk drives and fans. -12 Volts tended to power serial ports. +5 Volt was the standard for many microprocessors of the time, and the -5 Volt was used for ISA (Industry Standard Architecture) bus expansion cards.
After the ATX Standard, developed by Intel, for microchips operating on 3.3 Volts this caused the inclusion of a +3.3 Volt rail, and also had +5 Volt rail, and a +12 Volt rail. Allowing additional components to be installed and the use of a +5 Volt Standby Rail for use as an on and off switch in the front panel of the device. As transistors became smaller, lower voltage was required to power them, this lead to the development of the ATX12V Standard, modern components use these to supply large amounts of low-voltage power that is otherwise impractical to deliver to the motherboard.
Additional specialized power supplies still exist for devices that otherwise need more or less power than what comes with standard consumer power supplies. Take your time familiarizing yourself with them, and always be careful when tinkering with electricity.
Computer storage is long-term storage. Where information goes to rest before needing to be re-accessed or used again later. Contrary to RAM or Non-Volatile Memory, Storage is much larger, and not as accessible. Your Hard Drives, or Solid State Drives, SD Cards, and USB Drives, are all version of storage. They aren't necessary, however provide exceptional benefits from having them installed, and most modern operating systems require a minimum storage capacity of some kind.
We've came a long way since our first storage device for computers beginning with punch cards on Jacquards Loom, transitioning into Magnetics and Tape Drives, Disks, Hard Drives, then Floppy Disks, condensing it all down into Laser Disks, before Compact Disks (CD-ROMs), Flash Memory, and now Solid-State Drives. These were all storage devices used during the past, now, and potentially long into the future, they were ways to save instruction sets, information, and all sorts of data, then transport them to anywhere it may be needed.
Beginning with literal punch cards, that had binary holes punched in them, representing a 0 or 1, in order to program with. We've advanced technology further transitioning to magnetic storage, by using an electrical or magnetic current to imprint patterns on the magnetic storage. Now using the same principles, we use a magnetic read/write header in Hard Disks to store information on Hard Drives, additional even further advancements allow us to use flash memory on USB Drives, and Solid-State Drives by storing information in an array of memory cells transistors.
Each storage type had benefits and disadvantages that were improved upon with each iteration. The full history may fill a few pages so if you're interested in learning more about data and how it's stored continue learning about it as you are able to.
A Graphics Processing Unit or GPU is an electronic circuit that performs rapid mathematical calculations to render images, videos, and animations, and are now used to accelerate computationally intensive tasks like machine learning and scientific simulations. These components consist of multiple hundreds to thousands of smaller processing cores, Video RAM, and cooling systems. Many standard devices have onboard graphics that operate within the CPU, however higher end workstations, or gaming computers, will have external GPU Cards that move the above-mentioned processes onto this secondary expansion card.
GPU's exist because of early 3D Arcade Systems, with the graphics hardware coming out in the 1960's for graphical terminals, in the 1970's and 1980's these circuits became more advanced introducing new features and architectural designs for improved computational power, with your modern expansion card GPU's existing in 1990's with the introduction of OpenGL a rendering library created by Silicon Graphics Incorporated (SGI).
By the late 1990's early 2000's these GPU's were being mass produced for use in gaming consoles and home computers worldwide, the late 2010's and early 2020's showed massive improvements in their design and functionality. With some architectures now late into the 2020's being used for Artificial Intelligence Data Centers worldwide. These powerful components can be used for a wide variety of tasks and are the modern workhorse of computational ecosystems.
Peripherals consist of additional expansion cards, such as Network Interface Cards, Audio Processing Cards, Keyboards, Mice, USB Hubs, Microphones, Web Cams, Headphones, Monitors, and Cooling Fans. These peripherals are not necessarily needed at a basic level, however, devices using them can be built to meet specifications required.
While many modern CPU's come pre-packaged with a heat sink, and you should use one to avoid thermal damage, tinkers have experimented with cooling devices with water pumps, using non-conductive fluids, and even mustard and honey. That doesn't mean you should attempt that, and I would advise you not to without proper experience and training.
Consumer grade computers and laptops will also include a mouse or track-pad and keyboard for ease of use, however older historical hardware may consist of knobs and switches. These all would connect via special connections or standard USB types.
USB types consist of various data cables, such as the proprietary Apple Lightning cable, USB, USB 2.0, USB 3.0, and USB 4.0 technologies, alongside USB-C and Thunderbolt cables, you can also find the standard data-cable in use throughout many modern monitors allowing additional ports to be made available to you.
Cables such as HDMI, DVI, VGA, Display Port, and Thunderbolt can all be used to transmit display data from your device to your monitors. Monitors can support any configuration of ports and information/refresh rates. Varying from 24hz to 160hz, and so on.
Network cables come in a multitude of options as well, such as CAT6 or CAT7. Each cable would need to be selected appropriately to support your network speeds and functionality.
Additional Expansion Cards can be used in PCI or PCI-E Slots on a motherboard to have functionality ranging from additional storage to audio processing, or simply an internal security card (Cryptography Cards) for encryption and decryption on servers.