How to add low-overhead, low-power audio processing to SoC design

This article refers to the address: http://

If you are planning to design a SoC system with digital audio , or if you are working on such a project, then taking a few minutes to read this article can help you better balance the various technical parameters and avoid bias in the design direction. The success rate of streaming, which saves weeks of development time. We will analyze the design alternatives, the key factors in the assessment, and the decisions made there.

History of consumer audio products

The history of consumer audio products can be traced back to 130 years ago. In the first 100 years, audio playback can only use analog technology. At that time, products using digital technology were bulky and expensive, and too complicated for consumer products. Until 1982, the emergence of CD-ROM and CD players completely changed this situation, vinyl device seems to disappear overnight.

At the same time, the rapid spread of personal computers has brought consumer audio products into close integration with digital technology. Digital music players such as disk and flash-based MP3s ( such as iPOD) have replaced tape devices. What is the future direction of audio products? That is the more realistic restoration of the sound. Sound restoration technology has been constantly evolving, from early mono to stereo, to 3D surround sound with multiple speakers . In just a few years, the home theater system has evolved from 5.1 to 10.1 channels. Each technology leap is accompanied by more channels, higher sample counts, and greater processing power.

The increasingly complex audio codec format has a growing demand for performance, requiring a constant increase in the processor's clock speed. However, increasing the clock speed will bring a series of problems to the design. A higher frequency means higher power consumption, more heat generation, a battery with a larger capacity, and an increased fan for heat dissipation. Product costs and can cause annoying noise. During the SoC design process, higher processor clock speeds make timing closure more difficult. All of these issues should be brought to the attention of the designer.

To date, the largest-selling digital audio player is a mobile phone. In addition to the ability to make calls, today's mobile phones are actually small multimedia terminals that can play both audio and video content and games that contain complex sound effects. These features require mobile phones to have powerful audio processing capabilities. The consumption should be as low as possible, because consumers always want the phones they buy to have a long enough standby time, and hope that the MP3 player can play for a long time while providing excellent sound quality.

With the digitization of audio, the video has also been digitized. Most video playback devices today are compatible with a variety of audio standards. In the field of car audio, digitalization is also in full swing. Many years ago, CDs were loaded into cars as standard equipment. In recent years, with the popularity of high-fidelity satellite broadcasting, digital radios have also entered the field of automotive electronics. In GPS navigation devices, text-to-speech conversion is required, and some GPS devices also function as personal media players.

Audio codec

The codec format is a core element in all digital audio applications. It defines how an analog audio signal is digitized and compressed into a bit stream, and how the bit stream is decompressed and restored to an analog audio signal.

The most popular compression algorithm in the consumer product category is the MP3 format, which was introduced in 1991 with the MPEG-1 video standard. In the mid-1990s, the first MP3 player was born . Subsequently, vendors are constantly promoting other algorithm formats that offer higher fidelity and lower bitrate, but MP3 still plays an important role in audio standards, and almost all consumer products currently support MP3 .

Most audio codec algorithms use lossy compression to reduce the required bit rate. Lossy compression reduces the bandwidth requirements for data exchange and storage, which reduces costs, which is why vendors use lossy compression. However, lossy compression also degrades the quality of the audio, and the degree of quality degradation is related to the compression algorithm. As long as there is enough processing power, the sound loss can be controlled at a level that is indistinguishable to the human ear, so compression algorithm researchers are still improving their algorithms. Different applications need to balance the audio quality and bandwidth requirements according to their own characteristics, resulting in the coexistence of multiple digital audio codec formats.

When you start thinking about how to implement an audio codec algorithm, you actually have 4 alternatives.

1. On the general-purpose processor, rely on software to implement audio codec. For example , an MP3 player program running on a PC .

2. Using dedicated hardware to implement audio codec, the early portable MP3 player adopted this scheme.

3. On the DSP processor rely on software to achieve audio codec.

4. Audio codec is implemented in software on an audio dedicated processor that is extended based on a general purpose processor.

Option 1 , using a general purpose processor to implement all system functions, including user interface, I / O and digital audio codec. This solution has the following advantages. First, the audio codec is just a piece of software that runs on a general-purpose processor. The only hardware overhead is simply to add a small amount of instruction memory. Secondly, due to the use of software to implement codec, a variety of codec algorithms can be implemented. Finally, when a new codec algorithm appears, it only needs to be upgraded to support it.

The shortcomings of this scheme are also obvious. Digital audio is sensitive to temporary failures because the human ear can capture very small errors. At this point audio applications are more demanding than video applications. In video applications, a wrong pixel is often not noticed, but not in audio applications. A general-purpose processor is used for audio encoding and decoding. Since the processor performs other tasks, its bandwidth is not audio-specific, which increases the probability of temporary failure of the audio codec.

In addition, most general-purpose processors do not have audio-specific instructions and cannot efficiently execute audio codecs, so they have to increase the processor's clock speed and execute more instructions per unit time to meet performance requirements.

Hardware implementation codec

Option 2 , using a relatively low-performance processor with dedicated audio processing hardware, all audio processing tasks are done by dedicated hardware. Typically, this piece of hardware is attached as a peripheral to the system bus. The audio samples are sent by the processor to the codec hardware via the bus, or directly from the memory by the codec hardware via DMA . In this scenario the system bus is also shared.

The advantage of using dedicated codec hardware is that for a particular codec format, its area and power consumption are optimal compared to other schemes. So the mid-1990s MP3 players are using this program. Its disadvantage is that each codec format has to be added with hardware modules to support it. In the design of Figure 1 , in order to support three codec formats, three hardware logics must be added to the design . Therefore, in designs that require multi-format audio, this approach is no longer an advantage, and almost all current SoC designs need to support multi-format audio codecs. Second, if the codec algorithm is upgraded or a bug occurs , in order to fix the problem, the entire SOC chip must be re-sliced, and it is not possible to correct the error through software upgrade. In addition, when implementing a new codec algorithm, it is necessary to design a new hardware module, integrate it into the system design, and re-spin.

Figure 1 : In a scenario using dedicated codec hardware, each codec format requires an additional hardware module to support

Scheme 3, on a general purpose DSP processor, an audio codec implemented by software, while the system comprises a main processor used as the control (herein refers to a general purpose DSP processor for audio processing did not specifically optimized DSP Processor ) . The solution using a DSP processor has many advantages. First of all, there are hardware multipliers in the DSP processor, which can greatly improve the efficiency of the audio codec. Secondly, because of the software implementation, multi-format audio codec can be supported by only adding a small amount of memory overhead. Implementing a new codec algorithm also requires only writing new software, without having to re-spin, thus extending the lifecycle of the product.

The solution using DSP also has disadvantages. Most DSP C compiler efficiency are relatively low, it is generally not done DSP control. System control requires a general purpose processor to complete. Moreover, 16 or 32 bit DSP processors are not optimal for audio processing. Although most current codec algorithms use 16 -bit sampling, in order to avoid rounding errors in the middle of the operation, a certain margin is required. So 16 -bit DSP processors can cause problems when implementing complex audio algorithms. Using double-precision integer calculations can avoid problems, but the efficiency is not high enough to require a higher processor clock speed. In turn, 32 -bit DSP processors cannot be fully utilized. In fact, for audio algorithms, a 24 -bit DSP processor is the most suitable.

Audio dedicated RISC processor

Based on the above considerations, we propose a fourth option, which is to use an audio dedicated processor. The extension of audio processing based on a general-purpose processor enables the processor to maintain the efficiency of the C compiler while efficiently executing the audio codec . Figure 2 shows a system for encoding and decoding with an audio dedicated processor.

Figure 2 : System for encoding and decoding with audio dedicated processor

This design has many advantages. First, audio-specific extensions allow the processor to perform audio algorithms more efficiently, providing the performance required by the algorithm at lower primary frequencies, thereby significantly reducing system power consumption. Like the DSP- based solution, this solution facilitates multi-format audio codec, and can also support new codec algorithms by upgrading software. The downside is that everyone is still new to the concept of audio-specific processors. Let's introduce the audio-specific processors.

The Tensilica Hi-Fi2 audio processing engine is configured and extended based on the 32 -bit Tensilica Xtensa RISC processor, which performs audio processing tasks very efficiently. As the name suggests, the Hi-Fi2 audio processing engine is Tensilica's second-generation audio processor. The most critical extension of the Hi-Fi2 audio processing engine is the addition of two 24 -bit hardware multipliers that greatly increase the speed of audio calculations.

However, the multiplier itself does not reduce the number of cycles required to execute the audio algorithm. The number of cycles is reduced because the Hi-Fi2 audio processing engine can execute 1 to 2 instructions per cycle . 48 or 56 bit wide register for storing sample values of the two 24-bit. These register files can be used to efficiently process stereo audio data. Tensilica added a total of 300 audio-specific instructions to the Xtensa RISC processor to create a flexible and efficient audio algorithm processing engine.

An excellent audio SOC solution is not limited to high-performance hardware, but also requires codec software, and for reasons of time, you may not plan to write your own. Although some audio processing programs can be found on the Internet, these programs are not optimized and are not efficient to implement. Second, programs that require authorization like Dolby audio codecs are hard to find on the Internet. The popular audio codec algorithms have been ported to Tensilica's Hi-Fi2 audio processing engine, and support for the format is still growing, shown in Figure 3, all of these codecs are written in C language. The processor's RISC basic instructions and audio extension instructions allow the programmer to continue programming in C , improving the maintainability of the software while maintaining performance.

Figure 3 : The current popular audio codec algorithms have been ported to Tensilica 's Hi-Fi2 audio processing engine.

The Hi-Fi2 audio processing engine is a set of extended instructions for the Xtensa LX2 processor using Tensilica configurable technology . Tensilica uses these extensions to configure the Diamond 330Hi-Fi audio processor, so all codecs based on the Hi-Fi2 audio processing engine can be run on the 330Hi-Fi processor . Tensilica 's Hi-Fi audio processing engine is used in a variety of products and has been validated under different processes, with shipments reaching tens of millions. The current main application is still in the field of mobile phones. In the future, the application of products will be extended to video products, consumer broadcasts, ultra-portable PCs and other fields.

Wireless bluetooth speakers is which receive audio signals using radio frequency (RF) waves rather than over audio cables, they can connect to any media device using Bluetooth. For that outdoor bluetooth speakers will stand up to a party and outdoor activities, that portable bluetooth speakers are your best choice. Mini Bluetooth Speaker with bluetooth V2.1+EDR,bluetooth V3.0, bluetooth V4.1 technology supports HSP, HFP, A2DP and AVRCP profiles.bluetooth speakers iscapable of connecting to a range of other devices via industry-standard technologies.By pushing a button, bluetooth speakers can be paired or connected by short-range link - with a Bluetooth-enabled host device through which audio playback or streaming can start. Designed for portability, these speakers typically run on battery power and are smaller than other kinds of speakers. portable bluetooth speakers are lightweight enough to move from location to location, with good battery life (for battery-powered ones). WI-FI speakers connect to a home network and communicate over TCP/IP. Wi-Fi can connect over longer distances than Bluetooth and so these speakers are more commonly used for "whole house" audio systems. The best WI-FI speakers connect through Bluetooth, Wireless LAN, TV , Aux and so on, support Milk Music, Pandora, TuneIn, Rhapsody, Amazon Cloud Player, iHeart Radio, Rdio, 8tracks, Spotify, 7 digital, Murfie, and more are available using the Samsung Wireless Multiroom App, Wi-Fi speakers typically plug into wall outlets rather than run on batteries. Bluetooth home speakers as a Bluetooth 4.0 stereo speaker system to stream music from your smartphone, tablet, TV, or computer with super bass, subwoofer.




Bluetooth Speaker

Bluetooth Speaker,Wireless Speakers,Music Player, Sport Bluetooth Speaker

Hele Enterprise Co., Limited , http://www.heleqcy.com