Understanding Embedded Computer Architecture

amirm

Banned
Apr 2, 2010
15,813
38
0
Seattle, WA
You all are familiar with the concept of a microprocessor in your computer. Intel and AMD collectively own the market for that part in personal computers. I suspect however that less is known about the computing part in embedded devices such as phones and consumer electronic devices.

On the PC/Mac where many applications have been written from years past, maintaining backward compatibility with Intel instruction set (which AMD has cloned) has locked the market into those two companies as providers. In embedded space however, such legacy did not exist and companies were free to pick the instruction set (the language of the computer) of their choice. One such choice was the one defined by a UK company called ARM.

ARM’s claim to fame was power efficiency over absolute performance. In the PC world, that equation is somewhat reversed in the chase for ever increasing CPU horsepower to convince customers to upgrade. In contrast, devices such as phones that run on battery power need to run efficiently. Needless to say, the rise and popularity of product such as smartphones has led to meteoric rise of ARM implementations.


ARM is not a microprocessor company however. Instead, it creates designs that other companies license and then create real parts around. Think of them as the architects for a building and you, the company licensing it, as the general contractor. Designing microprocessors and tools to program it is difficult and by licensing all of that know-how, a company can have its own custom microprocessor with far less resources and faster time to market.

By buying the CPU “core” from ARM, the licensee can then focus its efforts around customizing the part around his own need. They can integrate other peripherals on the chip such as memory, LCD controller, Graphics controller, etc. To the extent such a chip encapsulates most of the functionality of a device, it is called a System on a Chip or SoC for short.

SoCs are the heart of just about any “smart” device out there. Your Blu-ray player has one as does your iPhone or Samsung/Motorola phone. They reduce cost of the system, and importantly shrink the amount of space it takes. The latter is extremely important in phones and tablets where space is a huge premium. Everyone wants smaller devices and SoCs are the critical enabling technology for that.



Back to licensing the microprocessor from ARM, there are two paths to a real chip. One is to take an already designed logic block and then work with an independent silicon company to produce it. The most well-known company in that industry is TSMC in Taiwan. TSMC has world-class chip manufacturing facility riving that of Intel and others at the bleeding edge. Most companies go this route. Apple uses Samsung for production of its silicon, likely because they can then embed their memories on chip. The Apple A6 processor is said to have 1 Gigabytes of memory on board the CPU package.

An alternate path exists where the company uses the instruction set from ARM but designs its own “core.” In this case the company has to design the logic and in doing so, take on more of the risks and rewards. The risk is that it doesn’t fully verify the chip and issues come up in execution. The reward is that they can get a more optimized microprocessor/SoC design. Apple’s A6 processor used in iPhone 5 is an example of such a custom implementation whereas the earlier designs used licensed cores. Android smartphone manufacturers use silicon from other companies which provide that role such as Qualcomm. As with Apple, Qualcomm has both custom and licensed ARM cores in its portfolio.





There was a time that such designs heavily lagged the PC in speed and performance. Today, the clock speed (how fast the wheel turns in a microprocessor executing instructions) has cross the Gigahertz barrier and is moving up from there. Likewise, we are already in dual core domain, moving to quad core. Performance is probably 2-10 times slower than the PC still but given the lighter workloads, it is not an impediment to good performance.
 

RBFC

WBF Founding Member
Apr 20, 2010
5,158
46
1,225
Albuquerque, NM
www.fightingconcepts.com
Thanks, Amir. I actually understood that! One question which would impact many iPhone users (and prospective ones): Because of the custom core in the iPhone5, are there any risks that there will be serious bugs that impede functionality? Though Apple no doubt engages in rigorous testing of new releases, does custom implementation open the door to more problems?

Lee
 

amirm

Banned
Apr 2, 2010
15,813
38
0
Seattle, WA
CPU verification is very challenging. Ideally Apple would have run all 600,000 apps in their store to make sure they all run correctly. Needless to say they have not. Testing is always an approximation of what is ideal. Intel, with all of its might, put out a CPU once that did some math incorrectly. Problems can extend to weird situations where some application works due to errors in the previous implementation. The new chip therefore would create different results by actually implementing the function correctly!

That said, such problems can be resolved mostly with money. Simulators can show what the future CPU will do and the more money you have, the more of them you can build to test before finalizing the silicon. AMD is also a great example of being able to clone Intel instruction set successfully. I also expect ARM to provide rigorous test vectors (testing and verification sequences) to chip implementer. Net, net, this is not a problem to worry about. I simply explained it to show that going this route takes a much more serious approach to CPU development. Apple has the volume to and dollars to do it right. If they can keep it up, vertical integration will give them an advantage.
 

About us

  • What’s Best Forum is THE forum for high end audio, product reviews, advice and sharing experiences on the best of everything else. This is THE place where audiophiles and audio companies discuss vintage, contemporary and new audio products, music servers, music streamers, computer audio, digital-to-analog converters, turntables, phono stages, cartridges, reel-to-reel tape machines, speakers, headphones and tube and solid-state amplification. Founded in 2010 What’s Best Forum invites intelligent and courteous people of all interests and backgrounds to describe and discuss the best of everything. From beginners to life-long hobbyists to industry professionals, we enjoy learning about new things and meeting new people, and participating in spirited debates.

Quick Navigation

User Menu

Steve Williams
Site Founder | Site Owner | Administrator
Ron Resnick
Site Co-Owner | Administrator
Julian (The Fixer)
Website Build | Marketing Managersing