This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ILC register in tms320c6455 for CCS3.3

Other Parts Discussed in Thread: TMS320C6455

When I try write this string

MVC .S2   8,   ILC 

my compiler issues the error:

"dsplib.asm", ERROR! at line 31: [E0003] Illegal register ILC
MVC .S2 8,ILC ;Do 8 loops

 

How I can program this register? By the way, my compiler doesn't understand the register SP, but I could write B15, it works correctly. I work with tms320c6455 in CCS3.3.

Thank you.

 

 

 

  • The MVC instruction can only copy between control registers and general purpose registers.  It cannot be used to load constants into registers. 

    Thanks and regards,

    -George

  • This line

    MVC .S2 8, ILC

    is from the page 583 of the document

    TMS320C64x/C64x+ DSP CPU and Instruction Set. Reference Guide

    Is this document correct?

    By the way, the line

    MVC .S2 B1, ILC

    doesn't work too. But line

    MVC .S2 B1, AMR

    works without any problems. Why?
  • Stanislav Gritsutenko said:
    This line

    MVC .S2 8, ILC

    is from the page 583 of the document

    TMS320C64x/C64x+ DSP CPU and Instruction Set. Reference Guide

    Is this document correct?

    I think the answer is no.  Since this document is not controlled by the compiler team, I will move this thread to the C64x device forum.

    Stanislav Gritsutenko said:
    the line

    MVC .S2 B1, ILC

    doesn't work

    I presume you mean it doesn't build clean when you assemble it.  I cannot reproduce that behavior.  It builds clean for me.

    Thanks and regards,

    -George

  • Stanislav,

    Why are you writing in assembly? Please use the compiler, and then if you want to learn assembly you can look at the compiler's output and see how it works.

    I have tried for many years to understand programming the SPLOOP, and it escapes me. I only use the compiler to start, and then I may try to make small changes for optimization. But I would not start from scratch or from an example.

    You can take the SPLOOP example code as psuedo-code, and then find out how the compiler will write it and copy that.

    What are your compiler switch settings? You may have one or more of those wrong to get the error message you showed above.

    Regards,
    RandyP