主权项 |
1. A microprocessor operation monitoring system comprising:
a microprocessor; and an operation monitoring device that monitors operation of said microprocessor, wherein: (1) said microprocessor comprises:
(i) a computation section that executes a program;(ii) a storage section that stores said program, wherein said program comprises a plurality of tasks, and wherein each of said plurality of tasks comprises:
a) a start-up instruction, arranged at a head-end of said task, that reports start-up of said task;b) a processing program of said task that, when executed, identifies a task that is next to be started up; andc) a transition announcement instruction, arranged at a tail-end of said task, that reports said task that is next to be started up; and(iii) a task information communication section that:
a) in response to receiving said transition announcement instruction, generates a transition announcement signal that announces to said operation monitoring device, in synchronization with an execution of a first task of said plurality of tasks of said program executed by said computation section, a first task number corresponding to said first task that is started up and a second task number corresponding to a second task that is next to be started up after said first task, wherein if loop processing is present in said program, said transition announcement instruction includes a preset number of times of looping with respect to said second task number to provide a commencement point of loop processing, and said task information communication section attaches said number of times of looping to said transition announcement signal corresponding to said transition announcement instruction; andb) in response to receiving said start-up instruction and following said transition announcement signal, generates a start-up signal that announces said second task that is next to be started up, the second task being announced by the start-up signal as a first task number of the start-up signal; and (2) said operation monitoring device:
(i) determines whether a start-up sequence of said plurality of tasks is consistent by comparing said second task number included in said transition announcement signal and said first task number included in said start-up signal;(ii) stores said number of times of looping of said second task number attached to said transition announcement signal and totals said number of times of looping every time said first task number is detected in said start-up signal of subsequent start-ups, and determines matching of a total value with said stored number of times of looping; and(iii) associates a task number of said task that is next to be started up, for each of the plurality of tasks comprising said program, and performs a comparative determination of matching of an announced task with a task that is started up, and thereby detects abnormality of the operation of said microprocessor. |