Data processing device and method of controlling the same
First Claim
1. A data processing device, comprising:
- an instruction executing part that executes one at a time of a normal task and a management task that schedules an execution order of the normal task, and the instruction executing part switching the normal task and the management task using a branch operation;
a counter that measures an execution state of the normal task being executed in the instruction executing part; and
a state controller that controls the counter in accordance with the normal task being executed in the instruction executing part,wherein the instruction executing part determines whether a normal task, which is to be executed next of a plurality of normal tasks scheduled by the management task, comprises a measurement object, and outputs an operation signal notifying the state controller of a result of determination,wherein, when the state controller is notified by the operation signal that the normal task that is to be executed next comprises the measurement object, the state controller operates the counter in accordance with the branch operation by switching from the management task to the normal task,wherein the instruction executing part executes an operation of;
changing a task to be executed from the management task to the normal task, based on an instruction of calling the normal task executed in the management task;
outputting a signal that calls the normal task in accordance with execution of the instruction of calling the normal task;
changing a task that is to be executed from the normal task to the management task, based on an instruction of calling the management task executed in the normal task; and
outputting a signal that calls the management task in accordance with execution of the instruction that calls the management task, andwherein the state controller executes an operation of;
starting an operation of the counter in accordance with a signal that calls the normal task; and
stopping an operation of the counter in accordance with a signal that calls the management task.
1 Assignment
0 Petitions
Accused Products
Abstract
A data processing device includes an instruction executing part executing a normal task and a management task scheduling an execution order of the normal task with switching the normal task and the management task, a counter measuring an execution state of the normal task being executed in the instruction executing part, and a state controller controlling the counter based on the normal task being executed in the instruction executing part. The instruction executing part determines whether the normal task to be executed next of a plurality of normal tasks scheduled by the management task is a measurement object or not, and outputs an operation signal notifying the state controller of the determination result. The state controller operates the counter in accordance with the branch operation.
7 Citations
3 Claims
-
1. A data processing device, comprising:
-
an instruction executing part that executes one at a time of a normal task and a management task that schedules an execution order of the normal task, and the instruction executing part switching the normal task and the management task using a branch operation; a counter that measures an execution state of the normal task being executed in the instruction executing part; and a state controller that controls the counter in accordance with the normal task being executed in the instruction executing part, wherein the instruction executing part determines whether a normal task, which is to be executed next of a plurality of normal tasks scheduled by the management task, comprises a measurement object, and outputs an operation signal notifying the state controller of a result of determination, wherein, when the state controller is notified by the operation signal that the normal task that is to be executed next comprises the measurement object, the state controller operates the counter in accordance with the branch operation by switching from the management task to the normal task, wherein the instruction executing part executes an operation of; changing a task to be executed from the management task to the normal task, based on an instruction of calling the normal task executed in the management task; outputting a signal that calls the normal task in accordance with execution of the instruction of calling the normal task; changing a task that is to be executed from the normal task to the management task, based on an instruction of calling the management task executed in the normal task; and outputting a signal that calls the management task in accordance with execution of the instruction that calls the management task, and wherein the state controller executes an operation of; starting an operation of the counter in accordance with a signal that calls the normal task; and stopping an operation of the counter in accordance with a signal that calls the management task.
-
-
2. A data processing device, comprising:
-
an instruction executing part that executes one at a time of a normal task and a management task that schedules an execution order of the normal task, and the instruction executing part switching the normal task and the management task using a branch operation; a counter that measures an execution state of the normal task being executed in the instruction executing part; and a state controller that controls the counter in accordance with the normal task being executed in the instruction executing part, wherein the instruction executing part determines whether a normal task, which is to be executed next of a plurality of normal tasks scheduled by the management task, comprises a measurement object, and outputs an operation signal notifying the state controller of a result of determination, wherein, when the state controller is notified by the operation signal that the normal task that is to be executed next comprises the measurement object, the state controller operates the counter in accordance with the branch operation by switching from the management task to the normal task, wherein the instruction executing part executes an operation of; changing a task that is to be executed to an interruption destination task; generating an interruption generation signal based on an interruption request instruction, the interruption request instruction being executed in accordance with an interruption generation signal input from outside of the instruction executing part; changing a task that is to be executed to an interruption source task, based on an interruption return instruction executed in the interruption task; and outputting an interruption return signal in accordance with the execution of the interruption return instruction, and wherein the state controller executes an operation of; stopping an operation of the counter in accordance with the interruption generation signal; and starting an operation of the counter in accordance with the interruption return signal.
-
-
3. A data processing device, comprising:
-
an instruction executing part that executes one at a time of a normal task and a management task that schedules an execution order of the normal task, and the instruction executing part switching the normal task and the management task using a branch operation; a counter that measures an execution state of the normal task being executed in the instruction executing part; a state controller that controls the counter in accordance with the normal task being executed in the instruction executing part; and a memory that stores a programming a task executed in the instruction executing part and intermediate information generated in accordance with execution of the task, wherein the instruction executing part determines whether a normal task, which is to be executed next of a plurality of normal tasks scheduled by the management task, comprises a measurement object, and outputs an operation signal notifying the state controller of a result of determination, wherein, when the state controller is notified by the operation signal that the normal task that is to be executed next comprises the measurement object, the state controller operates the counter in accordance with the branch operation by switching from the management task to the normal task, wherein the instruction executing part executes an interruption task interrupting the normal task or the management task, and wherein the state controller causes the counter to stop measuring in accordance with the branch operation from the normal task to the interruption task, and to start measuring in accordance with the branch operation from the interruption task to the normal task when the normal task comprises the measurement object, wherein the instruction executing part executes an operation of; reading out the operation set value of a branch source task of the interruption task from the state controller, based on a saving operation executed in the interruption task; storing the operation set value in the memory as a saving context; reading out the saving context from the memory, based on recovery operation executed in the interruption task, and setting the operation set value in the saving context in the state controller.
-
Specification