aligned on an even word boundary. This alignment can be done using the linker
command file with the key word, align 4, see the linker command file. We use the
DATA_SECTION pragma directive to tell the linker where to place the output
sequence.
Go through the following steps for Experiment 5C:
1. Copy the assembly program firs2macs.asm, the C function epx5c.c, and
the linker command file exp5.cmd from the software package to the working
directory. The dual-MAC FIR routine is defined as:
unsigned int fir2macs(int *in, unsigned int M, int *h, unsigned int L,
int *out, int *x, unsigned int index);
1.
where all the arguments are the same as Experiment 5A.
2. Create the project exp5c and add files fir2macs.asm, epx5c.c, and exp5.cmd
into the project.
3. Build and run the project. Compare the results with the results from the two
previous experiments.
4. Profile the filter performance and record the memory usage. How many instruction
cycles were reduced by using the dual-MAC implementation? Why is the dual-MAC
implementation more efficient than the symmetric FIR implementation?
References
[1] N. Ahmed and T. Natarajan, Discrete-Time Signals and Systems, Englewood Cliffs, NJ: Prentice-
Hall, 1983.
[2] V. K. Ingle and J. G. Proakis, Digital Signal Processing Using MATLAB V.4, Boston: PWS
Publishing, 1997.
[3] Signal Processing Toolbox for Use with MATLAB, Math Works, 1994.
[4] A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, Englewood Cliffs, NJ:
Prentice-Hall, 1989.
[5] S. J. Orfanidis, Introduction to Signal Processing, Englewood Cliffs, NJ: Prentice-Hall, 1996.
[6] J. G. Proakis and D. G. Manolakis, Digital Signal Processing ± Principles, Algorithms, and
Applications, 3rd Ed., Englewood Cliffs, NJ: Prentice-Hall, 1996.
[7] S. K. Mitra, Digital Signal Processing: A Computer-Based Approach, 2nd Ed., New York, NY:
McGraw Hill, 1998.
[8] D. Grover and J. R. Deller, Digital Signal Processing and the Microcontroller, Englewood Cliffs,
NJ: Prentice-Hall, 1999.
[9] F. Taylor and J. Mellott, Hands-On Digital Signal Processing, New York, NY: McGraw Hill,
1998.
[10] S. D. Stearns and D. R. Hush, Digital Signal Analysis, 2nd Ed., Englewood Cliffs, NJ: Prentice-
Hall, 1990.
[11] Texas Instruments, Inc., TMS320C55x Optimizing C Compiler User's Guide, Literature no.
SPRU281, 2000.
REFERENCES
235