Post Go back to editing

SHARC Timing of Indirect -vs- direct addressing

I am refactoring some VisualDSP C code for a ADSP-21262 processor.  In looking at the assembly output from the C compiler, I can see that my refactoring is generating some indirect addressing that was originally direct addressing.

I am trying to make sure that the changes I am making don't affect the performance of the application.  I have looked through Instruction reference manual, and the hardware manual, and I can't find timing information on the different addressing modes.  I'm inclined to believe that the Address Generator can do the indirect addressing at the same speed as direct addressing, but I would like to verify this.

Is there a difference in timing between direct addressing, and indirect addressing, in the 21262 (SHARC family) processor?

e.g. is DM(n) the same timing as DM(n, m)?

  • Hello,

    Please refer the PROGRAM SEQUENCER section(PageNo:113 / 846) in the ADSP-2126x SHARC® Processor Hardware Reference manual. Which covers the detailed about Indirect & direct addressing. You can find the HRM from below link,
    www.analog.com/.../ADSP-21262_hwr_rev5.1.pdf

    For the following instructions the DSP is operating in SIMD mode and the explicit register is either a PEx register or PEy register. I0 points to either external memory space or IOP memory space. This example shows indirect addressing. However, the same results occur using direct addressing.

    IF EQ DM(I0,M0) = R2;
    IF EQ DM(I0,M0) = S2;

    Regards,
    Lalitha.S