摘要 |
PROBLEM TO BE SOLVED: To provide a loop control circuit and a loop control method, capable of accurately performing loop end decision even if a configuration of a pipeline changes. SOLUTION: This loop control circuit 100 has: a program counter 101 sequentially showing an address of an instruction; an LSA (Loop Start Address) calculation circuit 121 calculating a loop start address of a loop start instruction; an LEA (Loop End Address) calculation circuit 111 calculating a loop end address of a loop end instruction; an interlock generation circuit 140 generating an interlock until completion of pipeline processing of a loop instruction to reserve pipeline processing of the loop end instruction; and a loop end decision circuit 130 setting the program counter to the loop start address on the basis of a comparison result of the program counter and the loop end address after the completion of the pipeline processing of the loop instruction. COPYRIGHT: (C)2007,JPO&INPIT
|