Background of the Invention
1. Field of the Invention
The present invention relates to a semiconductor memory device having a large memory capacity and, more specifically, to a semiconductor memory device having a high-speed, high-precision test mode.
2. Description of the Related Art
A parallel-bit test mode is set in a DRAM posterior to the generation of a 1-Mbit DRAM in order to shorten the test time increasing in accordance with an improvement in packed density of semiconductor memories. The number of bits capable of being tested simultaneously is increased two times whenever the generation of memory capacity of DRAM goes by, for example, 4-bit parallel for 1-Mbit DRAM, 8-bit parallel for 4-Mbit DRAM, 16-bit parallel for 16-Mbit DRAM, and 32-bit parallel for 64-Mbit DRAM, thus preventing the time for testing all the bits from increasing. In other words, the time for testing all the bits in a normal access mode increases four times for each generation, whereas the increase in time can be reduced to two times by using a test mode.
The prior art test mode described above has the following function. Entry to the test mode is made in a cycle of WCBR (WE and CAS signals are activated before RAS signal is). After that, data input by a normal write operation is written as the same data to each of a plurality of bits. The plurality of bits of data are read out in parallel. If all the read-out data coincide with one another, a high-level signal is output. If the data include a different one, a low-level signal is output. Consequently, the plurality of bits can be tested at once in the test mode.
Though the foregoing test mode has the great merit of shortening the test time, it cannot necessarily cover all test items, because there are some defective items which cannot be detected in the prior art test mode. The defective items are caused by the plurality of bits which are not necessarily independent of one another but have a common word line. It is needless to say that the bits to be tested can be considered to be almost is completely independent by separating them sufficiently from one another on a cell array. If, however, the bits are so separated, a method of activating word lines WL and column selection lines CSL in the test mode differs from a normally-used one, thus increasing in waste of a control system. Since, furthermore, an internal operation different from a normal one is performed, the bits are not tested correctly.
FIG. 1 is a view for explaining a parallel test. For example, a 32-bit parallel test for a 64-Mbit DRAM shown in FIG. 1, will now be described. In a test mode, as shown in FIG. 17, 32 bits to be tested simultaneously are divided into four 16-Mbit cell array blocks CB1 to CB4 each having 8 bits. Each hatched block is a 512-Kbit cell block. The 8 bits belonging to one 16-Mbit block of the 16-Mbit cell array blocks are distributed to adjacent eight columns formed on the same word lines, as indicated by broken lines as memory cells CELL0 to CELL7 in FIG. 2.
In FIG. 2, WL, word lines; BL and BL, complementary bit lines; SAPC, sense amplifiers and bit-line precharge circuits; DQG, DQ gates; DQ0 to DQ7 and DQ0 to DQ7, complementary data lines; and CSL, a column selection line (indicated by hatching). The word lines WL are connected to a low decoder. The eight pairs of the complementary data lines are connected to an I/O circuit shown in FIG. 1 via a DQ buffer (not shown).
As mentioned above, the 8 bits can be distributed to the eight columns remote therefrom, which is however unfavorable since the wiring of the column selection lines CSL is miniaturized, the pattern of a column decoder (not shown) is miniaturized, and the area thereof is increased in order to make one-to-one correspondence between the column selection lines CSL and the DQ gates.
In the distribution of 8 bits to be tested simultaneously, as shown in FIG. 2, they are not necessarily independent of one another. Since the same data is written in the test mode, if the relationship between BL and BL and the relationship between DQ and DQ are the same at the DQ gates, it is only the same data that can be written to the 8 bits. The prior art test mode therefore has a drawback in which a read system is incapable of detecting a defect having a pattern sensitivity to data. For example, a defect in data, which can be detected only when inverted data is written every one column, cannot be detected in the prior art test mode.
The prior art test mode is also considered to be imperfect under the other condition. For example, a defect that the word lines WL do not start to operate as a kind of defect in row address. When the relationships between BL and BL0 and between DQ and DQ are always the same, the same data is written to all the 8 bits shown in FIG. 2 in the test mode. There occurs an avoidable imbalance in pattern at the DQ and DQ gates or DQ buffer, and there is strong possibility that all the data lines DQ latch data to a low or high level when a cell signal is set at zero. Therefore, the prior art test mode has a drawback in which a defect in data cannot be detected since the detection is based on whether all bits coincide with one another.
In spite of the above drawbacks of the prior art test mode, if the bits are tested by the front and back patterns, four 16-Mbit blocks are finally grouped into one bit, and thus the bit can always be detected by either of the patterns. However, when the bits are tested independently for every 16 Mbit block (or when a row address having a defect is detected) for the purpose of replacement of redundancy as in the test mode for die sort, the defect cannot be detected even by testing the bits by the front and back patterns.
As described above, the prior art test mode is capable of reducing in test time is not necessarily omnipotent for all data items to be tested, and has a drawback of being incapable of detecting a defect in some of the data items.
Summary of the Invention
It is accordingly an object of the present invention to provide a semiconductor memory device which allows data to be written in a free pattern and improves the capability of detecting a defect in data in a test mode and thus heightens the rate of use of the test mode thereby to shorten the test time.
The above object is attained by the constitution of a semiconductor memory device having a data scramble circuit, comprising:
a plurality of data transmission lines connected to memory cells;
signal latch means for latching a signal for setting a scramble condition of data transmitted through each of the plurality of data transmission lines;
data scrambling means for scrambling the data in accordance with the scramble condition; and
control means for determining a test mode, and transmitting the scramble condition from the signal latch means to the data scrambling means to operate the data scrambling means.
According to the semiconductor memory device having the above constitution, the data scrambling means allows a test pattern to be freely written, as data mixing "0"and "1", to a plurality of cells from which data is read out in parallel in a test mode.
Additional objects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects and advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the appended claims.
Brief Description of the Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate presently preferred embodiments of the invention, and together with the general description given above and the detailed description of the preferred embodiments given below, serve to explain the principles of the invention.
FIG. 1 is a view of a 64-Mbit DRAM chip, for explaining a 32-bit parallel test therein;
FIG. 2 is a circuit diagram showing part of the 64-Mbit DRAM chip of FIG. 1;
FIG. 3 is a circuit diagram of the main part of an embodiment of the present invention;
FIG. 4 is a circuit diagram showing a constitution of the embodiment of FIG. 3 more specifically;
FIG. 5 is a view showing an example of waveforms indicating a cycle of entry to a test mode;
FIG. 6 is a circuit diagram showing a specific example of a data scrambler of the embodiment of FIG. 3;
FIG. 7 is a circuit diagram showing a specific example of a data descrambler of the embodiment of FIG. 3;
FIG. 8 is a circuit diagram showing a specific example of a latch circuit of the embodiment of FIG. 3;
FIG. 9 is a circuit diagram showing an arrangement of a demultiplexer and its peripheral device of FIG. 4;
FIG. 10 is a circuit diagram showing a constitution for controlling the demultiplexer of FIG. 9;
FIG. 11 is a circuit diagram showing an arrangement of a multiplexer, an error detection circuit, and their peripheral devices of FIG. 4;
FIG. 12 is a circuit diagram showing a specific example of the multiplexer of FIG. 11;
FIG. 13 is a circuit diagram showing a constitution for controlling the multiplexer of FIG. 12;
FIG. 14 is a timing chart of operations of the circuit shown in FIG. 4;
FIG. 15 is a circuit diagram showing a constitution of the main part of an example applied to the embodiment of the present invention, having a scramble information monitor function;
FIG. 16 is a circuit diagram of a specific example of a scramble monitor circuit;
FIG. 17 is a timing chart including a monitor cycle of the present invention; and
FIG. 18 is a circuit diagram showing another embodiment of the present invention.
Detailed Description of the Preferred Embodiments
FIG. 3 shows one (CB1) of 16-Mbit cell arrays according to an embodiment of the present invention. FIG. 3 also shows circuits operated in a test mode and not a circuit operated in a normal access mode (e.g., a demultiplexer in a read mode). As illustrated in FIG. 3, a data scrambler 11 for receiving signals and a data descrambler 12 for transmitting signals are arranged, and a latch circuit 13 for receiving some of row address signals and supplying eight pairs of scramble signals CHNG and CHNG to the scrambler 11 and an ENTRY/EXIT circuit 14 for outputting a TEST signal for selecting one of normal and test modes, are formed. In the latch circuit 13, the modes are controlled in response to the TEST signal output from the circuit 14. Data lines 15 are constituted of pairs of complementary lines RWD and RWD.
According to the circuit arrangement described above, when test data to be tested in parallel is written, its pattern can be converted to a desired one by the data scrambler 11 and, when the test data is read out, its pattern can be converted by the data descrambler 12 in the same scramble situation to return the test condition to the original one determined before the test data is supplied to the data scrambler 11.
FIG. 4 is a circuit diagram showing the arrangement of the circuits of FIG. 3 more specifically. The arrangement shown in FIG. 3 includes a demultiplexer 16 and a multiplexer 17 operated in a normal access mode, an error detection circuit 18, and the like. The error detection circuit 18 detects coincidence and noncoincidence of data from the results of the test. In the test mode, test data Din is supplied from an input pad through an input circuit 19. A result of the test is transmitted through the error detection circuit 18 and an output circuit 20 and then obtained as a signal Dout from an output pad. The DRAM used in the embodiment is assumed to be a x 1-bit product.
The operations of the circuits shown in FIG. 4 will now be described.
FIG. 5 show waveforms indicating a cycle of entry to the test mode. After a WCBR cycle starts, a WE signal cycles two times with a RAS signal at a low level, and 8-bit addresses A0 to A7 are specified at the second fall of the WE signal.
The above addressing is as follows. The addresses A0 to A7 are assigned to the eight bits of memory cells CELL0 to CELL7 tested simultaneously as indicated by hatching in FIG. 2. The following convention is determined. The test data to be input in the test mode is transmitted as it is when the address signal is "0", while the test data is reversed when the signal is "1".
Assuming that all addresses A0 to A7 are "0" in the second cycle of WE signal, data is written or read as it is (without being scrambled). This test mode is thus the same as the prior art test mode. If A0="0", A1="1", A2="0", A3="1", A4="0", A5="1", A6="0" and A7="1", the inverted data is written every one bit.
FIG. 6 is a circuit diagram of a specific example of the data scrambler 11 of FIG. 3 or 4 which is constituted based on the assumption of the above convention in the test mode. Since, in the embodiment shown in FIG. 3, there are eight pairs of data lines 15 (RWD and RWD lines), each of the eight pairs requires the data scrambler shown in FIG. 6. The RWD and RWD lines are so formed that data is inverted or not through a series-connected inverter 112 and clocked inverter 113 or through a clocked inverter 114. The inverter 112 and clocked inverter 113 are controlled by the scramble signals CHNG or their inverted signals CHNG, and activated complementarily to each other.
If CHNG=H (high level) and CHNG=L (low level), the data from the input buffer 111 is inverted by the inverter 114, whereas if CHNG=L and CHNG=H, the data is not inverted because it passes through the two inverters 112 and 113. Needless to say, these inverters can be replaced with transfer gates of CMOS, and various modifications can be applied to the data scrambler 11 of FIG. 6.
FIG. 7 is a circuit diagram of a specific example of the data descrambler 12 corresponding to the data scrambler shown in FIG. 6. The circuit arrangement of the data descrambler of FIG. 7 is the same as that of the data scrambler, except for the input and output directions opposite to those of the circuit shown in FIG. 6. It is also needless to say that the data descrambler of FIG. 7 is provided for each of the eight pairs of data lines 15, and various modifications can be applied to the descrambler.
FIG. 8 is a circuit diagram of a specific example of the latch circuit 13 shown in FIG. 3. The latch circuit is provided for an address A0(R) (R: row address) and required for each of 8-bit addresses A0 to A7. The address A0 is connected to one input of a NAND gate 133 via a CMOS transfer gate 131, controlled in response to a TEST signal, and a latch circuit 132. The other input of the NAND gate 133 is supplied with the TEST signal. The NAND gate 133 outputs a signal CHNG, and the signal is changed to CHNG by means of an inverter 134.
According to the circuit arrangement shown in FIG. 8, if the TEST signal is at a low level, data is not inverted when CHNG=L and CHNG=H. In the normal mode, the TEST signal is fixed to the low level. If, in the cycle of ENTRY as shown in FIG. 5, a row address buffer is operated, row addresses Ax(R), Ax(R) (x=0 to 7) are designated, and the TEST signal rises up to the high level, the row address Ax(R) is latched. This latched signal produces signals CHNG and CHNG. Needless to say, various modifications can be made to the circuit arrangement shown in FIG. 8.
FIG. 9 is a circuit diagram showing an arrangement of the demultiplexer 16 and its peripheral device of FIG. 4. In FIG. 9, the same elements as those of FIG. 4 are indicated by the same reference numerals. The demultiplexer includes eight pairs of CMOS transfer gates 161 and 162 for controlling the transfer of complementary data of signal Din supplied to the input circuit 19 in response to signals M0 to M7 and M0 to M7. These transfer gates 161 and 162 are connected to eight pairs of data lines (RWD0, RWD0) to (RWD7, RWD7).
FIG. 10 shows a circuit for generating the signals M0 to M7 and M0 to M7 from input addresses. Assume that all bit strings of 3 bits are utilized. If an address (Ai Aj Ak) is (1 1 1), there occurs an increment from (Ai Aj Ak) to (Ai Aj Ak), or from (0 0 0) to (1 1 1). Eight NAND gates 163 are provided for inputting their corresponding bit strings. Each output of the NAND gates 163 is connected to one input of each of eight NAND gates 164 corresponding thereto. The other inputs of the NAND gates 164 are supplied with an inverted signal TEST of TEST signal. The AND gates 164 output signals M0 to M7 or signals M0 to M7 through inverters 165.
FIG. 11 is a circuit diagram showing an arrangement of multiplexer 17, error detection circuit 18, and their peripheral devices of FIG. 4. In FIG. 11, the same elements as those of FIG. 4 are denoted by the same reference numerals. The error detection circuit 18 for detecting the coincidence/noncoincidence of test data, includes a NAND gate 181 connected to data lines RWD0 to RWD7 of eight pairs of data lines RWDx and RWDx (x=0 to 7) through which signals are supplied to the multiplexer 17, a NAND gate 182 connected to signal lines RWD0 to RWD7 thereof, an EXOR gate 183 supplied with signals output from the gates 181 and 182, and an inverter 184 through which an output signal of the EXOR gate 183 is supplied to a switching circuit 190. The switching circuit 190 includes clocked inverters 191 for activating a test signal. (For example, when a signal S is generated, the clocked inverters activate it to a high level.) the circuit 190 also includes an inverter 192 for forming complementary data lines. The complementary data lines are connected to input terminals (nodes DN and DN) of the output circuit 20.
FIG. 12 is a circuit diagram showing a specific example of the multiplexer 17 of FIG. 11. As shown in FIG. 12, the eight pairs of data lines RWDx and RWDx (x=0 to 7) are connected to their respective eight pairs of CMOS transfer gates 171 and 172 which are controlled by signals Dx and Dx (x=0 to 7). While the eight data lines RWDx are connected in common through the transfer gates 171, the eight data lines RWDx are connected in common through the transfer gates 172. The common connecting points of the data lines RWDx and RWDx are connected to their corresponding nodes DN and DN of the output circuit 20.
FIG. 13 shows a circuit for generating the above signals Dx and Dx from input addresses. In this circuit, an inverter 174 is connected to each output of NAND gates 173 corresponding to the NAND gates 163 shown in FIG. 10. The NAND gates 173 are all supplied with an inverted signal TEST of TEST signal. The inverters 174 produce signals D0 to D7 or signals D0 to D7 through inverters 175.
The operation of entry to the test mode in the circuit shown in FIG. 4, will now be described with reference to the timing chart of FIG. 14.
If the WE signal and CAS signal are activated prior to the RAS signal (WBCR cycle) and the WE signal is counted two times, the ENTRY/EXIT circuit 14 generates a TEST signal at the second activation of the WE signal. Simultaneously, a row address buffer is operated to take row addresses A0(R) to A12(R) into the chip. Of these row addresses, addresses A0 to A7 are input to the latch circuit 13 to be latched by a TEST signal, with the result that input data is scrambled. Unless a special EXIT cycle operation is performed, the test mode is not released, and the scrambled state remains in the DRAM.
A write operation of the test mode will now be described. A write operation for a normal DRAM can be carried out if the RAS, CAS, and WE signals are all returned to a precharge state after completion of the ENTRY cycle. For example, in the x 1-bit DRAM as described above, write data input from a pin of data input Din is transferred, as the same 8-bit data, to each of 16-Mbit cell arrays.
When the write data passes through the data scrambler 11 provided for each 16-Mbit array, it is scrambled based on the set scrambled state. More specifically, data corresponding to "0" of 8-bit scramble signals CHNGx (x=0 to 7) passes through the data scrambler 11, whereas data corresponding to "1" is inverted and the inverted data is transmitted to each bit. The 8-bit data, which is transmitted to the eight pairs of RWD lines through the data scrambler, is written to an addressed one of two 512-Kbit cell blocks, in other words, the 8-bit data is input to the eight columns shown in FIG. 2 and written to the eight bits of memory cells CELL0 to CELL7 whose word lines have been actuated.
A read operation of the test mode will now be described. A normal read operation can be performed by writing data to all cell arrays or some of the cell arrays necessary for a test. As shown in FIG. 2, all data of the cells connected to the word lines WL selected by the row addresses are amplified by the sense amplifiers. Of these data, the 8-bit data selected by the column selection line CSL are read out from the pairs of data lines DQ and DQ and amplified again by their corresponding DQ buffers (not shown). The amplified data are read out from the eight pairs of RWD lines as shown in FIG. 4. The data of these RWD lines are transmitted to the output circuit 20 through the data descrambler 12.
Whether the 8-bit data coincide with one another or not is determined by the error detection circuit 18 before the data is transmitted to the output circuit 20. If they coincide, signal "1" is output from the output pin Dout. If not, signal "0" is output therefrom. The 8-bit data read out from the memory cells to the RWD line do not generally coincide with one another even when no errors occur since the data are transmitted through the data scrambler 11 in the write operation. However, the state set in the data descrambler 12 is the same as the scramble state set in the data scrambler 11; therefore, the 8-bit data output from the data descrambler 12 are returned to the write state and coincide before being scrambled if the data have no errors when they are output from the data descrambler 12.
The coincidence/noncoincidence in the error detection circuit 18 can be determined by the same circuit arrangement as that of a conventional parallel bit test mode determination circuit. The present invention can be attained by the data scrambler 11 interposed between the input circuit and RWD line pairs and the data descrambler 12 interposed between the RWD line pairs and output circuit. To control these scrambler and descrambler, the latch circuit 13 and ENTRY/EXIT circuit 14 are needed.
FIG. 15 is a circuit diagram showing a constitution of the main part of an example applied to the embodiment of the present invention. This example has a scramble information monitor function for externally monitoring information as to how data is scrambled. The circuit arrangement shown in FIG. 15 is the same as that of the conventional circuit in that the row address buffer 22 and column address buffer 23 are connected to each of pads 21 to which addresses A0 to A7 for setting conditions of the scrambler are input. In FIG. 15, a scramble monitor circuit 24 is connected to each of the pads 21 in addition to the buffers 22 and 23. The scramble monitor circuit 24 is controlled by a signal MON.
FIG. 16 is a circuit diagram specifically showing the scramble monitor circuit 24. The circuit 24 includes a P-channel MOS transistor 241 arranged alongside a power supply and controlled by scramble signals CHNGx (x=0 to 7), an N-channel MOS transistor 244 arranged alongside a ground potential and controlled by the scramble signals, and P- and N-channel MOS transistors 242 and 243 connected in series between the MOS transistors 241 and 244. The gate of the transistor 243 is supplied with the signal MON, and the gate of the transistor 242 is supplied with an inverted signal MON of signal MON from an inverter 245. A connecting point of the transistors 242 and 243 is connected to the pad 21 of the corresponding address Ax (x=0 to 7).
FIG. 17 is a timing chart including a monitor cycle. In the test mode (in which TEST signal is at a high level) after the ENTRY cycle before the EXIT cycle, the WE signal cycles two times. The monitor signal MON thus starts to rise, and the latched scramble state is output from, e.g., an address pin (not shown). The scramble state can thus be confirmed on the tester side. "OPEN" in FIG. 17 means a time period during which a driver (not shown) of the tester is opened.
FIG. 18 is a circuit diagram showing another embodiment of the present invention in which a bidirectional data scrambler 25 is used. In FIG. 18, the same elements as those of FIG. 3 are indicated by the same reference numerals. The operation of the circuit is basically the same as that of the circuit of FIG. 3 and thus its description is omitted.
According to the above embodiments, a write pattern can be freely set in the test mode by incorporating the data scrambler, and a parallel test for items, which were not be detected conventionally, can be carried out. Consequently, the degree of freedom of the parallel test is greatly improved, a large variety of items for the parallel test can be prepared, and the whole test time can be shortened.
In the above embodiments, as shown by the timing chart in FIG. 14, the TEST signal rises at the second fall of WE signal in the ENTRY cycle and falls at the rise of RAS signal in the EXIT cycle. The ENTRY/EXIT circuit 14 for selecting the test mode can be operated in the other cycles. The TEST signal can be caused to rise by supplying a signal to the pad without any specific cycle.
Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details, and representative devices shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents.