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.

TMS320F28035: C28x assembly code instruction cycle

Part Number: TMS320F28035

In "TMS320C28x CPU and Instruction Set Reference Guide" part6, the CPU cycle for each instruction is given.

For example, "ABORTI" takes 2 cycles.

But each instruction has to go through the 8 stage pipelines. Is it the 8 stage together that takes 2 CPU cycles? The picture below makes me confused. It seems that for an struction to move from one stage to the next, it will take 1 cycle.

  • Howard Zou said:

    For example, "ABORTI" takes 2 cycles.

    But each instruction has to go through the 8 stage pipelines. Is it the 8 stage together that takes 2 CPU cycles? The picture below makes me confused. It seems that for an struction to move from one stage to the next, it will take 1 cycle.

    Howard,

    The cycle counts provided in the CPU guide are effective cycles when executing code.  They do not include filling of the pipeline to start the code execution.  So for example, if you  had a series of NOPs (1 cycle) and one ABORTI (2 cycles) it would effectively be 1 cycle for each NOP and 2 for the ABORTI. 

    Regards

    Lori