Reply by Mike Rosing December 17, 20052005-12-17
On Fri, 16 Dec 2005, ashwin k wrote:

> Dear all,
> I am working on encryption project ,I need to perform rotate operation in BLACKFIN 533 without the CC bit interfereing.
> Because of this I have done rotate in 4 CYCLES by lshift,lshift(-) and or operation.
> can it be done in less cycles?
> this is crucial for me
> can you help with parallel instructions (if possible)?

Check the manual:
http://www.analog.com/UploadedFiles/Associated_Docs/64547534176398BF53x_56x_PRM_14_shift_rotate.pdf
page 21-24 mostly.

I think you can do other parallel instructions, but it's probably
addressing stuff. I didn't look in detail.

Rather than think of the CC bit as interfering, think of it as part of
your data. The manual says:
The D-register versions of this instruction rotate all 32 bits. The
Accumulator versions rotate all 40 bits of those registers.

If you are working with more than 32 and less than 40 bits, then the
accumulator is where you want to be. If more than 40 bits, you want to
use the cc bit anyway. If less than 32 bits, any data register will work
fine.

It's just another bit. It may take one instruction to set or clear it,
but then the rotate to get what you want is one more instruction. At 2
instructions, you are pretty efficient. You can also do your rotates and
mask what you don't need.

I grant having rotate without carry is nice. But it's not so bad either
to just have rotate thru carry.

Patience, persistence, truth,
Dr. mike


Reply by ashwin k December 16, 20052005-12-16
Dear all,
I am working on encryption project ,I need to perform rotate operation in BLACKFIN 533 without the CC bit interfereing.
Because of this I have done rotate in  4 CYCLES by lshift,lshift(-) and or operation.
 can it be done in less cycles?
this is crucial for me
can you help with parallel instructions (if possible)?
 
thank you,
counting on your reply
K.Ash..

Send instant messages to your online friends http://in.messenger.yahoo.com

Reply by Mike Rosing December 15, 20052005-12-15
On Thu, 15 Dec 2005, prasanth rajagopal wrote:

> hi,
> I implemented a speech algorithm in pure software using VDSP++4.0 in Blackfin 533 processor.
> I need following important information:
> what is the commonly available frequency of blackfin?
> I assumed it as 500Mhz and got a delay of CCLK = 1133154 = 0.025sec
> I need to know if this is a proper delay.

You should be able to determine the number of clocks your routine takes
between input and output with both a simulator and your real hardware.
I don't think that's unreasonable, but you could probably improve it by 10
to 20% if you wanted to. Try some of the software profiling tools to see
where your routines spends most of its time, and optimize the highest
use routines first.

Patience, persistence, truth,
Dr. mike


Reply by prasanth rajagopal December 15, 20052005-12-15
hi,
I implemented a speech algorithm in pure software using VDSP++4.0 in Blackfin 533 processor.
I need following important information:
what is the commonly available frequency of blackfin?
I assumed it as 500Mhz and got a delay of CCLK = 1133154 = 0.025sec
I need to know if this is a proper delay.

with regards,
prasanth