EE265 Lab 5 Notes

Due Thursday 2/26/2009

Winter 2008-2009
Instructor: Teresa Meng

What to submit

- demonstration of functionality during office hours

- hard copies of

    - lab writeup

    - Matlab plot of a freqz of your filter

    - Matlab plots of expected output, measured output, and absolute error for both channels after at least 5 iterations

- submit in dropoff box a soft copy of

    - your entire project folder (lab5/asm) zipped up (no .dat files please!). Include your Matlab filter generation code and Matlab verification files in the asm directory.

 

Goals

- functionality: 20 points

- performance: 30 points (#cycles will depend on method, BUFFSIZE, etc. I got 15.2 cycles per output sample for BUFFSIZE of 180 (180 input samples (left and right) 120 output samples)) This means 1824 cycles/120 samples

- filter design: 20 points

 

Tips

 

DESIGN

- Choose your own BUFFSIZE (defined as usual: the size of src and dst. Note: src and dst should still be the same size.)

 

DEVELOPMENT

- Use a #pragma array of Int16 as the buffer to pass to writeBuf, and pass the dst pointer to readBuf.

- Block comments: .if 0 ... .endif


COMMANDS YOU MAY NEED

- mov dbl(*ARx), dbl(*ARx)
- amov
- bset, bclr
- mac::mac
- mpy::mpy
- asub
- rptb, rptblocal