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.

Debugging XDAIS alg via CE on DSP simulator

Hello,

what is the easiest way to test an XDAIS algorithm through Codec Engine on the CCS v4 C64x+ simulator? That is, I'd like to call the algorithm through the Codec Engine interface entirely on the C64x+ simulator (for debugging the rather complex algorithm interface).

Unfortunately I was unable to configure the CE examples for that purpose.

Thank you for your help.

  • Most of the CE example apps support building in 'local' mode, where the app is on the same processor as the alg.  Look for the 'local.cfg' config scripts.

    If you're using a semi-recent version of CE, you might be able to simply ensure (in examples/xdcpaths.mak) the PROGRAMS var contains "APP_LOCAL".  Once built, the executables for C64P devices (including the sim) will be called something like app_local.x64P.

    Chris

  • Thank you, Chris, for your reply. To be honest, I'm having difficulties importing the examples into CCS. But since I'd like to use my own XDAIS alg anyway... If a new CCS project is created from scratch, what would be the simplest code required to call the alg through Codec Engine?

    Thanks.

  • Codec Engine uses XDC's config tooling to help assemble the system.  Unfortunately, CCS's handling of BIOS 5 (tcf) + XDC (cfg) systems is a bit clunky.  There's a description of how it can be done here:

        http://e2e.ti.com/support/embedded/f/355/p/5285/19193.aspx

    Does your XDAIS alg implement one of the XDM interfaces (e.g. IAUDDEC1, IUNIVERSAL, etc)?  If so, when constructing your projects as that forum post describes, you should be able to use sources from one of the CE examples relevant to your class of alg (examples/ti/sdo/ce/examples/apps/*).  Once you get the CE example building, we should be able to change a few lines in the cfg script to swap out the example copy algorithm and swap in your real XDAIS alg.

    Chris