Texas Memory Systems XP-15 manual Make Gcc -I$TMS/include -o cfft cfft.c -L$TMS/lib -lvp -lsam

Page 7

Xpmon[0]> t99

Running all tests:

Performing SPRAG tests …

.

.

testing many functions

.

.

All tests should run without any errors. If any errors occur please contact Texas Memory Systems.

3.3.2 Programming Example Confidence Test

The XP-15 confidence test is located on the XP-15 software CDROM in the examples/cfft directory, and a listing of the source code can be found in Appendix A. This simple application creates a signal containing a single impulse, transfers the signal from host memory to XP-15 local memory, performs a one million point complex FFT on the signal in the XP-15, reads the results back to host memory, and checks the results.

Copy the contents of the examples/cfft/ 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 $CDROM/sources/examples/cfft/* .

This will copy two files from the CDROM: cfft.c and Makefile. The make utility can be used to build the program. The make 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 make file will have to be modified to reflect the new software location.

% make

gcc -I$TMS/include -o cfft cfft.c -L$TMS/lib –lvp -lsam

XP-15 User Guide

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

3-3

Image 7
Contents User Guide XP-15 Vector ProcessorTable of Contents Related Texts IntroductionTypographical Conventions Overview Installing the XP-15 Hardware InstallationInstalling 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 Overview Midas Programming Example XtmicRunning 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