Texas Memory Systems X-Midas Signal Processing Example: Utilizing X-Midas for Efficient Data Analysis

Page 9

Chapter 4 - X-Midas Programming Example: XTMIC

This chapter describes the X-Midas programming example, how to execute it, and how to use it as a template for XP-15 applications. The source code is located on the XP-15 software CDROM in the examples/xtmic/ directory.

4.1 Overview

The X-Midas programming example is a less robust version of the SAMTMIC software that currently runs on the SAM-450. The XP-15 implementation, referred to as the XTMIC, performs the same basic processing as the SAMTMIC, but with predefined parameters and static weight files. The XTMIC performs spectral analysis and interference canceling on two channels of 16-bit data using an FFT size of 128K. The algorithm starts with a forward four-tap polyphase filter, and a forward FFT, applies a set of predefined weights, performs the inverse FFT, and then the inverse polyphase filter. The auto spectrum of each signal is calculated, as well as the cross spectrum of the two signals, and averaged versions of these spectra are sent to the host computer for display. In addition to the auto and cross spectra signals, the end result of the TMIC calculations is also piped back to the host.

4.2 Running the XTMIC Example

Copy the contents of the examples/xtmic/ directory from the CDROM to a suitable local directory. For instructions on reading the CDROM, please refer to the Installing the XP-15 Software section for the relevant computer and operating system earlier in this document.

% cp –r $CDROM/examples/xtmic/* .

This will copy the entire option tree to the specified location. Start the X-Midas programming environment, and then associate the XTMIC option tree with this location using the X-Midas xmopt function. For example, if the xtmic option tree was copied to /home/midas/projects/xtmic/, then one would type:

% xmopt XTMIC /home/midas/projects/xtmic/

Then, to add the XTMIC project to the current path:

% xmpath +XTMIC

The xmbopt utility can then be used to build the program.

% xmbopt XTMIC

The build file assumes that the XP-15 software has been installed in the $TMS directory as described in the software installation section above. If this is not so, then the build file will have to be modified to reflect the new software location.

XP-15 User Guide

Texas Memory Systems, Inc. (8/6/01)

4-1

Image 9
Contents User Guide XP-15 Vector ProcessorTable of Contents Introduction Related TextsTypographical Conventions Overview Installation Installing the XP-15 HardwareInstalling the XP-15 Software Running the XP-15 Confidence Test Diagnostic Confidence TestMake Gcc -I$TMS/include -o cfft cfft.c -L$TMS/lib -lvp -lsam XP-15 User Guide Texas Memory Systems, Inc /6/01 Midas Programming Example Xtmic OverviewRunning the Xtmic Example XP-15 User Guide Texas Memory Systems, Inc /6/01 Cfft Appendix a XP-15 Confidence TestXP-15 User Guide Texas Memory Systems, Inc /6/01 Null XP-15 User Guide Texas Memory Systems, Inc /6/01 Specification Appendix B PCI Local Bus SpecificationsReserved Appendix C XP-15 Hardware Control and Status RegistersEcho