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.

  • Resolved

[FAQ] CLA: Can you explain more about a task?

Guru 70015 points

Replies: 1

Views: 1085

Q:  Can you explain more about a task? such as:

How big is a task? 

Is there a size limit for a task?

What is the starting address of a task?

How do I indicate the end of a task?

Lori Heustess
C2000 Software Engineering

  • A:

    Think of a task like an interrupt.   It is a algorithm that is executed when the CLA receives an interrupt.

    The start address of a task is configurable. Each task has an associated interrupt vector (MVECT1 to MVECT8). For type 0 CLAs, this vector holds the starting address (as an offset from the first program location) of the task. For all the other types, this vector holds the entire 16-bit address of the task.

    The size of a task is only limited by the amount of program memory available and the CLA's program counter.

    • For type 0 CLAs, the program space is limited to 12-bits or 4096 words. All CLA instructions are 32-bits, so within a 4k x 16 program space you can have ~2k CLA instructions.
    • For type 1 (and above) CLAs, the program space is 16-bits wide, leaving the lower 64K words of space available as program space. Please refer to your device specific documentation for information on how to configure/allocate the memory spaces to the CLA.

    The MSTOP instruction indicates the end of the task.   After a task begins, the CLA will execute instructions until it encounters an "MSTOP" instruction. 

    Also refer to:

    Click here for more CLA FAQs and resources.

    Lori Heustess
    C2000 Software Engineering

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.