Patent ID: 8042013

Claim:
A semiconductor device comprising: a memory module including a reference current generation circuit that generates a reference current on the basis of a power source voltage and a comparator that compares a cell current read from one of a plurality of memory cells with the reference current and generates read data; a verify determination unit that performs quality determination of the accuracy of read data that have been read from the memory cells on the basis of the read data and an expected value prepared in advance; and a power source monitoring circuit that detects fluctuations equal to or greater than a predetermined variation rate in a power source voltage supplied to the memory module and outputs a power source abnormality detection signal, wherein the power source monitoring circuit detects fluctuations equal to or greater than a predetermined variation rate in the power source voltage and fluctuations equal to or greater than a predetermined variation rate in a reference voltage used for generating the reference current, and outputs the power source abnormality detection signal, and wherein the verify determination unit invalidates a result of the quality determination when the power source abnormality detection signal indicates an abnormal state of the power source voltage.