<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Oh &#8211; that&#8217;s weird.&nbsp; Did you get &#8220;failure
to converge&#8221; errors?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>A lot of times I sort of interactively design the filter in
FDAtool by specifying the performance and saying &#8220;minimum order&#8221;&nbsp;
Then I start dialing the parameters that I wish to make the job harder or
easier.&nbsp; This kind of gives me a real-time feedback of the tradeoffs I&#8217;m
making<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>For instance:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fs=48000<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fstop1=2500<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fpass1=3k<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fpass2=5k<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Fstop2=5500<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Astop1=80<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Astop2=80<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Apass=1<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Can be done with 243 taps<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Then I say : &#8220;ok, lets narrow the transition band&#8221;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So I make fstop1=2900, fstop2=5100<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>That needs 1215 taps<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can get to a desired order by tweaking.&nbsp; I know that
seems weird, but its nice to be able to see the effect of transition band,
stopband attenuation&#8230;etc.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;ll investigate why you are getting your error though, if
you give me the parameters that you are using.&nbsp; Chances are, from what you
are saying, it is having a hard time making such an easy filter with such an
enormous order filter </span><span style='font-size:11.0pt;font-family:Wingdings;
color:#1F497D'>J</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp; Try something a little &#8220;harder&#8221;, like my
example<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> dspforum-bounces@echelonembedded.com
[mailto:dspforum-bounces@echelonembedded.com] <b>On Behalf Of </b>Alan Ding<br>
<b>Sent:</b> Tuesday, October 13, 2009 4:38 PM<br>
<b>To:</b> doug wenstrand; dspforum@echelonembedded.com<br>
<b>Subject:</b> Re: [Dspforum] Lab 5 Question<o:p></o:p></span></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal style='margin-left:.5in'>Thanks, that helps.&nbsp; I was thinking
of time domain and freq domain interpolation using the FFT.&nbsp; I think I
must have been getting tired....&nbsp; For this answer though:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><em>&quot;adding a bunch of 0 taps
will make no difference right? (are you thinking of the FFT?) 0-weights simply
can't contribute to the convolution sum, since you are just multiplying by 0,
and adding to the sum.&nbsp; Testing your existing filter with a bunch of zeros
is ok -- you won't get the great filter performance, but it will give you an
idea of how fast your filter can go.</em><i><br>
<em>to do this, I'd just make a loop in your code itself that initializes some
of the weights to 0 if thats what you want.&quot;</em></i><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>I was using an equiripple filter
like in lab 3 but with an order of 1023 and it keeps on giving me errors.&nbsp;
I tried a kaiser window but couldn't get the 40dB attenuation at 1000Hz past
the passpand on either ends of the frequency spectrum.&nbsp; Any advice?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>~Alan<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><br>
<br>
&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>On Tue, Oct 13, 2009 at 2:51 PM,
doug wenstrand &lt;<a href="mailto:dougwen@gmail.com">dougwen@gmail.com</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:.5in'>I'll CC this to the forum also, as I'm sure others
will benefit<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>On Tue, Oct 13, 2009 at 10:51 AM,
Alan Ding &lt;<a href="mailto:alan33d@gmail.com" target="_blank">alan33d@gmail.com</a>&gt;
wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-left:.5in'>Thanks Doug.&nbsp; I tried making a
1023 order filter that matched our specs in the fdatool and I was having
issues.&nbsp; Instead, I tried to&nbsp; increase the frequency resolution (not
accuracy) of the filtered output by zero-padding the filter.&nbsp; Is there an
easy way to get this output?&nbsp; I'd rather not copy and paste ~900
zeros.&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>adding a bunch of 0 taps will make
no difference right? (are you thinking of the FFT?) 0-weights simply can't
contribute to the convolution sum, since you are just multiplying by 0, and
adding to the sum. &nbsp;Testing your existing filter with a bunch of zeros is
ok -- you won't get the great filter performance, but it will give you an idea
of how fast your filter can go.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>to do this, I'd just make a loop in
your code itself that initializes some of the weights to 0 if thats what you
want.<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>What is the difference between what
-s, -on2 -o3&nbsp;provides me and what -os provides?&nbsp; (I couldn't find any
literature on the -os option) &nbsp;I also could not get the consultant to
work, I followed the direction step by step in the <span style='font-family:
"Arial","sans-serif"'>SPRAA1</span>.pdf mp3 decoder example but I think the
profile viewer does not like our target (I get some red markings regarding
using a 62XX simulator instead on the profile window in the bottom left corner
of the IDE).&nbsp; I will take your advice and give up on this one. <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

</blockquote>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>Yes, please do give up on the
consultant.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>as far as the compiler options:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>-os : interlists optimizer comments
with assembly statements<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>-on2 : produces a verbose
optimization info file<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>-ss : interlists C source and
assembly statements<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>If you want a more complete list of
all the choices, its in the &quot;optimizing compiler user's guide&quot;, which
you should be able to get through &quot;help&quot;-&gt;User Manuals<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>(or google spru187)<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal style='margin-left:.5in'>Regarding my timing, I do not see
any loop advice on the DSPLIB function as expected.&nbsp; Although the .asm
file also states that it is using a pessimistic approach on pointer variables
since it doesn't know if they overlap.&nbsp; Do I have to restrict the var
inputs for the sp_dotprod() function?&nbsp; I've already done the DATA_ALIGN
with pretty good results (~0.000000492 sec for 64 taps).&nbsp; My overall
processing loop is 0.000001333 sec for 64 taps which doesn't seem that great
compared to what it takes just to do the filtering.&nbsp; <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

</blockquote>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>the DSPLIB function is already
optimized, you aren't going to improve that -- it is already written in hand
assembly, and the compiler is not doing anything with it (save calling it).
&nbsp;Thats why it won't generate any comments. &nbsp;I'm not sure exactly what
you mean by restricting the var inputs for the function, your vectors should by
very nature not overlap, so it shouldn't be an issue. &nbsp;Again, the DSPLIB
function isn't going to get faster if you restrict its inputs -- any
restrictions are already built in by the writer of the DSPLIB function when he
wrote it. &nbsp;For instance, it does require that arguments to it be aligned
on a double-word boundary.&nbsp;<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal style='margin-left:.5in'>There are a couple of things I
would like to try.&nbsp; First of all, I want to try to change my index
variables for the phase step and input array index to signed values instead of
using unsigned values that wrap around.&nbsp;&nbsp; I was curious why this
might buy me some additional optimization?&nbsp;&nbsp; And just to make
sure...your solution from lab3 isn't supposed to be what we did for lab 3
correct?&nbsp; (I didn't see a float cast on the input or&nbsp;the use of
double buffering)&nbsp; I was looking at it to get ideas on how to speed up my
floating point DDS...etc.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

</blockquote>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>Lab3 : double buffering was not
required, I just asked you to do a circular buffer, and not shift data around.
&nbsp;The double circular buffer is a way to make it go even faster, that you
would use in lab4. &nbsp;It was ok to use it in lab3 as well, but I didn't<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>I don't have that solution in front
of me, but if I read in data and assign it to a floating point variable, the
promotion is done automatically. &nbsp;so there might not have been an explicit
float cast, but my computation was all done in floating point math<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>Don't look at my DDS from that lab
though! &nbsp;That is a floating point DDS, and was slow (I think I even wrote
it in the comment) &nbsp;If you want to have a &nbsp;fast DDS, look at the
solution for the DDS lab. &nbsp;The fixed point DDS can be used much like the
fixed point data from the CODEC (cast to a float when you want to use it) That
said, I think you should stop for a second before trying to optimize your DDS.
&nbsp;You have 20.8 us for each sample. &nbsp;You shouldn't start spending your
time on a portion of the program that takes &nbsp;less than 1us?? (1.3us-..4us
from your data above)<o:p></o:p></p>

</div>

<div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal style='margin-left:.5in'>Thanks,<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><span style='color:#888888'>Alan<o:p></o:p></span></p>

</div>

<div>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'><br>
&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-left:.5in'>On Tue, Oct 13, 2009 at 9:56 AM,
Wenstrand, Doug S. &lt;<a href="mailto:Douglas.Wenstrand@jhuapl.edu"
target="_blank">Douglas.Wenstrand@jhuapl.edu</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'>Alan,<br>
<br>
&quot;Use compiler comments, LEDs, or timer code to estimate what you think is
the maximal length<br>
filter that you can implement using this method, and design that filter (e.g.
in FDAtool.)&quot;<br>
<br>
All that was meant by this is that you should use whatever means necessary to
determine how fast you think you can run, and hence what the maximal length
filter you want to try is. &nbsp;You could use anything you think is convenient
: the comments from the compiler in the ASM which tell you what the
&quot;ii&quot; is for your convolution loop, hooking an LED to the scope, or
using the on-chip hardware timer. &nbsp;All three can be used to determine
execution time of a section of code, which would give you the data you need.<br>
<span style='color:#888888'><br>
<br>
Doug</span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:dspforum-bounces@echelonembedded.com" target="_blank">dspforum-bounces@echelonembedded.com</a>
[mailto:<a href="mailto:dspforum-bounces@echelonembedded.com" target="_blank">dspforum-bounces@echelonembedded.com</a>]
On Behalf Of Alan Ding<br>
Sent: Monday, October 12, 2009 10:44 PM<br>
To: <a href="mailto:dspforum@echelonembedded.com" target="_blank">dspforum@echelonembedded.com</a><br>
Subject: Re: [Dspforum] Lab 5 Question<br>
<br>
Never mind, I should have realized the &quot;mystery&quot; numbers meant
obtainable points for the problem. &nbsp;Although, I was wondering if we are
allowed to do anything and everything from the readings (including
optimizations -o flags and disabling sym debug) for both parts of the lab.<br>
<br>
&gt; The instructions also mentioned including compiler comments. &nbsp;Are
those<br>
&gt; found in the .asm file? &nbsp;Or just what's printed from compiler
consultant?<br>
<br>
Thanks,<br>
<br>
Alan<br>
<br>
----- Original Message -----<br>
From: Alan Ding &lt;<a href="mailto:alan33d@gmail.com" target="_blank">alan33d@gmail.com</a>&gt;<br>
Date: Monday, October 12, 2009 5:24 pm<br>
Subject: [Dspforum] Lab 5 Question<br>
To: <a href="mailto:dspforum@echelonembedded.com" target="_blank">dspforum@echelonembedded.com</a><br>
<br>
<br>
&gt; &gt;= 1024 taps = 25, &gt;= 800 taps = 20, &gt;= 512 taps = 15, &lt;512
taps = 12<br>
&gt;<br>
&gt; Sample rate not preserved : 0<br>
&gt;<br>
&gt; What do the requirements above mean (from Lab 5)? &nbsp; &nbsp;Are the
numbers after<br>
&gt; the taps in microseconds? &nbsp;If that's the case, wouldn't the first<br>
&gt; requirement (25) fail to meet our 48kHz deadline? &nbsp;I was also unsure
what<br>
&gt; &quot;sample rate not preserved: 0&quot; means.<br>
&gt;<br>
&gt; The instructions also mentioned including compiler comments. &nbsp;Are
those<br>
&gt; found in the .asm file? &nbsp;Or just what's printed from compiler
consultant?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; --<br>
&gt; -------------------------------------------------------<br>
&gt; Alan Ding<br>
&gt; Master of Sci, Electrical Engineering<br>
&gt; Johns Hopkins University<br>
&gt;<br>
&gt; Email: <a href="mailto:alan33d@gmail.com" target="_blank">alan33d@gmail.com</a><br>
&gt; Contact #: 4844593290<br>
&gt; _______________________________________________<br>
&gt; Dspforum mailing list<br>
&gt; <a href="mailto:Dspforum@echelonembedded.com" target="_blank">Dspforum@echelonembedded.com</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Dspforum mailing list<br>
<a href="mailto:Dspforum@echelonembedded.com" target="_blank">Dspforum@echelonembedded.com</a><br>
<a
href="http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com"
target="_blank">http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com</a><br>
<br>
_______________________________________________<br>
Dspforum mailing list<br>
<a href="mailto:Dspforum@echelonembedded.com" target="_blank">Dspforum@echelonembedded.com</a><br>
<a
href="http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com"
target="_blank">http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com</a><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'><br>
<br clear=all>
<o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'>-- <o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-left:.5in'>-------------------------------------------------------<br>
Alan Ding<br>
Master of Sci, Electrical Engineering<br>
Johns Hopkins University<br>
<br>
Email: <a href="mailto:alan33d@gmail.com" target="_blank">alan33d@gmail.com</a><br>
Contact #: 4844593290<o:p></o:p></p>

</div>

</div>

</blockquote>

</div>

</div>

</div>

<p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><br>
<br clear=all>
<o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'><br>
-- <br>
-------------------------------------------------------<br>
Alan Ding<br>
Master of Sci, Electrical Engineering<br>
Johns Hopkins University<br>
<br>
Email: <a href="mailto:alan33d@gmail.com">alan33d@gmail.com</a><br>
Contact #: 4844593290<o:p></o:p></p>

</div>

</body>

</html>