A processor can only talk to the rest of the computer through its pins. Every instruction fetched, every byte loaded, every interrupt and every watt of power passes through them. So a list of what each pin does is a complete description of the chip as the outside world sees it: the view of a CPU at the digital logic level.
Three chips from around 2011 make classic examples: Intel's Core i7, Texas Instruments' OMAP4430 phone chip and Atmel's ATmega168 microcontroller. The ideas behind them are still right. The details have moved a lot, and this chapter updates them, with an Apple M2 Ultra as the running example.
Address, data and control
The classic CPU has three kinds of signal pins, connected to the memory and I/O chips by a bus:
- address pins say which memory word or device register the CPU wants. With m address pins, it can reach 2ᵐ locations;
- data pins carry the word being read or written. With n data pins, it moves n bits per transfer: a CPU with 8 data pins needs four transfers for a 32-bit word, one with 32 pins does it in one;
- control pins say what is going on and when.
To read a word, the CPU puts the address on the address pins, asserts control lines meaning "memory read", waits for the memory to drive the data pins, and latches them. The simulator's CPU works exactly this way. Its bus view shows the three groups (address, data, control) as the lines leaving the CPU box:
Try it: Press Step to run one instruction, Run to animate or Continue to finish; the L2–L7 buttons zoom in and out one level at a time.
- .data
- val: .quad 0x1122334455667788
- .text
- mov rax, QWORD PTR [rip+val]
- add rax, 1
- mov QWORD PTR [rip+val], rax
- mov eax, 60
- xor edi, edi
- syscall
The load has just run: 2 R · 0 W, two bus reads, one to fetch the instruction and one for the data. Step once: add needs only its fetch (1 R). Step again: the store fetches and then writes, 1 R · 1 W. Each of those is one transaction on the pins.
The control pins fall into six classic groups. They are worth keeping as a checklist, even though most of them have changed shape:
| Group | Classic form | Today |
|---|---|---|
| Bus control | read/write, memory/I/O, wait | commands inside DDR and PCI Express links |
| Interrupts | interrupt request and acknowledge pins | mostly messages: PCIe devices write to a special address (MSI) |
| Bus arbitration | request/grant pins | gone from the CPU: point-to-point links need no arbitration (next chapters) |
| Coprocessor | handshake with a floating-point chip | on the die since the 486 |
| Status | what the CPU is doing | thermal alarms, power state, "processor hot" |
| Miscellaneous | reset, test | reset, power-good, JTAG test port, voltage-regulator bus |
A modern CPU has no address bus
The biggest change is that the memory controller has moved into the CPU. The 2011 Core i7 already had it; so does every current PC and phone processor. The CPU's pins no longer carry "address 0x7fffffd8, please". They carry:
- DRAM channels: command, address and data pins that drive memory chips directly, speaking the ACTIVATE / READ / PRECHARGE language of DRAM. A DDR5 channel sends a row address, then a column address, over the same small set of command/address pins, the RAS/CAS idea, still alive;
- PCI Express lanes: pairs of wires carrying packets to devices and to the chipset, covered in the PCI Express chapter;
- display outputs, USB and other serial links on chips that integrate them.
A current Intel desktop processor (12th to 14th generation), for example, provides 16 PCIe 5.0 lanes and 4 PCIe 4.0 lanes, plus an 8-lane DMI link to the chipset, alongside two DDR5 or DDR4 channels. The 2011 Core i7 had 16 lanes of PCIe 2.0, and its often-quoted "16 GB/sec" counts both directions: 8 GB/s each way. Its chipset was a single chip, the P67 or one of its siblings; the ICH10 belonged to Intel's previous platform generation. The "address pins" of the classic CPU survive only as a number in the processor: x86-64 allows up to 52 bits of physical address, each chip implements that many or (usually) fewer, and it reports how many through the cpuid instruction.
The simulator's bus view is therefore a model of the chip's inside (the path between the cores and the memory controller) rather than of its physical pins.
Most pins are power and ground
The 2011 Core i7 had 1155 contact pads: 286 for power, 360 for ground, 62 unused and only 447 for signals. More than half the pins just carry current.
The reason is arithmetic. Power is voltage × current, and CPU cores run at about a volt. A desktop chip that draws 125 W at 1 V needs 125 A; Intel's Core i9-13900K is allowed up to 253 W in bursts, which is more than 200 A at typical voltages. Each contact can carry only a small current, so hundreds of them share the load. Hundreds of ground pins also give every fast signal a nearby return path, which keeps the noise down.
Below, each square is one of the 1155 contacts. Click Sort by role to see how much of the package is power and ground, then drag the sliders. At 125 W and 1 V, the 286 power pads carry about 0.44 A each and the 360 ground pads about 0.35 A each on the way back; keep the power and lower the voltage, and the current climbs.
Try it: Click “Sort by role” to gather the pads into one block per role, and click a colour in the legend to light up one group. Then drag the power and voltage sliders and watch the current each power pad has to carry.
The current is shared evenly here; on a real board it splits between the different supply rails (cores, graphics, memory interface). Lower the voltage at the same power and the current goes up.
Voltage is no longer fixed, either. Chips of 2011 ran at a nominal +1.2 to +1.5 V. Today the voltage regulator on the motherboard changes the core voltage many times per second, on request from the CPU over a small serial bus: less voltage and a lower clock when there is little to do (dynamic voltage and frequency scaling), more when a burst of work arrives. Unused parts of the chip are switched off completely (power gating). These were the OMAP4430's techniques, and they are now universal.
Clocks
A CPU takes a steady reference clock from outside (a crystal, or a clock chip) and multiplies it on chip with a phase-locked loop, as the clock section explained. On Intel desktops, the reference ("BCLK") is 100 MHz and the core frequency is a multiplier of it. Frequency multiplication is the job of PLLs; delay-locked loops (DLLs) are mostly used to align the phase of fast I/O signals such as the DDR data lines.
The frequencies are also not fixed. On the M2 Ultra of this chapter:
$ sysctl hw.tbfrequency
hw.tbfrequency: 24000000
The system timer ticks at a steady 24 MHz. The cores' own clocks run more than a hundred times faster, and they vary. A chain of dependent additions (each needs the previous result, so exactly one completes per cycle) ran at 3.24 GHz on a performance core, and at 1.64–1.77 GHz when forced onto an efficiency core with taskpolicy -b, while the machine had a load average of about 13 from other work.
The oldest answer to an overheating chip is thermal throttling: running only every Nth clock cycle. That mechanism still exists as a last resort, but chips first lower their frequency and voltage, which saves far more power than skipping cycles, and cut power entirely if the temperature keeps rising.
Packages
The package holds the silicon die, spreads its heat and turns its microscopic contacts into something that can be soldered or socketed. The main families:
| Package | Contacts | Where |
|---|---|---|
| DIP (dual in-line) | two rows of pins through the board | early CPUs, hobby microcontrollers |
| QFP / QFN (quad flat, with or without leads) | pins or pads on four sides | microcontrollers, small chips |
| PGA (pin grid array) | a grid of pins under the package, into a socket | older PCs; AMD desktops until AM4 |
| LGA (land grid array) | a grid of flat pads; the pins are in the socket | Intel desktops and servers; AMD since AM5 |
| BGA (ball grid array) | a grid of solder balls, soldered to the board | laptops, phones, most SoCs |
The 2011 Core i7 used an LGA package with 1155 lands, from 2011. Its successors used LGA 1150, 1151 and 1200, then LGA 1700 for Intel's 12th to 14th generations, and LGA 1851 for the Core Ultra 200S of 2024. AMD moved from pins on the processor (1331 pins on AM4) to an LGA socket with 1718 lands for AM5 in 2022. Server sockets are much bigger (AMD's SP5 has 6096 lands) because they carry twelve DRAM channels and 128 PCIe lanes. Laptops, phones and Apple's M-series use BGA: soldered once, never replaced.
Systems on a chip, and chips made of chips
For years, every modern CPU sat on a single chip. Two newer developments have changed that.
Systems on a chip. The OMAP4430 put two ARM cores, a GPU, image and video processors, a memory controller and dozens of interfaces on one die. That design won: every phone and tablet, and now every Apple computer, is built around an SoC. The OMAP line itself didn't survive (Texas Instruments left the smartphone chip business in 2012), but its successors from Apple, Qualcomm, MediaTek and others add neural-network accelerators, security processors and, in phones, the cellular modem.
Chiplets. A very large die is expensive, because a single defect ruins all of it. So large processors are increasingly built from several smaller dies in one package, connected by very short, very wide links:
- most of AMD's Ryzen and all its EPYC chips combine one or more compute dies (8 cores each on desktop parts) with a separate I/O die that holds the memory controllers and PCIe; server parts have a dozen or more compute dies;
- Intel's recent client chips are built from several tiles stacked or placed side by side on a base;
- the M2 Ultra is two M2 Max dies joined by Apple's UltraFusion connection, which Apple describes as more than 10,000 signals carrying 2.5 TB/s between the dies. The two halves hold 134 billion transistors in total.
The industry has since standardized a chiplet interface, UCIe, so that dies from different makers can share a package. And the software doesn't see the seam at all:
$ sysctl hw.packages machdep.cpu.brand_string machdep.cpu.cores_per_package
hw.packages: 1
machdep.cpu.brand_string: Apple M2 Ultra
machdep.cpu.cores_per_package: 24
$ system_profiler SPHardwareDataType
Chip: Apple M2 Ultra
Total Number of Cores: 24 (16 Performance and 8 Efficiency)
Memory: 64 GB
One package, 24 cores, although they sit on two pieces of silicon. Compare the first Core i7 of 2008, 731 million transistors, and its 2011 successor, 1.16 billion: the M2 Ultra has more than a hundred times as many.
The microcontroller: all pins are I/O
At the other end of the scale, the ATmega168 has no address or data pins at all. Its flash (16 KB), SRAM (1 KB) and EEPROM (512 bytes) are all on the chip, so its pins connect only to the outside world: power, ground, a crystal, and general-purpose I/O lines grouped in ports B, C and D. Each line can be an input or an output, and several double as analog inputs or serial interfaces; the I/O chapter shows how a program drives them.
Its ports B and D have 8 lines and port C has 7, which makes 23 I/O lines, and three of them are also the reset and crystal pins. Most of the AVR's 131 instructions are 16 bits long, but a few, such as the long jumps and calls and the direct loads and stores, take 32 bits. The larger ATmega328 has 1 KB of EEPROM; the 168 has 512 bytes.
The family lives on: the ATmega328P is the chip of the Arduino Uno, and Microchip, which bought Atmel in 2016, still makes it. But most new microcontrollers are built around 32-bit ARM Cortex-M or RISC-V cores. Raspberry Pi's RP2040, for example, has two Cortex-M0+ cores at 133 MHz, 264 KB of SRAM and 30 I/O lines in a 7 × 7 mm QFN package, and reads its program from an external flash chip.
Takeaways
- A CPU talks to the world only through its pins: address, data and control, plus power, ground and clock. The classic control groups (bus control, interrupts, arbitration, coprocessor, status, miscellaneous) are a good checklist, but most are now messages on serial links.
- Modern CPUs have the memory controller inside: their pins drive DRAM channels and PCIe lanes directly, instead of a shared address/data bus.
- Most pins carry power and ground: at about a volt, a desktop CPU draws well over 100 A. Voltage and frequency change constantly; this Mac's cores ran at 3.24 GHz (performance) and about 1.7 GHz (efficiency) against a fixed 24 MHz system timer.
- Packages went from DIP to PGA, LGA (1700 and 1851 lands for recent Intel desktops, 1718 for AMD's AM5) and soldered BGA.
- Big processors are now systems on a chip and often several chips in one package (chiplets, tiles, UltraFusion). Microcontrollers keep everything on chip and devote their pins to I/O.