Texas Memory Systems manual Appendix a XP-15 Confidence Test, Cfft

Page 11

Appendix A – XP-15 Confidence Test

/**************************************************************************

Copyright (c) 2001 by Texas Memory Systems, Inc.

Texas Memory Systems, Inc.

11200 Westheimer #1000

Houston, TX 77042

(713) 266-3200

Module Name:

cfft.c

 

Package:

CFFT

demo

 

Version:

$Revision:

$

Release Date:

$Date:

$

Description:

XP15

FFT demo

 

**************************************************************************/

#include <stdio.h> #include <stdlib.h> #include <strings.h> #include <samdef.h> #include <vp.h>

#define FFT_SIZE (1024*1024)

static void help(void);

/********************************************************************** Function: main

Description:

entry

point for

XP15 FFT demo

Arguments: argc

-

number of

inputs

 

argv

-

pointer to array

of inputs

Returns: none

***********************************************************************/

int main (int argc, char *argv[])

{

int

cc;

 

extern char *optarg;

 

extern int

optind;

 

int

ii;

 

int

ecount;

 

float

real_val, imag_val;

TMS_INT

xp15

= -1;

TMS_INT

fft_size = FFT_SIZE;

TMS_INT

status;

 

TMS_COMPLEX *signal, *results;

TMS_COMPLEX *cu, *cy;

/*

*Get command line arguments

XP-15 User Guide

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

A-1

Image 11
Contents User Guide XP-15 Vector ProcessorTable of Contents Typographical Conventions IntroductionRelated Texts Overview Installing the XP-15 Software InstallationInstalling the XP-15 Hardware 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 Running the Xtmic Example Midas Programming Example XtmicOverview 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