Abstract:
A semiconductor memory chip which has not only a memory array together with address decoding means, but also a self diagnosis means which functions to indicate a defective cell of said memory array has been found. Said self diagnosis means is mounted on the same chip as that of the memory array, and has means for storing information to be stored in the memory array, and means for comparing content of said storing means with output information which is read out of the address at which the information is stored. When the two data do not coincide with each other, an error signal indicating a defective cell in the memory array at the selected address is output.

Description:
This is a continuation of U.S. application Ser. No. 596,812 filed Apr. 3, 1984 now abandoned. 
    
    
     BACKGROUND OF THE INVENTION 
     The present invention relates to a semiconductor memory device and, in particular, relates to such a memory device which has a self diagnosis function. 
     A large capacity semiconductor memory device, for instance, 256 kbit static memory, and 1 Mbit dynamic memory, has recently been developed and reflects the development of the semiconductor producing process. However, due to the complicated structure and the large scale of a memory array in a semiconductor memory device, it has been difficult to manufacture a semiconductor memory device which has no defective cells. 
     If a complete semiconductor memory device which has no defective cells is desired, the yield rate of the semiconductor memory device decreases considerably, and therefore, the manufacturing cost would increase. 
     Accordingly, a semiconductor memory device which has partially defective cells (Partially good memory (PGM), or Mostly good memory (MGM)) have been used to reduce the cost of an electronic system. 
     Conventionally, each memory cell of a semiconductor memory device is measured beforehand, and the address of a defective cell is memorized in an external CPU control unit of a system, which is programmed so that the address of the defective cell is not used. 
     FIG. 1 is a block diagram of a prior electronic system in which a semiconductor memory with some defective cells is used. 
     In the figure, a memory IC chip 16 has a row address driver 1, a row address decoder 2, a memory array 3 which might have some defective cells, a column address driver 4, a column address decoder 5, a multiplexer 6, a data input circuit 7, a data output circuit 8, and a write enabling circuit 9. A CPU memory control circuit 10 has a control circuit 11, an address register 12, an input data register 13, an output data register 14, and a decision circuit 15. Said CPU memory control circuit 10 accomplishes the recognition of a defective cell in a memory chip 16 (step 1) by comparing input data with output data of the selected cell, to store an address of the defective cell (step 2), and writing and/or reading an information in or from a normal cell (step 3). 
     The input data register 13 in the memory control circuit 10 stores input information to the memory array 3. In reading phase of a memory, when the control circuit 11 selects an address of the memory array 3, the input data register 13 stores a correct input data which is to be stored in said selected address, and simultaneously, the output data register 14 stores the output data D OUT  of the selected address cell. 
     The decision circuit 15 compares the content of the input data register 13 with the content of the output data register 14, and when those two data do not coincide with each other, the selected address at that time is recognized as a defective address, and said address is stored in the address register 12. The memory chip 16 is used so that the defective address stored in the address register 12 is not accessed. 
     However, the conventional system in FIG. 1 has the disadvantages that the software or program for recognizing a defective cell in the external CPU memory control circuit 10 is very complicated, and its takes long time to recognize a defective address since the cell must be read out by an external CPU. Accordingly, the reduction of the cost of an electronic system has been impossible although a memory cell with some defective cells has been used. 
     SUMMARY OF THE INVENTION 
     It is an object, therefore, of the present invention to overcome the disadvantages and limitations of a prior semiconductor memory device by providing a new and improved semiconductor memory device. 
     It is also an object of the present invention to provide a semiconductor memory device which has means for detecting a defective cell. 
     Another object of the present invention to provide a semiconductor memory device which has a self diagnosis means provided on the same chip as that of a memory array for detecting a defective cell. 
     Still another object of the present invention is to provide a semiconductor memory device which provides a low cost electronic apparatus. 
     The above and other objects are attained by a semiconductor memory device comprising; a memory array having a plurality of memory cells arranged in matrix; a data line coupled with said memory array through switching means which is provided for each column of the matrix of said memory array; a data input circuit coupled with said data line for writing information in a selected memory cell in said memory array; a data output circuit coupled with said data line to read out information from a selected memory cell in said memory array; wherein a self diagnosis means coupled with said data line is provided; said self diagnosis means stores information to be stored in a selected memory cell in said memory array; said information stored in said selected memory cell is read out just after it is written from said selected memory cell and is applied to said self diagnosis means; said self diagnosis means compares data read out of the memory cell with data to be stored, and provides a signal indicating presence of a defective cell when the result of said comparison shows an error. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The foregoing and other objects, features, and attendant advantages of the present invention will be appreciated as the same become better understood by means of the following description and accompanying drawings wherein; 
     FIG. 1 which includes FIGS. 1A and 1B, is a block diagram of a prior system having a semiconductor memory device with some error cells, and a memory control circuit, 
     FIG. 2 which includes FIGS. 2A and 2B, is a block diagram of the static semiconductor memory device which has a self diagnosis circuit according to the present invention, and which includes graphs (a) through (i) the operational timing sequence of the semiconductor memory device in FIG. 2. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 2 shows the embodiment of the static semiconductor memory chip according to the present invention. In the figure, the numeral 1 is a row address driver which receives an external row address input signal AD, and provides a pair of internal address signals A and A, 2 is a row address decoder which selects one of the word lines X 1  and X n  according to said internal row address signals A and A, 3 is a memory array having n (rows) x m (columns) number of cells. The numeral 4 is a column address driver which provides a pair of internal address signals B and B according to an external column address input signal, 5 is a column address decoder for selecting one of bit lines Y 1  through Y m  according to said internal column address signals B and B, and 6 is a multiplexer for providing a data signal from the memory cell to the data lines D and D according to the output signal of the column address decoder 5. 
     The numeral 9 is an enable control circuit for providing the write control signal φ W  and read control signal φ R  according to the write enable signal WE, the numeral 8 is a data output circuit for providing a memory cell information of the data lines D and D to the data output terminal D OUT  according to the write control signal φ W , the numeral 7 is the data input circuit for providing data input signal D IN  selectively to the data lines D and D according to the read control signal φ R , and the numeral 17 is a pre-charge circuit for charging all the bit lines of the memory array 3 to the source potential V DD  according to the pre-charge signal φ P . 
     It is assumed that the memory array 3 has a defective cell, for instance, it is assumed that the cell M 22  is defective. 
     The data input circuit 7 has a buffer circuit which has the MOS transistors Q 1  through Q 4 , an inverter, and NOR logic circuits. 
     The data output circuit 8 has an amplifier, and a NOR logic circuit. 
     The enable control circuit 9 has a pair of series connected inverters. 
     The present semiconductor memory has further a self diagnosis circuit 18 which provides an error signal when the signal on the data lines D and D is different from the original signal to be stored. Said signal on the data lines D and D is read out of the memory cell just after said signal is stored in said cell by the write control signal φ W . The self diagnosis circuit 18 is composed, for instance, of an associate memory circuit comprising a memory circuit 19 with MOS transistors Q 7 , Q 8 , Q 9  and Q 10 , the switching transistors Q 5  and Q 6  for applying signal on the data lines D and D to said memory circuit by the write control signal φ W , the MOS transistors Q 11  and Q 12  which are controlled by the potential at the node B and the potential on the data line D, and the MOS transistors Q 13  and Q 14  which are controlled by the potential at the node A and the potential at the data line D, and the inverter. 
     The operation of the present semiconductor memory device is described in accordance with FIG. 3. It is assumed tht the row address signal and the column address signal in the write period t wc  selects the normal cell M 11  by the word line X 1  and the bit line Y 1 , and the pre-charge signal φ p  is in the low (L) level. The write enable signal WE at that time is in high (H) level, then, the control signals φ W  and φ R  are in (L) and (H) level, respectively, and the data output lines D and D of the data input circuit 7 are both in (H) level (see FIGS. 3(b), 3(d), 3(e) and 3(f)). Accordingly, the data output circuit 8 is prohibited to provide an output signal, and the MOS transistors Q 5  and Q 6  in the self diagnosis circuit 18 are in OFF state. 
     Next, when the write enable signal WE becomes (L) level in the period t wp , the data input signal D IN  (which is assumed to be in (H) level) is applied to the data input circuit 7, and the data lines D and D become (H) and (L) levels, respectively, and the information on those data lines D and D is stored in the memory cell M 11  (see FIG. 3(f)). Further, the MOS transistors Q 5  and Q 6  in the self diagnosis circuit 18 ga to an ON state, then, the information on the data lines D and D is stored in the memory circuit 19. It should be noted that the transistors Q 11  and Q 12  are in ON and OFF states, respectively, and the transistors Q 13  and Q 14  are in OFF and ON states, respectively. 
     Accordingly, the output terminal P of the circuit 18 provides the L level output signal. 
     Next, the write enable signal WE changes to H level, and the pre-charge signal φ P  changes to H level, the content of the memory cell M 11  is immediately provided to the data lines D and D, and the MOS transistors Q 5  and Q 6  become OFF state. Since it is assumed that the memory cell M 11  is normal, the data lines D and D are in H and L states, respectively. Accordingly, the MOS transistors Q 12  and Q 14  are in OFF and ON states, respectively, and the output terminal P of the self diagnosis circuit 18 holds L level, which indicates that the cell is normal. 
     Next, it is assumed that the memory cell M 22  (which is in error) is selected by the word line X 2  and the bit line Y 2  by the row address signal and the column address signal in the write period t wc , and the pre-charge signal φ p  is in L level. The write enable signal WE is in H level at that time, then, the control signals φ W  and φ R  are in L and H levels, respectively, and the data output lines D and D in the data input circuit 7 are in H level (see FIGS. 3(b), 3(d), 3(e) and 3(f)). Accordingly, the data output circuit 8 is prohibited to provide an output signal, and the MOS transistors Q 5  and Q 6  in the self diagnosis circuit 18 are in OFF state. 
     Next, when the write enable signal WE becomes L level in the period t wp , the data input signal D IN  (which is for instance in L level) is applied to the data input circuit 7, and the data lines D and D become H and L level, respectively, and the information on those data lines D and D is stored in the memory cell M 22  (see FIG. 3(f)). 
     Simultaneously, the MOS transistors Q 5  and Q 6  in the self diagnosis circuit 18 become ON state, then, the information of the data lines D and D is stored in the memory circuit 19. At that time, the transistors Q 11  and Q 12  are in ON and OFF states, respectively, and the transistors Q 13  and Q 14  are in OFF and ON states, respectively. Accordingly, the output terminal P provides the L level output signal. 
     Next, when the write enable signal WE changes to H level, and the pre-charge signal φ p  changes to H level, the content of the memory cell M 22  is immediately read out and is provided to the data lines D and D, and the MOS transistors Q 5  and Q 6  become to the OFF state. 
     Since it is assumed that there is something wrong with the memory cell M 22 , the data lines D and D are in L and H level, respectively. Accordingly, the MOS transistors Q 12  and Q 14  are in ON and OFF state, respectively, and the output signal at the output terminal P changes from L level to H level. That change of the output terminal P indicates the error of a memory cell. Therefore, when a defective cell exists, the fact of the presence of the defective cell is measured when information is written in that defective cell. 
     As described above, the present semiconductor memory device has a self diagnosis circuit 18 which measures if the signal is correctly stored in the cell in the rear portion of each write period, an external memory control circuit is not needed to recognize a defective cell. Accordingly, a memory control circuit which has a stored program is simplified, and the operation to switching from a defective cell to a normal cell is accomplished quickly. 
     Accordingly, the operation of a memory control circuit is not complicated even when some of memory cells are defective, and therefore, the total cost including both a memory device and a memory control circuit is reduced. 
     Although the present invention is described for the embodiment of a static semiconductor memory, the present invention is also applicable to a large capacity of dynamic semiconductor memory, and/or a memory circuit in a microprocessor and LSI circuit. 
     From the foregoing, it will now be apparent that a new and improved semiconductor memory device has been discovered. It should be understood of course that the embodiments disclosed are merely illustrative and are not intended to limit the scope of the invention. Reference should be made to the appended claims, therefore, rather than the specification as indicating the scope of the invention.