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.

SYS/BIOS task runs code in memory

Other Parts Discussed in Thread: SYSBIOS

Hi all,

  I am using the 8-core c6678 DSP on EVM6678L board and I wanted to implement multiplexing over the multiple cores. If I can load some computation algorithm code (e.g. matrix multiplication) to each specific core and transfer the data to be computed to DSP memory, then I can run the algorithm code with the data on DSP. If I load both the algorithm code and the data in DSP memory, and I create a SYS/BIOS task on the DSP core, can I go to the memory to fetch the code and data to run the algorithm as well? Suppose the algorithm code is a general computing code without SYS/BIOS integrated and compiled into a binary file. Though I was told this could not be done, I still think it's possible, but don't know how.

  Another question is, if I cannot do the above thing, can I use one of the 8 cores, say core 0, as a master core, all other cores are slave cores? Here is the scenario: I run a SYS/BIOS on the master core, it is only used to control the slave cores but not to do computation. I load some algorithm code (binary file) to slave cores as well as the data in DSP memory, but the slave cores won't start running until the master core gives a signal. The master core also tell slave cores where to fetch the data in the DSP memory. 

  Could anyone give some information on this, thank you very much!

  Regards,

  Jie

  • Jie,

    "If I load both the algorithm code and the data in DSP memory, and I create a SYS/BIOS task on the DSP core, can I go to the memory to fetch the code and data to run the algorithm as well?"

    Without fully understanding how you do this, I couldn't say for sure but if the memory is loaded with the right algorithm and code, I don't see why you couldn't do this.  Of course, I'm not exactly sure how you plan to run the algorithm.  It a function call that your SYSBIOS task would need to call.

    For your second question, you would have to use IPC for communication between cores.  You could use Notify or MessageQ to notify the other cores when to execute.

    Judah

  • Hi Judah,

    By saying this "If I load both the algorithm code and the data in DSP memory, and I create a SYS/BIOS task on the DSP core, can I go to the memory to fetch the code and data to run the algorithm as well?" I mean the algorithm is not presented as a function call, it's some compiled executables such as .out or .elf for DSP. Then I think this may not be the implemented under SYS/BIOS unless the code itself is loaded to the memory.

    Thanks for your answer of my second question, I think this would help me a lot in my implementation.

    Regards,

    Jie