Bits, bytes and the logic of machines
How do on-off switches end up writing poems? From the humble bit to the number formats of modern AI, and the one surprising fact that shapes every AI chip: moving a number costs far more than doing maths with it.
Somewhere right now, a computer is reading a sentence like this one and writing a thoughtful reply. Under all that apparent cleverness, it is doing something astonishingly simple: flipping switches between two states, billions of times a second.
How do you get from "on or off" to a translated poem? This chapter climbs that ladder one rung at a time: bits, numbers, text, the special number formats of AI, logic gates, memory, the clock and the processor. At the top, we will meet the single fact that explains more about AI hardware than any other.
If you write software, much of this will feel familiar from the top down. Here we build it from the bottom up.
Why only two states?
Chapter 3 showed that a transistor is a switch. A switch has two states, on and off, and we call them 1 and 0.
But why stop at two? Why not use ten voltage levels, one for each digit from 0 to 9, and pack more into each wire?
The answer is noisesmall random disturbances that nudge a signal's voltage up and down. Electrical signals are never perfect. Heat, neighbouring wires and tiny differences between transistors all jostle the voltage a little. With ten levels packed close together, a small nudge could turn a 6 into a 7. With only two levels, there is a wide safety zone between them, called the noise marginthe gap between the voltages read as 0 and as 1; noise smaller than this gap cannot change the answer.
A CHIP THAT RUNS AT 0.75 V (simplified)
0.75 V ┤████████████ read as "1"
│
0.50 V ┤- - - - - - -
│ safety zone: noise here does not change the answer
0.25 V ┤- - - - - - -
│
0.00 V ┤████████████ read as "0"A signal at 0.68 V is still clearly a 1. A signal at 0.05 V is still clearly a 0. Even better, every gate "cleans up" the signal it receives and passes on a crisp 0 or 1 to the next. Noise never gets a chance to pile up.
Two states are what make billions of switches reliable together. It is the same reason network protocols use checksums and retries: the system is built to shrug off small errors rather than hope they never happen.
Some memory chips do store more than two levels in one cell to save cost, and accept extra error correction in return. Chapter 10 explains how NAND flash does this.
Bits and bytes
A bita binary digit: a single 0 or 1, the smallest unit of information is a single 0 or 1. A bytea group of 8 bits; it can hold 256 different patterns is 8 bits, which gives 2⁸ = 256 possible patterns, from 00000000 to 11111111.

That photo is worth a second look. In the 1960s, people threaded every one of those tiny magnetic rings by hand, often with a needle under a magnifier. Each ring held one bit. Today a fingernail-sized memory chip holds billions of times more.
| Unit | Size | Rough example |
|---|---|---|
| 1 byte (B) | 8 bits | One English letter |
| 1 kilobyte (KB) | 1,000 bytes | A short email |
| 1 megabyte (MB) | 1,000,000 bytes | About a minute of MP3 music |
| 1 gigabyte (GB) | 1,000,000,000 bytes | Roughly 15–20 minutes of HD video |
| 1 terabyte (TB) | 1,000 GB | A laptop's whole drive |
| 1 petabyte (PB) | 1,000 TB | The storage of a large server cluster |
Two small traps catch everyone. First, some software counts 1 KB as 1,024 bytes, because 1,024 = 2¹⁰. The proper name for 1,024 bytes is a kibibyteKiB: 1,024 bytes, as opposed to a kilobyte of 1,000. In this book, KB, MB and GB mean powers of 1,000.
Second, watch the letter case. A small "b" means bit; a capital "B" means byte. Network speeds are quoted in bits, so a 10 Gb/s link moves 1.25 GB each second.
Binary numbers
We count in base 10: each position is worth ten times the one to its right (1, 10, 100, 1,000). Computers count in binarybase 2: each position is worth twice the one to its right, where each position is worth twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128.
The number 13 in binary:
position value: 8 4 2 1
bit: 1 1 0 1
│ │ │ │
8 + 4 + 0 + 1 = 13| Decimal | Binary (8 bits) |
|---|---|
| 0 | 00000000 |
| 1 | 00000001 |
| 2 | 00000010 |
| 13 | 00001101 |
| 65 | 01000001 |
| 255 | 11111111 |
With 8 bits you can count from 0 to 255. With 32 bits you can count to about 4.3 billion. Every extra bit doubles the range, which is why a few more bits go such a long way.
Text: letters as numbers
A computer stores each letter as a number, looked up in an agreed table.
ASCIIAmerican Standard Code for Information Interchange (1963): a 7-bit table of 128 characters covering English letters, digits and punctuation, from 1963, was the first widely shared table. It uses 7 bits for 128 characters: English letters, digits and punctuation. The capital letter "A", for example, is 65, or 01000001.
ASCII had no room for Greek, Arabic, Hindi, Chinese or most of the world's writing. Unicodea single, worldwide numbering of characters from every writing system; version 17.0 (2025) has 159,801 characters fixed that. It began in 1991 and now gives a number to almost 160,000 characters from the world's scripts, plus symbols and emoji.
UTF-8the most common way to store Unicode as bytes, using 1 to 4 bytes per character; designed in 1992 is the most common way to store those numbers as bytes. It is a beautiful piece of design: plain English text in UTF-8 is byte-for-byte identical to ASCII, so old software kept working, while every other script fits in two, three or four bytes.
| Text | Characters | Bytes in UTF-8 |
|---|---|---|
| hello (English) | 5 | 5 (1 byte each) |
| Γειά (Greek) | 4 | 8 (2 bytes each) |
| नमस्ते (Hindi, in Devanagari) | 6 Unicode characters | 18 (3 bytes each) |
| 你好 (Chinese) | 2 | 6 (3 bytes each) |
| 👋 (an emoji) | 1 | 4 |
This matters for AI. Many language models cut text into tokensthe small chunks of text, often word pieces, that a language model reads and writes one at a time with rules that start from bytes. If those rules were learned mostly from English text, other languages get split into more, smaller pieces. More tokens mean more calculation, more cost and slower replies for the same message. Chapter 14 explains tokens properly.
Images: a grid of numbers
A digital image is a grid of dots called pixelspicture elements: the tiny coloured dots that make up a digital image. Each pixel holds three numbers, for red, green and blue, and each number is usually one byte, from 0 to 255.
A worked example. A Full HD image is 1,920 × 1,080 = 2,073,600 pixels. At 3 bytes each, that is about 6.2 MB. A JPEG file squeezes it down to a few hundred kilobytes, with a small loss of quality that most eyes never notice.
Sound and video use the same idea. Sound is a long list of numbers measuring air pressure tens of thousands of times a second. Video is a sequence of images. Everything a computer handles, in the end, is numbers.
Number formats for AI
An AI model is, at heart, an enormous list of numbers called weightsthe learned numbers inside a neural network; a large model has billions of them (see chapter 14). How each number is stored decides two things:
- how much memory the model needs, and
- how accurate its calculations are.
Integers
An integera whole number, with no fractional part is a whole number. An 8-bit integer (INT8) holds −128 to +127. A 4-bit integer (INT4) holds just −8 to +7. Integers are simple and fast, but they cannot hold fractions or very wide ranges on their own.
Floating-point numbers
AI weights are mostly small fractions, such as 0.0137 or −0.42. Computers store fractions as floating-point numbersnumbers stored as a sign, a set of significant digits and a power of two, like scientific notation in binary, which work like scientific notation:
Scientific notation: 6.02 × 10²³
Floating point: sign × mantissa × 2^exponent
(+/−) (the digits) (the scale)The exponentthe part of a floating-point number that sets its scale: how large or small it is bits set the range, how large or small the number can be. The mantissathe part of a floating-point number that holds its significant digits, and so its precision bits set the precision, how many digits are correct. The IEEE 754 standard of 1985 defines the classic formats, and newer ones have been added for AI.
| Format | Bits | Bytes | Range | Precision | Typical use |
|---|---|---|---|---|---|
| FP32 | 32 | 4 | Very wide | about 7 decimal digits | Scientific computing, older AI training |
| FP16 | 16 | 2 | Narrow | about 3 digits | Graphics, older AI |
| BF16 ("brain float") | 16 | 2 | Same as FP32 | about 2–3 digits | AI training; created by Google for its TPU chips |
| FP8 | 8 | 1 | Medium | about 1–2 digits | AI training and inference; added in NVIDIA's H100 (2022) |
| FP4 | 4 | 0.5 | Very narrow | only 16 possible values | AI inference; added in NVIDIA's Blackwell (2024) |
BF16 is a clever bit of engineering. Its designers noticed that neural networks care more about range than precision, so they kept FP32's full exponent and simply chopped off most of the mantissa. Converting between the two is almost free.
FP4 has only 16 possible values. How can a model possibly work with that? The trick is a shared scale factoran extra number, shared by a small block of weights, that sets their common size. A block of about 16 to 32 weights shares one extra number that says how big they all are, and each weight just records its value relative to that. Formats such as MXFP4 and NVFP4 work this way. It is like a recipe that says "multiply everything by 3" once at the top, instead of writing the full amount on every line.
What each format costs in memory
A worked example. A model has 120 billion weights. How much memory do the weights alone need?
| Format | Bytes per weight | Memory for 120 billion weights |
|---|---|---|
| FP32 | 4 | 480 GB |
| BF16 / FP16 | 2 | 240 GB |
| FP8 | 1 | 120 GB |
| FP4 | 0.5 | 60 GB, plus roughly 5–10% for scale factors |
This little table explains a lot about AI hardware. A workstation GPU such as the RTX PRO 6000 has 96 GB of memory. In FP4, the model fits on one card. In BF16, it needs at least three cards just for the weights.
A real example: OpenAI's open-weight model gpt-oss-120b has about 117 billion parameters, and its large expert layers are stored in the 4-bit MXFP4 format. The published weight files total about 65 GB, small enough to run on a single 80 GB data-centre GPU.
Fewer bits mean a smaller, faster model, at the cost of a little quality. Choosing the right balance is a craft of its own, and chapter 15 explains how teams decide.
Logic gates: transistors that make decisions
Now we climb from storing numbers to doing things with them.
A logic gatea small circuit of transistors that takes one or two bits in and gives one bit out, following a fixed rule is a small circuit of transistors with a fixed rule. If you write code, you already know them as Boolean operators: !, &&, || and ^.
| Gate | Rule | Inputs → output | CMOS transistors |
|---|---|---|---|
| NOT | Output is the opposite of the input | 0→1, 1→0 | 2 |
| AND | 1 only if both inputs are 1 | 00→0, 01→0, 10→0, 11→1 | 6 |
| OR | 1 if either input is 1 | 00→0, 01→1, 10→1, 11→1 | 6 |
| NAND | NOT AND: 0 only if both inputs are 1 | 00→1, 01→1, 10→1, 11→0 | 4 |
| NOR | NOT OR: 1 only if both inputs are 0 | 00→1, 01→0, 10→0, 11→0 | 4 |
| XOR | 1 if the inputs differ | 00→0, 01→1, 10→1, 11→0 | about 8–12 |
Chapter 3 showed the NOT gate: one PMOS and one NMOS. A NAND gate uses two PMOS side by side and two NMOS in a chain.
CMOS NAND GATE
Power
┌───┴───┐
┌─┴─┐ ┌─┴─┐
A ───┤ P │ B─┤ P │ two PMOS in parallel (to power)
└─┬─┘ └─┬─┘
└───┬───┘
├──────── OUT
┌─┴─┐
A ───┤ N │ two NMOS in series (to ground)
└─┬─┘
┌─┴─┐
B ───┤ N │
└─┬─┘
Ground
OUT is 0 only when A = 1 AND B = 1 (both NMOS ON, path to ground).Notice that AND needs more transistors than NAND. In CMOS, the "inverted" gates come naturally, and AND is really a NAND followed by a NOT. Chip designers therefore think in NANDs and NORs.


NAND is universal
Here is a result that delights every engineering student. You can build every other gate out of NAND gates alone. Tie a NAND's two inputs together and it becomes a NOT. Add a NOT after a NAND and you get AND. Keep going, and you can build anything.
So, in principle, a whole computer could be built from a single kind of gate, like a whole language built from one instruction. (The name "NAND flash" comes from the way its memory cells are chained, which resembles a NAND gate; see chapter 10.)
From gates to arithmetic: the adder
How does a chip add two numbers? With gates, of course.
Start with adding two single bits, A and B:
| A | B | Sum | Carry |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Look closely and something lovely appears:
- The sum column is exactly XOR.
- The carry column is exactly AND.
So one XOR gate and one AND gate add two bits. This is a half addera circuit that adds two single bits, giving a sum bit and a carry bit. The last row says 1 + 1 = 10 in binary, which is 2.
A full addera circuit that adds two bits plus a carry from the previous column; about 28 transistors in standard CMOS also takes in a carry from the column to its right, just as you do when adding by hand. It takes about 28 transistors in a standard CMOS design.
ADD 5 + 3 WITH FOUR FULL ADDERS
carry: 1 1 1
5 = 0 1 0 1
3 = + 0 0 1 1
─────────────────
8 = 1 0 0 0
Each column is one full adder. Each carry goes to the next column on the left.Chain 32 full adders together and you can add two 32-bit numbers. Multiplication uses many adders working together. Engineers have spent decades inventing clever arrangements that make these circuits faster, mostly by not waiting for each carry to ripple all the way across.
Memory from gates: the flip-flop
A gate calculates, but it cannot remember. Change its input and its output changes straight away. So how does a chip hold on to anything?
The trick is a loop. Connect two NOT gates in a circle, so each one's output feeds the other's input.
┌────► NOT ────┐
│ │
└──── NOT ◄────┘
If the top output is 1, the bottom output is 0, which keeps the top at 1.
The loop holds its value for as long as it has power.The loop is stable in two states, so it stores one bit. Add two more transistors to let you write a new value into it, and you have the SRAM cellstatic random-access memory cell: six transistors that hold one bit as long as power is on, with 6 transistors. Chapter 10 explains SRAM and its cousins.
A flip-flopa memory loop with extra gates that let it change value only at a precise moment, set by the clock is a loop with extra gates that let it change only at a precise moment. Processors use flip-flops to hold numbers between calculations. A group of flip-flops holding one number is a registera small, very fast storage slot inside a processor that holds one number being worked on, the processor's equivalent of a local variable.
The clock
A chip has billions of gates, and they all need to work in step, like an orchestra following a conductor. The clocka signal that switches steadily between 0 and 1; at each tick, every flip-flop takes its new value at once is the conductor.
The clock is a signal that flips between 0 and 1 at a steady rate. At each tick, every flip-flop on the chip takes its new value at the same instant. Between ticks, signals ripple through the gates and settle, ready for the next tick.

There is a pleasing loop here. The steady beat that keeps every chip in time usually comes from a sliver of quartz, the same mineral that chapter 1 started with.
| Clock speed | Ticks per second | Time for one tick |
|---|---|---|
| 4.77 MHz (the original IBM PC, 1981) | about 4.8 million | about 0.2 microseconds |
| 1 GHz | 1 billion | 1 nanosecond |
| 3 GHz (a modern CPU) | 3 billion | 0.33 nanoseconds |
A sense of the speed. Light travels about 30 cm in a nanosecond. In one tick of a 3 GHz clock, it travels only about 10 cm. Electrical signals in a chip's fine wires move much more slowly than light. So distance on a chip really matters: a signal cannot cross a large chip in a single tick. Designers plan for that, much as distributed-systems engineers plan for network latency.
From gates to a processor
Now we can put the pieces together.
FROM TRANSISTOR TO PROCESSOR
transistor → gate → adder, multiplier → ALU → core → processor
(switch) (NAND) (arithmetic) (math (ALU + (many cores +
unit) registers cache memory +
+ control) connections)| Part | What it does |
|---|---|
| ALU (arithmetic logic unit) | Adds, subtracts, compares and does logic on numbers |
| Registers | A handful of very fast flip-flop groups holding the numbers in use |
| Control unit | Reads each instruction and sends the right signals to the ALU and registers |
| Cache | Fast on-chip SRAM holding recently used data (see chapter 10) |
| Core | One complete set of ALU, registers and control. A modern CPU has many. |

Instructions and instruction sets
A processor works through a list of simple instructionsthe basic commands a processor understands, such as "add these two registers". A typical one is "ADD R1, R2, R3": add the number in register 2 to the number in register 3, and put the result in register 1.
Each instruction is just a pattern of bits in memory. For each one, the processor runs the same little cycle:
- Fetch. Read the next instruction from memory.
- Decode. Work out what it asks for.
- Execute. Do the operation in the ALU.
- Write back. Put the result into a register or memory.
The full set of instructions a processor understands is its instruction set architectureISA: the fixed list of instructions a processor understands; the contract between hardware and software, like an API, or ISA. If you write software, think of it as the processor's public API: the hardware underneath can change completely from one generation to the next, as long as the API stays the same. Three ISAs dominate today.
| ISA | Owner | Where you find it |
|---|---|---|
| x86 | Intel and AMD (begun with the Intel 8086 in 1978) | Most PCs and data-centre CPUs |
| Arm | Arm Holdings, which licenses it to others | Nearly all phones, Apple Mac computers, NVIDIA Grace, AWS Graviton |
| RISC-V | An open standard (RISC-V International), begun at UC Berkeley in 2010 | Small controllers, and a growing range of products from many companies, universities and research centres |
How a program becomes moving electrons
You write: total = price * quantity
│
▼ compiler (a program that translates code)
Machine instructions: LOAD R2, price
LOAD R3, quantity
MUL R1, R2, R3
STORE R1, total
│
▼ stored as bits in memory
10001011 01000101 ...
│
▼ the processor reads the bits
Control signals switch millions of transistors in the ALU
│
▼
The result is a new pattern of voltages in a registerAll software, from a pocket calculator to a large language model, reaches the hardware this way. It is a long chain of translation, and every link was built by someone who cared about getting it exactly right.
The core operation of AI: multiply and add
AI chips spend almost all their time on one tiny operation, repeated trillions of times a second. It is the multiply-accumulateMAC: multiply two numbers and add the result to a running total, a = a + b × c, or MAC:
a = a + (b × c)Many MACs together make a matrix multiplicationcombining two tables of numbers by multiplying rows by columns and adding up the results. A matrixa rectangular table of numbers is just a table of numbers.
A worked example. Multiply two small 2 × 2 matrices:
┌ 1 2 ┐ ┌ 5 6 ┐ ┌ 1×5 + 2×7 1×6 + 2×8 ┐ ┌ 19 22 ┐
│ │ × │ │ = │ │ = │ │
└ 3 4 ┘ └ 7 8 ┘ └ 3×5 + 4×7 3×6 + 4×8 ┘ └ 43 50 ┘Each result needs 2 multiplications and 2 additions, so the whole thing takes 8 MACs.
A language model does exactly this, with enormous matrices. For each token it writes, it uses each active weight about once in one MAC. Counting a MAC as two operations (one multiply, one add) gives a handy rule:
Operations for one token ≈ 2 × the number of weights in use
A dense model that uses all 120 billion of its weights for every token needs about 240 billion operations per token. Many modern models are cleverer than that. A mixture-of-expertsa model design in which only a few specialist sub-networks, chosen per token, do the work model such as gpt-oss-120b wakes up only about 5 billion of its 117 billion weights for each token, so it needs only about 10 billion operations per token. Either way, a GPU finishes the job in a small fraction of a second. Chapter 12 shows how GPUs and AI chips line up thousands of MAC units side by side for exactly this work.
Moving data costs more energy than calculation
Here is the most important idea in this chapter for understanding AI hardware.
Before a chip can multiply two numbers, it has to fetch them. And fetching, it turns out, is the expensive part. In a famous 2014 talk, Mark Horowitz of Stanford set out the energy of basic operations on a 45-nanometre chip:
| Operation (32-bit numbers) | Energy (picojoules) | Compared with one multiply |
|---|---|---|
| Add two floating-point numbers | about 0.9 | 0.25× |
| Multiply two floating-point numbers | about 3.7 | 1× |
| Read a number from a small on-chip SRAM | about 5 | about 1.4× |
| Read a number from DRAM memory off the chip | about 640 | about 170× |
A picojoulepJ: a millionth of a millionth of a joule (10⁻¹² J) is a tiny amount of energy, but the ratio is what counts. Fetching a number from memory off the chip costs about 170 times more energy than multiplying it. Newer chips have changed the exact values, but the gap remains large.
The software analogy is exact: a cache hit is cheap, a network round trip is not, and good systems are designed around that difference. AI hardware is designed around the same rule. It explains a great deal:
- HBM memory stacks DRAM right next to the GPU, inside the same package, to shorten the trip (see chapter 11).
- Cerebras keeps weights in SRAM spread across a whole wafer (see chapter 12).
- Smaller number formats like FP8 and FP4 move fewer bytes for every weight.
- Memory bandwidth, not raw calculation speed, often sets how fast a language model can write (see chapter 15).
Go deeper: a rough energy budget for one token (an estimate)
Take a dense model with 120 billion weights in FP8, so 120 GB of weights. If every weight must be read from off-chip memory for each token, that is 120 GB of traffic. HBM costs very roughly 4–7 pJ per bit, so reading 120 × 10⁹ bytes × 8 bits costs about 4–7 joules. The 240 billion operations themselves, at roughly 0.2–0.7 pJ each on a modern GPU, cost only about 0.05–0.2 joules. Real systems serve many users at once and reuse each weight they fetch across the whole batch, which shrinks the memory cost per token enormously. That reuse, called batching, is one of the great efficiency tricks of AI serving.
Why this is hard
- Scale. A modern chip has billions of gates. Nobody designs them one by one; engineers rely on sophisticated software (see chapter 5).
- Timing. Every signal must arrive before the next clock tick. At 3 GHz, that is a third of a nanosecond.
- Energy. Each switch uses a tiny amount of energy, but billions of switches, billions of times a second, make a lot of heat.
- Data movement. Calculation is cheap; moving data is expensive. Good design keeps data close to where it is used.
- Number formats. Fewer bits save memory and energy, but too few make a model less accurate. Each model needs its own balance.
A map of the main organisations
These organisations own or steward the main standards in this chapter.
| Organisation | Based in | Role | Note |
|---|---|---|---|
| Intel | USA | x86 ISA, CPUs | Created x86 with the 8086 (1978) |
| AMD | USA | x86 CPUs and GPUs | Created the 64-bit extension of x86 (AMD64); first chips in 2003 |
| Arm Holdings | UK (majority-owned by SoftBank, Japan) | Arm ISA and processor designs | Licenses designs to Apple, Qualcomm, NVIDIA, Amazon and many others |
| RISC-V International | Switzerland | The open RISC-V standard | Anyone can implement the ISA without a licence fee |
| SiFive, Andes Technology | USA, Taiwan | RISC-V processor designs | Leading RISC-V design companies |
| NVIDIA | USA | GPUs, CUDA software, AI number formats | Added FP8 (2022) and FP4 (2024) to its chips |
| USA | BF16 format, TPU chips | Created BF16 for AI training | |
| IEEE | USA, with members worldwide | IEEE 754 floating-point standard | Defines FP32, FP16 and others |
| Unicode Consortium | USA, with members worldwide | The Unicode standard | Gives a number to every character in the world's scripts |
A short history
- 1703. Gottfried Leibniz publishes a description of binary numbers.
- 1854. George Boole publishes his algebra of true and false, now called Boolean logic.
- 1937. Claude Shannon shows that electrical switches can carry out Boolean logic, linking logic to hardware.
- 1945. John von Neumann describes a computer that keeps its program in memory. Most computers still follow this design.
- 1948. Shannon publishes his theory of information and popularises the word "bit", which he credits to John Tukey.
- 1956. Werner Buchholz at IBM coins the word "byte".
- 1963. ASCII becomes a standard.
- 1971. Intel releases the 4004, a 4-bit processor on one chip.
- 1978. Intel releases the 8086, the start of x86.
- 1985. IEEE 754 defines floating-point formats. Acorn makes the first Arm processor.
- 1991–1992. Unicode begins; UTF-8 follows.
- 2010. RISC-V begins at UC Berkeley.
- 2017–2018. Google uses BF16 in its TPU chips.
- 2022. NVIDIA adds FP8 to the H100 GPU.
- 2024. NVIDIA adds FP4 to its Blackwell GPUs.
Open questions
- How few bits can a model use? FP4 already works surprisingly well for inference. Research models with weights of only about 1.58 bits (just −1, 0 and +1) hint at more. Where is the floor?
- Can tokenizers treat every language fairly? Newer tokenizers trained on many languages have narrowed the gap a great deal. Could byte-level or character-aware models close it completely?
- Will computing move into memory? If fetching costs far more than calculating, why not calculate where the data already sits? Compute-in-memory chips are a lively area of research.
- What will an open ISA make possible? RISC-V lets anyone design a processor without a licence fee. What new kinds of chips will that openness produce?
What to remember
- Computers use two states because two states leave a wide noise margin, which keeps billions of circuits reliable.
- Eight bits make a byte. Bytes hold numbers, text (through Unicode and UTF-8) and images (as pixels).
- AI uses compact number formats. The same 120-billion-weight model needs 240 GB in BF16 but only about 60–65 GB in FP4.
- Transistors make gates; gates make adders, flip-flops, ALUs and processors; a clock keeps them all in step. The core operation of AI is multiply-accumulate.
- Moving data costs far more energy than calculating with it. That one fact drives HBM, wafer-scale chips and ever-smaller number formats.
Sources
- Unicode Consortium. "Unicode 17.0.0" (9 September 2025): 159,801 characters. https://www.unicode.org/versions/Unicode17.0.0/
- OpenAI, gpt-oss-120b model card on Hugging Face: 117B parameters, 5.1B active; MXFP4 for the MoE weights; runs on a single 80 GB GPU. Weight files total about 65.2 GB (sum of the published safetensors files). https://huggingface.co/openai/gpt-oss-120b
- Petrov, A., La Malfa, E., Torr, P. H. S. & Bibi, A. (2023). "Language model tokenizers introduce unfairness between languages." Tokenization lengths differ by up to 15 times. https://arxiv.org/abs/2305.15425
- Horowitz, M. (2014). "Computing's energy problem (and what we can do about it)." ISSCC 2014. https://doi.org/10.1109/ISSCC.2014.6757323 . Values as reproduced in Pedram, A. et al. (2016), "Dark memory and accelerator-rich system optimization in the dark silicon era." https://arxiv.org/abs/1602.04183
- IBM, "The IBM PC": Intel 8088 processor, running at up to about 5 MHz (4.77 MHz in the original model). https://www.ibm.com/history/personal-computer
- NVIDIA, H100 product page (FP8 Transformer Engine). https://www.nvidia.com/en-us/data-center/h100/ ; Blackwell architecture page (FP4). https://www.nvidia.com/en-us/data-center/technologies/blackwell-architecture/
- NVIDIA, RTX PRO 6000 Blackwell product page (96 GB GDDR7). https://www.nvidia.com/en-us/products/workstations/professional-desktop-gpus/rtx-pro-6000/
- IEEE Standards Association. IEEE 754 floating-point standard (first edition 1985). https://standards.ieee.org/ieee/754/6210/
- Ma, S. et al. (2024). "The era of 1-bit LLMs: all large language models are in 1.58 bits" (BitNet b1.58, weights of −1, 0, +1). https://arxiv.org/abs/2402.17764
- Open Compute Project (2023). OCP Microscaling Formats (MX) v1.0 Specification: MXFP4 with a shared scale per block of 32 values. https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf
Estimates in this chapter: the storage examples for MB and GB (they depend on compression); the transistor counts for XOR and full-adder gates (they vary by design); the 5–10% overhead for FP4 scale factors; the one-token energy budget and the HBM energy per bit (the range used in chapter 11 of Molecules to Minds); and the dates for BF16 in TPUs.