Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Discussion Groups

Discussion Groups | Analog Devices DSPs | SHARC Circular Buffers in C

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

SHARC Circular Buffers in C - albert cesari - Aug 19 9:24:00 2002



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






(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: SHARC Circular Buffers in C - Jaime Andres Aranguren Cardona - Aug 19 19:06:00 2002

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





(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )