摘要 |
This diagnostic device for a processor comprises: an execution module separation unit which sequentially receives a first sequence of instruction codes that have been executed by the processor, and divides the first sequence of instruction codes into individual execution modules, with reference to branch instructions included in the first sequence of instruction codes; a characteristic value generation unit which generates a characteristic value of each individual execution module from a second sequence of instruction codes in the execution module; and a characteristic value comparison unit which compares a first characteristic value of each execution module, which was previously generated by the characteristic value generation unit, and a second characteristic value of that execution module, which was newly generated by the characteristic value generation unit when the execution module was last executed, and if the comparison result indicates that the first characteristic value is different from the second characteristic value, then the characteristic value comparison unit outputs a detection signal indicating that the processor malfunctioned during execution of the execution module. |