STREAM PROCESSOR AND TASK MANAGEMENT METHOD THEREOF
A stream processor includes a programmable main processor MP, and a coprocessor CP that executes an extension instruction, the extension instruction being different from a basic instruction executed by the main processor MP. The main processor MP includes a coprocessor controller CPC outputting the extension instruction to the coprocessor CP, and the coprocessor CP includes a task controller TC, the task controller controlling a task performed based on the extension instruction and outputting status information ST of the task on every clock. The coprocessor controller CPC controls the coprocessor CP based on the status information ST and a basic instruction executed by the main processor MP in background in advance.
1 . A stream processor comprising:
a programmable main processor, and
a coprocessor that executes an extension instruction, the extension instruction being different from a basic instruction executed by the main processor, wherein
the main processor comprises a coprocessor controller, the coprocessor controller outputting the extension instruction to the coprocessor,
the coprocessor comprises a task controller, the task controller controlling a task performed based on the extension instruction and outputting status information of the task, and
the coprocessor controller controls the coprocessor based on the status information and a basic instruction executed by the main processor in background in advance.
2 . The stream processor according to claim 1 , wherein the task controller outputs the status information on every clock.
3 . The stream processor according to claim 1 , wherein the task controller further comprises a state machine that outputs the status information based on the extension instruction.
4 . The stream processor according to claim 1 , wherein the coprocessor comprises a plurality of task controllers, and the coprocessor is capable of processing a plurality of extension instructions input to each of the task controllers in parallel.
5 . The stream processor according to claim 4 , wherein the plurality of task controllers include first and second task controllers,
the coprocessor further comprises:
first and second data processing units that are controlled by the first and the second task controllers, respectively; and
first and second data memories that store data processed by the first data processing unit,
the second data processing unit reads out and processes data stored in the second data memory during a time at which the data processed by the first data processing unit is stored in the first data memory, and
the second data processing unit reads out and processes data stored in the first data memory during a time at which the data processed by the first data processing unit is stored in the second data memory.
6 . A task management method of a stream processor, the stream processor comprising a programmable main processor and a coprocessor, the coprocessor executing an extension instruction which is different from a basic instruction executed by the main processor, wherein
the main processor outputs the extension instruction to the coprocessor,
the coprocessor outputs status information of a task performed based on the extension instruction, and
the main processor controls the coprocessor based on the status information and a basic instruction executed by the main processor in background in advance.
7 . The task management method of the stream processor according to claim 6 , wherein the coprocessor outputs the status information on every clock.
8 . The task management method of the stream processor according to claim 6 , wherein the coprocessor is able to process a plurality of extension instructions in parallel.