Patent ID: 8742779

Claim:
A semiconductor device comprising: a first circuit; a second circuit having a configuration that is the same as or comparable to a configuration of the first circuit, the second circuit having an operating margin that is different from an operating margin of the first circuit; a comparator that compares an output of the first circuit with a corresponding output of the second circuit; and a control circuit that, when the comparator detects a mismatch between the outputs of the first and second circuits to which a same signal has been applied, carries out a predetermined operation in correspondence with the detection of the mismatch, wherein the second circuit is made so as to have the operating margin that is lower than the operating margin of the first circuit, the second circuit falling into a failure before the first circuit falls into a failure, when the first and second circuits are operated under the same operating environment, wherein the control circuit includes a reset control circuit that receives a comparison result from comparison and resets the first and second circuits when the comparison indicates a mismatch, wherein the first circuit includes a first CPU, and the second circuit includes a second CPU, and wherein the semiconductor device comprises: first and second buses to which outputs of first and second CPUs are connected, respectively, the comparator receiving outputs of the first and second buses to which the first and second CPUs deliver respective outputs, for comparison.