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.

CLA execution trace

I am debugging CLA code and was wondering if there is any kind of simulator/execution tracer available for the CLA?

 

In particular, I want to watch the registers (and memory) as the instruction moves through the pipeline.

 

The tool does not have to generate code, it only allows you to load code and set the initial environment.

Once started, you could single step and see the registers or memory change as execution proceeded.

Thanks,

 

Joe 

  • Joe,

    Joe Petty said:
    I am debugging CLA code and was wondering if there is any kind of simulator/execution tracer available for the CLA?
     
    In particular, I want to watch the registers (and memory) as the instruction moves through the pipeline.
     
    The tool does not have to generate code, it only allows you to load code and set the initial environment.
    Once started, you could single step and see the registers or memory change as execution proceeded.
    Thanks,

    Is the tool you are looking for different than stepping through the CLA code using the debugger?  If so then there is not a tool.  But in the debugger you can see memory and registers change as you step the CLA code.  The PC will always point to the instruction in the D2 phase - there is not currently a pipeline view of the instructions.

    Did I answer your question?

    Cheers

    Lori

     

  • Lori,

    Sorry to say that I haven't tried to use the CLA debugger yet.  I got the impression that the CLA debugger was going to flush the pipeline on a break and not reflect the true state of registers, flags...  Now that my CLA is up and stable, I'll have to see what I can do with it.

    What I was looking for was a "subset" of the IDE that would just analyze the CLA assembler; a unit tester if you would.

    Thanks - got my answer

    Joe

     

  • Joe,

    Joe Petty said:
    I got the impression that the CLA debugger was going to flush the pipeline on a break and not reflect the true state of registers, flags...  Now that my CLA is up and stable, I'll have to see what I can do with it.

    I've written up some of the frequently asked questions for CLA debug on this wiki page.  It might be helpful:

    http://processors.wiki.ti.com/index.php/Control_Law_Accelerator_(C2000_CLA)_Debug_on_CCS_FAQ

    cheers

    Lori