An Update on Apple’s A7: It's Better Than I Thought

When I reviewed the iPhone 5s I didn’t have much time to go in and do the sort of in-depth investigation into Cyclone (Apple’s 64-bit custom ARMv8 core) as I did with Swift (Apple’s custom ARMv7 core from A6) the year before. I had heard rumors that Cyclone was substantially wider than its predecessor but I didn’t really have any proof other than hearsay so I left it out of the article. Instead I surmised in the 5s review that the A7 was likely an evolved Swift core rather than a brand new design, after all - what sense would it make to design a new CPU core and then do it all over again for the next one? It turns out I was quite wrong.

Armed with a bit of custom code and a bunch of low level tests I think I have a far better idea of what Apple’s A7 and Cyclone cores look like now than I did a month ago. I’m still toying with the idea of doing a much deeper investigation into A7, but I wanted to share some of my findings here.

The first task is to understand the width of the machine. With Swift I got lucky in that Apple had left a bunch of public LLVM documentation uncensored, referring to Swift’s 3-wide design. It turns out that although the design might be capable of decoding, issuing and retiring up to three instructions per clock, in most cases it behaved like a 2-wide machine. Mix FP and integer code and you’re looking at a machine that’s more like 1.5 instructions wide. Obviously Swift did very well in the market and its competitors at the time, including Qualcomm’s Krait 300, were similarly capable.

With Cyclone Apple is in a completely different league. As far as I can tell, peak issue width of Cyclone is 6 instructions. That’s at least 2x the width of Swift and Krait, and at best more than 3x the width depending on instruction mix. Limitations on co-issuing FP and integer math have also been lifted as you can run up to four integer adds and two FP adds in parallel. You can also perform up to two loads or stores per clock.

I don’t yet have a good understanding of the number of execution ports and how they’re mapped, but Cyclone appears to be the widest ARM architecture we’ve ever seen at this point. I’m talking wider than Qualcomm’s Krait 400 and even ARM’s Cortex A15.

I did have some low level analysis in the 5s review, where I pointed out the significantly reduced memory latency and increased bandwidth to the A7. It turns out that I was missing a big part of the story back then as well…

A Large System Wide Cache

In our iPhone 5s review I pointed out that the A7 now featured more computational GPU power than the 4th generation iPad. For a device running at 1/8 the resolution of the iPad, the A7’s GPU either meant that Apple had an application that needed tons of GPU performance or it planned on using the A7 in other, higher resolution devices. I speculated it would be the latter, and it turns out that’s indeed the case. For the first time since the iPad 2, Apple once again shares common silicon between the iPhone 5s, iPad Air and iPad mini with Retina Display.

As Brian found out in his investigation after the iPad event last week all three devices use the exact same silicon with the exact same internal model number: S5L8960X. There are no extra cores, no change in GPU configuration and the biggest one: no increase in memory bandwidth.

Previously both the A5X and A6X featured a 128-bit wide memory interface, with half of it seemingly reserved for GPU use exclusively. The non-X parts by comparison only had a 64-bit wide memory interface. The assumption was that a move to such a high resolution display demanded a substantial increase in memory bandwidth. With the A7, Apple takes a step back in memory interface width - so is it enough to hamper the performance of the iPad Air with its 2048 x 1536 display?

The numbers alone tell us the answer is no. In all available graphics benchmarks the iPad Air delivers better performance at its native resolution than the outgoing 4th generation iPad (as you'll soon see). Now many of these benchmarks are bound more by GPU compute rather than memory bandwidth, a side effect of the relative lack of memory bandwidth on modern day mobile platforms. Across the board though I couldn’t find a situation where anything was smoother on the iPad 4 than the iPad Air.

There’s another part of this story. Something I missed in my original A7 analysis. When Chipworks posted a shot of the A7 die many of you correctly identified what appeared to be a 4MB SRAM on the die itself. It's highlighted on the right in the floorplan diagram below:


A7 Floorplan, Courtesy Chipworks

While I originally assumed that this SRAM might be reserved for use by the ISP, it turns out that it can do a lot more than that. If we look at memory latency (from the perspective of a single CPU core) vs. transfer size on A7 we notice a very interesting phenomenon between 1MB and 4MB:

That SRAM is indeed some sort of a cache before you get to main memory. It’s not the fastest thing in the world, but it’s appreciably quicker than going all the way out to main memory. Available bandwidth is also pretty good:

We’re only looking at bandwidth seen by a single CPU core, but even then we’re talking about 10GB/s. Lookups in this third level cache don’t happen in parallel with main memory requests, so the impact on worst case memory latency is additive unfortunately (a tradeoff of speed vs. power).

I don’t yet have the tools needed to measure the impact of this on-die memory on GPU accesses, but in the worst case scenario it’ll help free up more of the memory interface for use by the GPU. It’s more likely that some graphics requests are cached here as well, with intelligent allocation of bandwidth depending on what type of application you’re running.

That’s the other aspect of what makes A7 so very interesting. This is the first Apple SoC that’s able to deliver good amounts of memory bandwidth to all consumers. A single CPU core can use up 8GB/s of bandwidth. I’m still vetting other SoCs, but so far I haven’t come across anyone in the ARM camp that can compete with what Apple has built here. Only Intel is competitive.

 

Introduction, Hardware & Cases CPU Changes, Performance & Power Consumption
Comments Locked

444 Comments

View All Comments

  • Wilco1 - Thursday, October 31, 2013 - link

    Typically you run benchmarks at the maximum performance so you can compare different devices at known frequencies. A long running benchmark will always run at the maximum frequency - as long as there is no thermal throttling. So DVFS only has an effect on benchmarks which run for very short times (milliseconds like SunSpider, AnTuTu etc). This means the results are random based on the DVFS settings (hardware/software) and what you did just before starting the benchmark. That makes it hard to make fair comparisons. So setting the frequency before running a benchmark makes the results more useful.

    If you want to benchmark the DVFS then you need something more specific - I'm not aware of benchmarks which accurately try to measure DVFS, it's reaction speed, the power/performance tradeoff and effect on GUI interaction. The closest one is Anand's battery-life test which has idle periods followed by high activity bursts. Unfortunately he doesn't list performance of this test, only battery-life...
  • rynite - Friday, November 1, 2013 - link

    "Typically you run benchmarks at the maximum performance so you can compare different devices at known frequencies."

    Oh please. Who decides how a benchmark is run? You? Or the actual benchmark authors like Anand and Futuremark, who publicly oppose this sort of behavior?
  • Wilco1 - Sunday, November 3, 2013 - link

    Anand doesn't have a clue unfortunately. If INtel's turbo is not cheating then it is certainly not cheating to use the maximum frequency.
  • Gondalf - Saturday, November 2, 2013 - link

    Hei Wilco. IPC apart....without a SPEC submission it's hard to give a final judgment, what about A7 is only dualcore??? Anand says that A7 is the best around, but it's an absurdity !! In a multitasking workload A7 is clearly doomed by Snapdragon, Tegra, Baytrail. IMO this review is biased, A7 is good yes but only in light multithread, very bad in a serious usage, and looking at the selling price a customer is only a victim of Apple Marketing
  • Wilco1 - Sunday, November 3, 2013 - link

    Yes, in terms of throughput A7 would be slower than most of the quad cores, however having the fastest single threaded performance is equally important.
  • someonethinks - Wednesday, October 30, 2013 - link

    iPad Air2 please

    Apple does it again, it will sell but device is not quite as good as it should be, do they care about the users or just the profit?

    I would like
    2GB and 32GB min
    smooth transitions that can also be turned off / reduced

    I have an iPad 2 and was looking to replace but the memory is really a big issue to future proof it, so I am VERY disappointed as I don't buy something like this every year.

    With the original, I waited for the iPad 2 and was very pleased, it looks like I need to do the same again or maybe I now just go elsewhere.
  • xype - Wednesday, October 30, 2013 - link

    Ooooor you could assume that the iPad Air is actually good enough. Because it is. Go and try it with some apps at a store and then decide; the whole making assumptions based on articles is not really helpful. Compared to an iPad 2, the iPad Air will absolutely blow you away.
  • aliasfox - Wednesday, October 30, 2013 - link

    Good enough? Yes. But for my money, "good enough" in 2013-2014 isn't enough - I want my devices to be "good enough" for a long time, especially at $500+. I kept my laptop for eight years, my previous digital camera lasted eight years, the shortest I've kept a cell phone is three and a half years, and my current desktop is seven years old with just a GPU and storage upograde (granted, that was a high end machine when it came out).

    Buying a device that has deficiencies *now* is questionable if you want to keep it for a while.

    And don't think this is coming from a PC fanboy, either. iPad 1, iPhone 4, and Mac Pro are my primary devices.
  • KPOM - Wednesday, October 30, 2013 - link

    By that logic, though, any Android device today has "questionable" specs since undoubtedly in a year or so most high-end Androids will have 64-bit processors. The iPad AIr, new iPad mini and iPhone 5s already have them.

    I think, also, that since all 3 have the same internals, we'll see developers write to those specs. I.e. lack of RAM won't be a significant issue because it isn't as if developers will be writing for devices with significantly more RAM.
  • suman0011 - Wednesday, October 30, 2013 - link

    At every one knows apple has the leading market share in the android phones but now a days companies like Samsung are exploring the market at present Samsung has the major share in the android phone segment if i am right.in order to that apple has to found news to gain their place in the android market

    as in most of the people use android phones that to Samsung phones
    here you can find a link why Samsung why Samsung is in 1st place
    http://indiahomedepot.com/samsung-galaxy-tab-t-211...
    just look at only the specification and you can compare with apple ipad
    of course all the features available in the apple also available in the Samsung can some tell why Samsung is first and Apple is trying hard to get first place?

Log in

Don't have an account? Sign up now