Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

C674x Circular buffer addressing

$
0
0

Hi,

 

The C55x DSP seems to support a circular addressing in hardware. Does the C674x have such features as well? The datasheet mentions 'Hardware Support for Module Loop Operation', but it seems that that refers to the loop execution buffer for software pipelined loops (SPLOOP).

What I want to achieve is something like this:

for (index=0;index<4;index++)

buffer[(offset+index)%4]=calculate();

 

This situation can of course be efficiently coded by using &(4-1) instead of %4, but it get's inefficient when the modulo argument is not a power of 2. So I was wondering whether the hardware contains instructed to do that efficiently.

 

Regards,

 

Remco Poelstra


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>