1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../css/nitro.css"> 8<TITLE>MATH Demos</TITLE> 9</HEAD> 10<BODY> 11<H1>Arithmetic Functions (MATH) Sample Demo</H1> 12<H2>Location</H2> 13<P><CODE>$TwlSDK/build/demos/math</CODE></P> 14<H2>Compilation</H2> 15<P>Move to the <CODE>$TwlSDK/build/demos/math</CODE> directory and enter</P> 16<BLOCKQUOTE><CODE>% make</CODE></BLOCKQUOTE> 17<P> The compilation will begin, and the SRL executable file and the NEF or TEF files having binary information will be generated in <CODE>$TwlSDK/build/demos/fs/(sample name)/bin/(platform)/(target)/</CODE>.</P> 18<BLOCKQUOTE><CODE>$TwlSDK/build/demos/math/(sample name)/bin/(platform)/(target)/</CODE></BLOCKQUOTE> 19<P> For example:</P> 20<BLOCKQUOTE><CODE>$TwlSDK/build/demos/math/misc-1/bin/ARM9-TS/Release/main.srl</CODE></BLOCKQUOTE> 21<P>will be the executable file for the <CODE>misc-1</CODE> demo.</P> 22 23<H2>Execution</H2> 24<H3>For NITRO ROMs:</H3> 25 26<P>If using the Ensata emulator:</P> 27<UL> 28<LI>Execute NEF and SRL files with ensata. 29</UL> 30<P>If using IS-NITRO-DEBUGGER:</P> 31<UL> 32<LI>Load and execute a NLF file with IS-NITRO-DEBUGGER. 33<LI>Execute an SRL file with IS-NITRO-DEBUGGER 34<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line. 35</UL> 36<P>If using IS-TWL-DEBUGGER:</P> 37<UL> 38<LI>Load and execute an NLF file with IS-TWL-DEBUGGER. 39<LI>Execute an SRL file with IS-TWL-DEBUGGER. 40<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line. 41</UL> 42<H3>For TWL/NITRO HYBRID ROMs:</H3> 43<P>If using IS-NITRO-DEBUGGER:</P> 44<UL> 45<LI>Execute an SRL file with IS-NITRO-DEBUGGER 46<LI>Execute an SRL file with IS-NITRO-DEBUGGER using the <CODE>loadrun.exe</CODE> tool from a command line. 47</UL> 48<P>If using IS-TWL-DEBUGGER:</P> 49<UL> 50<LI>Load and execute a TLF file with IS-TWL-DEBUGGER. 51<LI>Execute an SRL file with IS-TWL-DEBUGGER. 52<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line. 53</UL> 54<H3>For TWL LIMITED ROMs:</H3> 55<P>If using IS-TWL-DEBUGGER:</P> 56<UL> 57<LI>Load and execute a TLF file with IS-TWL-DEBUGGER. 58<LI>Execute an SRL file with IS-TWL-DEBUGGER. 59<LI>Execute an SRL file with IS-TWL-DEBUGGER using the <CODE>loadrun.TWL.exe</CODE> tool from a command line. 60</UL> 61 62<H2>Description</H2> 63<BR> 64<TABLE width="720"> 65 <TBODY> 66 <TR> 67<TH>Name</TH> 68<TH>Directories</TH> 69<TH>Operation</TH> 70 </TR> 71 <TR> 72<TD><EM><STRONG><CODE>misc-1</CODE></STRONG></EM></TD> 73<TD><CODE>demos</CODE></TD> 74<TD>Tests the operation of various math functions. The results are displayed on the debug output.</TD> 75 </TR> 76 <TR> 77<TD width="187"><EM><STRONG><CODE>rand_lc</CODE></STRONG></EM></TD> 78<TD><CODE>demos</CODE></TD> 79<TD width="525">Random number test using linear congruential generators.</TD> 80 </TR> 81 <TR> 82<TD><EM><STRONG><CODE>qsort</CODE></STRONG></EM></TD> 83<TD><CODE>demos</CODE></TD> 84<TD>A test of the quicksort function. When the A Button is pressed, it rearranges data generated with random numbers.</TD> 85 </TR> 86 <TR> 87<TD><EM><STRONG><CODE>fft-1</CODE></STRONG></EM></TD> 88<TD><CODE>demos</CODE></TD> 89<TD>Carries out an operational test for the fast Fourier transform function. The results are displayed on the debug output.</TD> 90 </TR> 91 <TR> 92<TD><EM><STRONG><CODE>fft-2</CODE></STRONG></EM></TD> 93<TD><CODE>demos</CODE></TD> 94<TD>Runs the fast Fourier transform function on microphone input and carries out spectral display.</TD> 95 </TR> 96 <TR> 97<TD><EM><STRONG><CODE>dgt-1</CODE></STRONG></EM></TD> 98<TD><CODE>demos</CODE></TD> 99<TD>Tests the operation of the message digest and hash functions. The results are displayed in the debug output.</TD> 100 </TR> 101 <TR> 102<TD><EM><STRONG><CODE>dgt-2</CODE></STRONG></EM></TD> 103<TD><CODE>demos</CODE></TD> 104<TD>Compares the operation speed of the message digest and hash functions. The results are displayed in the debug output.</TD> 105 </TR> 106 </TBODY> 107</TABLE> 108<H2>Operation</H2> 109<P>Operates normally in all operating environments.</P> 110<H2>See Also</H2> 111<P><A href="../../math/list_math.html"><CODE>MATH Features List</CODE></A></P> 112<H2>Revision History</H2> 113<P> 1142008/07/11 Changed descriptions to support TWL.<BR> 2005/07/05 Added a description of the fft-2 demo.<BR> 2005/05/13 Added a description of the fft-1 demo.<BR> 2005/05/10 Added a description of the misc-1 sample.<BR>2005/04/18 Added descriptions for <code>dgt-1</code>, <code>dgt-2</code> demos.<br /> 2005/04/12 Added <code>qsort</code> demo.<br /> 2005/03/02 Revised descriptions to reflect current support environment conditions.<br /> 2004/12/15 Initial version. 115</P> 116<hr><p>CONFIDENTIAL</p></body> 117</HTML>