DSP Lab of PHILIPS : SPS – Real-Time Digital Audio Signal Processing: System and Applications
SPS, a Powerful PC-based Environment for Real-Time Digital Audio Signal Processing: System and Applications
In this article, a powerful PC-based environment called SPS (Signal Processing System) for Digital Signal Processing within the audio band, will be discussed and explained using a number of applications. The available system is based on a PC plug-in board with 5 parallel 40 MHz M56002 processors. Full on-chip emulation support and the Windows software make the system easy to operate. The open software environment includes sophisticated digital filtering design software, signal math and drivers to control the hardware. Also links to tools such as Motorola’s M56000 development system, Momentum Data Systems’ filter synthesis and Mentor Graphics DSP Station. Customized hardware interfacing is supported by a concept of daughter 1O-boards.
An SPDIF/EBU based digital Input/Output daughter board is available for access to standard HIFI digital audio signals. The SPS system is a flexible prototyping and development environment for audio bandwidth digital signal processing. SPS is also very well suited as OEM solution for high throughput applications.
The system is currently in use to develop filters for digital loudspeakers, for digital audio algorithm design as well as DSP-ASIC emulation. In cooperation with LMS International, the applicability of the board for real time subjective analysis of sound quality in vibro-acoustic design is being evaluated.
New DSP development platform and OEM module
Developments in digital audio as well as other domains such as real time control and adaptive filtering often require a prototyping phase where real-time evaluation is important. Reasons are manifold, e.g.: the subjective listening tests and parameter tuning in audio algorithms, validation of realtime interaction with the real-life environment in adaptive systems, marketing approval and demonstration capabilities, etc. In order to not be severely constrained by the final hardware and software of the implementation it is desirable to have available a prototyping and development environment for DSP algorithm design and validation, which is sufficiently flexible and powerful. The SPS (Signal Processing System) environment fully addresses this requirement. SPS has been already proven to be very useful in development of audio bandwidth DSP algorithms and applications. SPS offers as PC-based prototyping and development platform a lot of DSP processing power on a plug-in card with extensive support by Windows driver and application software. SPS also serves very well as high throughput OEM solution.
In the first section, the currently available SPS hardware is described, including a 5-processor PC-plug-in card and a daughter board for 4 channel digital audio IO. The next section explains the Windows software kit, containing drivers for application development, digital filter design software as well as links to tools such as the DSP Station and Motorola’s development system. In the following section, applications will be presented to illustrate the SPS system.
The first application is the design of loudspeaker correction filters, with an instant real time evaluation possibility. In the second application, developed in cooperation with LMS International, the use of the board for a real time digital filter engine in vibro-acoustic analysis is being studied. Many sharp filters need to run in real time allowing to manipulate harmonics in the sound which is typically produced in constructions with rotating engines. The third application described is the software emulation of a digital audio IC.
The SPS multiprocessor hardware PC plug-in card (SPS 1)
The SPS 1 DSP-board is designed to enable fast prototyping of new audio algorithms. It combines high processing power with flexibility needed for experimentation. Five DSP’s (Motorola’s M56002[1]), running at 40 MIz, give the programmer enough processing power for solving most signal processing problems. A photograph of the PC plug-in card is shown in figure 1a.
Figure 1a: Photograph of SPS 1 PC plug-in board with 5 M56002 processors, also showing digital i/o daughter board

The salient feature of this DSP-board is the excellent cost/performance ratio obtained by parallel processing with relattively low cost fixed-point DSP proces-sors, compared to current floating point systems (higher price) and single processor fixed point boards (lower perfor-mance). Consequently, the board excels in running many digital audio algorithms in parallel. In order to support fast parameter switching and adaptive filtering, a shared memory system is provided as communication channel between all DSP’s on the board. Bus arbitration and buffering is done automatically for this 384 K Byte global RAM memory. Up to
384 KByte of memory can be provided as zero wait-state local RAM memory for each of the 5 DSPs. The memory map of each DSP can be individually set by PC commands. Emulation support is also provided, based on the OnCE on-chip emulator probe [1], which is very helpful in the debug phase of sophisticated algo-rithms. A sixth DSP (M56001) on SPS 1 acts as a OnCE command converter.
This enables the board to be used with Motorola’s ADS56002 debugging software without any additional hardware.
All host interfaces of the 5 DSP-proces-sors are linked with the PC-bus. This allows for algorithm downloading, parameter setting as well as signal streams between PC host and the DSP board. All serial signal paths and serial clocks are routed to a connector. This connector allows for customizing the IO by designing application specific daughter boards.
Digital audio daughter board 10 (SPS-DB 1)
For a general purpose DSP prototyping environment to be used in audio devel-opment, it is important that the sound quality is by no means limited by the system itself. We therefor provided a fully digital daughter IO-board, based on the EBU/SPDIF standard [2]. In this way we avoid the analog electronics of A/D and D/A conversion to interfere with the harsh electrical environment of the PC box. The SPS-DB 1 piggy back module supports 4 digital audio inputs and 4 digital audio outputs (e.g. 2 stereo I0 chan-nels). Moreover, the EBU/SPDIF standard allows to couple SPS smoothly with a large range of both consumer and professional audio equipment. In this way the user can provide up to 4 parallel analog inputs and outputs with the quality of choice. Also, all kind of digital audio sources can be directly connected to provide input stimuli. The daughter board is able to connect the serial-IO of the 5 M56002 DSP’s of the plug-in card in a flexible way by a cross-bar chip. This allows to user to define the right parallel/serial connection of the 5 DSPs for his/her application. A photograph of the digital IO daughter card is shown in figure 1b.
Figure 1b: Photograph of the 4-channel digital io daughter card

The Windows based SPS software environment
The SPS-boards can be fully controlled and configured from the PC with Windows software. Apart from the driver software called SPS Drive, a number of application packages support digital filter design as will be explained below (SPS Calc, the signal calculator, SPS Comb for digital filter manipulation, SPS ELiS for Estimation of Linear Systems). Real-time user interface panels in Windows can be easily developed for the applications, using the access library routines created for SPS, e.g. with Visual Basic. Filter designs can be transferred from Momentum Data Systems’ filter synthesis. Also, an application downloading link, based on M56002 code generation has been provided from Mentor Graphics DSP-Station.
SPS PC-software
SPS Drive
This package controls the SPS environment in an intuitive, graphical way (see figure 2a).
Figure 2a: SPS environment control by SPS Drive, showing graphical entry of processor chaining and the passibility to select the memory model

Following functionality is currently provided:
• graphical control of serial and parallel chaining of the DSPs on the SPS boards (featuring schematic entry),
• the memory models are specified by table entry,
• the input and output formats can be set (20/24-bits),
• digital filters can be downloaded,
• working settings can be saved for future sessions.
SPS Calc
This package allows the user of SPS to manipulate and display stored signals.
Following operations are currently supported (see figure 2 b):
Figure 2b: SPS Calc for manipulation and arithmetic on stored signals

• support for real and complex (up to 8) dynamically stored signals,
• addition, subtraction, multiplication, and division of stored signals with other stored signals and constants,
• operations such as 1/x, square root, integration, differentiation, FFT, IFFT on stored signals.
SPS Comb
This digital filter design support tool (see figure 2c) is very helpful in interactively loading and manipulating digital filter designs:
Figure 2c: SPS Comb for manipulation and display of digital filter characteristics

• splitting of large filters in FIR and IIR biquads,
• graphical and textual manipulation of poles and zero’s of individual sections,
• display of transfer functions of filter sections and cascades of sections,
• display and listing of poles and zeros,
• stabilization of filters by moving poles into the unit circle,
• transform filters into minimum phase filters,
SPS ELiS: Estimation of Linear Systems
This package (developed in cooperation with the Vrije Universiteit Brussel in Brussels, Belgium) determines a linear polynomial model of a set of measurement (or design) data in the complex domain. The input is a set of arbitrary amplitude and phase points. The result of the approximation is a prespecified number of poles and zero’s representing an optimal frequency domain fit with the given data (see figure 3).
Figure 3: SPS ELiS polynomial modeling tool for approximation of transfer function data expressed in phase and amplitude points

In this way filters with arbitrary phase and amplitude response can be designed. Up to very high order filters can be handled in this way. The user can see the resulting amplitude, phase and pole/zero location after every iteration.
User interface building with SPS-Lib
A comprehensive library with access routines to the SPS hardware has been realized and is available as Windows DLL. In combination with graphical tools such as Visual Basic, this tool kit easily enables to realize Windows-based real time user panels to control the applications running on SPS. An example for a sine wave generator is given in figure 4.
Figure 4: Real Time user panel for SPS digital sine wave generator

Code generation for SPS through DSP-Station
SPS must be considered as an open PC-based environment for DSP-design. It is our intention to provide connections with other DSP-tools and platforms such as the above mentioned Momentum Data Systems link for digital filters. DSP software can be downloaded from the M56002 development system. A connection with Mentor Graphics’ DSP Station has been also set up. With the DSP Station, arbitrary complex algorithms can be specified, simulated, analyzed as well as compiled on assembly code and ASIC hardware [3]. The user can specily the algorithm graphically or by a description in a high level language. Using the M56000 code generator of the DSP Station, assembly code can be automatically created for downloading on the SPS boards. This combination of DSP-Station with the real time parallel processing of SPS results in a very useful fast turn around prototyping facility.Within a tew hours, complex algorithms can be specified and tested out in real time, including the development of a user intertace panel on the PC.
SPS Application examples in digital audio and in test and measurement
Digital audio algorithm development for loudspeaker and room correction
The real time environment offered by SPS is currently used to develop algorithms for digital audio systems. An interesting opportunity to apply DSP within HIFI systems is to correct for imperfections in the analog response of loudspeakers as well as the listening room. In Figure 5 is shown how a digital correction filter can be included in an active loudspeaker, which equalizes the amplitude and linearizes the phase of the frequency response of the speaker system.
Figure 5: Block diagram of loudspeaker correction system, for which SPS provides the development platform

The filter design is based on a frequency response measurement (amplitude and phase) on the original speaker in an anechoic room. From this measurement, the above mentioned SPS tools allow for:
• inverting the response to obtain the target frequency response,
• approximating the target frequency response by polynomial model
• splitting poles and zeros over FIR and IIR sections with optimal gain selection,
• downloading these filters to the SPS board to create an interactive listening set-up.
Currently adaptive filters are being studied. The shared memory architecture of the SPS multiprocessor board supports very well the realization of adaptive filters even when distributed over multiple processors.
Sound quality analysis in vibro-acoustics
A second application of the SPS board currently explored is vibro-acoustic analysis [4], shown in figure 6.
Figure 6: Block diagram of real time sound quality evaluation system in vibro-acoustic analysis

This application is being studied on behalf of LMS International. Of specific interest is the use of the SPS board for interactive replay and assessment of sound recorded with binaural transducers (head transducers) e.g. on prototype vehicles. The SPS board allows the real time application of highly sophisticated filters that enable to understand what characteristics of the signal do affect the sound quality. Narrow band digital filters have been designed which allow to attenuate (and amplify) harmonics in an interactive way. A very interesting analysis mode occurs if the harmonics are being tracked with the speed in the case of an accelerating motor. Apart from narrow band filters, it is useful to also have available band stop filters, which can remove sound in a part of the spec-trum. Band edges must be interactively controllable by the user, requiring “in-stant” filter design. This application is very computation intensive because of the many harmonics to be tracked. SPS provides an good platform with its 5 chainable processors for this sound quality system.
Real time software emulation of digital audio chip
Development of digital audio applications is much helped with a real time evaluation possibility. Subjective listening tests as well as marketing approval require real time demonstrations of the algorithms and features to be realized.
When a custom chip is being designed for such digital audio features, it is very useful to be able to assess the functionality of the device in real time, prior to the costly production of the silicon. SPS has been used to emulate the algorithms of an application specific digital audio chip, described in [3], integrating tunctions such as parametric equalization, reverb and hall effects, surround sound and stereo width control. According to the facility described in 3.2, DSP Station was used to specify the algorithm, compile and download the M56000 code on the SPS hardware.
Conclusions
In this paper we have described a powerful DSP prototyping and design environment for audio band width applications called SPS. Currently the hardware of the system is a PC plug-in board with an interchangeable daughter board for
4-channel digital I0. A lot of processing power is provided by 5 M56002 processors running at 40 MHz and fast local and shared memory. The SPS environment is supported by a driver library and application generation software in Windows. This user friendly software allows to control the hardware, the algorithm downloading, to display and manipulate signals, and to design digital filters based on arbitrary phase and amplitude response. Arbitrary DSP algorithms can be downloaded from Motorola’s M56002 development environment as well as from the comprehensive DSP Station environment.
The available system is currently being used in algorithm development for digital audio systems and software emulation of DSP ASICs. Another application in study is sound quality evaluation in vibro-acoustics analysis. Due to the large DSP computation power and the flexibility of its hardware and software envi-ronment, the SPS system can be used and is available for many other ap-plications. SPS serves very well as prototyping and development platform but also as high throughput OEM module.
References
{1] M56002 User’s manual, available from Motorola Inc.
[2] Digital Audio Interface, IEC 958, International Standard, Available from International Electrotechnical Commission, Geneva, Swiss
[3/ S. Note ea., Top-down design of two industrial IC’s with DSP Station, DSP Applications magazine, March 1993, pp. 43-50.
[4] Leuven Measurement Systems New-sletter, Special Issue on Vibro-Acoustics CAE, 1993, available from LMS Interna-tional,
Interleuvenlaan 68, B-3001, Leuven, Belgium
Windows and Visual Basic are trade marks of Microsoft Corp.
OnCE is a trade mark of Motorola Inc.
DSP Station is a trade mark of Mentor Graphics Corp.
Acknowledgments
The authors acknowledge the stimulating cooperation and contributions to SPS and/or applications from our colleagues at ITCL (F. Hoornaert and on leave from King’s College London-F. Chiarini), at the Vrije Universiteit Brussel, Brussels Belgium (R. Pintelon and J. Schoukens) and at LMS International, Leuven, Belgium (P. Aendekerk, F. Lembregts, K. Wyckaert, H. Vander Auweraer and J. Leuridan)
About the authors The authors are with the DSP Lab of PHILIPS International Technology Centre Leuven (ITCL)
- J. Van Ginderdeuren
- E. Emmers
- G. Knapen
- J. Tielen
- R. Ponnette
- S. Note
Many Thanks to E. Emmers for sharing this article
