Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
Hi group!!! all you want to know about circular buffers and C: http://www.analog.com/library/dspManuals/pdf/C_Tools/Appendix_D.pdf Albert Cesari Could please anyone give me information on how to use Circular Buffers in C for the SHARC? Also need guidance on how to setup and use User Software Interrupts (in C) for the SHARC. Using VDSP++ 2.0 for SHARC. Thanks a lot -- ---------------------------------------------------- Jaime Andrés Aranguren Cardona |
|
|
|
Hello, Thanks for the reply. However, this seems to be for the G21k GNU legacy tools. Still works fine with VDSP++ 2.0? From what I've found in comp.dsp, this doesn't work very fine with the newer tools, and is there in macro.h just for compatibility with legacy code. They say in the file macro.h itself that it is much more recommendable to access the circ buffers directly instead of using the macros. And for example, the CIRC_MODIFY macro don't actually uses circular buffer in hardware, is just plain C code. So, there is no chance to use the zero-overhead circular buffer addressing. Besides that, those registers can't be used by the compiler. From the compiler manual, they actually don't recommend this practice (reserve registers). How much actually does it affect performance? Needless to say, with the macros there is no performance improvement just because the circular buffers aren't supported in hardware within C programs. I should also say, I am using an ADSP-21160M (SIMD DSP). Please, your opinions and suggestions are very welcomed. Success stories as well. Regards, JaaC. albert cesari wrote:Hi group!!! all you want to know about circular buffers and C: http://www.analog.com/library/dspManuals/pdf/C_Tools/Appendix_D.pdf Albert Cesari Could please anyone give me information on how to use Circular Buffers in C for the SHARC? Also need guidance on how to setup and use User Software Interrupts (in C) for the SHARC. Using VDSP++ 2.0 for SHARC. Thanks a lot -- ---------------------------------------------------- Jaime Andrés Aranguren Cardona _____________________________________ /groups.php3 Jaime Andrés Aranguren Cardona |