How computers work

Motherboard: how everything is connected

The motherboard is a multilayer printed circuit board in the ATX format (305 × 244 mm) that connects the processor, memory, graphics card, storage and peripherals and distributes power to them. The board itself computes almost nothing: its job is to deliver hundreds of amps to the processor and carry tens of gigabits per second between chips without distortion. Turn on the bus layer or the “Power and heat” layer to see where data and current flow, and the “PC boot” scenario will show the order in which everything comes to life.

Open in 3D →

Board map: a star around the processor

It is convenient to picture a modern board as a star with the processor at its center. The fastest links run directly from the processor: two DDR5 channels to memory (about 96 GB/s combined), 16 PCIe 5.0 lanes to the graphics card (≈ 63 GB/s in each direction) and 4 PCIe 5.0 lanes to the first NVMe drive (≈ 16 GB/s). The closer to the processor, the faster the bus and the stricter the routing requirements.

Everything slow — USB, SATA, networking, audio, extra M.2 and PCIe slots — is attached to the chipset, and the chipset is linked to the processor by a single link. This is the second, “peripheral” ray of the star. Twenty years ago things were different: the memory controller and the graphics card lanes lived in a separate chip, the “northbridge,” and the processor talked to it over a shared bus. Moving everything fast inside the processor noticeably reduced memory latency.

The second layer of the board is power. The power supply delivers mostly 12 V, and voltage regulators on the board turn it into what each consumer needs: ≈ 1 V for the processor cores, 1.8 V for auxiliary circuits, 3.3 V for flash memory and the network controller. Each consumer is a separate “power net,” and almost all of them run through the inner copper layers.

The third layer is housekeeping signals, which are almost invisible: clock frequencies, reset signals, slow control buses (SMBus, SPI, eSPI) for sensors, firmware and fans. They carry a negligible amount of data, but without them nothing would start.

Fiberglass and copper layers

The board is a sandwich of copper layers separated by fiberglass laminate (glass cloth impregnated with epoxy resin). Desktop boards have 6–10 layers, expensive ones up to 12, and the whole board is about 1.6 mm thick. The outer layers hold traces and solder pads, while several inner layers are almost entirely solid copper for power and ground.

Why solid layers? Current always returns to its source, and at high frequencies the return current flows through the nearest ground layer directly beneath the signal trace. If there is solid ground under the trace, the current loop is small, the signal is clean and it radiates almost nothing. A gap in the ground under a fast line is a classic routing mistake: the signal starts to “ring” and interfere with its neighbors.

High-speed lines — DDR5 and PCIe 5.0 — are routed like waveguides. Each trace is given a specific characteristic impedance (≈ 85 ohms for PCIe differential pairs), and the two traces of a pair are length-matched to within fractions of a millimeter. At 32 Gbit/s one bit lasts ≈ 31 picoseconds, and in that time the signal travels only about 5 mm through the laminate. That is where the serpentine “meanders” in photos of boards come from: they are deliberately lengthened traces that catch up in length with their neighbors.

The layers are connected by vias — plated holes, of which a board has tens of thousands. On the fastest lines, the leftover piece of a via sticking out below the needed layer acts as a reflector, so it is drilled out (back-drill) or blind vias are used instead.

The socket and the processor

An LGA (Land Grid Array) socket is a frame with 1700–1850 spring-loaded contact fingers. The processor itself has no pins, only flat gold-plated pads. A lever and a retention frame press on the processor lid with a force of several hundred newtons so that every finger makes reliable contact with its pad. There is no solder — the processor can be replaced.

Why so many contacts? More than half of them are power and ground. Each finger can carry on the order of an amp, and the core current reaches ≈ 200 A, so hundreds of contacts are devoted to power. The rest are lines for two memory channels, PCIe lanes, video outputs of the integrated graphics, the chipset link and housekeeping signals.

Everything most heavily loaded is concentrated around the socket: power phases on two sides, memory slots to the right, the graphics card slot below. Distance matters: every extra centimeter of DDR5 trace eats into the frequency margin, which is why the memory slots sit right next to the socket.

The processor itself is not a bare die but a package: one or more dies sit on a substrate, topped by a metal lid that acts as a heat spreader. It is examined in detail one level down. Double-click the processor to go to the “CPU package” level.

A common misconception is that “the socket determines speed.” The socket is mechanics and the assignment of contacts. Speed is determined by the processor and by what the board can do: how many power phases it has, what memory frequency it is routed for, which PCIe versions it supports. That is why processors from several generations sometimes fit the same socket, but not always with full performance.

Processor power: VRM phases

The power supply provides 12 V, while the processor cores need 0.75–1.25 V at currents up to ≈ 200 A. You cannot simply “burn off” the excess voltage in a resistor: at 200 A it would turn more than 2 kW into heat. Instead there is a switching step-down (buck) converter: a switch connects an inductor to 12 V for a fraction of the time and to ground for the rest, and the inductor and capacitors average out the pulses. The on-time fraction is ≈ 1.1 / 12 ≈ 9%, and the output is the average — about 1.1 V.

One such circuit cannot deliver 200 A, so there are many phases — 16 in the model. Each phase is a DrMOS power stage (a driver and two MOSFET switches in one package: the high-side one connects the inductor to 12 V, the low-side one to ground), an inductor coil and capacitors. The switches toggle ≈ 500 thousand times per second, and the phases fire with a time offset, one after another, like the cylinders in an engine. The ripples of the different phases partially cancel each other, and the output voltage comes out smooth.

The PWM controller is the “brain” of the regulator. The processor itself tells it the required voltage over a digital bus (SVID on Intel, SVI3 on AMD) — continuously, as the frequency and load change. The controller measures the current of each phase, balances the load between them and, at low current, switches off unneeded phases: each phase is most efficient at 10–15 A. In the “Power and heat” layer you can see how many phases are active under different loads.

Power is conserved, but current is not. 240 W at 1.2 V is 200 A, while at the regulator input the same ≈ 265 W (including losses) at 12 V is only ≈ 22 A. So thick wires are needed only up to the EPS connectors, and the 200 A travel the last few centimeters through wide copper planes in several board layers and through hundreds of socket contacts. VRM efficiency is ≈ 90%: the remaining 10% is tens of watts of heat in the switches and inductors, removed by the VRM heatsink.

The processor changes its consumption within nanoseconds: the cores wake up and the current jumps by tens of amps. The controller and inductors cannot react that fast. The capacitors respond first: polymer capacitors at the phase outputs handle surges on the microsecond scale, and hundreds of ceramic capacitors (MLCC) near the socket and on the processor substrate handle them on the nanosecond scale. They are reserves of charge right next to the consumer — like a water tank at a house for when the water main cannot keep up.

A widespread myth is that “more phases is always better.” What matters more is the total current the stages can handle, the quality of the controller and the cooling. Besides, “20 phases” in advertising sometimes means 10 real phases with doubled stages. For a processor that is not overclocked, 8–10 good phases are enough.

Where power comes from: ATX 24-pin and EPS

The power supply connects to the board through two kinds of connectors. The 24-pin ATX connector carries 12, 5 and 3.3 V for the board itself, the slots and peripherals, plus housekeeping lines: standby 5 V (5VSB), the PS_ON power-on signal and the Power Good ready signal. The two 8-pin EPS connectors at the top edge of the board are a separate 12 V “main line” just for the processor regulator: each has four 12 V wires and four ground wires, about 300 W per connector.

Standby 5 V is always present as long as the power supply is plugged in and not switched off with the switch on the back panel. It powers part of the chipset, the power-button circuit, the network controller (so the computer can be woken over the network) and the USB ports for charging. That is why a “switched-off” computer still draws 0.5–2 W.

The PCIe x16 slot itself supplies up to 75 W to the graphics card, and the card takes the rest through its own 12V-2x6 cable directly from the power supply, bypassing the board. This way the thin slot contacts and board traces are not overloaded.

DDR5 memory is powered differently from DDR4: the board supplies 5 V to the module, and the required 1.1 V (and auxiliary 1.8 V) is produced by a PMIC chip right on the module. The regulator ended up a centimeter away from the memory chips, and their voltage is cleaner. The other consumers — the chipset, network and audio controllers — get their 1–3.3 V from small regulators scattered across the board.

Why does almost everything run on 12 V? For the same power, current is inversely proportional to voltage, and losses in wires grow as the square of the current: 600 W at 5 V is 120 A, at 12 V it is 50 A. So power is transported at 12 V and stepped down right at the consumer.

Memory slots and DDR5 channels

Four DIMM slots — two per channel. A DDR5 channel is 64 bits of data split into two independent 32-bit subchannels, plus address and command lines, a clock signal and strobes. The memory controller is inside the processor, so the lines run from the socket to the slots directly, with no intermediaries.

Two modules are installed in slots of different channels (usually the second and fourth, labeled A2 and B2). Then the processor reads from both in parallel, and the bandwidth doubles: DDR5-6000 gives 48 GB/s per channel, 96 GB/s with two channels. Two modules in slots of the same channel would give the same capacity but half the speed.

Why not install four modules “for speed”? That does not add channels: each line simply gets a second load, the signal degrades, and the maximum frequency drops — often from 6000 to 5200 MT/s or lower. So for speed it is better to use two higher-capacity modules, and four when you need capacity.

Memory lines are the most finicky on the board. Unlike PCIe, this is a wide parallel bus: dozens of signals of one byte must arrive almost simultaneously. The traces are length-matched, and the remaining differences are compensated by memory training at startup: the controller tunes the delay and threshold for each line individually.

In the teaching model the program is stored in 256 bytes, and when it executes an SW store, a pulse runs along the memory channel. In a real PC the processor exchanges data with memory not in bytes but in 64-byte cache lines: one BL16 burst over a 32-bit subchannel is exactly 64 bytes. Double-click a module to go to the “Memory (RAM)” level.

PCIe slots and the bus to the graphics card

PCI Express is a serial point-to-point bus: each device gets its own lanes rather than sharing a common bus with its neighbors. A lane is two differential pairs: one for transmitting, the other for receiving, so data flows in both directions at once. Slots come in x1, x4, x8 and x16 — by the number of lanes; an x1 card works in an x16 slot, and an x16 card works in a slot with fewer lanes, just more slowly.

Lane speed doubles with each generation: PCIe 3.0 — 8 GT/s, 4.0 — 16, 5.0 — 32 GT/s. With 128b/130b encoding, one PCIe 5.0 lane gives ≈ 3.9 GB/s in each direction, and x16 gives ≈ 63 GB/s. The top x16 slot is connected directly to the processor; the lower slots usually come from the chipset and share its link.

How data is transmitted. There is no separate clock wire: the receiver recovers the frequency from the bit stream itself. Data is cut into packets (TLPs) with a header, an address and a checksum; if a packet arrives corrupted, the receiver asks for it to be resent — in hardware, without programs noticing. At startup the lanes go through training: the two sides agree on speed and width, so a PCIe 4.0 card in a 5.0 slot simply runs at 4.0.

To the processor, a PCIe device looks like a region of the address space: a write to a certain address is a command to the graphics card. And the graphics card and the drive read and write main memory on their own (DMA), without distracting the processor. For all this to work, the firmware “enumerates” the bus at startup — it finds all devices and hands out addresses to them.

Myth: “a graphics card needs PCIe 5.0, otherwise FPS will drop.” During a game the bus carries mostly commands and data updates, while textures are already in video memory. The difference between x16 PCIe 4.0 and 5.0 in games is usually within the margin of error. The bus starts to matter when video memory runs short and data has to be shuttled from main memory.

The graphics card on the board

A graphics card is a separate computer on its own board: a graphics processor, its own memory, its own voltage regulator and a cooling system. It is connected to the motherboard only by the PCIe x16 slot and a common ground. The graphics card’s board is also multilayer, with an edge connector at the bottom.

The graphics processor is a die with an area of 300–600 mm² containing thousands of simple compute cores. Around it are 8–12 GDDR6X or GDDR7 video memory chips: each is connected with 32 bits, together forming a 256–384-bit bus with a bandwidth of about 1 TB/s — roughly ten times more than the processor’s main memory. They sit right next to the die for the same reason the DDR5 slots sit next to the socket: short traces mean high frequency.

The GPU regulator is built like the processor’s VRM: 10–20 phases turn 12 V into ≈ 1 V at currents of hundreds of amps. Power arrives through the 12V-2x6 connector (up to 600 W) and partly from the slot (up to 75 W). The 12V-2x6 connector must be pushed in until it clicks: four small sense contacts tell the card how much power it may draw, and if the connector is not fully inserted, the card limits its power rather than overheating the contacts.

Almost all the energy consumed becomes heat — 300–575 W for a powerful card. A heatsink with heat pipes or a vapor chamber draws heat from the die and the memory, the shroud directs air through the fins, and 2–3 fans blow it through. At idle many cards stop their fans entirely. The backplate keeps the long, heavy board from sagging and removes some heat from the back side.

The port bracket is the metal plate that fastens the card to the case; it carries DisplayPort and HDMI. This is where the monitor should be connected: the ports on the motherboard’s rear panel output the processor’s integrated graphics. Double-click the graphics processor to go to the “Graphics card” level.

Storage: M.2 and SATA

An M.2 slot is a small edge connector into which an NVMe SSD measuring 22 × 80 mm (the 2280 form factor) is inserted and held down by a screw or latch. The model has three slots: the first is connected to the processor by four PCIe 5.0 lanes (≈ 16 GB/s), the other two go through the chipset.

It is important to distinguish form factor from protocol. M.2 is only a connector; it can carry NVMe over PCIe or old SATA. A similar-looking M.2 SATA drive is limited to the same 600 MB/s as an ordinary SATA disk. A slot wired only for PCIe will not see a SATA drive, and vice versa.

SATA ports are an interface from the early 2000s for hard drives and 2.5-inch SSDs. 6 Gbit/s on the wire with 8b/10b encoding gives ≈ 600 MB/s of useful data: that is more than enough for a hard drive (≈ 250 MB/s), but an SSD hits the ceiling. The AHCI protocol is designed around a single queue of 32 commands — it was invented for mechanics, where commands are executed one at a time anyway.

Why is the first NVMe drive connected to the processor rather than the chipset? The path is shorter, and more importantly, the SSD does not share the chipset link with USB and networking. In everyday work the difference is small, but when copying between two fast SSDs hanging off the chipset, both hit the shared link. Double-click the SSD to go to the “Storage” level.

The chipset and peripherals

The chipset (PCH, Platform Controller Hub) is a hub for slow and numerous devices: USB ports, SATA, extra M.2 and PCIe slots, the network controller, audio. It computes almost nothing itself — it is a large switch with a set of controllers inside.

The chipset is connected to the processor by a single link — essentially PCIe 4.0 at x4–x8 width, that is 8–16 GB/s in each direction. Everything hanging off the chipset shares this bandwidth. For the keyboard, network and audio it is more than enough; it becomes a bottleneck only if you move data from several fast drives at the same time.

The USB4 controller is a separate chip for 40 Gbit/s ports compatible with Thunderbolt. USB4 tunnels PCIe, DisplayPort and ordinary USB over a single cable, so the controller is connected to PCIe lanes. Ordinary USB 3.2 ports (5–20 Gbit/s) and USB 2.0 are served by the chipset and the processor itself.

The 2.5 Gbit/s Ethernet network controller turns packets from memory into signals on the four twisted pairs of the cable and back; it fetches data from main memory and places it there by DMA on its own. The Wi-Fi 7 module with Bluetooth sits in an M.2 E-key slot, and its antennas are brought out to the rear panel. The audio codec is a digital-to-analog and analog-to-digital converter (24 bits, up to 192 kHz); it is placed in a corner of the board, on a separate island of ground, far from the noisy VRM.

Super I/O is a small “housekeeping” microcontroller: it measures temperatures and voltages, counts fan speeds and controls them, and sometimes serves old PS/2 ports. Monitoring programs show the board temperature and fan speeds from exactly these sensors.

Firmware, battery, TPM, indicators

A 32 MB flash chip stores the UEFI firmware — the first code the processor executes after power-on. It is connected by a simple serial SPI bus: a few wires, tens of megahertz, tens of megabytes per second. By the board’s standards this is slow, but the firmware needs nothing more: its code is copied into main memory as soon as memory is up and running.

The firmware does everything needed before the operating system: it trains memory, enumerates PCIe, sets frequencies and voltages, shows the setup screen and finds the boot loader on the drive. Even earlier, a small security service processor wakes up inside the processor or chipset and checks the firmware’s digital signature — so corrupted or tampered firmware will not start.

A 3 V CR2032 battery powers the real-time clock (driven by a 32.768 kHz crystal) and a small settings memory while the computer is unplugged. The current is in microamps, so the battery lasts for years. The first symptom of a dead battery is the date and time being reset after the computer is disconnected from the outlet. Modern boards keep most of their settings in flash memory.

TPM (Trusted Platform Module) is a security module. It stores disk encryption keys so that they cannot simply be copied, and keeps a boot “log”: each stage — firmware, boot loader, kernel — records the hash of the next one in the TPM. If someone has swapped the boot loader, the hashes will not match and the TPM will not release the key. Usually the TPM is built into the processor (fTPM), and the header on the board is for a separate module.

Four POST LEDs — CPU, DRAM, VGA, BOOT — are the simplest diagnostics. During startup the LED of the current stage is lit. If startup gets stuck, the LED stays lit: DRAM means a memory problem (a module not latched, training failed), VGA a graphics card problem, BOOT means no boot loader was found. This is the first thing people look at when the fans spin but the screen is black.

The clock: generator and crystal

A quartz resonator is a plate of quartz crystal with electrodes. Quartz is piezoelectric: voltage deforms it, and deformation makes it produce voltage. A plate of the right shape “rings” at its own frequency like a tuning fork — for example, 25 MHz with an accuracy of thousandths of a percent. This is the time reference for the whole board.

The clock generator uses phase-locked loops (PLLs) to derive reference frequencies from it: 100 MHz for the processor, the PCIe lanes and the chipset. A PLL is a controllable oscillator that constantly compares itself with the reference and adjusts, so it can produce the needed frequency without losing accuracy.

Inside the processor its own PLLs multiply the 100 MHz: a multiplier of 55 gives 5.5 GHz. Different parts of the processor run at different frequencies — the cores, the cache, the memory controller — and the multipliers change on the fly: at idle a core drops to ≈ 0.8 GHz, under load it ramps up. Overclocking a processor usually just means raising the multiplier.

The clock signal is the metronome of a digital circuit: on its edge all registers simultaneously latch new values. This is what sets the frequency limit: within one clock cycle a signal must pass through all the logic between two registers. At 5 GHz a cycle lasts 0.2 ns — in that time light in a vacuum travels only 6 cm.

The PCIe reference frequency is deliberately “smeared” slightly — shifted down by fractions of a percent and back (spread spectrum) — so that emissions are not concentrated at a single frequency and the board passes radio-interference regulations. A second, small 32.768 kHz crystal drives the real-time clock: 2¹⁵ oscillations make exactly one second, which is convenient to divide with a binary counter.

Connectors and the rear panel

Along the edge of the board are connectors for everything mounted on the case. The front-panel header is a comb of two rows of pins: the power button, the reset button, the power and drive-activity LEDs. The case power button does not switch the current directly: it merely shorts two contacts for an instant, and the board decides the rest.

Internal USB headers bring ports out to the front of the case: the 9-pin one provides two USB 2.0 ports, the 19-pin one two USB 3.x ports, and a separate compact connector a USB-C port at 10–20 Gbit/s. Next to them is the HD Audio front-panel audio header.

Fan headers have 4 pins: ground, 12 V, tachometer and PWM. The fan receives a constant 12 V, and its speed is set by a 25 kHz PWM signal: the “on” fraction of each period is the desired fraction of full speed. The tachometer gives two pulses per revolution; from them the board counts the speed and notices a stopped fan. The “temperature → speed” curve is set in the firmware; in the model it is 25% up to 40 °C, rising linearly to 100% at 80 °C.

The rear panel is what you see on the back of the case: USB ports (including USB4 and USB-C), an RJ-45 network jack, audio jacks, Wi-Fi antenna connectors and the integrated graphics video outputs. The metal I/O shield connects the connector shields to the case and closes the gaps against radio interference.

Why is the button not allowed to switch power directly? Cutting power like a “knife switch” would interrupt writes to the disk and could corrupt data. So the button is just a signal: on a powered-off computer the board wakes up the power supply; on a running one a short press is passed to the OS, which shuts down cleanly. Only holding the button for 4 seconds triggers an emergency shutdown, which the board performs on its own.

Startup step by step

1. The button. In standby the board is powered from 5VSB. It sees the short on the front-panel header and sends the PS_ON signal to the power supply. 2. The power supply starts its main converter, outputs 12, 5 and 3.3 V, and after 0.1–0.5 s, once the voltages have stabilized, raises the Power Good signal.

3. The board’s regulators, including the processor VRM, bring up their voltages one by one; the processor is held in reset all this time. 4. Reset is released. The security service processor checks the firmware, and a core begins executing UEFI code from flash memory through the chipset and the SPI bus. If this step fails, the CPU LED stays lit.

5. Memory training: the controller in the processor reads the modules’ SPD and tunes delays and levels for each DDR5 line. On the first startup or after changing modules this can take from seconds to a minute — the screen is black during this time, and that is normal. Stuck here — the DRAM LED is lit. 6. PCIe enumeration: the firmware walks the buses, finds the graphics card, the NVMe drive and the chipset, and hands out addresses to them.

7. The graphics card receives its initial setup, and the firmware splash screen appears on the monitor (the VGA stage). 8. The firmware finds the EFI system partition on the drive, reads the boot loader over PCIe 4.0 x4 into main memory and hands control to it (BOOT). 9. The boot loader loads the operating system kernel, which starts the drivers — graphics card, network, audio, USB — and the computer is ready. From pressing the button to the desktop usually takes 5–20 seconds.

Common misconceptions

“The motherboard affects processor speed.” Hardly: the processor does the computing itself. The board has an indirect influence — whether the VRM can sustain maximum power for a long time without overheating, what memory frequency it can handle, how many fast PCIe and M.2 lanes are routed. With identical settings, the difference between a cheap and an expensive board is usually within a few percent.

“It won’t turn on, so the board is dead.” More often a small thing is to blame: the EPS cable is not plugged in, a memory module is not latched, the monitor is connected to the board’s output instead of the graphics card, the first memory training is taking longer than it seems. The POST LEDs usually show right away at which stage it stopped.

“Electrons run along the traces at the speed of light.” The electrons themselves drift through copper very slowly — fractions of a millimeter per second. What propagates along the trace at about half the speed of light is an electromagnetic wave. That is why the length and shape of traces matter so much: at gigahertz frequencies a signal behaves like a wave in a waveguide, not like water in a pipe.

Open in 3D →

All articles

Overviews

Logic: from transistor to arithmetic

Processor

Computer

Servers and data centers

Networks and the internet

Software