Part 7 of 12: Inside a Tesla Previous: Eight Cameras, No Radar: How a Tesla Sees Next: Tesla HydraNet and Bird's-Eye View: From Eight Cameras to One Map
All 12 parts
- Inside a Tesla: A Computer That Happens to Have Wheels
- One Casting Instead of 70 Parts: Tesla's Giga Press
- Building a Car in Pieces: Tesla's Unboxed Process
- The Battery Is the Floor: Cells, Chemistry and the Structural Pack
- Fewer Wires, One Valve: Tesla's Electrical and Thermal Design
- Eight Cameras, No Radar: How a Tesla Sees
- The Chip in the Glovebox: Tesla's FSD Computer (HW3, HW4, AI5)
- Tesla HydraNet and Bird's-Eye View: From Eight Cameras to One Map
- Tesla Occupancy Network: Seeing Things It Has No Name For
- From Hand-Written Rules to One Network: How FSD Plans
- The Data Engine: How Tesla Teaches the Car
- Robotaxi: A Car With Nobody in the Driver's Seat
On 22 April 2019, Tesla showed investors a circuit board. Pete Bannon walked through the chip on it during Autonomy Day. Elon Musk called it “objectively the best chip in the world” and said the next one was about two years away, as Electrek reported that day.
The board had a hard job. It had to fit where the old computer sat in cars already on the road, between the back of the glovebox and the firewall, says Cadence’s write-up of the talk. Tesla’s own Hot Chips slides list the goals: retrofit existing HW2.x cars, stay under 100 W, and keep part costs low enough to fit two chips.
The headline number was 144 trillion operations per second at 72 watts. This post takes that number apart. What is an operation? Why is the chip a grid of tiny multiplier cells? Why does Tesla talk about memory as much as speed? Then it follows the hardware through HW3, HW4 and AI5, and ends on the question owners of older cars ask: what happens to the computer they have?
Part 7 of Inside a Tesla. I like the car and the tech, so I researched it to feed my own curiosity; not affiliated with Tesla, not investment advice.
Short version:
- A neural network layer is mostly one operation: multiply two numbers and add the result to a running total. Tesla’s slides say 99.7% of the operations in its networks are multiply-accumulates. So each accelerator on its chip is a grid of 9,216 multiply-add cells with 32 MB of fast memory next to it.
- TOPS counts the peak number of those operations per second. It does not say how many the car’s network can use, how fast memory can feed them, or what the chip draws. Google’s first AI chip delivered between about 3% and 93% of its peak, depending on the network.
- HW3 (2019): Tesla says two chips, 144 TOPS, 72 W. HW4 (AI4): Tesla has not published a spec sheet, and the usual 500 TOPS is unofficial. AI5: Tesla says it taped out in April 2026. It is not in any car.
What the chip is asked to do
Eight cameras send video to the computer. The computer runs neural networks over it, and the answer goes to the controllers for steering, braking and drive. A neural network is a stack of layers. Each layer takes a grid of numbers and produces another grid. Later parts of this series cover what the networks find. This part covers the machine that runs them.

Photo: Sikander Iqbal, CC BY-SA 4.0, via Wikimedia Commons. The file title says “UBQ01B0 FSD Chip” and does not say which hardware version the board is.
Tesla’s goals for its first chip, from the Hot Chips slides, were more than 50 TOPS per chip, about 80% of that usable, under 40 W per chip, and “optimized for batch size of one”. Batch size is how many pictures the chip works on at once. A data centre handles many at a time to keep its chips busy. A car has one set of camera frames and needs the answer now, so the chip has to be fast on a single picture.
A convolution is multiply and add
The first layers of a vision network use convolutions. An image is a grid of brightness numbers. A convolution slides a small grid of weights, called a filter, across it. At each position you multiply each pixel by the weight lying on top of it and add up the products.
This filter is the classic Sobel edge detector. A trained network learns its own weights, but the arithmetic is the same. Nine multiplies and eight adds make one output number. A layer does that for every position and every filter.
Tesla’s chip team drew the full picture as a loop. Their slide calls a single convolution “a 7 deep nested for loop”. Here is my version of it:
for image in batch:
for out_channel in output_channels:
for out_x in output_width:
for out_y in output_height:
total = 0
for in_channel in input_channels:
for k_y in kernel_height:
for k_x in kernel_width:
total += pixel[image][in_channel][out_y + k_y][out_x + k_x]
* weight[out_channel][in_channel][k_y][k_x]
output[image][out_channel][out_y][out_x] = total
The innermost line is the only arithmetic: one multiply, one add. The same slide says 99.7% of the operations in an example vision network are multiply accumulates (Tesla, Hot Chips 31, Aug 2019). That is why a chip can be built around that one move.
Turn it into one big matrix multiply
Seven loops are awkward for hardware. A matrix multiply is not. Lay each window of pixels out as one row of numbers and each filter as one column. Then a whole layer is one table times another table.
Tesla’s patent US 10,671,349 B2, “Accelerated mathematical engine”, describes the trick. It says software usually converts convolutions into matrix multiplies, and it gives an example: a 3 by 3 patch across 3 colour channels becomes a column of 27 numbers, and a filter’s weights become a row of 27. My picture turns the same table on its side. The inventors are Bannon, Hurd and Talpes. It was granted on 2 June 2020. Figure 5 shows the same idea as the picture above, ending in the small cell the chip repeats thousands of times: an 8-bit multiplier feeding a 32-bit adder (the Hot Chips slide says a 30-bit running total).

US patent 10,671,349, fig. 5. Drawing rotated and resized.
Tesla’s Hot Chips slides do one more step. They merge the two output position loops into one long axis, then work through 96 positions and 96 filters at a time. The number 96 comes from the next section.
The array: 9,216 multiply-add cells
Each Tesla accelerator is a 96 by 96 square of cells. Image numbers flow in along the rows. Weights flow in along the columns. Every cell multiplies the two numbers it sees, adds the result to a running total, and keeps that total.
The slide gives the cell’s arithmetic as “Acc (30b) = 8b x 8b + Acc”. The numbers are whole numbers that fit in 8 bits. Rounding a network down to 8-bit whole numbers is called quantization. It makes each multiplier small, so more of them fit on the chip and each draws less power. The adders are wider so the running total does not overflow.
After the array come the small jobs. A “ReLU” step zeros out negative numbers. “Pooling” shrinks a grid by keeping the maximum or the average of each small block. Tesla’s slide says that once multiply-adds are made orders of magnitude faster, these steps matter much more, so the chip has dedicated hardware for them too.
Now the TOPS arithmetic. A multiply and an add count as two operations. One accelerator does 9,216 cells x 2 operations x 2 billion ticks per second, which is 36.9 trillion operations per second. Tesla’s slide says 36.8 TOPS per accelerator. Each chip has two accelerators, and the board has two chips. Four accelerators at about 36.8 each make about 147, which Tesla rounds to 144 (the 144 is Tesla’s Autonomy Day figure, not on the Hot Chips slides). The arithmetic is mine.
The real limit is where the numbers wait
A multiplier cell is cheap. Getting a number to it is not. Two kinds of memory matter:
- SRAM sits on the chip, built from the same transistors as the logic. It is fast and cheap to read, but each bit takes several transistors, so there is little of it.
- DRAM is separate memory chips beside the processor. It holds gigabytes, but every access goes out through the chip’s pins.
The figures come from Mark Horowitz’s 2014 chip conference paper “Computing’s energy problem”. He puts a DRAM access at 1 to 2 nanojoules, “a couple of orders-of-magnitude” above an on-chip access or an operation at about 10 picojoules. He also says the most efficient designs need roughly a thousand operations for each DRAM fetch, and that this is “very similar to what is needed to implement convolution”, because each pixel and weight is used many times. Tesla’s slide cites the same paper.
So Tesla’s design leans on SRAM. Each accelerator has 32 MB of it. The slides say network programs stay resident in the SRAM, and one design rule is “Eliminate DRAM reads/writes”. For scale, a 1280 by 960 camera frame (the 1.2 megapixel HW3 camera size reported by Electrek) is about 1.2 MB at one byte per pixel. 32 MB is about 27 such frames. That is my arithmetic, and a real layer’s size depends on the network, which Tesla has not published.
Keep this section in mind. It comes back in the upgrade question.
What TOPS tells you, and what it does not
TOPS is the peak: every cell doing useful work on every tick. A real network never gets there. Google’s first AI chip makes the point with published numbers. Its peak is 92 TOPS. On six real networks it delivered between 2.8 and 86 TOPS.
This is a different chip from Tesla’s, so it is a lesson, not a prediction. The authors say four of the six networks were limited by memory bandwidth, not by the multipliers. On CNN1, the matrix unit was busy under half the time, and when it was busy only about half of its 65,536 cells held useful weights, because some layers were too narrow to fill the array (Jouppi et al., ISCA 2017).
The 144 figure was argued over the day it came out. Tesla compared its chip with NVIDIA’s Xavier at 21 TOPS. NVIDIA’s reply said Xavier is rated at 30, and that Tesla’s two-chip board should be compared with NVIDIA’s own two-chip computer, DRIVE AGX Pegasus, at 320. The Cadence write-up adds that 144 counts the second, redundant chip, so about half of it is what one pass over the camera data can use. That is the blogger’s reading, not Tesla’s claim. Tesla’s own speed number is different: 2,300 frames per second on its own network, against 110 for the board before it.
Four questions make any TOPS number more useful:
- What precision? Tesla’s cell is 8-bit. A 16-bit TOPS is a different number.
- Peak or measured, and on which network?
- How much memory bandwidth feeds the cells?
- How many watts, and for how many chips?
HW3, as Tesla described it in 2019
Tesla’s 2016 blog post said every car in production had “the hardware needed for full self-driving capability”, with a computer of “more than 40 times the computing power of the previous generation” (Tesla, 19 Oct 2016). Tesla’s own chip came next. The slides say it took 14 months from architecture to tape-out.
| Item | Value | Source |
|---|---|---|
| Chip process, size | 14 nm FinFET, 260 mm², about 6 billion transistors | Tesla, Hot Chips slides |
| Chip maker | Samsung, in Austin | Electrek, VentureBeat |
| On each chip | 12 CPUs, 1 GPU, 2 accelerators | Tesla, Hot Chips slides |
| Accelerator | 96 x 96 MACs, 2 GHz+, 32 MB SRAM, 36.8 TOPS | Tesla, Hot Chips slides |
| Board | 2 chips, 144 TOPS, 72 W | Tesla; the 144 as reported by VentureBeat, the 72 W on the Hot Chips slide |
| Versus HW2.5 | 2,300 vs 110 frames per second, 72 W vs 57 W, 0.8x the cost | Tesla’s own benchmark |
Tesla’s chart is the one worth keeping. The new board did 21 times the frames on Tesla’s own network for 1.25 times the power, Tesla’s figure:
I divided the two numbers: about 1.9 frames per watt before, about 31.9 after. The frame rate is a Tesla benchmark on a Tesla network, so nobody outside can repeat it. The HW3 board was a few weeks old in cars when Tesla presented it. It went into new Model S and X from about 20 March 2019 and Model 3 from about 12 April, per Electrek. The full design is in the IEEE Micro paper by the team.
HW4 (AI4): what is known and what is a guess
Tesla now calls the two generations AI3 and AI4, as its AI chief did when announcing a build for “AI3” cars in June 2026 (Electrek). Tesla has not published a spec sheet for AI4 that I could find. So here is each number with its source:
| Claim | Who says it | Status |
|---|---|---|
| 16 GB of memory per chip, planned move to 32 GB | Musk, Q1 2026 call | Tesla statement |
| 20 CPU cores per side, up from 12; 12 camera connectors | Outside researcher’s teardown, Feb 2023 (InsideEVs, Notebookcheck) | Outside analysis |
| About 5 MP cameras, up from 1.2 MP | Electrek, citing firmware strings found by a researcher; the sensor name is unconfirmed | Outside analysis |
| About 500 TOPS | Not a Tesla App, 27 May 2026, no source given | Unofficial |
The 16 GB figure is in the Q1 2026 call transcript. Musk said an AI4 refresh with newer memory would go from 16 to 32 GB per chip and add about 10% to compute and memory bandwidth. The transcript is a third-party copy of the call.
The 500 TOPS number is the one to be careful with. It is everywhere, and I could not trace it to Tesla. The chart below shows it dashed on purpose:
AI5: taped out, not in cars
“Tape-out” means the chip design is finished and sent to a chip factory to make the first batch. Testing and ramping follow. Musk wrote on X on 15 April 2026: “Congrats to the @Tesla_AI chip design team on taping out AI5!” (quoted by Electrek). Electrek’s own estimate is that automotive chips usually take 12 to 18 months from tape-out to volume. That is the outlet’s view, not Tesla’s.
Here is what Tesla and Musk have said about where AI5 goes, in order:
| Date | What was said | Source |
|---|---|---|
| Jun 2024 | AI5 in cars in the second half of 2025 | Musk, as recapped by Electrek |
| 22 Oct 2025 | Made at Samsung’s Texas plant and TSMC’s Arizona plant; up to 40x AI4 on some measures; drops the old GPU and image processor | Musk, Q3 2025 call, via TrendForce |
| 22 Apr 2026 | “AI5 will go into Optimus and into the data center”; AI4 is already above human safety, so AI5 is not urgent in cars | Musk, Q1 2026 call transcript |
| 22 Jul 2026 | AI5 “hopefully in volume production around the middle of next year”; per Electrek, AI5 would “initially go into Optimus” | Q2 2026 call transcript |
| 21 Oct 2026 | “An order of magnitude more compute, AI5 versus AI4”; volume “hopefully around April of next year” for Optimus | Q3 2026 call transcript |
Two things do not line up, and I want to show both.
Who builds it. Musk said on the Q3 2025 call that output is split between Samsung’s Texas plant and TSMC’s Arizona plant, and his tape-out post credited both. Electrek, on 15 April 2026, reports TSMC for AI5 and Samsung’s 2 nm line for AI6. TechNode cites unnamed sources, and only for the 2027 timing. I would not state a fab as fact until Tesla says so.
How fast it is. The 2,000 to 2,500 TOPS target on the chart is an outside number. TrendForce’s April 2026 report relays an earlier Musk claim of 8x compute and 9x memory (it gives no date), and on the 21 October call he said “an order of magnitude”. If AI4 is 500, 8x is 4,000 and 10x is 5,000, well above the target. So either AI4 is lower than 500, or the target is stale, or the ratios measure something else. Nobody outside Tesla can settle that today.
The HW3 upgrade question, as Tesla stated it
Owners of HW3 cars who bought FSD ask the obvious question: will my computer be replaced? Here is what Tesla and Musk have said, with dates:
- April 2019. At Autonomy Day Musk said Tesla would start offering retrofits within months to owners who had bought FSD (Electrek).
- January 2023. Asked about moving HW3 cars to HW4, Musk said the cost and difficulty were “quite significant” and a retrofit would not be economically feasible (Electrek).
- January 2025. Musk: “we’re going to have to upgrade people’s Hardware 3 computer for those that have bought full self-driving”, which he called “painful and difficult but we’ll get it done” (Q4 2024 call transcript, also The Register).
- April 2026. Musk: “Hardware 3 simply does not have the capability to achieve Unsupervised FSD”. He gave a reason: HW3 has “only 1/8 of the memory bandwidth” of HW4, and memory bandwidth is “one of the key elements needed for Unsupervised FSD”. He described a discounted trade-in for an AI4 car and an upgrade that replaces the computer and the cameras (Q1 2026 call transcript).
- June 2026. Tesla’s AI chief said “FSD v14 Lite” was rolling out to AI3 early-access customers. He said it “distills” the v14 driving behaviour into the older computer and cameras. It is still supervised (Electrek).
- July 2026. Asked if the upgrade is still the plan, Musk said it would be “financially sensible at some point” and that Tesla would “want to upgrade them to the next generation” of board. He named two options: a “moderate improvement over AI4” around the middle of 2027, or AI5 (Q2 2026 call transcript). Electrek’s headline on the call says Tesla still has no real plan. That is the outlet’s judgement. The point it rests on is plain: the boards in question are not in production.
Now the memory section pays off. Musk’s reason is about moving data, not about multipliers. For “an auto-regressive transformer”, he said, memory bandwidth “is the choke point”. My reading of that: if a network’s weights do not fit in the chip’s fast SRAM, they are read from DRAM again and again, and the speed of that read sets the speed of the network. HW3 has 64 MB of SRAM per chip and, by Musk’s figure, an eighth of HW4’s memory bandwidth. More multipliers would not help. Tesla has not published the numbers behind the claim.
What I could not check
- Tesla’s own support and spec pages refused my downloads, so camera ranges and any HW3 or HW4 numbers on tesla.com are not in this post. I read the 2016 blog post from an archived copy.
- The earnings calls are quoted from third-party transcripts. Some are garbled in places, so I kept the quotes short.
- I could not trace the 500 TOPS figure for AI4 or the 2,000 to 2,500 TOPS target for AI5 to Tesla. They stay marked unofficial.
- The photo above does not say which hardware version it shows, so I did not label it.
Questions people ask
What does TOPS mean on a chip? Tera-operations per second: a trillion simple operations, often 8-bit multiplies and adds, counted at the chip’s peak. It is a ceiling. The speed you get depends on the network and on how fast memory can feed the cells.
How many TOPS does Tesla HW3 have? Tesla says 144 for the board, which is two chips with two accelerators each at 36 TOPS. NVIDIA disputed the comparison Tesla made at the time. The same number counts the second, redundant chip.
Is HW4 the same as AI4? Yes. Tesla now uses the AI3 and AI4 names for HW3 and HW4, as its AI chief did when announcing a build for AI3 in June 2026.
Is AI5 in any Tesla car? No. Tesla says it taped out in April 2026. On the 21 October 2026 call Musk said he hopes for volume around April 2027 and talked about it going into Optimus. Electrek reports that Tesla said the Cybercab launches on AI4.
Will my HW3 car get a new computer? In January 2025 Musk said Tesla would have to upgrade HW3 computers for people who bought FSD. In July 2026 he said an upgrade is “financially sensible at some point”, to a next-generation board. Tesla has not given a date, price or method, and that board is not in production yet.
Cheat sheet
Next: The chip now has what it needs: eight video streams in, a grid that multiplies, a way to feed it. But the car does not need eight flat pictures. It needs one 3D world with distances in it. How does Tesla turn eight camera images into a single picture of the space around the car?
Further reading
Tesla
- Hot Chips 31 slides: Tesla’s compute and redundancy solution, Aug 2019
- Autonomy Day video, 22 Apr 2019
- All Tesla cars being produced now have full self-driving hardware, 19 Oct 2016
- Earnings call transcripts (third-party copies): Q4 2024, Q1 2026, Q2 2026, Q3 2026
Patents
Papers
- Talpes et al., Compute Solution for Tesla’s Full Self-Driving Computer, IEEE Micro, March 2020
- Horowitz, Computing’s energy problem (and what we can do about it), ISSCC 2014
- Jouppi et al., In-Datacenter Performance Analysis of a Tensor Processing Unit, ISCA 2017
- Sze et al., Efficient Processing of Deep Neural Networks: A Tutorial and Survey
Outside analysis
- Cadence, Tesla Autonomy Day chip summary and Hot Chips 2019 summary
- NVIDIA’s reply, “Tesla Raises the Bar for Self-Driving Carmakers”, Apr 2019 (reposted)
- Electrek, Autonomy Day computer details, 22 Apr 2019
- VentureBeat, Tesla chip claims, 22 Apr 2019
- InsideEVs, first HW4 teardown, Feb 2023
- Electrek, Musk rules out a HW3 to HW4 retrofit, Jan 2023
- The Register, Q4 2024 call, 30 Jan 2025
- Electrek, camera upgrade and HW3 vs HW4 cameras, 2 Dec 2025
- Electrek, AI5 tape-out, 15 Apr 2026
- TechNode, AI5 tape-out, 16 Apr 2026
- TrendForce, AI5 production split, 23 Oct 2025 and the tape-out post, 15 Apr 2026
- Not a Tesla App, how FSD hardware has changed, 27 May 2026
- Electrek, FSD v14 Lite for HW3, 29 Jun 2026
- Electrek, Hardware 3 owners and the Q2 2026 call, 22 Jul 2026