Feature

Flexible silicon: GUI-programmable audio processors (Part 2)

A trend in signal-processing ICs offers simple and direct parametric control and functional programmability. Taking full advantage of flexible chips, however, may demand flexibility in your design methods, as well.

By Joshua Israelsohn, Technical Editor -- EDN, 10/27/2005

AT A GLANCE
  • The ratings:
  • Flexible silicon parts—great!
  • Support hardware and software—mostly terrific.
  • Documentation—not ready for prime time.
  • Software interfaces are convincing, if occasionally cumbersome.
  • Though the software tools are mostly accurate, be sure to confirm with stimulus and response measurements to prevent unwanted surprises.
Sidebars:
Flying on instruments

Part One of this two-part series introduced the concept of flexible silicon—signal processors that are programmable in environments that express functional and parametric behavior in application-relevant terms (Reference 1). Interacting with the signal processor at this elevated level of abstraction frees the OEM designer from many implementation details that regard signal streams in terms of instantaneous voltages or individual digitally encoded samples. Instead, the designer can focus on issues of functional implementation and performance expressed in the same terms as the system-design goals.

To make this distinction more concrete, this study has concentrated on two audio-signal processors—the XS-125-4 Class D power-amplifier module from D2Audio, which was the primary focus in Part One, and the AD1940 SigmaDSP IC from Analog Devices, which is the primary focus of this installment. In both cases, the devices must accommodate the fact that, at their most basic level of implementation, signal processors manipulate audio signals as time-domain phenomena, yet, at the application level, people prefer to consider audio signals in terms of their spectra and signal envelopes. Designers often leave this bridge between the time-domain and application-level models of audio signals to the system's user interface. The fact that the processors bridge the two concepts results in familiar-looking GUI presentations and could simplify implementation of the system interface.

Though the programming environments that accompany these flexible signal processors can greatly speed parts of your design cycle, your design methods may need to exhibit some flexibility, as well, particularly in design verification. Your familiar schematic-capture and simulation tools don't have these devices ready and waiting as drop-in blocks, macros, or behavioral models. Instead, your verification efforts will likely depend to a great extent on direct measurements. But, given the nature of the devices and the means of control they offer, the most meaningful measurements will be those that are in application-relevant terms, as well. Common instrumentation, such as logic analyzers, oscilloscopes, and voltmeters—though helpful for signal tracing—are less helpful for parametric verification in this environment than are more sophisticated signal analyzers. Your verification success, therefore, may critically depend on a solid familiarity with your measurement equipment and your understanding of its limitations (see sidebar "Flying on instruments").

Flexible to the core

The Analog Devices AD1940 is a flexible, general-purpose, GUI-programmable audio processor that operates ahead of a system's signal-distribution facilities. Bob Adams and his SigmaDSP team developed the family of parts to which the 1940 belongs. To develop those devices, Adams and the team exploited a custom DSP core, which they designed and optimized for audio-signal processing. As a general-purpose audio processor, the 1940 cannot do with a fixed arrangement of processing blocks, as was the case with the XS-125-4. Instead, its GUI programming-and-control environment, SigmaStudio, presents a drawing surface reminiscent of familiar schematic-capture tools, with a library of 61 processing cells in nine categories from which you can choose. Two additional categories provide system resources, such as hierarchal structures and simulation stimuli and probes. They also include signal sources, such as a tone, pink noise, white noise, and beep generators.

The simulation stimuli and probe cells enable real-time interactive spectral simulation. SigmaStudio allows you to develop signal-flow block diagrams offline without attaching the development hardware. The diagram that Figure 1 depicts, for example, is part of a tutorial exercise I completed after dinner one night at the dining-room table. The next morning, I connected my laptop to the AD1940 evaluation board through a USB port, downloaded the file, and ran test sweeps from the AP SYS-2722 through the system. A comparison of the plots in figures 2a and 2b indicates that the SigmaStudio simulation properly accounts for the equalizers' interband interactions and predicts the system response that the SYS-2722 measures. The straight-line plot falling along the –6-dB line in Figure 2b derives from output channels 2 and 3: signals that the equalizers do not process. These curves, which indicate a 0.4-dB rise in the lowest decade and a 0.35-dB drop-off in the top octave, indicate that similar behaviors, which appear on the Channel 0 and Channel 1 outputs, are not due to the equalizers' deviation from their predicted behavior.

The constant 6-dB difference that figures 2a and 2b depict derives from the fact that Figure 2a's plot simulates the equalizer's transfer function—a relative measure—whereas Figure 2b's is an absolute measure of the system's performance with reference to 0 dBFS (decibels full-scale). Though it is reasonable to set an equalizer to provide, say, 6 dB of gain at some frequency, a digital-audio system cannot produce an output of 6 dBFS: Unlike analog systems, digital-audio systems have no linear headroom above full-scale. To prevent the system from clipping, therefore, this measurement requires a stimulus signal from the generator no greater than –6 dBFS. In practical systems, inputs can reach 0 dBFS, so a real implementation of this circuit would need to include volume-control cells to manage the signal amplitude in advance of the equalizer. Analyze your design's gain structure to ensure that you can't clip an internal node. Using an equalizer to boost frequencies complicates the issue, whereas cutting is always safe with respect to clipping hazards. Also note that, unlike observations you might make of signals in the time domain, spectral plots are graceful at the onset of clipping. Raising the input level, say, 2 dB, results in spectra with peaks that appear to have lower Qs than the equalizer's settings indicate, rather than flattop peaks. A test for your system's gain-structure plan would include a THD (total-harmonic-distortion) measurement with a 0-dBFS sweep with spectral shaping cells turned up as far as your application allows. A somewhat more sophisticated approach is to build adaptable structures that exploit the AD1940's dynamics-management cells. Consider the trade-offs when deciding between upstream and downstream sensing.

The measurement of this circuit employed a POF (plastic-optical-fiber) link from the AP SYS-2722's digital generator to the AD1940 evaluation board's Toslink SPDIF input. The analyzer took the device under test's outputs in pairs from 1/8-in. TRS jacks through unbalanced, shielded leads. The AD1940's signal I/O resides strictly in the digital domain. An AD1939 codec provides the evaluation board's analog-I/O facilities; the codec adds greatly to the evaluation board's versatility. Less apparent, however, is the I/O flexibility inherent in the AD1940. The audio processor can receive or transmit audio data in two-channel I2S, left- or right-justified formats, or eight- or 16-channel TDM (time-division-multiplexed) streams.

The AD1940 evaluation hardware and SigmaStudio software form a seamless, reasonably responsive operating environment with a mostly well-behaved user interface. However, precisely setting virtual rotary controls is more difficult than similar controls on other platforms. The wiring paths are not user-adjustable, and symmetrical-cell arrangements can often result in overlapping paths, which, though mostly harmless, are difficult to read and can slow visual verification that the design agrees with the designer's intent. Barring any change in the SigmaStudio software, you can mitigate this effect by imposing spatial offsets between cells in your project work space.

The current SigmaStudio documentation is not up to the quality of the software itself. The library documentation's table of contents, for example, omits some items that are actually documented, though the search facility can usually find those items in short order if you know how to search for them. Explanations of many cells avoid many of the less obvious cell features. Although you can generally ignore this documentary weakness when using cells that implement familiar functions, it can slow down your project development when you need to invoke a less familiar function. The hardware documentation is likewise overly terse and lacks both a map and a narrative explanation of the board's layout and features. The SigmaDSP team is evidently aware of the need for better documentation and is working to soon upgrade it.


Author Information
You can reach Technical Editor Joshua Israelsohn at jisraelsohn@edn.com.


Reference
  1. Israelsohn, Joshua, "Flexible silicon: GUI-programmable audio processors: Part One," EDN, Sept 29, 2005, pg 60.

Acknowledgments
Many thanks to Bob Adams and the SigmaDSP team at Analog Devices for their support with the AD1940 evaluation board; to Skip Taylor, PhD, and the folks at D2Audio for their support with the XS-125-4; and to Bruce Hofer, Alan Miksch, David Matthew, and the Audio Precision design and configuration groups for the use of the SYS-2722 and for their support of the BenchPress project.

Flying on instruments

My rule for working with test equipment with which I'm unfamiliar is to take sufficient time in advance to learn about the instrument's capabilities, proclivities, operating requirements, and controls. It may sound insultingly simplistic, but the fact remains that anyone can generate data, and many do. Making solid measurements and correctly interpreting the results are more difficult tasks. The first step to distinguishing between the two is understanding the capabilities and limitations of the instrument (Reference A). The better a DUT (device under test) performs, the more difficult it becomes to meaningfully measure its performance and not the residual errors of the test setup and environs.

Audio Precision's AES-17 filter serves as an example: The filter's spectral response can predictably affect test results but do so in a way that an operator lacking familiarity with the measurement system could misinterpret. A plot of the XS-125-4's THD (total harmonic distortion) operating at –0.5 dBFS (decibels full-scale) into an 8Ω load falls precipitously starting at 7 kHz (Figure A). You'll see this plot shape in characterizations of many digital-audio devices with analog outputs, but the shape does not describe the DUT so much as it describes the filter. In the case of the XS-125-4, the third harmonic evidently dominates the THD at full power. At 7 kHz, the dominant distortion residue falls into the AES-17 filter's narrow transition band (Figure B). By 10 kHz, the second harmonic is nearing the end of the filter's passband, and, by 12 kHz, there's little left in the measurement beyond the amplifier's noise floor and a small leakage term representing the analyzer tracking filter's finite notch depth. So, what's the THD doing through the interval from 7 to 20 kHz? This measurement gives us no clue, and discovering the answer in any application in which the harmonics in question approach the Nyquist frequency requires detailed knowledge of how both the DUT and the test environment process artifacts that approach or pass through the Nyquist frequency.

I've on a number of previous occasions worked with Audio Precision analyzers. The most recent interaction, though, was a couple of years ago (Reference B), so this was my first experience with the SYS-2722. The dual-domain instrument can generate and analyze signals in either the analog or the digital domains and, therefore, suits cross-domain analysis in which the instrument provides the test stimulus in one domain and tracks and measures the response in the other domain. This capability came in handy when I was examining the AD1940 and its evaluation board. The generator and analyzer can drive and receive analog signals through balanced XLR or unbalanced BNC connectors. Digital signals appear on balanced AES/EBU, unbalanced SPDIF, or optical Toslink ports. Digital ports operate at all standard audio-sampling rates to 197k samples/sec.

The instrument's capabilities are extensive, yet its user interface is well-designed and generally uncluttered. In addition to the instrument's extensive documentation, Audio Precision has produced a five-DVD tutorial course on audio measurements—a valuable accessory for those not steeped in the craft.

In addition to the SYS-2722 analyzer, Audio Precision supplied a DCX-127 multifunction module, which provides precision dc sources, measurement capabilities, and digital I/O. The company also supplied an SWR-2122U unbalanced switcher, which is a handy device for managing multichannel measurements, for example. The accessories connect to the SYS-2722 through the AP control-bus interface, as does the host PC.

I spent a good deal of time with the AP SYS-2722 and accessories before I could find anything to criticize. It's a solidly built system apparently designed by people who use the equipment, so the instrument is almost immediately comfortable to operate. Of the few annoyances I did collide with, all have easy work-arounds.

If you connect accessories such as the DCX-127 to a SYS-2722, the multifunction module must be powered; otherwise, it apparently drags down the control bus. Upon launching the control software, you will get an error message informing you that the analyzer is either improperly installed or is itself unpowered. Technically, this message is true: You could say that an unpowered DCX-127 is an improper element of the installation. Still, the message struck me as a bit vague, considering the nature of the—admittedly operator-induced—fault that I finally located. If the documentation mentions the need to power all devices on the control bus, I missed that part. In the end, I powered both the SYS-2722 and the DCX-127 from the same outlet strip and used the strip's switch to control power to the test equipment.

The control-bus cable that connects the analyzer to your PC is a bit short and constrains the relative placement of the two pieces of equipment. According to the company's application-support group, however, you can add a DB-25 extension cable to the instrument end of the cable. As long as the cable is of reasonably high quality, you should be able to extend the tether another meter or so.

I used a laptop PC with the analyzer, so the control-bus cable terminates to a single-slot PCMCIA card. The PCMCIA connector is the most fragile part of the system. My experience with similar connectors from the bad old days of PCMCIA dial-up modems is that they reliably fail before any other part of the systems with which they are associated. Although I understand that the weakness derives from the PCMCIA standard's mechanical specifications, other industries have developed more robust connection methods. For example, manufacturers of PCMCIA cards for modems, Ethernet, and FireWire ports have long since developed card extensions that flare out to fairly large and beefy plastic enclosures for more robust connectors. Such a modification to the AP PCMCIA card would remedy that card's weakness. In the meantime, if you use a laptop with a SYS-2722, be careful about where you situate the computer and how you dress the interface cable.

Last, though you may fix plot colors for the screen presentation or allow them to rotate through a color cycle, graphs you export use colors from the color cycle whether you like it or not. This is not just a matter of taste: A yellow graph on white paper is simply unreadable, and coercing the system to cycle to another color has proved to be something of a challenge that the operator shouldn't need to take on. According to Audio Precision, a simple cure is to export the graphs as WMF (Windows-meta-format) files and bring them up in a graphics program that allows you to manipulate vector images. Ungroup the plots and change the color and line weight of each one in turn to yield an appearance best suited to your purposes. We tried that approach at EDN with mixed results, using Adobe Illustrator as the graphics program for the manipulations. We ended up publishing plots that I exported from the analyzer in TIF format.

Given the extensive capabilities the SYS-2722 brings to the bench, these few points seem minor. They can derail you for a time, and a loss of bench time could be costly if you don't commit a reasonable interval to familiarizing yourself with the equipment you intend to use. Once you master it, though, the SYS-2722 sets a performance, handling, and documentation standard to which other instruments might aspire.

REFERENCES

1. Williams, Jim, "The taming of the slew," EDN, Sept 25, 2003, pg 57.

2. Israelsohn, Joshua, "Pour your own programmable analog," EDN, June 12, 2003, pg 38.




ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author


ADVERTISEMENT

Knowledge Center



Technology Quick Links

EDN Marketplace


©1997-2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites

ADVERTISEMENT
You will be redirected to your destination in few seconds.