Chapter 272: Final Validation
Reborn in 2010: The AI in My Brain Is Too Powerful! by yangxxxxxx
Full-size chip testing was a great deal more involved than the earlier, simpler test flow. The previous round had only verified that the architecture worked. This time they needed a complete set of characterization data across the board.
On Christmas Eve, the principals of Aurora Group — Chen Yiran, Cook, Ellison of Oracle, Connaughton of Bain Capital, and Chase's representative — sat at FlowEDA to hear David Kao's formal report, and to see the two complete Mocha and Latte chips for the first time.
Unlike the earlier small-block test chips, the compute arrays on these two full-size versions were the complete article.
The test chips had carried only a minimum verifiable unit: a 16-by-16 systolic array slice for Mocha, 8-by-8 for Latte.
These two were different. Mocha's bare die was nearly three times the size of the test chip — three hundred and twenty square millimeters of silicon densely packed with the full systolic array, ringed by SRAM cache blocks, with the PCIe PHY, four PLL groups, and the DMA engine all present.
Latte used Ten Thousand Fruits Garden's 40nm process. The transistors themselves were larger than at 28nm, so the full-size version swelled to four hundred and eighty square millimeters, and the bond-wire density in the packaged test socket was more than double that of the test chip.
David Kao set a Mocha sample down on the table and began his formal report.
"We ran two weeks of testing — thirty Mocha samples, thirty-two Latte. Both passed every test item, and there's nothing that requires a metal-layer respin.
"First was power-up. Mocha has seven independent power domains, and we brought them up one at a time in sequence: core logic voltage first, then the interfaces, then the PLL analog supply, then the dedicated supply for the on-die SRAM, then the PCIe transceivers, and finally the auxiliary IO.
"Each time we added a rail, we simultaneously sampled impedance to ground with a digital multimeter. If that number drops into the fraction-of-an-ohm range, there's no point continuing — it means there's a dead short inside.
"On the first Mocha, once everything was up, impedance to ground settled within three percent of the datasheet nominal. Latte has five power domains, two fewer than Mocha, and its deviation was a little larger, 5.7 percent, but still well inside the safe band.
"Latte's PDK accuracy has always been somewhat worse than Samsung's. But that gap was already there back at the last test-chip round and hasn't widened since, so it isn't a real concern.
"Next, clocks. Mocha has four PLL groups, each managing its own domain: one clocks the compute cores, one the storage controller, one PCIe, and one the memory controller.
"Latte isn't nearly as complicated — it has only two, because its control logic is far simpler and doesn't need that many independent clock domains.
"Locking is basically a matter of feeding in a low-frequency reference clock and then pulling the frequency up step by step, waiting half a millisecond after each step to see whether the PLL output has followed.
"On Mocha we pulled from 1.2GHz up to 1.6GHz. The whole lock curve was beautiful, essentially linear, and across all four steps the lock time stayed under 0.3 milliseconds each time.
"Latte, going from 500MHz to 800MHz, hiccupped slightly around 760MHz — about 0.15 milliseconds slower than normal lock speed.
"That wasn't a surprise. The previous Latte test chip already showed a similar problem in the PLL block; back then the lock range was drastically narrowed. With the updated PDK the lock range has recovered, but that 0.15-millisecond delay hasn't been fully eliminated.
"We analyzed it afterward and concluded it's the voltage-controlled oscillator at 40nm — the inductor Q factor is simply modeled inaccurately in that low-frequency region.
"That's not something you can fix in the design. We'll have to wait for Ten Thousand Fruits Garden to iterate the process themselves. Fortunately it doesn't affect function; it won't lose lock.
"Scan chains were straightforward: push a string of ones and zeros in over JTAG, run it through every register, and read it back out.
"All thirty Mocha units passed. Two of the thirty-two Latte units showed roughly three clock cycles of extra readback latency near the IO ring, though no data was lost. That isn't fatal; we'll just monitor it through production.
"SRAM was the block that gave us the most trouble last round.
"The Mocha test chip had two consecutive weak bits at the low-voltage corner. This time the full-size version passed all three voltage corners, and the design reserved redundant rows for replacement anyway, so even a real failure would be repairable.
"Latte's problem last round was worse: SRAM bit flips at high frequency. We traced it to the parasitic capacitance parameters for the metal vias in the PDK being off by a few femtofarads. After updating the PDK model and recalibrating, it also passed all three voltage corners this time.
"There's one more thing I think is worth mentioning. Mocha and Latte use the same systolic array architecture, and early in the design we built the memory interface as a process-independent abstraction layer. The two sides only swap the physical transistor implementation; not a single logic structure was touched.
"That's why the consistency in SRAM pass rates was much higher than we originally expected — which says the architecture itself is sound.
"Back when we built that process-independent abstraction layer, several people on the team objected, arguing that optimizing the two separately would give better performance.
"But looking back now: without the abstraction layer, Mocha and Latte would each have had to maintain their own memory-interface control logic. Any bug on either side would have to be debugged separately, and we'd probably have ended up with Mocha fixing problem A while Latte fixed problem B, the two never lining up.
"Given this result, I'd say that layer of abstraction earned its keep.
"Functional testing of the compute units only started after all that electrical validation was done.
"We loaded pre-stored matrix-multiply vectors into on-die SRAM and pushed them through the compute array with the DMA engine — one pass in FP32, one in FP16, one in INT8 — comparing every pass bit by bit against the CPU reference values.
"Mocha's FP32 deviation was only 0.15 percent, and its INT8 throughput hit 103 percent of spec. Latte's FP32 deviation was 0.24 percent with INT8 throughput at 98 percent. The deviation is indeed a bit larger than Mocha's, mainly because multiplier transistor matching at 40nm is inherently inferior to 28nm.
"But both chips are well inside the 2 percent acceptance line, so neither is a problem.
"Then we ran complete networks. When convolutional layers and activation functions and so on are combined, the hardware triggers various different control-flow paths — pooling, normalization, cross-layer skip connections. Matrix multiply passing doesn't mean any of that is clean.
"We loaded a three-layer convolutional network and a small residual network. The two were deliberately designed as opposite extremes.
"The three-layer one has a dense, contiguous data structure, so data doesn't need to be swapped in and out of on-die SRAM very often. The residual one has cross-layer skips, mainly to test whether the control logic can correctly manage several data streams entering and leaving the compute array at once.
"Mean squared error between output and reference was 3.2e-6 on Mocha and 4.1e-6 on Latte.
"PCIe bandwidth measures the pipe between the chip and the outside world.
"Mocha uses a PCIe 3.0 x16 interface, and the DMA engine hit 14.8GB/s of actual bidirectional bandwidth. The theoretical physical layer ceiling is 15.75, but once you subtract link encoding overhead and transaction-layer packet headers, the effective ceiling is roughly 14.9.
"Mocha's 14.8 is less than a percent off that ceiling — essentially not a bottleneck. Latte runs PCIe 2.0 x8 and reached 3.6GB/s against a theoretical 4.0, which is within expectations.
"For power characterization, we swept load from zero to a hundred percent, logging current every ten percent while scanning the die surface with a thermal imager.
"Mocha's full-load power is 27.3 watts. The previous test chip had to be pushed to 0.95V to hold frequency, which cost nearly ten percent more power.
"Now that this version is back at the nominal 0.9V, power sits comfortably inside the thirty-watt budget — and 27.3 is actually slightly below the datasheet typical, which tells us leakage control on the 28nm process is better than we expected.
"Latte's full load is 18.7 watts. The device scenarios it targets never had especially tight power requirements to begin with, and hitting that number on a 40nm process counts as a pass.
"On the thermal images, the hotspots on both chips are concentrated in the systolic array. Latte has a small localized hotspot on the side near the IO ring, which is just the inherent heat of the high-current IO drivers and doesn't affect function.
"Last was the long-duration stress test.
"We ran the chips at full-speed matrix multiply continuously in an 85-degree ambient environment, sampling accuracy and power every fifteen minutes.
"Mocha went a full four hours without a single erroneous bit.
"Latte had one bit flip at the three-and-a-half-hour mark, but it recovered automatically by the next sampling period and didn't reproduce on retest. The team's judgment is a single-event upset — a cosmic ray happening to strike an SRAM cell — nothing to do with the chip design itself.
"That's the picture. Nine test categories, and Mocha and Latte passed together, with every deviation inside the acceptance line and nothing requiring a respin. Honestly, this result is better than I expected.
"One chip on Samsung 28nm, one on Ten Thousand Fruits Garden 40nm — the transistor channel doping, the metal layer count, the lithography precision are all different. With that many variables, for the same systolic array architecture to produce test data this consistent on both sides, I'd say the architecture itself is proven correct.
"Samsung's packaging line can deliver the first batch of production package-and-test parts in about four weeks. Ten Thousand Fruits Garden will need about five, since their 40nm line has only recently been run in.
"The design side can freeze immediately. I've already told them to prepare the encrypted package."
Chen Yiran waved David Kao out once the report was done, then looked around at the others at the table. "So, as it stands, we can absolutely be in formal mass production and deployment in the first quarter of next year. Any questions?"
Connaughton wasn't a technical man, and the report hadn't given him a clear sense of the chip's performance. He glanced at the document in his hand. "Mr. Chen, so how far ahead is this chip? Can we cut ourselves loose from Nvidia entirely?"
"The closest product on the market is Nvidia's Kepler-architecture Tesla K20X, but at the end of the day that's a conventional GPU. What we have is a dedicated tensor processor.
"The point isn't raw performance — it's that at equivalent power, our chip is stronger. Of course, the current design can only do inference, not training. But I already have a complete solution for that: link 256 chips into a training cluster doing forward computation and gradient aggregation for backpropagation simultaneously, and that's that.
"Most important of all is the native hardware-software co-design between our chip and DeepFlow."
Cook, sitting to one side, looked over at Ellison. "Once the chips go into mass production, Apple is going to need a large number of racks. We'd like Oracle to release capacity ahead of schedule. All of our data centers are built; we're just waiting on the chips and the racks."
Ellison nodded. "Don't worry, I'll prioritize supply to Apple. I do have a question, though. Does this mean we're going to openly break with Nvidia? They've been poaching people aggressively lately. Are we selling our chips externally or keeping them entirely for internal use? If we sell, we have to account for Nvidia swinging fully over to Google."
Chen Yiran gave his conclusion directly. "We definitely sell. Otherwise our chain is so complete that we start to look like a monopoly. But we won't sell the training technology. So the ideal state is: Nvidia and AMD chips on the market get used for training, and our chips get used for inference.
"Of course, if Nvidia really is cornered enough to go all in with Google, then we scale up technology investment in Ten Thousand Fruits Garden and prepare to supply everything ourselves. There's a problem there too: on its own, Ten Thousand Fruits Garden's capacity and technology can't break past 28nm in any short time frame.
"So the Samsung question needs solving. We have to make sure they're completely aligned with us.
"Besides, watching their share price soar on the back of us day after day while we get nothing out of it — that won't do!"
Connaughton smiled. "Leave it to me. We'll find a way to make them hand over some equity to Aurora Group."
Chen Yiran thought for a moment. "Aurora Group is already a big platform, and I did set aside some shares for strategic investors back at the start. If Samsung is willing, they can take up a portion, and we can cross-hold.
"And they have to put up cash. Aurora Group is coming up on its first anniversary. We can't have a hundred-billion valuation last year and still a hundred-billion valuation this year!"