6 ms·
Apple A6 Teardown
- protomyth 14y ago"it looks like the ARM core blocks were laid out manually—as in, by hand"
- freehunter 14y agoDoes anyone know why a chip put in by hand will be faster than a chip put in mechanically (or whatever other means they could use)?
- DIVx0 14y agoI think they mean that the layout of the die components were laid out and optimized by hand rather than letting an algorithm do it. I could be wrong though, I'm not an EE.
- Symmetry 14y agoYup, for the same reason that hand-crafted assembly is usually faster than compiled code. A human can just do more creative things to optimize a layout than our current algorithms can.
- protomyth 14y agoI just thought it was interesting given Apple's history: http://folklore.org/StoryView.py?story=Nybbles.txt http://folklore.org/StoryView.py?story=Nybbles.txt "The Apple II disk controller, designed six months after the Apple II itself was complete, was Steve Wozniak's crowning achievement. His five chip disk controller card out-performed competitive controllers that were four times as expensive by shifting most of the responsibilities from hardware to software. In Woz's approach, the software was responsible for doing all of the encoding and decoding, head stepping, etc. This allowed Woz to improve the capacity and performance over standard techniques." http://apple2history.org/history/ah05/ http://apple2history.org/history/ah05/ For two weeks, he worked late each night to make a satisfactory design. When he was finished, he found that if he moved a connector he could cut down on feedthroughs, making the board more reliable. To make that move, however, he had to start over in his design. This time it only took twenty hours. He then saw another feedthrough that could be eliminated, and again started over on his design. “The final design was generally recognized by computer engineers as brilliant and was by engineering aesthetics beautiful. Woz later said, ‘It’s something you can only do if you’re the engineer and the PC board layout person yourself. That was an artistic layout. The board has virtually no feedthroughs.’
- stordoff 14y agoIIRC, you can optimise the locations of sub-components to minimise on-chip communication delays. The automatic algorithms are pretty good, but can often be bettered (particularly if critical paths are identified and optimised).
- DigitalJack 14y agoIt won't always be faster. In fact, I'd argue if you had to lay out the whole thing by hand you would almost certainly do a worse job than "automatic" place&route. It's a matter of distance between components on the die, and transistor sizing. At the scale of complex integrated circuits, it's just about guaranteed that an automatic route will do a good job, but stands a good chance of messing a few hotspots up. I'm not an expert on the algorithms used for automatic routing, but there is some random guessing involved. You can even provide a seed for the random number generator. More often than not, a hybrid approach is used where the designer gives broad recommendations on where to place components and lets the autorouter go from there. Then at the end, the designer may go in and tweak some hot spots, or scrap it and start over with a new seed.
- X-Istence 14y agoAutomatic routing is still an NP complete problem, as in there is no perfect solution. This is the same issue with automatic routers for PCB's and the like, it is guess work along with some genetic sort of algorithm that steps through various options. I've had times where the auto router for a board gave up because it couldn't complete the routing, ripped everything up and did it by hand. Sure it took longer but the routes were shorter, and I finished routing the board with room to spare.
- ChuckMcM 14y agoChips, like printed circuit boards, are often laid out by algorithms. These algorithms try to optimize amongst a number of parameters such as active transistors per unit area, signal paths, power requirements, interference (things like electron tunnelling) and whatnot. As with a circuit board you can set the dial 'wide' and get a quick layout that is not optimal. You can dial it in and the algorithm will do most of the work and then stop on things it can't figure out (which an engineer then goes in and manually places). It's time consuming to do manual layout and the effects are not always immediately obvious [1]. So there is both a time component and a risk component to manual layout. It can however result in a smaller and more efficient chip. [1] When I was at Intel the 386 was the new hawtness. The first silicon samples powered up and ran which was awesome but at 'full speed' there were some issues that turned out to be related to a clock signal somewhere between the registers and the ALU. The design engineer replaced a metal feature (typical conductors were done in the metal layer) with a polysilicon version which had the effect of slowing down the propagation speed enough to line up the clocks. (it was fortunate it didn't need to go faster which is harder to do :-) These days the device geometries are so small as to require a lot of analysis which I would not enjoy trying to do by "hand".
- ajross 14y agoI don't think that's particularly notable. They certainly aren't saying someone manually drafted each of the (dozens of!) mask layers on paper. They're saying that the floorplanning (i.e. the positioning of individual subcomponents into rectangular regions of the die) looks like it was done by a human being instead of a synthesis algorithm. I'm not chip designer, but I'd expect that would be routine for the high level components of a big CPU. People can make better guesses at the gross level because they know what the design "means".
- slyn 14y agoNo offense, but you should probably read at least the sections you're commenting on. Your reasoning is pretty correct but your conclusion is opposite the truth. The full quote: "Generally, logic blocks are automagically laid out with the use of advanced computer software. However, it looks like the ARM core blocks were laid out manually—as in, by hand. A manual layout will usually result in faster processing speeds, but it is much more expensive and time consuming. The manual layout of the ARM processors lends much credence to the rumor that Apple designed a custom processor of the same caliber as the all-new Cortex-A15, and it just might be the only manual layout in a chip to hit the market in several years." (emphasis mine)
- ajross 14y agoIs "just might be" a measure of "truth"? Honestly I find that (unsourced) quote very hard to believe. There's zero manual floorplanning done on Ivy Bridge or Kepler? Really?
- slyn 14y agoI agree, the language is ambiguous as to what defines a "chip", but I assume given the context of the sentence and the technology that it is meant to be read as: the only manual layout of an ARM core to hit the market in several years. Even then "several years" is unspecific, and could mean practically anything from the iPhone classic release era (which is basically ancient history by smartphone technology years at this point) to the (not that old) iPhone 4 release era.
- Create 14y agonative Chinese processors are also laid out manually, by hand, ie. the Loongson.
- glhaynes 14y agoAny particular reason why Chinese processor makers prefer manual layout?
- Tuna-Fish 14y agoIt's interesting to note that the people designing that chip at apple used to work at PA Semi, and before that, a lot of them worked at AMD. Circa 2006 AMD decided that all it's future chips are going to be laid out automatically, and got rid off their expert chip designers who were responsible for the manual layout on the K8 (original Opteron) chips. As Apple A6 is one of the very few modern chips designed by hand, it's pretty much the latest argument by some of the best chip designers in the industry against automatic routing & layout. It will be interesting to see how it will fare against the machine-designed Cortex A15.
- mtgx 14y agoA5 was manufacturered at 45 nm for the iPhone 4S, and had a 70 sq mm size. A6 was manufactured at 32 nm, so 30% improvement, and the chip is also 97 sq mm. So another 40% improvement. Let's say the new architecture brings say 40% IPC improvement for the CPU cores, like A15 cores do over A9 (could be less, could be more). Then the new cores are also clocked at 1.2 Ghz (according to Anandtech's tests, ifixit doesn't seem to check this, just goes by the rumors), that's another 50% improvement over the old CPU cores. The last 2 improvements alone could make the CPU's speed 2x over the iPhone 4S's CPU, while the first 2 types of improvements could've been used to introduce a larger GPU (3 cores) and at a higher frequency (thanks to die shrinkage).
- ajross 14y ago> Let's say the new architecture brings say 40% IPC improvement "Let's say" ? Surely this is something that can be trivially measured just by running a benchmark. Has one been done? Note that 40% seems pretty optimistic, considering similar bumps in transistor counts in the Intel world generally get about a 10% benefit (you can do better by adding more cores, of course, but squeezing instructions through a pipeline with transistor logic alone is really hard). Also: your analysis is off. Transistor count scales linearly with die area, but as the square of node size (not quite, as the transistor layout changes between processes, but it's still a linear, not areal metric).
- s_henry_paulson 14y agoThe benchmarks of the processor performance show that it's twice as fast as the A5. About 1/4 of that can be attributed to the clock frequency. There's really nothing left but the IPC to attribute the remaining (~75%) gain in performance.
- ajross 14y agoCite? I know Apple's marketing says it's twice as fast, but (even skipping the fact that it's marketting spin) that can be terribly polluted by things like the fact that the DRAM bus is twice as wide. That can be a huge gain in some circumstances, but has absolutely nothing to do with transistor count in the rest of the die. I was hoping for something like a cache-bound CPU test that can look at IPC specifically.
- tcas 14y agoDoes anyone know what the two horseshoe looking things are in the bottom left of the RTR8600 die? I want to say inductors, but they aren't in the shapes I'm familiar with (that being said, my VLSI knowledge is extremely rusty)
- sparky 14y agoYep, the horseshoe inductor is a degenerate (single-loop) case of the spiral inductor.
- Osiris 14y agoThanks! That clears things right up (</sarcasm> I have no idea what at least three of those things are).
- sparky 14y agoSorry, wasn't trying to be obtuse, just concise. * An inductor is a primitive circuit element, like a resistor or capacitor. An ideal inductor maintains the relationship V = L x dI/dt, where V is the voltage across the 2 terminals of the inductor, I is the current through the inductor, and L is the inductance. * The simplest inductor is a coil of wire. You've probably seen ones that look like this ( http://www.electronicplus.com/images/products/387268.jpg http://www.electronicplus.com/images/products/387268.jpg ) on motherboards, power supplies, etc. Inductors are used in power supplies all the time, but also in clocking-related circuits, filters, and other components used in RF devices like the chip referenced in the article. * In the context of a planar CMOS chip, you can't really build a 3D torus like that, so you build a 2D spiral that approximates a coil ( http://bmf.ece.queensu.ca/mediawiki/index.php/Spiral_Inductor_Design http://bmf.ece.queensu.ca/mediawiki/index.php/Spiral_Inducto... ). That's called a spiral inductor. * The horseshoe inductor is just a spiral inductor that only has one loop, and is consequently shaped like a horseshoe. Designers vary the size, spacing, number, and geometry of loops depending on the inductance, parasitic resistance/capacitance, material properties, etc.
- Zenst 14y agoIf anything I thing this article is of more interest in explaining how they actualy do these type of teardowns and some nice pictures of some very geek-sexy looking equipment they use as well.
- deleted 14y ago[deleted]
- rryyan 14y ago"Even though the A6 was manufactured by Samsung, that doesn't mean it was designed by Samsung. The Apple A6 processor is Apple's first custom-designed processor." Presumably there is some strain in relations between Apple and Samsung, given that they compete in the mobile device market, and the lawsuit over copying designs. Would Apple be worried that Samsung would be able to glean trade secrets from their custom design of the A6? Would the information provided to Samsung for manufacture of the chip pose this kind of risk? Or would be less like handing off source code, and more like handing off a compiled binary?
- tobylane 14y agoI would hope Chinese firewalls, professionalism and the contracts stop that happening.