Abstract:
A variable-threshold non-volatile memory in which a potential falling between a selection and a non-selection level is applied to the gates and the resultant drain current is measured to determine if one of the transistors has an abnormal threshold voltage.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a semiconductor memory, and more particularly to a semiconductor memory, in which electrons are injected into floating gates and are discharged by electrical action or by irradiation of ultraviolet rays. The gates of a plurality of such variable-threshold nonvolatile semiconductor memory transistors are connected to each other in the rows of a matrix and the drains of the transistors are connected to each other in the columns of the matrix. 
     2. Background Art 
     FIG. 1 shows an electric circuit diagram of a conventional semiconductor memory. FIG. 2 shows the characteristic relations of a normal memory cell. FIG. 3 shows the characteristic relations of a normal memory cell and a low-threshold memory cell. 
     The semiconductor memory shown in FIG. 1 is an erasable and electrically-programmable read-only memory (which is hereinafter often referred to as an EPROM) composed of memory cells Q 11  -Q nm  of the FAMOS-type. The gates of the memory cells Q 11  -Q nm  are connected to each other along the rows of a matrix. Word line signals WL 1  -WL n  for selecting the rows are applied to the gates of all the cells on that row. The drains of the memory cells Q 11  -Q nm  are connected to each other along the columns of the matrix so that the columns are used as bit lines BL 1  -BL m . Column selection signals CS 1  -CS m  for selecting the bit lines BL 1  -BL m  are applied to the bit lines through column selection gates 1-m. The drains of all the column selection gates 1-m are jointly connected to a sense amplifier 20. 
     The column selection signals CS 1  -CS m  and the word line signals WL 1  -WL n  are generated, as shown in FIG. 2, by a column decoder 10 and a row decoder 12 receiving address signals A o  -A q . The column decoder 10 selects one of the m column selection signals CS 1  -CS m  for each unique combination of the p address signals A o  -A p-1 . Similarly, the row decoder 12 selects one of the n word line signals WL 1  -WL n  for each unique combination of the (q-p+1) address signals A p  -A q . Thus, one column and one row is selected for each address signal. 
     To read information programmed in the EPROM, the word line for the memory cell at a desired address is selected and supplied with an ordinary power voltage of 5  V while all the other word lines are not selected and are supplied with ordinary ground potential of (0 V). Also, only the bit line for the memory cell at the desired address is selected by the column selection signal and is connected to the sense amplifier 20. 
     FIG. 3 shows the characteristic relations A and B between the gate voltage of the memory cell (the voltage of the word line) and the drain current of the memory cell. When the threshold level of the memory cell in the erased state of &#34;1&#34; is about 1.5 V, the characteristic relation A is obtained. When the threshold level of the memory cell in the programmed state of &#34;0&#34; is about 6 to 10 V, the other characteristic relation B is obtained. A sense current I sense  has such a level for the sense amplifier 20 as to detect the drain current of the memory cell Q 11  -Q nm  to find out whether the information in the memory cell is &#34;1&#34; or &#34;0&#34;. When the word line voltage, which is ordinarily 5 V, is applied to the gate of the memory cell Q 11  -Q nm , the memory cell in the erased state shown by the characteristic relation A in FIG. 3 has a drain current I M  larger than a sense current I sense , so that the information on the memory cell is judged to be &#34;1&#34;. Similarly, the memory cell in the programmed state shown by the characteristic relation B in FIG. 3 has a negligible drain current I M , so that the information on the memory cell is judged to be &#34;0&#34;. 
     Detailed operation of the EPROM is hereafter described with reference to FIG. 1. When the address of the memory cell Q 11  is selected, the word line signal WL 1  is selected, the other word line signals WL 2  -WL n  are not selected, the column selection signal CS 1  is selected and the other column selection signals CS 2  -CS m  are not selected. As a result, the bit line BL 1  is selected and connected to the sense amplifier 20. If the memory cell Q 11  is the erased state of &#34;1&#34;, the memory cell has the characteristic relation A shown in FIG. 3, and since the gate voltage is 5 V, the drain current I M  exceeds the sense current I sense . For that reason, the sense amplifier 20 judges the information in the memory cell Q 11  to be a &#34;1&#34;. At that time, whether the other memory cells Q 21  -Q n1  on the same bit line BL 1  are in the erased state of &#34;1&#34;  or in the programmed state &#34;0&#34;, their gate voltages are 0 V so that the drain current I M  does not flow through them. For that reason, reading the information on the memory cell Q 11  is not affected by the other memory cells. If the memory cell Q 11  is in the programmed state of &#34;0&#34;, the memory cell has the characteristic relation B shown in FIG. 3, and its gate voltage is 5 V so that the drain current I M  does not flow, namely, the drain current is smaller than the sense current I sense . For that reason, the sense amplifier 20 judges the information on the memory cell Q 11  to be a &#34;0&#34;. At that time, the other memory cells on the same bit line have a negligible drain current I M  for the saem reasons as described above, so that the other memory cells do not affect reading the information on the memory cell Q 11 . 
     However, in practice the memory cells Q 11  -Q nm  actually have irregularities. Although the ordinary threshold voltage of the memory cell in the erased state is about 1.5 V, the threshold voltages of some memory cells are 1 to 2 V higher or lower than the ordinary threshold voltage. Since the erased state of the memory cell with a higher threshold voltage is equivalent to its incompletely programmed state, the memory cell can be easily eliminated as a defective memory by &#34;Erase Check&#34;. &#34;Erase Check&#34; means reading the memory cell in the erased state below the power supply voltage of 5 V. In contrast, it is difficult to eliminate a defective memory by erasure if the memory cell has a lower threshold voltage. 
     Reading the information on the memory cell Q 11  is hereafter described. Suppose that the memory cell Q 11  is normal and in the erased state of &#34;1&#34; but that the memory cell Q 21  is abnormal with the threshold voltage of the memory cell Q 21  being about -1.5 V. Assume that the other memory cells Q 31  -Q n1  on the same bit line are normal and either in the erased state of &#34;1&#34; or in the programmed state of &#34;0&#34;. Since the erased memory cell Q 11  is selected, it has a characteristic relation A shown in FIG. 3 so that when its gate voltage becomes 5 V, its drain current I M  exceeds the sense current I sense , and the sense amplifier 20 judges the information in the memory cell Q 11  to be a &#34;1&#34;. At that time, if the unselected memory cell Q 21  has a characteristic relation C shown in FIG. 4, an electrical current larger than the sense current I sense  flows in the memory cell Q 21  even though an unselected word line voltage of 0 V is applied to it. Although the electrical current is added to the drain current I M  from reading the information on the memory cell Q 11 , it does not affect reading the information of &#34;1&#34; on the memory cell Q 11 , because the sense amplifier 20 judges the information on the memory cell Q 11  to be &#34;1&#34; if an electrical current equal to or larger than the sense current I sense  flows. For the same reason, reading the stored information of &#34;1&#34; from the memory cell Q 11  is not affected even if the drain current I M  larger than the sensor current I sense  flows in each of the other memory cells Q 31  -Q n1 . 
     However, suppose that the memory cell Q 11  is normal and in the programmed state of &#34;0&#34;, and the threshold voltage of the other memory cell Q 21  is about -1.5 V. Since the memory cell Q 11  is selected, it has a characteristic relation B shown in FIG. 4, so that when its gate voltage becomes 5 V, its drain current I M  does not flow. However, the memory cell Q 21  has the characteristic relation C so that an electrical current larger than the sense current I sense  flows even if the gate voltage is 0 V. As a result, the sense amplifier 20 regards the drain current of the memory cell Q 21  so that of the memory cell Q 11  so that the same amplifier misjudges the information on the memory cell Q 11  to be a &#34;1&#34;. For that reason, correct reading cannot be performed. 
     However, programming can be performed into even such depletion-type memory cell. For that reason, when the memory cell Q 21  is in the programmed state, its threshold voltage is 6 V or more so that the information on the memory cell Q 21  can be also correctly read without affecting the other memory cells on the same bit line. Even when the memory cell Q 21  is in the erased state, reading the information on the memory cell Q 21  is not itself a problem because the drain current of the memory cell Q 21  is only larger than that of a memory cell in the normal erased state. 
     When an abnormal memory cell of such kind is to be eliminated in an inspection test, a method described below has been conventionally adopted. In the method, all the memory cells Q 11  -Q nm  are first put in the erased state, programming is performed into only one of the memory cells on the bit lines BL 1  -BL m , and the information on the memory cell in the programmed state is read, so that the other memory cells can be checked. After that, programming is performed into one of the other memory cells on the bit lines, and the information on the memory cell in the programmed state is read, so that the memory cells subjected to the programming and the erasure can be checked. All the memory cells can thus be checked. Although the memory cells can be tested by repeating the programming and the erasure twice, the efficiency of the test is not high, because it is time-consuming to repeat the programming and the erasure. 
     SUMMARY OF THE INVENTION 
     Accordingly, it is a primary object of the present invention to provide a semiconductor memory wherein a means is provided on the chip for easily testing each memory cell in the erased state within a short time without repetitive programming and erasure. 
     In the semiconductor memory provided according to the present inventon, the gates of the plurality of variable-threshold nonvolatile semiconductor memory transistors, in which electrons are injected into floating gates and are discharged by electrical action or by irradiation of ultraviolet rays, are connected to each other in the rows of a matrix, and the drains of the transistors are connected to each other in the columns of the matrix. The semiconductor memory is provided with an ordinary reading mode, in which a memory transistor selected by an address signal is selected by a row decoder and a column decoder, and information programmed in the memory transistor is read through a sense amplifier. The semiconductor memory is also provided with a testing mode, in which a predetermined voltage is applied to the floating gate of a memory transistor. The predetermined voltage is equal to or higher than that of an unselected row in the ordinary reading mode and lower than the normal threshold voltage of the memory transistor having discharged electrons. At least one row is selected by the row decoder, and at least one column is selected by the column decoder, so that an abnormal memory transistor of a threshold voltage lower than the normal threshold voltage of the memory transistor having discharged the electrons through the floating gate is distinguished from the normal memory transistor through a sense amplifier. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 shows a circuit diagram of a conventional semiconductor memory. 
     FIG. 2 shows a block diagram of the column and row decoders for the memory of FIG. 1. 
     FIG. 3 shows the characteristic relations of a normal memory cell. 
     FIG. 4 shows the characteristic relations of a normal memory cell and a memory cell of a low threshold voltage. 
     FIG. 5 shows a circuit diagram of an embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     In the semiconductor memory provided according to the present invention, in order to select a memory cell of a low threshold voltage, all word lines are simultaneously selected by a prescribed voltage higher than a nonselection voltage and lower than a threshold voltage of about 1.5 V such that a drain current does not flow in a normal memory cell. The bit lines of the memory are sequentially selected so that the sense amplifier can judge whether a drain current flows or not, so as to detect the memory cell of the low threshold voltage. 
     Since the threshold voltage of the normal memory cell is about 1.5 V, the voltage of each of all the word lines is preset so that the drain current does not flow in the normal memory cell or that at least the drain current is not larger than a sense current I sense  even if the drain current does flow because of erroneous threshold voltages. As a result, the sense amplifier judges each of the normal memory cell to be in the state of &#34;0&#34;, so that the bit line with the normal memory cells is regarded as normal. 
     Since a drain current flows in a bit line having an abnormal memory cell and exceeds the sense current, the abnormal memory cell is judged to be in the state of &#34;1&#34;, so that the bit line is regarded as abnormal. For that reason, the memory including a memory cell of a low threshold voltage can be easily tested by a built-in circuit provided for the memory so as to perform reading while simultaneously setting one, more or all word lines around a nonselection voltage. 
     FIG. 5 shows a circuit diagram of an embodiment of the present invention. This differs from the circuit diagram of FIG. 1 in the addition of a bias circuit 21, which functions to generate a voltage around a nonselection voltage. Also, transistors Q 1  -Q n  function to apply the generated bias voltage to all word lines WL 1  -WL n . A test-enabling signal drives the transistors Q 1  -Q n . 
     The operation of the embodiment is hereafter described. In ordinary reading, the test-enabling signal has a voltage of 0 V, and the bias circuit 21 is out of operation. For that reason, the transistors Q 1  -Q n  are off. As a result, the ordinary reading is performed in a conventional manner. 
     When the test-enabling signal is put in an active state of 5 V, the bias circuit 21 acts to generate the prescribed voltage. The transistors Q 1  -Q n  connected to the word lines WL 1  -WL n  are turned on so that all the word lines are set at the voltage (about 0.5 to 1.0 V) generated by the bias circuit 21. Bit lines BL 1  -BL m  are then sequentially selected so that reading is performed through a sense amplifier 20 as all memory cells are in the erased state. 
     Suppose that the bit line BL 1  is selected. If the bit cells Q 11  -Q n1  are all normal memory cells, namely, their threshold voltages are about 1.5 V, the memory cells have a characteristic relation A shown in FIG. 4, so that a drain current I M  does not flow even if a gate voltage of about 0.5 to 1.0 V is applied. As a result, since the drain current I M  is smaller than a sense current I sense , the sense amplifier 20 judges the memory cells to be in the state of &#34;0&#34; or be normal. 
     However, the memory cell Q 11  has an abnormal characteristic relation C or D shown in FIG. 4, namely, the threshold voltage of the memory cell is negative, the drain current in the bit line BL 1  becomes larger than the sense current I sense  in the sense amplifier 20 because the memory cell Q 11  is on, so that the memory cell is judged to be in the state of &#34;1&#34; or be abnormal. 
     Even if the threshold voltage is not negative, the same effect is produced when a plurality of memory cells whose threshold voltages are not higher than 0 to 1.5 V are on the same bit line. For instance, 1,024 memory cells are connected in the same bit line of a 512K EPROM, so that correct reading through the bit line cannot be performed when the sum of the electrical currents of several to scores of the memory cells is larger than the sense current I sense , even if the current of each memory cell is small. 
     When the test-enabling signal is made active in order to conduct a test with a margin, the sensitivity of the sense amplifier 20 may be increased. At that time, the sensitivity is altered so that distinguishing between &#34;1&#34; and &#34;0&#34; is performed by a test current I test  instead of the ordinary sense current I sense  for distinguishment between &#34;1&#34; and &#34;0&#34;. A more accurate test can thus be conducted. 
     According to the present invention, a circuit for performing reading while simultaneously setting one, several or all word lines around a nonselection voltage is built in to provide a testing mode, as described above, so that a memory, which has a memory cell of a low threshold voltage can be easily tested in the erased state thereof conventionally, an equally effective test requires the time-consuming repetition of programming and erasure.