Current Issue
FREE Vicor PowerTechtorials CD
Scope showtime 29/6/2010
MORE BLOG POSTS
It is a well-publicized trend that HDTV (high-definition TV) is sweeping through the next generation of SoC (System-on- Chip) platforms. SoCs for set-top boxes, television monitors, disk players, and - in the near future - mobile media players will have HD capability. But another aspect of this evolution, audio quality, isslipping beneath the radar.
The problem with high-resolution audio isn't just in the circuit design. In fact, analog-IC designers are producing DACs and amplifiers that are arguably better than anything available during the golden age of discrete-component gear. The problem is in characterization and testing. The quality of high-end audio, as many analog designers will tell you and as audiophiles may insist to the point of religious discourse, is excruciatingly hard to quantify even on the characterization bench and almost impossible to verify in a manufacturing-test environment. SoC designers are now assessing this new challenge, joining experienced audio-IC designers who have lived with it.
SO WHAT'S THE PROBLEM?
The new test-and-measurement challenge is coming from the convergence of two forces. One, as previously mentioned, is the increasing capacity for digital bit streams to provide quality audio. To be more precise, the increasing quality of the source material is not the problem. One can always convert a good bit stream into a mediocre audio signal. The problem is the growing expectations of consumers. When digital audio means audio from an MP3 bit stream or a similarly lossy source, the underlying issues in the codec usually make it unnecessary to take care with the analog circuitry. Users judged MP3 players against portable cassette players and CD players, which for the most part sounded worse in comparison.
"The quality of outputs for MP3 players has actually been driven by the emergence of high-performance headphones rather than by the source," says Gary Adrig, director of marketing foraudio products at National Semiconductor.
"As headphones improved, we saw some customers in what had been an undemanding application start to ask for 100-dB SNRs [signal-to-noise ratios] and 0.05% THD [total harmonic distortion]."
As content vendors began to move to lower compression ratios - hence, higher bit rates - chip designers had to move to wider datapaths and better DACs to keep the noise floor of the hardware below the inherent noise level of the decoded source. Despite the limitations of MP3, market competition proved that consumers are quite discriminating about sound quality.
With the new HD media, the pace has picked up as audio tracks have jumped right past CD quality of 16 bits at 44.1k samples/sec to as much as 24-bit, 192k-samples/sec data for DVD Audio. This performance will certainly lead buyers of high-end gear to question the quality of the sound they are hearing. "We are already there in the home-theater market," says Texas Instruments Marketing Manager Kevin Belnap. "Once you reach a minimum level of noise and harmonic distortion, a lot of listenerpreference issues, like sound stage and the whole ‘vacuum-tube-sound' thing, come into play."
But the critical ear won't stop there. Users of set-top and converter boxes, HD-ready television sets, and even mobile devices are likely to also demand much better audio than they have been hearing. The course of this evolution might be more apparent from one professional- audio developer's experience.
Morten Lave, chief executive officer of TC Applied Technologies, a developer of studio-monitor speakers, relates his experience with MP3. "I had an iPod, so I decided to put some music on it," he says. "I used the default settings, and the result was bad; the cymbals sounded awful. So I jacked the bit rate up to 192 kHz. That got me quality as good as the cheap headphones on the iPod, but, if I hook it up to my home system, I can still easily hear compression artifacts." With the new lossless-data types, the electronics will no longer be able to hide behind the limitations of MP3 compression. They will themselves become the issue.
This escalating demand for audio quality by itself is manageable. Most SoC vendors in the set-top-box and TV markets, in which space and cost are not the most important factors, now simply provide a digital output to an external analog chip or chip set.
This approach passes the characterization and test problems on to companies in the analog world, which is familiar with them. But the second of two converging forces is closing this loophole for SoC-design teams. That force is integration.
As one SoC vendor puts it, the pervasive demand for greater integration across this market is forcing SoC vendors to put DACs - and later, small power amplifiers - onto the main die. This approach not only dredges up all of the widely discussed problems of precision analog design in a noisy, lowvoltage digital-CMOS environment, but also drops the characterization and test problems squarely back in the laps of the SoC team. And it's not going to rest there gracefully.
"We've seen the issues that integration can create," Belnap says. "The early MP3-player guys tried integrating a pulse-width-modulation processor and a DAC onto their chip, but the quality just wasn't there. Now, with HD DVD or Blu-Ray getting integrated into home receivers, we're talking about more challenging integration and a whole new level of sound quality."

HIGH-QUALITY-AUDIO OUTPUTS
You can estimate the problem of characterizing the coming wave of SoCs by comparing the way SoC designers typically characterize analog outputs against the techniques that are emerging at the high end of the audio market. This comparison will result in a rather depressing statement of work for SoC designers. Until recently, SoC characterization has focused on the digital side of the audio problem.
Here, standards organizations are more than happy to step in and help, providing source bit streams to stimulate the digital input and references against which to compare the results. In the case of lossy-compression systems, these references are envelopes that define an acceptable range of outputs.
"This started about 10 years ago with Dolby Digital for the ATSC [Advanced Television Systems Committee] and DVD video standards," says Matthew Watson, software-infrastructure manager at Texas Instruments. "They provided results plots for the Audio Precision test equipment, so you could run THD, SNR, and spectral plots and see if you fit."
Among the most assertive in providing such characterization support has been Dolby - for its own codec IP (intellectual property), of course, but third-party organizations, such as THX, have also been active, Watson says. For lossless-audio formats such as CDs, there is no need to provide envelopes - characterization engineers can compare the output bit stream to a reference stream, and standards organizations can insist on bit-exact output.
"The digital-output quality is so far above what the analog section can do that our job is basically done when we have met the external standards," Watson says. "Customers understand the rigor of the test procedures, and they accept the results."
But the situation differs greatly on the far side of the DAC. Most chip architects have avoided analog outputs from SoCs, more because of circuit-design and silicon-area concerns than testing issues. When architects integrate analog audio, quality expectations have often been low, and characterization has been somewhat perfunctory - examining the analog output at zero from specific user actions, would never show up on a traditional characterization. But they can be annoying or even injurious if you have a high-performance headphone stuffed in your ear. So, we had to develop characterization tests for them."
THE UNIDENTIFIABLE
But a serious problem remains. "It can happen that an amplifier measures well and just sounds bad," admits TI's Belnap. This statement does not in any way side with what many engineers consider to be a delusional movement among high-end audiophiles - the sort that demagnetizes vinyl records and seeks out hand-braided, gold-plated "unobtainium" speaker cable. It is rather to admit that the human ear is so sensitive and adaptable that there is no one quantitative test that can predict how a given DAC, amplifier, and speaker combination will sound to experienced listeners.
This reality has already struck high-end-audio-IC vendors."At the high-performance end of our market, we used towalk in with sample parts and spec sheets and show customersthe data," relates National Semiconductor's Bridges. "Butrecently, more customers have been asking us to leave thespec sheet at home and bring in a working reference design.They take it right into their sound room and start listeningto it. At the high end today, quality is all about how the chipsounds."
This situation presents some obvious problems. For one thing, the fixtures designers use for characterization are often poor representations of a real listening environment. "Almost everyone does their data sheets based on resistive loads," Bridges observes. But only a very stable amplifier behaves in the same way with a resistive load as it does with a dynamic, reactive load, such as a loudspeaker. In fact, TC Applied Technologies' Lave suggests that at least for Class D and fully digital amps, the problem of controlling the speaker cone - or, ultimately, the sound-pressure level on the surface of the cone - is sufficiently speaker-dependent that active speakers - those with dedicated built-in amplifiers - will predominate in the industry. It's simply too hard to build an amplifier that can control all the dynamics that any conceivable speaker network can throw at an output stage.
That problem is not the last one, either. Interacting with skilled listeners often uncovers audible issues that are perfectly measurable - if you know what you are looking for (see sidebar"Can you even measure that?" at the Web version of this articleat www.edn.com/070301cs). Some listener observations thatsound totally irrational turn out to be not only reproducible inblind tests, but also traceable back to something that actuallydoes show up in measurements. Each one of these experiencesadds its own contribution of complexity to the characterizationprocess.
The result is a characterization process that tends to produce a "sound" that listeners begin to associate with a manufacturer. In some cases, vendors strive to make the sound as dry, or neutral, as possible. "We aim for a dry sound - as much as possible consistent with the price point," says TI senior applications engineer Fred Shipley. "That allows our customers to manipulate both their digital-signal processing and their board-level analog design to create their own characteristic sound, rather than having to work with ours." Shipley adds that part of the process of characterizing chips for this TI dry sound is a significant amount of time in the listening room, exposing the chips in TI's reference design to the company's "golden ears". When the SoC is the board-level design, the responsibility for the ultimate sound falls on the chip designers.
And that sound may be more market-related than specificationbased. PortalPlayer's Mora observes,"You need empirical testing, as well.What's ‘right' to listeners depends,among other things, on their cultureand listening habits. For instance, as ageneralization, Asian markets tend toprefer emphasis on the higher frequenciesin the spectrum. Europeans tend tothink a flatter frequency response butmore volume sounds more natural."So in the end, is characterizationquantitative or qualitative? "I subscribeto both sides of that debate," says BruceHofer, chairman and co-founder ofAudio Precision. "On the one hand,things can happen that are audible butdon't show up in a typical characterizationprocedure. Take, for instance, PCsound cards. Traditional measurementsmight say that a card performs splendidlybut would never tell you that,when the PC is busy, the software willmiss a deadline and cause a dropoutthat is very audible to listeners. Onthe other hand, I really want to believethat if something is audible, we shouldbe able to measure it somehow. It takesmeasuring and listening."
MANUFACTURING TEST
If characterization is such a complex question, manufacturing test in theSoC world promises to be a nightmare.
"The key issue here is that you are trying to ensure the quality of a part, and you have a total of 5.5 seconds of test time," explains Marcel Tromp, engineering fellow at LSI Logic. That total time budget is insufficient to complete some of the individual tests that are routine on the characterization bench, let alone thoroughly test an analog output. And one home-theater SoC might have nearly a dozen outputs. Add to this problem the realities of the manufacturing-test environment and the variety of customer-test requirements.
"Some customers nearly ignore the ability of the chips to deliver fantastic audio quality; they just don't care as long as the output is functional," laments Wolfson's Frith. "And then there are others, like the Japanese systems manufacturers and the automotive industry, who test everything," adds Hayes. "We have some customers who just have a scope on the end of their production line and others who measure every incoming chip with an Audio Precision box."
Just performing manufacturing tests is becoming a challenge (Figure 2). Frith says that testing analog from a 24-bit, 192k-sample source can take all of the dynamic range - and, more challenging, all of the noise margin - of which the best Teradyne mixed-signal testers are capable. And the paucity of highdynamic- range signal cards can mean that engineers will test analog outputs sequentially, rather than in parallel groups. But even this problem may not be the most serious one. "At this level, there is a trend for the R&D department to specify the whole test environment," Hofer says. "But that becomes difficult in today's world of third-party testing houses where distance and culture are barriers. In China, I've seen facilities in which you couldn't guarantee that the third wire for the test system would actually be grounded anywhere." This news is dreadful for an environment that is high in electrical noise under the best circumstances.
So test design becomes an art. Characterization engineers must work with test engineers to find a minimum number of tests - of which the real-world test equipment will be capable within the time budget - that will provide a high probability that the chip will sound as the customer expects. Only experience, a thorough knowledge of audio, and good luck can achieve that. "Defining a set of quantitative tests is becoming a skill set in its own right," LSI's Tromp says. "How do you bring nonquantitative ideas of good and bad into the engineering world? It's much the same problem as in video, where the ultimate judge is the viewer. But, at least in video, if something doesn't look right, you can stop the frame and examine it." There are some hints from the experts, though. "The majority of test problems come down to routing and accessibility," Hofer declares. "Accessibility is key. For instance, if you have an on-chip DAC, you need to be able to get to both sides of it. Otherwise, you are just measuring the subsystem end to endwith no idea of what's going on inside."
This issue makes design for accessibility a critical skill for high-end audio. Engineers need to bring test points out of the SoC. But the routing of these test signals is every bit as critical as the routing of the real analog output, or the data will be nearly useless. Crosstalk, an analog multiplexer with a high noise floor, and any number of things that seem unimportant can destroy the visibility into an analog node when you are making measurements with 110-dB dynamic range.
Ironically, a concept from digital self-test may be important here, as well: structural - as opposed to functional - test. Given that there simply won't be enough time to fully test the function of a precision-audio output, the designer must understand the likely failure modes and design the chip to help inspect for them. "We are fairly fortunate in that our stuff is digital until it hits the second-order filter," says TI's Shipley of the company's Class D amplifiers (Figure 3). "But even so, we have to relate what is happening in the analog signal back to the digital architecture, based on our understanding of the circuit. The tester looks at switching waveforms on the die, and you have to be able to know how that impacts the sound the customer will hear."
In the end, manufacturing-test procedure becomes a cooperative effort between the SoC designer and the test system. Perform a few specific tests with the test system and find out how this chip will sound driving a pair of headphones or a Class D amplifier from Brand X. It's no small challenge, but with listening rooms the ultimate arbiters of quality at the high end of the audio world, it's a challenge that SoC design and test engineers must face.

EDN Europe informs you about digital analog tv converters, ARM microcontrollers from Freescale, as well as about 8 bit microcontroller circuits.