Semiconductor storage device
The semiconductor memory device addresses fail bit detection and counting challenges by integrating a fail bit counting device for direct detection and counting within the device, enhancing data accuracy and reducing the need for external analysis tools.
Patent Information
- Application Number
- JP2023069097
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Existing semiconductor memory devices face challenges in accurately detecting and counting fail bits due to mismatches between written and read data, necessitating separate analysis devices that may not always be feasible.
The semiconductor memory device integrates a fail bit counting device that detects mismatches on a bit-by-bit basis, using a fail bit detection unit, bit count unit, and exclusive logic for fail bit data generation, allowing for fail and pass bit counting within the device.
This integration enables efficient fail bit detection and counting directly within the semiconductor memory device, reducing the need for external analysis tools and improving data accuracy.
Smart Images

Figure 2024154887000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a semiconductor memory device. [Background technology]
[0002] In a semiconductor memory device, the write data and the read data should essentially match, but they may not match due to errors caused by physical characteristics, etc. Therefore, it is necessary to obtain information about the mismatched data and to evaluate or correct the semiconductor memory device based on this information. Information about the mismatched data includes, for example, the number of mismatched bits (fail bits) between the write data and the read data, and there is a fail bit counter for counting this number.
[0003] Patent Document 1 discloses a memory failure analysis device for a semiconductor memory tester that reduces the fail counting processing time by dividing a fail memory into a plurality of blocks. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 9-33615 Summary of the Invention [Problem to be solved by the invention]
[0005] The memory failure analysis device disclosed in Patent Document 1 counts fail bits outside the semiconductor memory to be analyzed.
[0006] However, when counting fail bits outside the semiconductor memory, it becomes necessary to prepare a memory failure analysis device separate from the semiconductor memory. Depending on the situation, it may not always be possible to prepare a memory failure analysis device that can capture pass / fail information for all bits of the semiconductor memory.
[0007] SUMMARY OF THE PRESENT EMBODIMENT The present invention has been made in consideration of the above-mentioned problems, and has an object to provide a semiconductor memory device including a fail bit counting device. [Means for solving the problem]
[0008] In order to solve the above problems, the present invention provides a fail bit detection unit that detects whether read data from a semiconductor memory device matches or does not match expected data on a bit-by-bit basis, and outputs fail bit data consisting of pass / fail information indicating whether each of the detected bits matches or does not match; a bit counting section for counting the number of fail bits indicating a mismatch between the read data and the expected data, or the number of pass bits indicating a match, among the fail bit data; Equipped with A semiconductor memory device is provided (Invention 1).
[0009] According to this invention (invention 1), at least a part of the fail bit counting device can be included in the semiconductor memory device. Also, according to this invention (invention 1), the semiconductor memory device does not simply output a determination result indicating whether the read data matches or does not match the expected data, but detects whether the read data matches or does not match the expected data for each bit, thereby making it possible to count and output the number of fail bits or the number of pass bits.
[0010] In the above invention (Invention 1), the fail bit detection unit may include a group of exclusive OR gates that generate the fail bit data by performing a bit-wise exclusive OR operation between the read data and the expected data (Invention 2).
[0011] According to this invention (invention 2), fail bit data can be generated by performing a bit-by-bit exclusive OR operation between the read data and the expected data.
[0012] The above invention (Invention 2) may further comprise an expected data preparation unit that prepares write data to be written into the semiconductor memory device, the write data corresponding to the read data, as the expected data (Invention 3).
[0013] According to this invention (Invention 3), write data corresponding to read data can be prepared as expected data. Therefore, fail bit data can be obtained by comparing the read data with the write data. In particular, by comparing the read data with the write data bit by bit, it is possible to detect whether the read data and the write data match or not bit by bit, and output fail bit data including one or more bits indicating match or not.
[0014] In the above invention (Invention 3), the expected data preparation unit may invert the logical level of the write data to produce the expected data for bits that should indicate a match when the read data is logically inverted relative to the write data (Invention 4).
[0015] According to this invention (Invention 4), when the read data is logically inverted with respect to the write data, it can be determined that the bits on the write side and the bits on the read side match when the bits that should indicate a match are actually logically inverted.
[0016] In the above invention (Invention 3 or 4), the expected data preparation section may latch the write data so that it can be compared with the read data (Invention 5).
[0017] According to this invention (Invention 4), the write data and the corresponding read data can be compared by the fail bit detection section.
[0018] In the above inventions (Inventions 1 to 5), the bit counting unit a plurality of sub fail bit counters each counting the number of fail bits included in the partial fail bit data assigned to each of the sub fail bit counters and outputting the count value as the number of partial fail bits; an adder for calculating the number of fail bits by adding together the partial fail bit numbers output by the sub fail bit counters; (Invention 6).
[0019] According to this invention (Invention 6), the circuit scale of the bit counting section can be reduced.
[0020] In the above invention (Invention 6), each of the plurality of sub fail bit counters is a first block which takes a logical product of all bits included in the partial fail bit data assigned to its own sub fail bit counter, and outputs a bit indicating the logical product as a most significant bit of binary data indicating the number of the partial fail bits; a second block that generates, as a reference voltage, a voltage corresponding to the number of partial fail bits corresponding to the partial fail bit data assigned to its own sub fail bit counter; a third block for outputting a result of a comparison between the reference voltage and a voltage corresponding to a bit weight assigned to the own block of the binary data indicating the number of partial fail bits as a second most significant bit of the binary data indicating the number of partial fail bits; one or more fourth blocks for outputting a result of a comparison between the reference voltage and a voltage determined by a weight of a bit assigned to the own block of the binary data indicating the number of partial fail bits and a value of one or more bits of the binary data higher than the bit assigned to the own block, as a bit assigned to the own block that is less than the second higher bit of the binary data indicating the number of partial fail bits; (Invention 7).
[0021] According to this invention (Invention 7), the bit counter can be configured at least in part using analog circuits, without using digital circuits.
[0022] In the above invention (Invention 7), each of the plurality of bit counters may further comprise means for stopping operation of the third block and the one or more fourth blocks when the value of the most significant bit of the binary data indicating the number of partial fail bits is the same as the value that is taken when the number of partial fail bits is maximum (Invention 8).
[0023] According to this invention (Invention 8), when the value of the most significant bit is the value that is taken when the number of partial fail bits is at its maximum value, it is possible to prevent the third and fourth blocks from performing unnecessary operations and consuming excess power.
[0024] In the above invention (Invention 1), the bit counting unit a bit count differential amplifier which receives as input each bit of data to be measured including a plurality of bits and each bit of reference data to be measured including a plurality of bits, and outputs a determination result (size data) indicating a size relationship between the number of bits having a first logic level included in the data to be measured and the number of bits having the first logic level included in the reference data; a measurement target data setting section that supplies the fail bit data to the bit count section as the measurement target data; a reference data setting unit that sets a logic level of a reference active bit number of bits among a plurality of bits included in the reference data to the first logic level; a calculation unit which operates the measurement target data setting unit, the reference data setting unit and the bit count differential amplifier while successively changing the reference number of active bits based on the output from the bit count differential amplifier by a binary search algorithm, and determines the number of fail bits based on the plurality of large and small data successively output from the bit count differential amplifier by this operation; (Invention 9).
[0025] According to this invention (Invention 9), the bit counter can be configured at least in part using analog circuits, without using digital circuits.
[0026] In the above invention (Invention 9), the bit counting unit The device may further include a bit correction unit that inputs the number of fail bits calculated by the calculation unit as the number of fail bits before correction, and if the number of fail bits before correction is the same as the number of fail bits included in the fail bit data, outputs the number of fail bits before correction as the number of fail bits after correction, and if they are not the same, outputs a number obtained by subjecting the number of fail bits before correction to a correction process as the number of fail bits after correction (Invention 10).
[0027] According to this invention (Invention 10), errors occurring in the bit count differential amplifier, the threshold setting section, the first input setting section, and the calculation section can be corrected.
[0028] In the above invention (Invention 10), the bit correction unit determining whether to execute a correction process based on whether the number of pre-correction fail bits is even or odd and whether the number of fail bits included in the fail bit data is even or odd; In the correction process, the number of fail bits after correction may be set to a value that is different from the number of fail bits before correction by 1 (Invention 11).
[0029] According to this invention (Invention 8), errors occurring in the bit count differential amplifier, the threshold setting section, the first input setting section, and the calculation section can be corrected with a simple configuration.
[0030] In the above inventions (Inventions 9 to 11), when the number of fail bits included in the fail bit data is equal to or greater than a predetermined number, the measurement target data setting unit corrects the fail bit data so that the number of fail bits is less than the predetermined number, and supplies the corrected data to the bit count differential amplifier as the measurement target data; The calculation section may obtain the number of fail bits based on a plurality of outputs sequentially output from the bit count differential amplifier and the predetermined number (Invention 12).
[0031] According to this invention (Invention 12), when the number of fail bits included in the fail bit data is equal to or greater than a predetermined number, it is possible to reduce the possibility of erroneously determining the number of fail bits.
[0032] In the above inventions (Inventions 9 to 12), the bit counting section may output data indicating whether the number of bits having the first logic level among the bits included in the fail bit data is zero or is one or more, based on a comparison result between the reference data, in which the number of bits having the first logic level is zero, and the fail bit data (Invention 13).
[0033] According to this invention (Invention 13), it is possible to output data indicating whether the number of bits having the first level is zero or is one or more. Therefore, it is possible to output data indicating whether the fail bit data includes no fail bits or includes one or more fail bits.
[0034] In the above inventions (Inventions 9 to 12), the bit counting section may output data indicating whether the number of bits having the first logic level among the bits included in the fail bit data is zero, an even number greater than or equal to 1, or an odd number greater than or equal to 1, based on a comparison result between the reference data, in which the number of bits having the first logic level is zero, and the fail bit data, and whether the number of bits having the first logic level included in the fail bit data is even or odd (Invention 14).
[0035] According to this invention (Invention 14), it is possible to output data indicating whether the number of bits having the first level is zero, an even number equal to or greater than 1, or an odd number equal to or greater than 1. Therefore, it is possible to output data indicating whether the fail bit data contains no fail bits, contains an even number equal to or greater than 1, or contains an even number equal to or greater than 1.
[0036] In the above inventions (Inventions 1 to 14), the semiconductor memory device may include a plurality of memory banks, each of which is provided with the fail bit detection unit, and the bit count unit may be provided in a portion other than the plurality of memory banks (Invention 15).
[0037] According to this invention (Invention 15), the fail bit detection unit can be arranged near the memory cells arranged in the memory bank. Also, each of the fail bit detection units can be associated with each of the memory banks.
[0038] In the above inventions (Inventions 1 to 14), the semiconductor memory device may comprise a plurality of memory banks, and the fail bit detection section and the bit count section may be provided in a portion other than the plurality of memory banks (Invention 16).
[0039] According to this invention (Invention 16), the fail bit detection section can be disposed near the bit count section. Also, one fail bit detection section can be made to correspond to a plurality of memory banks.
[0040] In the above inventions (Inventions 1 to 16), the device may further comprise a bit count accumulator section that accumulates the number of fail bits counted by the bit count section (Invention 17).
[0041] According to this invention (Invention 17), the cumulative number of fail bits can be found.
[0042] In the above invention (Invention 17), the semiconductor memory device may comprise a plurality of memory banks, and the bit count accumulator may be provided in a portion other than the plurality of memory banks (Invention 18).
[0043] According to this invention (Invention 18), the bit count accumulator can be disposed near the bit count unit.
[0044] In the above inventions (Inventions 1 to 18), the device further comprises means for obtaining data indicating whether or not the fail bit data contains at least one fail bit based on data indicating the number of fail bits output from the bit count section (Invention 19).
[0045] According to this invention (Invention 19), it is possible to determine whether or not the fail bit data contains at least one fail bit, based on the data indicating the number of fail bits.
[0046] The above inventions (Inventions 1 to 18) may further comprise a means for generating data indicating whether or not at least one fail bit has occurred during the period from generation of the reset signal to a predetermined time based on data indicating the number of fail bits output from the bit count section and a reset signal (Invention 20).
[0047] According to this invention (Invention 20), it is possible to generate data indicating whether or not at least one fail bit has occurred during the period from when the reset signal was generated until a predetermined time, based on data indicating the number of fail bits and a reset signal.
[0048] The above inventions (Inventions 1 to 20) may further comprise a means for outputting the number of fail bits and / or the number of pass bits to the outside (Invention 21).
[0049] According to this invention (Invention 21), the number of fail bits and / or the number of pass bits can be easily grasped outside the semiconductor memory device.
[0050] In the above inventions (Inventions 1 to 21), when the expected data is input from the outside, the device may further comprise a means for acquiring the input expected data (Invention 22).
[0051] According to this invention (Invention 22), it becomes possible to detect whether the read data matches or does not match the expected data by using the expected data input from the outside.
[0052] In the above inventions (Inventions 1 to 22), the semiconductor memory device may be a dynamic memory (Invention 23).
[0053] According to this invention (Invention 23), the dynamic memory can be provided with a fail bit detection section and a bit count section. Also, the dynamic memory can be provided with a bit count accumulation section.
[0054] Moreover, according to this invention (Invention 23), even in a large-capacity dynamic memory of, for example, gigabyte class, it is possible to count the fail bits in all bits of the memory. Effect of the Invention
[0055] According to the semiconductor memory device of the present invention, it is possible to provide a semiconductor memory device including a fail bit counting device. [Brief description of the drawings]
[0056] [Figure 1] 1 is a block diagram showing an example of the configuration of a semiconductor memory device according to a first embodiment of the present invention. [Diagram 2] 2 is a circuit diagram showing a configuration of a first-half fail bit count related unit shown in FIG. 1; [Diagram 3] 2 is a block diagram showing a configuration of a latter half fail bit count related unit shown in FIG. 1; [Figure 4] 4 is a timing chart showing an example of the operation of the semiconductor memory device according to the first embodiment of the present invention. FIG. [Diagram 5] 18 is a block diagram showing a configuration example #1 of the bit counting section shown in FIGS. 3 and 17. FIG. [Figure 6] 6 is a circuit diagram showing a configuration of a bit count tree unit shown in FIG. 5. [Figure 7] 7 is a circuit diagram showing a configuration of the n-bit adder shown in FIG. 6. [Figure 8] 7 is a circuit diagram showing a configuration example #1 of the sub-fail bit counter shown in FIG. 6. [Figure 9] 7 is a circuit diagram showing a configuration example #2 of the sub-fail bit counter shown in FIG. 6. [Figure 10] 18 is a block diagram showing a configuration example #2 of the bit counting section shown in FIGS. 3 and 17. FIG. [Figure 11] 11 is a circuit diagram showing a configuration of a bit comparison unit shown in FIG. 10. [Figure 12] 12 is a circuit diagram showing a configuration of a bit count differential amplifier shown in FIG. 11. [Figure 13] 11 is a circuit diagram showing a configuration of a bit correction unit shown in FIG. 10. [Figure 14] 11 is a timing diagram for explaining the operation of configuration example #2 of the bit counting section shown in FIG. [Figure 15] 18 is a circuit diagram showing a configuration of a bit count accumulating unit shown in FIGS. 3 and 17. FIG. [Figure 16] FIG. 11 is a block diagram showing an example of the configuration of a semiconductor memory device according to a second embodiment of the present invention. [Figure 17] 17 is a circuit diagram showing a configuration of a fail bit count related unit shown in FIG. 16. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0057] Hereinafter, a semiconductor memory device according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. However, the embodiment is merely an example, and the present invention is not limited thereto.
[0058] Furthermore, the terms "first," "second," "third," and the like in this specification are used to distinguish a certain component from other components, and are not intended to limit the number, order, or priority of the components. For example, when there are descriptions of a "first element" and a "second element," this does not mean that only two elements, the "first element" and the "second element," are adopted, nor does it mean that the "first element" must precede the "second element."
[0059] (First embodiment)
[0060] [1. Overall structure] 1 is a block diagram showing a semiconductor memory device 100A according to a first embodiment of the present invention. The semiconductor memory device 100A is a dynamic memory.
[0061] Referring to FIG. 1, the semiconductor memory device 100A includes a command input buffer 801, a command decoder 803, an address input buffer 805, an address decoder 807, a DQ input / output buffer 809, a global input / output gate 811, a clock input buffer 813, an internal clock generating unit 815, a mode register & fuse ROM unit 817, and an internal power supply generating unit 819.
[0062] Furthermore, the semiconductor memory device 100A includes memory banks 821-1 to 821-n.
[0063] Each memory bank 821 - i (i=1, 2, 3, . . . , n) includes a memory array 831 , a row decoder / bank selection unit 833 , a word driver 835 , a column decoder 837 , a sense amplifier 839 and a first half fail bit count related unit 101 .
[0064] Each memory bank 821-i (i=1, 2, 3, . . . , n) is connected to a global input / output gate 811 via a corresponding memory input / output bus MIO.
[0065] Furthermore, the semiconductor memory device 100A includes a second half fail bit count related unit 103.
[0066] The command input buffer 801 is an input buffer for commands from the outside.
[0067] The command decoder 803 decodes the command input by the command input buffer 801, and supplies a signal indicating the decoded result to each component of the semiconductor memory device 100A.
[0068] The address input buffer 805 is an input buffer for addresses from the outside.
[0069] The address decoder 807 decodes the address input by the address input buffer 805, and supplies a signal indicating the decoded result to each unit of the semiconductor memory device 100 A. The signal indicating the decoded result includes a row address, a column address, and a bank address.
[0070] The DQ input / output buffer 809 is an input / output buffer for external data DQ.
[0071] The global input / output gate 811 is located between the DQ input / output buffer 809 and the memory banks 821-1 to 821-n, and mainly performs multiplexing and demultiplexing of data between them.
[0072] The clock input buffer 813 is an input buffer for an external clock.
[0073] The internal clock generating unit 815 generates an internal clock based on the clock input by the clock input buffer 813, and distributes it inside the semiconductor memory device 100A.
[0074] The mode register & fuse ROM unit 817 generates signals for controlling the semiconductor memory device 100A based on the decoded result of the command input from the command decoder 803 and the address input from the address input buffer 805, and supplies these to the inside of the semiconductor memory device 100A.
[0075] The internal power supply generating unit 819 generates internal power supplies based on externally supplied power supplies, and supplies these to the inside of the semiconductor memory device 100A.
[0076] The memory array 831 includes memory cells MC arranged two-dimensionally in the row and column directions.
[0077] The row decoder bank selection unit 833 decodes a row address and generates a row selection signal for selecting a row corresponding to the row address.
[0078] The word driver 835 activates the word line of the selected row.
[0079] The column decoder 837 decodes a column address and generates a column selection signal for selecting a column corresponding to the column address.
[0080] A plurality of sense amplifiers 839 are provided for each column, and the output of the sense amplifier 839 of the selected column is selected.
[0081] The first half fail bit count related unit 101 and the second half fail bit count related unit 103 will be described in detail later.
[0082] FIG. 2 is a circuit diagram showing a configuration of the first-half fail bit count related unit 101 shown in FIG.
[0083] [2. Fail bit detection section] The fail bit detection section 201 includes 16 exclusive OR gate groups 215. Each exclusive OR gate group 215 includes eight two-input, one-output exclusive OR gates.
[0084] The fail bit detection section 201 also includes 16 AND gate groups 213. Each AND gate group 213 includes eight AND gates with two inputs and one output.
[0085] Furthermore, the fail bit detection section 201 includes a data scramble & latch circuit 211. The data scramble & latch circuit 211 corresponds to the "expected data preparation section" of the present invention.
[0086] Each bit of the 8-bit write data WDATA<7:0> selected from the 128-bit write data WDATA<127:0> is supplied as expected seed data EXPSEED<7:0> to the data scramble & latch circuit 211. Here, the fail bit count is performed on the premise that the 128-bit expected data EXPDATA<127:0> is constructed by repeating 16 times the 8-bit write data WDATA<7:0> having a combination of a predetermined logic level. In other words, WDATA<8m+i>=WDATA (Here, m = 0 to 15, i = 0 to 7).
[0087] In each data scramble & latch circuit 211, when instructed by the test mode signal, data scrambling for the expected seed data EXPSEED<7:0> by the row address XADD is enabled. When data scrambling is enabled by the test mode signal, the data scramble & latch circuit 211 generates EXPDATA<7:0> by maintaining or inverting the logic level of each bit of the expected seed data EXPSEED<7:0> according to the row address XADD. EXPDATA<127:0> is configured by repeating the expected data EXPDATA<7:0> 16 times.
[0088] Here, when the write data WDATA<127:0> passes through the inside of the memory including the memory cells and returns as the read data RDATA<127:0>, the logic level is maintained or inverted according to the row address XADD. Therefore, each bit of the expected data EXPDATA<127:0> generated by the data scramble & latch circuit 211 has the expected correct logic level.
[0089] The expected data EXPDATA<127:0> thus generated is latched in the data scramble & latch circuit 211 so as to be used when performing fail bit counting.
[0090] In each data scramble & latch circuit 211, data scrambling is not enabled unless instructed by the test mode signal.
[0091] Therefore, when instructed by the test mode signal, each data scramble & latch circuit 211 outputs expected data EXPDATA<127:0> obtained by scrambling and repeating the expected seed data EXPSEED<7:0> by the row address XADD. On the other hand, when not instructed by the test mode signal, it outputs expected data EXPDATA<127:0> obtained by repeating the expected seed data EXPSEED<7:0> without scrambling. In the first embodiment, the data output from the scramble & latch circuit 211 is referred to as expected data EXPDATA<127:0>, whether scrambled or not.
[0092] A total of 128 bits of expected data EXPDATA<127:0> output from the scramble & latch circuit 211 is supplied to first input terminals of all AND gates included in the total AND gate group 213. Here, the expected data EXPDATA<7:0> supplied to the first AND gate group 213, the expected data EXPDATA<15:8> supplied to the second AND gate group 213, ..., the expected data EXPDATA<127:120> supplied to the 16th AND gate group 213 are common.
[0093] Furthermore, the control signal BC, whose level becomes HIGH in the fail bit count mode, is commonly supplied to the second input terminals of all the AND gates included in the AND gate group 213 .
[0094] An output terminal of each AND gate included in each AND gate group 213 is supplied to a first input terminal of a corresponding exclusive-OR gate included in the corresponding exclusive-OR gate group 215 .
[0095] The 128-bit read data RDATA is divided into 16 groups of 8 bits each. Each bit of the 8-bit read data RDATA included in each group is supplied to a second input terminal of each exclusive-OR gate included in each exclusive-OR gate group 215.
[0096] Therefore, in the fail bit count mode, the match between the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> can be confirmed bit by bit by the 16 exclusive OR gate group 215. When the signal BC is HIGH, each bit of the data RDATAd<127:0> formed by the output of the 16 exclusive OR gate group 215 has a logic level indicating the match / mismatch between the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> for each bit. In other words, the bit data RDATAd included in the data RDATAd<127:0> (where i=0 to 127) is the bit data EXPDATA contained in the expected data EXPDATA<127:0> and the bit data RDATA included in the read data RDATA<127:0> Therefore, when the signal BC is HIGH, a fail bit having a HIGH value among bits included in the data RDATAd<127:0> indicates that the values of the read data RDATA<127:0> and the expected data EXPDATA<127:0> do not match.
[0097] In order to detect a fail bit, the write data WDATA to be written to a cell of a specific bit at a specific address of the memory is usually compared with the read data RDATA read from that cell. For this reason, for example, at each time during the period in which a fail bit is detected, the bits of the read data RDATA and the corresponding bits of the write data WDATA must correspond correctly in each exclusive OR gate included in each exclusive OR gate group 215. In this way, the data scramble & latch circuit 211 is controlled so that the bits of the read data RDATA and the corresponding bits of the write data WDATA are correctly compared in the exclusive OR gate. In other words, the data scramble & latch circuit 211 is controlled so that the timing of each exclusive OR gate is matched with the address and bit pair corresponding to the bit of the read data RDATA input to the second terminal of each exclusive OR gate included in the exclusive OR gate group 215, which is converted into expected data EXPDATA, and then input to the first terminal of each exclusive OR gate included in the exclusive OR gate group 215.
[0098] Therefore, the data scramble & latch circuit 211 delays the write data WDATA by an appropriate time so that it can be compared with the read data RDATA, and outputs it as expected data EXPDATA.
[0099] In modes other than the fail bit count mode, the signal BC is LOW, so that the data RDATAd<127:0> formed by the output of the group of 16 exclusive OR gates 215 matches RDATA<127:0>. In other words, the data RDATAd<127:0> becomes read data.
[0100] Referring also to FIG. 1, the data RDATAd<127:0> output from the fail bit detection unit 201 in each memory bank 821-i (i=1, 2, 3, ..., n) is supplied to the global input / output gate 811 via the corresponding memory input / output bus MIO.
[0101] In the fail bit count mode, in the global input / output gate 811, data RDATAd<127:0> from a currently selected memory bank 821-i (i=1, 2, 3, ..., n) among multiple memory banks 821-1 to 821-n is supplied to the latter half fail bit count related unit 103 as fail bit data PF<127:0>.
[0102] FIG. 3 is a block diagram showing a configuration of the latter fail bit count related unit 103 shown in FIG.
[0103] The latter half fail bit count related section 103 includes a bit count section 301 and a bit count accumulator section 401 .
[0104] The bit count unit 301 receives fail bit data PF<127:0> from the global input / output gate 811. Here, the fail bit data PF<127:0> is data RDATAd<127:0> multiplexed among the memory banks 821-1 to 821-n on the memory input / output bus MIO in the fail bit count mode. Also, when the signal BC is HIGH in the fail bit count mode, the data RDATAd<127:0> has a logic level indicating a match / mismatch between the 128-bit expected data EXPDATA and the 128-bit read data RDATA.
[0105] Therefore, the bit count section 301 receives fail bit data PF<127:0> consisting of 128-bit pass / fail information having a logic level indicating for each bit whether the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> match / mismatch (i.e., a logic level indicating whether each bit is a fail bit or not). Of the 128 bits included in the fail bit data PF<127:0>, bits whose logic level is HIGH are fail bits. On the other hand, of the 128 bits included in the fail bit data PF<127:0>, bits whose logic level is LOW are pass bits.
[0106] The bit counting section 301 counts the number of fail bits indicating that the levels of the expected data EXPDATA and the read data RDATA do not match based on the logic level of each bit of the input fail bit data PF<127:0>, and outputs a binary confirmed fail bit number C<7:0> indicating the number of fail bits. The bit counting section 301 may also count the number of pass bits indicating that the levels of the expected data EXPDATA and the read data RDATA match based on the logic level of each bit of the input fail bit data PF<127:0>, and output a binary confirmed pass bit number (not shown) indicating the number of pass bits.
[0107] The bit count accumulation unit 401 accumulates the number of fail bits included in the confirmed fail bit number C<7:0>, and outputs the accumulated value as output data CNT <n-1:0>The bit count accumulator 401 may also accumulate the number of pass bits included in the number of confirmed pass bits and output the accumulated value to the outside as output data (not shown). Furthermore, the bit count accumulator 401 may also output the accumulated values of the fail bits and the pass bits to the outside.
[0108] The bit count unit 301 and the bit count accumulation unit 401 will be described in detail later.
[0109] FIG. 4 is a timing chart showing an example of the operation of the semiconductor memory device according to the first embodiment of the present invention.
[0110] FIG. 4 shows an operation in which, in the fail bit count mode, data as external data DQ is output from the semiconductor memory device at intervals ranging from an 8-bit period of fail bit count #1 to an 8-bit period of fail bit count #n, and then a 32-bit cumulative fail bit count value is output.
[0111] [3. Bit count section] [3.1 Bit counting section configuration example #1] FIG. 5 is a block diagram showing a configuration example #1 of bit counting section 301 shown in FIG.
[0112] 5, the bit count section 301 according to configuration example #1 includes a first bit count timing generation section 311 and a bit count tree section 313. The first bit count timing generation section 311 generates a first bit count signal and a second bit count signal.
[0113] The first bit count timing generation unit 311 generates a signal for the operation of the bit count tree unit 313 .
[0114] The bit count tree unit 313 receives fail bit data PF<127:0> having a logic level indicating a match / mismatch for each bit of the 128-bit expected data EXPDATA<127:0> (see FIG. 2) and the 128-bit read data RDATA<127:0> (see FIG. 2) (i.e., a logic level indicating whether each bit is a fail bit or not), and outputs a confirmed fail bit number C<7:0> indicating the number of mismatch bits (hereinafter referred to as the "fail bit number") in binary. In other words, the bit count tree unit 313 counts the number of fail bits whose logic level is HIGH among the 128 bits constituting the fail bit data PF<127:0>, and outputs a confirmed fail bit number C<7:0> indicating the number of fail bits in binary.
[0115] FIG. 6 is a circuit diagram showing a configuration of bit count tree unit 313 shown in FIG.
[0116] Referring to FIG. 6, the bit count tree unit 313 includes, from the bottom up, 16 sub-fail bit counters 321, eight 4-bit adders 323-1, four 5-bit adders 323-2, two 6-bit adders 323-3, one 7-bit adder 323-4, and a latch circuit 325.
[0117] Each of the 16 sub fail bit counters 321 counts the number of partial fail bits corresponding to 8 bits selected from the fail bit data PF<127:0>.
[0118] Each sub fail bit counter 321 inputs 8 bits included in the partial fail bit data assigned to itself out of the 128 bits constituting the fail bit data PF<127:0> input to the bit count tree unit 313, and counts the number of bits having a HIGH logic level corresponding to a mismatch among the 8 bits as the number of partial fail bits.Then, the partial fail bit number is output as a 4-bit binary number.
[0119] Therefore, the 16 sub fail bit counters 321 output a total of 16 pieces of 4-bit binary data indicating the number of partial fail bits divided into 16 parts.
[0120] A control signal BCEN is input to the 16 sub-fail bit counters 321, and the sub-fail bit counters 321 operate only when the control signal BCEN is HIGH.
[0121] The partial fail bit numbers indicated by these 16 binary data are added together using eight 4-bit adders 323-1, four 5-bit adders 323-2, two 6-bit adders 323-3, and one 7-bit adder 323-4 connected in a tree configuration as shown in Figure 6, to obtain data S<7:0> expressed in 8-bit binary number.
[0122] That is, the eight 4-bit adders 323-1, the four 5-bit adders 323-2, the two 6-bit adders 323-3, and the one 7-bit adder 323-4 count the partial fail bit numbers to obtain the total number of fail bits.
[0123] Each of the 4-bit adders 323-1 corresponds to two sub-fail bit counters 321. Then, each of the 4-bit adders 323-1 adds together the partial fail bit numbers indicated by the outputs from the corresponding two sub-fail bit counters 321.
[0124] Therefore, a total of eight 5-bit data indicating the number of partial fail bits divided into eight is output from the eight 4-bit adders 323-1.
[0125] Each 5-bit adder 323-2 corresponds to two 4-bit adders 323-1. Each 5-bit adder 323-2 adds up the numbers of partial fail bits indicated by the outputs from the corresponding two 4-bit adders 321.
[0126] Therefore, a total of four 6-bit data indicating the number of partial fail bits divided into four is output from the four 5-bit adders 323-2.
[0127] Each 6-bit adder 323-3 corresponds to two 5-bit adders 323-2. Each 6-bit adder 323-3 adds up the numbers of partial fail bits indicated by the outputs from the corresponding two 5-bit adders 322.
[0128] Therefore, a total of two 7-bit data items indicating the number of partial fail bits divided into two are output from the two 6-bit adders 323-3.
[0129] Each 7-bit adder 323-4 corresponds to two 6-bit adders 323-3. Each 7-bit adder 323-4 adds the numbers of partial fail bits indicated by the outputs from the corresponding two 6-bit adders 322.
[0130] Therefore, one 7-bit adder 323-4 outputs a total of one 8-bit data S<7:0> indicating the number of fail bits. In other words, the data S<7:0> indicates the number of fail bits.
[0131] The latch circuit 325 latches the 8-bit data S<7:0> indicating the number of fail bits output by the 7-bit adder 323-4 using a latch signal LATC, and then outputs the data as the confirmed number of fail bits C<7:0>. The confirmed number of fail bits C<7:0> latched by the latch circuit 325 is reset by a reset signal RST. Therefore, the latch circuit 325 outputs the confirmed number of fail bits C<7:0>, an 8-bit binary number indicating the number of fail bits, during the period from when the latch signal LATC is input until when the reset signal RST is input.
[0132] FIG. 7 shows the n-bit adders 323-1 to 323-4 shown in FIG. 6 and a power supply circuit (power supply unit for n-bit adder) 327 for supplying power thereto.
[0133] The n-bit adders 323-1 to 323-4 have a common configuration, so a description thereof will be omitted.
[0134] The power supply circuit 327 supplies a power supply selected by a control signal BCEN from the external power supply VDD and the internal power supply VINT as the power supply VIBC to the n-bit adders 323-1 to 323-4. Specifically, during the bit count mode, the control signal BCEN is HIGH, the external power supply VDD is selected as the power supply VIBC, and the n-bit adders 323-1 to 323-4 can operate normally. On the other hand, during periods other than the bit count mode, the control signal BCEN is LOW, and the internal power supply VINT is selected as the power supply VIBC, allowing power saving.
[0135] Fig. 8 is a circuit diagram showing a configuration example #1 of the sub-fail bit counter 321 shown in Fig. 6. The configuration of the sub-fail bit counter 321 shown in Fig. 8 is a general one, so a description thereof will be omitted.
[0136] The sub-fail bit counter 321 shown in FIG. <0> ~A <7> Calculate the total number of HIGH level 1-bit data out of the total 8 1-bit data. <0> , B <1> , B <2> and B. <3> The number of partial fail bits indicated by 4-bit binary data B<3:0> composed of the above is output.
[0137] Here, as is clear from Figures 6 and 8, the partial fail bit data PF<127:120> of the fail bit data PF<127:0> becomes the input A<7:0> of the first sub-fail bit counter, and similarly, the partial fail bit data PF<119:112> becomes the input A<7:0> of the second sub-fail bit counter, and similarly, the partial fail bit data PF<8×n+7:8×n> becomes the input A<7:0> of the (16-n)th sub-fail bit counter (where n=1, 2, 3, ..., 16).
[0138] Fig. 9 is a circuit diagram showing a configuration example #2 of the sub-fail bit counter 321 shown in Fig. 6. The sub-fail bit counter 321 according to the configuration example #2 includes circuit blocks 331, 332, 333, 334, 335, and 336.
[0139] When the control signal BCEN is HIGH, the circuit block 331 outputs 1-bit data A <0> ~A <7> In other words, the circuit block 331 outputs a signal pbias having a voltage corresponding to the total number of 1-bit data whose level is HIGH among the 8 bits. In addition, the circuit block 331 is an example of the "second block" in the present invention.
[0140] The circuit block 332 receives 1-bit data A <0> ~A <7> Logical AND of data B <3> Here, data B is output as <3> is the most significant bit (MSB) of data B<3:0> indicating the number of partial fail bits. Therefore, 1-bit data A <0> ~A <7> When all eight data bits are HIGH, indicating that all eight bits are fail bits, data B is <3> becomes HIGH. The circuit block 332 is an example of the "first block" in the present invention.
[0141] When the control signal BCEN is HIGH, the circuit block 333 outputs the data B <3> The circuit block 333 outputs a delayed control signal ENd having a level obtained by logically inverting the third block and one or more fourth blocks. The circuit block 333 is an example of the "means for invalidating the third block and one or more fourth blocks" in the present invention.
[0142] In addition, Data B <3> If is HIGH, data B <2> , B <1> and B. <0> Since it is known that the data B is LOW, the control signal ENd is used to stop the operation of the amplifiers included in the circuit blocks 334, 335, and 336, thereby saving power. <2> , B <1> and B. <0> becomes LOW.
[0143] The circuit block 334 outputs data B whose level is determined by comparing the voltage (reference voltage) of the signal pbias corresponding to the actual number of fail bits with the voltage of the signal corresponding to 3.5 fail bits. <2> Therefore, data B <2> is HIGH when the number of partial fail bits is between 4 and 7. Here, data B <2> is the second most significant bit (2nd MSB) of data B<3:0> indicating the number of partial fail bits.
[0144] The circuit block 335 is a signal pbias voltage (reference voltage) corresponding to the actual number of fail bits and 1.5+4×B <2> The level of data B is determined by comparing the voltage of the signal corresponding to the number of fail bits. <1> Therefore, data B <1> becomes HIGH when the number of partial fail bits is 2, 3, 6, or 7. The circuit block 335 is an example of the "third block" in the present invention. <1> is the third most significant bit (3rd MSB) of data B<3:0> indicating the number of partial fail bits.
[0145] The circuit block 336 is a signal pbias voltage (reference voltage) corresponding to the actual number of fail bits and 0.5+2×B <1> +4×B <2> The level of data B is determined by comparing the voltage of the signal corresponding to the number of fail bits. <0> Therefore, data B <0> becomes HIGH when the number of partial fail bits is 1, 3, 5, or 7. The circuit block 336 is an example of the "fourth block" in the present invention.
[0146] [3.2 Bit counting section configuration example #2]
[0147] Fig. 10 is a block diagram showing configuration example #2 of the bit counting unit shown in Fig. 3. Referring to Fig. 10, bit counting unit 301 according to configuration example #2 includes a bit comparing unit 341, a bit correcting unit 343, and a second bit count timing generating unit 345.
[0148] The bit comparator 341 receives fail bit data PF<127:0> consisting of 128 bits having a logic level indicating a match / mismatch for each bit between the 128-bit expected data EXPDATA<127:0> (see FIG. 2) and the 128-bit read data RDATA<127:0> (see FIG. 2) (i.e., a logic level indicating whether each bit is a fail bit or not), and outputs the number of fail bits before correction S<6:0>. The number of fail bits before correction S<6:0> is expressed in binary notation as the same number as the number of fail bits or a number different by one from the number of fail bits.
[0149] The bit correction unit 343 corrects the pre-correction fail bit number S<6:0> by correction processing as necessary, and outputs a confirmed fail bit number C<7:0> indicating the number of fail bits by an 8-bit binary number.
[0150] The second bit count timing generation section 345 generates a signal for operating the bit comparison section 341 and the bit correction section 343. The second bit count timing generation section 345 includes an example of the "calculation section" of the present invention.
[0151] Fig. 11 is a circuit diagram showing the configuration of the bit comparing unit 341 shown in Fig. 10. Referring to Fig. 11, the bit comparing unit 341 includes eight exclusive OR gate groups 351-1 to 351-8, nine logic inverting gate groups 353-1 to 353-9, a bit count differential amplifier 355, and seven latch circuits 357.
[0152] Non-inverted fail bit data, which is the same data as the fail bit data PF<127:0>, or inverted fail bit data obtained by inverting the fail bit data PF<127:0> bit by bit is supplied to the bit count differential amplifier 355 as measurement target data A<127:0>. Data to be compared with the measurement target data A<127:0> is supplied to the bit count differential amplifier 355 as reference data B<127:0>. Complementary data Af<127:0> of the measurement target data A<127:0> and complementary data Bf<127:0> of the reference data B<127:0> are also supplied to the bit count differential amplifier 355.
[0153] In the following description, the number of fail bits (or the number of non-inverted fail bits) is referred to as FB. The number of inverted fail bits when each bit of the fail bit data is logically inverted is referred to as FC. Furthermore, the number of bits whose logic level is HIGH contained in the measurement target data A<127:0> is referred to as the number of measurement target bits AA. Furthermore, the number of bits whose logic level is HIGH contained in the reference data B<127:0> is referred to as the number of reference active bits BB.
[0154] The operation of the bit comparison unit 341 is controlled by the second bit count timing generation unit 345 using a binary search algorithm. By this control, the bit count differential amplifier 355 included in the bit comparison unit 341 outputs size data (discrimination result) OUT that changes sequentially depending on the size relationship between the number of bits to be measured AA and the number of reference active bits BB, which is sequentially updated. The bit comparison unit 341 outputs a plurality of bit data S obtained by sequentially sampling and synthesizing the size data OUT using seven latch circuits 357. <6> ~S <0> The pre-correction fail bit number S<6:0> is output.
[0155] In order to control the operation of the bit count differential amplifier 355 by an algorithm that mainly uses a binary search method, the second bit count timing generation unit 345 sequentially changes the data F0 to F7.
[0156] The data F0 to F5 and F7 are data for adjusting the number of reference active bits included in the reference data B<127:0> and its complementary data Bf<127:0> in the bit count differential amplifier 355. The data F6 is data for adjusting the number of measurement target bits indicated by the measurement target data A<127:0> and its complementary data Af<127:0> in the bit count differential amplifier 355.
[0157] The eight exclusive OR gate groups 351-1 to 351-8 respectively include 128, 32, 16, 8, 4, 2, 64, and 1 two-input, one-output exclusive OR gates. The eight logic inverting gate groups 353-1 to 353-8 respectively include 128, 32, 16, 8, 4, 2, 64, and 1 inverting gates. The exclusive OR gate group 351-1 and the logic inverting gate group 353-1 are an example of the "measurement target setting unit" in the present invention. The circuit including the exclusive OR gate groups 351-2 to 351-8 and the logic inverting gate groups 353-2 to 353-9 for generating the data B<127:0> and Bf<127:0> is an example of the "reference data setting unit" in the present invention.
[0158] The eight exclusive OR gate groups 351-1 to 351-8 are supplied with fail bit data PF<127:0> and data F0 to F7 as a whole.
[0159] The first input terminals of the 128 exclusive OR gates included in the exclusive OR gate group 351-1 are supplied with the respective bits of the fail bit data PF<127:0>, and the second input terminals are commonly supplied with data F6. The output data of the 128 exclusive OR gates included in the exclusive OR gate group 351-1 and the data obtained by passing these through the logic inversion gate group 353-1 are supplied to the bit count differential amplifier 355 as measurement target data A<127:0> and its complementary data Af<127:0>. Here, the circuit including the exclusive OR gate group 351-1 and the logic inversion gate group 353-1 for generating the data A<127:0> and Af<127:0> is an example of the "measurement target data setting section" of the present invention.
[0160] When data F6 is LOW, the fail bit data PF<127:0> becomes the measurement target data <127:0> as is. On the other hand, when data F6 is HIGH, the data obtained by logically inverting the fail bit data PF<127:0> on a bit-by-bit basis becomes the measurement target data A<127:0>. Here, the number of bits with a HIGH logic level included in the measurement target data A<127:0> obtained by logically inverting the fail bit data PF<127:0> on a bit-by-bit basis is the number obtained by subtracting the number of fail bits included in the fail bit data PF<127:0> from 128.
[0161] As will be described later, before searching for the number of fail bits using the binary search algorithm, it is determined whether the number of fail bits included in the fail bit data PF<127:0> is less than 64. If the number of fail bits FB is less than 64, the fail bit data PF<127:0> is used as is as the measurement target data A<127:0>. On the other hand, if the number of fail bits FB is 64 or more, the fail bit data PF<127:0> is logically inverted bit by bit and the data obtained is used as the measurement target data A<127:0>.
[0162] This makes it possible to prevent the measurement target data A<127:0> supplied to the bit count differential amplifier 355 from being equal to or greater than 64. Therefore, it is possible to reduce errors due to voltage errors when the bit count differential amplifier 355 compares the measurement target data A<127:0> with the reference data B<127:0>.
[0163] When each bit of the fail bit data PF<127:0> is used as the measurement target data A<127:0> without being logically inverted, the number of fail bits FB becomes the number of measurement target bits AA as is. On the other hand, when each bit of the fail bit data PF<127:0> is logically inverted and then used as the measurement target data A<127:0>, the number of inverted fail bits FC becomes the number of measurement target bits AA.
[0164] The 128-bit output of the exclusive OR gate group 351-1 is supplied to a bit count differential amplifier 355 as data to be measured A<127:0>, and the inverted output of the 128-bit output of the exclusive OR gate group 351-1 by the logic inverting gate group 353-1 is supplied to the bit count differential amplifier 355 as complementary data Af<127:0>.
[0165] The 32 exclusive OR gates included in the exclusive OR gate group 351-2 and the 32 logic inverting gates included in the logic inverting gate group 353-2 supply data F5 and its inverted data as reference data B<127:96> and its complementary data Bf<127:96>, respectively, to the bit count differential amplifier 355.
[0166] Similarly, the 16 exclusive OR gates included in the exclusive OR gate group 351-3 and the 16 logic inverting gates included in the logic inverting gate group 353-3 supply data F4 and its inverted data to the bit count differential amplifier 355 as reference data B<95:80> and its complementary data Bf<95:80>, respectively.
[0167] Similarly, eight exclusive OR gates included in the exclusive OR gate group 351-4 and eight logic inverting gates included in the logic inverting gate group 353-4 supply data F3 and its inverted data as reference data B<79:72> and its complementary data Bf<79:72>, respectively, to the bit count differential amplifier 355.
[0168] Similarly, four exclusive OR gates included in the exclusive OR gate group 351-5 and four logic inverting gates included in the logic inverting gate group 353-5 supply data F2 and its inverted data to the bit count differential amplifier 355 as reference data B<71:68> and its complementary data Bf<71:68>, respectively.
[0169] Similarly, two exclusive OR gates included in the exclusive OR gate group 351-6 and two logic inverting gates included in the logic inverting gate group 353-6 supply data F1 and its inverted data as reference data B<67:66> and its complementary data Bf<67:66>, respectively, to the bit count differential amplifier 355.
[0170] Similarly, the 64 exclusive OR gates included in the exclusive OR gate group 351-7 and the 64 logic inverting gates included in the logic inverting gate group 353-7 supply data F7 and its inverted data as reference data B<65:2> and its complementary data Bf<65:2>, respectively, to the bit count differential amplifier 355.
[0171] Similarly, one exclusive OR gate included in the exclusive OR gate group 351-8 and one logic inverting gate included in the logic inverting gate group 353-8 convert the data F0 and its inverted data into the reference data B <1> and its complementary data Bf <1> to the bit count differential amplifier 355.
[0172] In addition, the data whose level is LOW and the data whose level is inverted to HIGH by the logic inversion gate 353-9 are respectively reference data B <0> and its complementary data Bf <0> to the bit count differential amplifier 355.
[0173] The seven latch circuits 357 latch the large and small data OUT sequentially output from the bit count differential amplifier 355 in accordance with latch signals LAT6 to LAT0 that are generated successively with a time difference as shown in FIG. 14, thereby storing a plurality of bit data S <6> ~S <0> The output is aligned as multiple bit data S <6> ~S <0> constitutes the number of uncorrected fail bits S<6:0> which indicates the number of uncorrected fail bits in binary.
[0174] That is, as shown in FIG. 14, the bit data S <6> is latched, and shortly before time t3, bit data S <5> is latched, and similarly, data S<8-i> is latched shortly before time ti (i=4, 5, . . . , 8). Therefore, at time t8, the number of uncorrected fail bits S<6:0> is determined.
[0175] FIG. 12 is a circuit diagram showing a configuration of bit count differential amplifier 355 shown in FIG.
[0176] The bit count differential amplifier 355 is a reference data B (i=0, 1, 2, . . . , n-1; n=128; so on) complementary data Bf A P-channel MOS transistor 361 controlled by the P-channel MOS transistor 363, and measurement target data A The N-channel MOS transistor 365 controlled by the signal AmpEN and the N-channel MOS transistor 367 controlled by the signal AmpEN are directly connected from the power supply side to the ground side. A P-channel MOS transistor 371 and a P-channel MOS transistor 373 controlled by the reference data B The first set includes 128 second sets in which the drains of the P-channel MOS transistor 363 and the N-channel MOS transistor 365 controlled by the signal AmpEN are directly connected from the power supply side to the ground side. The lines connecting the drains of the P-channel MOS transistor 363 and the N-channel MOS transistor 365 included in each of the first sets are connected to each other and are further used to control the P-channel MOS transistor 373 included in all of the second sets. Similarly, the lines connecting the drains of the P-channel MOS transistor 373 and the N-channel MOS transistor 375 included in each of the second sets are connected to each other and are further used to control the P-channel MOS transistor 363 included in all of the first sets. The signal of the line connecting the drains of the P-channel MOS transistor 363 and the N-channel MOS transistor 365 included in each of the first sets is also used as the internal signal OUTpreF, and the signal of the line connecting the drains of the P-channel MOS transistor 373 and the N-channel MOS transistor 375 included in each of the second sets is also used as the internal signal OUTpre.
[0177] When the signal AmpEN goes from LOW to HIGH, the signal PCf also goes from LOW to HIGH after a predetermined delay time has elapsed by a delay circuit 381, and the signal ENd also goes from LOW to HIGH after a further predetermined delay time has elapsed by another delay circuit 383. In addition, when the signal PCf goes from LOW to HIGH, the gates 369 and 379 are closed. Therefore, when the signal AmpEN goes from LOW to HIGH, all the N-channel MOS transistors 367 and all the N-channel MOS transistors 377 are conductive, and the levels of the internal signals OUTpre and OUTpreF become equal to the measurement target data A. <n-1:0>The number of bits with a HIGH level (i.e., the number of measurement bits AA) and the reference data B <n-1:0>are complementary to each other according to the magnitude relationship of the number of bits whose levels are HIGH (i.e., the reference active bit number BB). Then, after a predetermined delay time has elapsed, large / small data OUT and complementary data OUTF corresponding to the internal signal OUTpre and the internal signal OUTpreF, respectively, are output in a complementary manner via gates 385 and 386 that are opened by a signal ENd and subsequent gates 387 and 388.
[0178] Specifically, while the external signal AmpEN is HIGH, <n-1>~A <0> The number of data items whose level is HIGH (i.e., the number of measurement bits AA) is data B. <n-1>~B <0> If the number of data bits that are at a HIGH level among the data bits A and B is equal to or greater than the number of active bits BB, the levels of the internal signal OUTpre and its inverted internal signal OUTpreF become HIGH and LOW, respectively. <n-1>~A <0> The number of data that is HIGH among the data B <n-1>~B <0> If the number of data bits among them is less than the number of HIGH data bits, the levels of the internal signal OUTpre and its inverted internal signal OUTpreF become LOW and HIGH, respectively. Then, during the period when the external signal AmpEN is HIGH, the internal signal OUTpre and its inverted internal signal OUTpreF are output to the outside as large / small data OUT and its complementary data OUTF.
[0179] FIG. 13 is a circuit diagram showing a configuration of the bit correction unit 343 shown in FIG.
[0180] The bit correction unit 343 includes one buffer 393 , six two-input exclusive-OR gates 395 , one 129-input exclusive-OR gate 397 , one plus-1 adder 391 , and eight latch circuits 399 .
[0181] The uncorrected fail bit number S<6:0> is subjected to intermediate correction by one buffer 393 and six two-input exclusive OR gates 395, and is then supplied to a plus-1 adder 391 as an intermediate fail bit number Sd<6:0>.
[0182] Then, the intermediate fail bit number Sd<6:0> is post-corrected by a plus-1 adder 391 controlled by a 129-input exclusive OR gate 397, and then output from the bit correction unit 343 as the confirmed fail bit number C<7:0> via eight latches.
[0183] In intermediate correction, specifically, the bit comparator 341 executes a process corresponding to the case where the number of inversion fail bits FC is set as the number of bits AA to be measured.
[0184] In the post-stage correction, specifically, if an error occurs in the pre-correction fail bit number S<6:0>, a process for correcting the error is executed.
[0185] Next, to explain in detail, the bit data S included in the number of uncorrected fail bits S<6:0> is <6> is supplied to a plus-1 adder 391 via a buffer 393. <5> ~S <0> Each of the bits is converted into bit data S by an exclusive OR gate 395. <6> The result is supplied to a plus-1 adder 391 after an exclusive OR is performed with the result.
[0186] Therefore, the bit data S <6> is LOW, the number of uncorrected fail bits S<6:0> is directly supplied to the plus-1 adder 391 as the number of intermediate fail bits Sd<6:0>. <6> is HIGH, data indicating a value obtained by subtracting the value indicated by the number of fail bits before correction S<6:0> from 127 is supplied to the plus-1 adder 391 as the intermediate number of fail bits Sd<6:0>. As described above, this corresponds to the case where, when it is found that the number of fail bits is 64 or more, the number of inverted fail bits FC, which is the number obtained by subtracting the number of fail bits FB from 128, is set as the number of bits AA to be measured instead of the number of fail bits FB, and then the number of bits AA to be measured is searched for by the binary search algorithm. In other words, in such a case, the number of fail bits before correction S<6:0> corresponds to a binary number indicating the number obtained by subtracting the number of fail bits from 128.
[0187] The 129-input exclusive OR gate 397 inputs all the bits of the fail bit data PF<127:0> and the LSB Sd of the intermediate fail bit number Sd<6:0>. <0> (i.e., an exclusive OR operation of 129 inputs) and supplies the result as control data OEMatch to the plus-1 adder 391. The plus-1 adder 391 uses the control data OEMatch as an enable signal for addition. Here, the control data OEMatch is determined by the even / odd of the fail bit data PF<127:0> and the data Sd <0> When the even / odd of the fail bit data PF<127:0> and the data Sd <0> It becomes HIGH when the even and odd numbers do not match.
[0188] Therefore, when the even / odd of the actual number of fail bits included in the fail bit data PF<127:0> detected and bit-expanded by the fail bit detection unit 201 does not match the even / odd of the number of fail bits before correction indicated by the number of fail bits before correction S<6:0> in 7-bit binary, the plus-one adder 391 adds 1 to the number of intermediate fail bits Sd<6:0>. Then, the data after the addition is output from the plus-one adder 391 as the number of fail bits after correction SS<7:0> indicating the number of fail bits after correction. On the other hand, when the even / odd of the actual number of fail bits included in the fail bit data PF<127:0> matches the number of fail bits before correction indicated by the number of fail bits before correction S<6:0>, the number of intermediate fail bits Sd<6:0> input to the plus-one adder 391 is output from the plus-one adder 391 as the number of fail bits after correction SS<7:0> indicating the number of fail bits after correction.
[0189] The latch circuit 399 receives a plurality of bit data SS<7:0> that constitutes the post-correction fail bit number SS<7:0> output from the plus-1 adder 391. <7> ~SS <0> Each bit is latched to store multiple bit data C <7> ~C <0> The number of confirmed fail bits C<7:0> in binary form obtained by combining these is the number of confirmed fail bits C<7:0> output from the bit count section 301.
[0190] The plus-one adder 391 may have a known configuration.
[0191] In the bit comparator 341, when the number of inverted fail bits FC is set as the number of bits AA to be measured, if the intermediate fail bits Sd<6:0> is obtained by subtracting the value indicated by the number of fail bits before correction S<6:0> from 128 instead of 127, the result will be as follows. In other words, when no error occurs, the intermediate fail bits Sd<6:0> indicate the correct number of fail bits FB. On the other hand, when an error occurs, it becomes necessary to obtain the value obtained by subtracting 1 from the intermediate fail bits Sd<6:0> as the correct number of fail bits FB.
[0192] Therefore, the following configuration and operation are required. · Configuration: Replace the plus 1 adder 391 with a ±1 adder. Operation #1: In the bit comparator 341, the number of non-inverted fail bits FB is set as the number of bits AA to be measured. If there is no error, the ±adder makes Sd<6:0> indicate SS<6:0> as it is. Operation #2: In the bit comparator 341, the number of non-inverted fail bits FB is set as the number of bits AA to be measured, and if an error is detected, the ± adder makes SS<6:0> indicate the value obtained by adding 1 to Sd<6:0>. In other words, the ± adder performs a process of adding 1 to Sd<6:0>. · Operation #3: In the bit comparator 341, the number of inversion fail bits FC is set as the number of bits AA to be measured. If there is no error, the ± adder makes Sd<6:0> indicate SS<6:0> as it is. Operation #4: In the bit comparator 341, the number of inversion fail bits FC is set as the number of bits AA to be measured, and if an error is detected, the ±adder makes SS<6:0> indicate the value obtained by subtracting 1 from Sd<6:0>. In other words, the ±adder performs a process of subtracting 1 from Sd<6:0>.
[0193] Such a configuration and operation requires a larger circuit and more computational processing than the configuration described above.
[0194] [4. Bit count accumulation section] FIG. 15 is a circuit diagram showing a configuration of bit count accumulating unit 401 shown in FIG.
[0195] The 8-input OR gate 411 outputs the OR of all bits of the confirmed fail bit number C<7:0>, which indicates the number of fail bits, as data CMP. Therefore, data CMP is LOW if there is no fail bit in one set of fail bit data PF<127:0>, but is HIGH if there is at least one fail bit in one set of fail bit data PF<127:0>. In other words, data CMP indicates the presence or absence of a fail bit for one set of fail bit data PF<127:0>.
[0196] The output data CCMP of the flip-flop circuit 413 becomes LOW by the reset signal RST corresponding to the control signal CBC, and becomes HIGH when the data CMP goes from LOW to HIGH after that. Therefore, the data CCMP indicates the presence or absence of a fail bit for all the fail bit data PF<127:0> that are the target of fail bit detection. In other words, if the i-th fail bit data PF<127:0> is represented as PF(i) and the number of fail bits FB corresponding to PF(i) is FB(i), if at least one fail bit occurs from the first period immediately after the CCMP reset signal RST occurs to the S-th period corresponding to the present, the output data CCMP of the flip-flop circuit 413 becomes HIGH.
[0197] The 8 / n-bit adder 415 and the latch circuit 417 form a cumulative circuit. Therefore, the data CC output by the latch circuit 417 is <n-1:0>indicates the presence or absence of fail bits for all fail bit data PF<127:0> that are the target of fail bit detection. In other words, if the i-th fail bit data PF<127:0> is represented as PF(i) and the number of fail bits FB corresponding to PF(i) is represented as FB(i), the data CC output by the latch circuit 417 is <n-1:0>is the cumulative number of failed bits from the first period immediately after the reset signal RST occurs to the Sth period corresponding to the present. Σ i=1~S FB(i) This will show that.
[0198] The multiplexers MUX421, 423, and 425 output data CNT according to the combination of the control signal CBOUT and the control signal COMP. <n-1:0>As the data CMP, the data CCMP, the confirmed fail bit count C<7:0> and the cumulative fail bit count CC <n-1:0>One of them is selected.
[0199] The 8 / n-bit adder 415 may have a known configuration.
[0200] [5. General explanation of the operation of the bit count unit using configuration example #2]
[0201] [5.1 Explanation of operation of tree search using bit-counting differential amplifier] FIG. 14 is a timing chart for explaining the operation of the bit counting section in configuration example #2 shown in FIG.
[0202] In the following explanation, (F7, F6, F5, F4, F3, F2, F1, F0) =(X7, X6, X5, X4, X3, X2, X1, X0) In this case, the number of measurement target bits AA and the number of reference active bits BB are as follows: AA = FB (when F6=LOW) 128-FB (when F6=HIGH) B.B. = x7·64+x5·32+x4·16+x3·8+x2·4+x1·2+x0 Where: When Xi=HIGH, xi=1 When Xi=LOW, Xi=0 When Xi=HIGH / LOW, xi=1 or 0
[0203] <Time t1> Data F7 is set to HIGH. On the other hand, data F0 to F6 are reset to LOW. As a result, the number of failed bits FB is set as the number of bits to be measured AA, and the number of reference active bits BB becomes 64. Then, after the signal AmpEN changes from LOW to HIGH, the number of bits to be measured AA and the number of bits 64, which is the reference number of active bits BB, are compared by the bit count differential amplifier 355.
[0204] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT6. <6> Specifically, if the number of fail bits FB is 64 or more, the bit data S <6> is set to HIGH, and if the number of fail bits FB is less than 64, the bit data S <6> At this point, the bit data S included in the number of uncorrected fail bits S<6:0> is set to LOW. <6> Only is determined.
[0205] <Time t2> The signal AmpEN is returned from HIGH to LOW. The data F7 is returned from HIGH to LOW. Also, the data F5 is set to HIGH. Furthermore, the data F0 to F4 are maintained at LOW. Therefore, the reference active bit number BB becomes 32. The reference active bit number BB here is referred to as the reference active bit number BB#5.
[0206] Also, bit data S <6> is set as the value of data F6. Specifically, if the number of fail bits FB is 64 or more, data F6 is set to HIGH, and if the number of fail bits FB is less than 64, data F6 is set to LOW.
[0207] Therefore, the number of bits whose logic level is HIGH contained in the data under measurement A<127:0> (the number of bits under measurement AA) is determined as follows.
[0208] In other words, if the number of fail bits FB is 64 or more, the number of measurement bits AA is equal to the number of inverted fail bits FC, which is 128 minus the number of fail bits FB. On the other hand, if the number of fail bits FB is less than 64, the number of measurement bits AA is equal to the number of fail bits (i.e., the number of non-inverted fail bits) FB.
[0209] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H / L, H, L, L, L, L, L) Then, after the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the reference number of active bits BB#5.
[0210] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT5. <5> The latched bit data S <5> is HIGH if the number of measurement target bits AA is equal to or greater than 32, which is the reference active bit number BB#5. On the other hand, the latched bit data S <5> is LOW if the number of bits to be measured AA is less than 32, which is the reference number of active bits BB#5. At this point, the bit data S <5> is confirmed.
[0211] <Time t3> The signal AmpEN is returned from HIGH to LOW, and the data F6 maintains the logic level set at time t2, so that the number of measurement target bits AA is maintained.
[0212] Moreover, the data F7 is maintained at LOW. <5> The value of data F5 is set as the value of data F4. Furthermore, data F4 is set to HIGH. Furthermore, data F0 to F3 are maintained at LOW. Therefore, if the reference active bit number BB here is the reference active bit number BB#4, the reference active bit number BB#4 is S <5> ×32+16.
[0213] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H / L, H / L, H, L, L, L, L) Then, after the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the reference number of active bits BB#4.
[0214] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT4. <4> Here, the bit data S to be latched is <4> is HIGH if the number of measurement target bits AA is equal to or greater than the reference active bit number BB#4. On the other hand, the latched bit data S <4> is LOW if the number of bits to be measured AA is less than the reference number of active bits BB#4. <4> is confirmed.
[0215] <Time t4> The signal AmpEN is returned from HIGH to LOW, and the data F6 maintains the logic level set at time t2, so that the number of measurement target bits AA is maintained.
[0216] Also, data F7 is maintained at LOW. Data F5 maintains the logic level set at time t3. Furthermore, data S <4> The value of is set as the value of data F4. Furthermore, data F3 is set to HIGH. Furthermore, data F0 to F2 are maintained at LOW. Therefore, if the reference active bit number BB here is referred to as the reference active bit number BB#3, the reference active bit number BB#3 is S <5> ×32+S <4> The result is ×16+8.
[0217] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H / L, H / L, H / L, H, L, L, L) Then, after the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the reference number of active bits BB#3.
[0218] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 by the latch signal LAT3. <3> Here, the bit data S to be latched is <3> is HIGH if the number of measurement target bits AA is equal to or greater than the reference active bit number BB#3. On the other hand, the latched bit data S <3> is LOW if the number of bits to be measured AA is less than the reference number of active bits BB#3. <3> is confirmed.
[0219] <Time t5> The signal AmpEN is returned from HIGH to LOW, and the data F6 maintains the logic level set at time t2, so that the number of measurement target bits AA is maintained.
[0220] Also, the data F7 is maintained at LOW. The data F5 and F4 are maintained at the logic levels set at times t3 and t4, respectively. <3> The value of data F3 is set as the value of data F2. Furthermore, data F2 is set to HIGH. Furthermore, data F0 and data F1 are maintained at LOW. Therefore, if the reference active bit number BB here is referred to as the reference active bit number BB#2, the reference active bit number BB#2 is S <5> ×32+S <4> ×16+S <3> It becomes ×8+4.
[0221] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H / L, H / L, H, L, L) After the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the reference number of active bits BB#2.
[0222] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT2. <2> Here, the bit data S to be latched is <2> is HIGH if the number of measurement target bits AA is equal to or greater than the reference active bit number BB#2. On the other hand, the latched bit data S <2> is LOW if the number of bits to be measured AA is less than the reference number of active bits BB#2. <2> is confirmed.
[0223] <Time t6> The signal AmpEN is returned from HIGH to LOW, and the data F6 maintains the logic level set at time t2, so that the number of measurement target bits AA is maintained.
[0224] Also, the data F7 is maintained at LOW. The data F5, F4, and F3 maintain the logic levels set at the times t3, t4, and t5, respectively. Furthermore, the bit data S <2> The value of is set as the value of data F2. Furthermore, data F1 is set to HIGH. Furthermore, data F0 is maintained at LOW. Therefore, if the reference active bit number BB here is referred to as the reference active bit number BB#1, the reference active bit number BB#1 is S <5> ×32+S <4> ×16+S <3> x8+S <2> The result is ×4+2.
[0225] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H / L, H / L, H / L, H / L, H / L, H, L) After the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the reference number of active bits BB#1.
[0226] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT1. <1> Here, the bit data S to be latched is <1> is HIGH if the number of measurement target bits AA is equal to or greater than the reference active bit number BB#1. On the other hand, the latched bit data S <1> is LOW if the number of bits to be measured AA is less than the reference number of active bits BB#1. <1> is confirmed.
[0227] <Time t7> The signal AmpEN is returned from HIGH to LOW, and the data F6 maintains the logic level set at time t2, so that the number of measurement target bits AA is maintained.
[0228] Also, the data F7 is maintained at LOW. The data F5, F4, F3, and F2 maintain the logic levels set at the times t3, t4, t5, and t6, respectively. <1> The value of is set as the value of data F1. Furthermore, data F0 is set to HIGH. Therefore, if the reference active bit number BB here is the reference active bit number BB#0, the reference active bit number BB#0 is S <5> ×32+S <4> ×16+S <3> x8+S <2> ×4+S <1> It becomes ×2+1.
[0229] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H / L, H / L, H / L, H / L, H / L, H / L, H) After the signal AmpEN changes from LOW to HIGH, the bit count differential amplifier 355 compares the number of bits to be measured AA with the number of reference active bits BB#0.
[0230] The large / small data OUT from the bit count differential amplifier 355 indicating the comparison result is input to the latch circuit 357 as bit data S by the latch signal LAT0. <0> Here, the bit data S to be latched is <0> is HIGH if the number of measurement target bits AA is equal to or greater than the number of reference active bits BB#0. On the other hand, the latched bit data S <0> is LOW if the number of bits to be measured AA is less than the number of reference active bits BB#0. At this point, the data S <0> By the way, if multiple bit data S <6> ~S <1> is determined, the number of uncorrected fail bits S<6:0> is determined at this point.
[0231] <Time t8> Referring also to FIG. 13, in the example shown in FIG. 14, just before time t8, bit data S <0> Also, the bit data S <6> was already determined just before time t2. Therefore, the bit data S <0> The two bit data S are output from the exclusive OR gate 395 corresponding to <0> and S <6> Intermediate bit data Sd showing the exclusive OR of <0> The fail bit data PF<127:0> is established before time t1. Then, the control data OEMatch is established at the output section of the 129-input exclusive OR gate 397 immediately after time t8.
[0232] <Time t9> Also, the bit data S included in the number of fail bits before correction S<6:0> <5> ~S <1> are respectively determined immediately before times t3 to t7. Therefore, at time t9, the latch circuit 399 latches the post-correction fail bit number SS<7:0>, which has already been determined at the output section of the plus-1 adder 391 that operates according to these determined signals, by the latch signal LATC, and outputs it as the determined fail bit number C<7:0>.
[0233] <Time t10> Thereafter, when the accumulating circuit, which is composed of the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulating unit 401 shown in FIG. 15, is driven by the control signal CUM, the accumulated value CC of the number of fail bits is calculated. <n-1:0>The cumulative total CC<7:0> is updated by adding the confirmed fail bit count C<7:0> currently being measured. If the operation shown in FIG. 14 is one cycle, the confirmed fail bit count C<7:0> is calculated for each cycle. Then, each time one cycle progresses, the cumulative total CC<7:0> is updated. <n-1:0>is updated. Also, the latch circuit 417 is reset by the control signal CBC. Therefore, the cumulative total CC <n-1:0>indicates the accumulated value of the number of confirmed fail bits C<7:0> for the number of periods from when the control signal CBC was generated until the present.
[0234] [5.2 Explanation of errors in tree search using bit-counting differential amplifiers] When comparing the data A<127:0> to be measured with the reference data B<127:0> using the bit count differential amplifier 355, the number of reference active bits is updated successively. However, when the number of bits to be measured and the number of reference active bits are the same, an error may occur in the logical level of the large / small data OUT indicating the comparison result.
[0235] For example, if the number of fail bits is 24, the following should be true: S <6> =LOW S <5> =LOW S <4> =HIGH S <3> =HIGH S <2> =LOW S <1> =LOW S <0> =LOW Here, the bit data S <3> When calculating, the number of measurement bits AA, 24, is compared with the number of reference active bits BB, 24. <3> The value of should be HIGH, but it may become LOW due to manufacturing errors in semiconductor characteristics or noise. In other words, during the tree search, <3> =HIGH, but the bit data S <3> =LOW. In such a case, S <6> =LOW S <5> =LOW S <4> =HIGH S <3> =LOW S <2> =HIGH S <1> =HIGH S <0> =HIGH In such a case, the number of fail bits indicated by the number of fail bits before correction S<6:0> will be an incorrect value of 23, not 24.
[0236] As described above, such an error may occur when the number of bits to be measured is compared with the same number of reference active bits. Therefore, in general, an error may occur when the number of bits to be measured AA is compared with a reference number of active bits BB having the same value as the number of bits to be measured AA (when AA=BB). An error may not occur when the number of bits to be measured AA is compared with a reference number of active bits BB having a different value (when AA≠BB).
[0237] Here, when the number of bits to be measured AA is equal to the number of reference active bits BB, there are two errors: the number of bits to be measured AA is mistakenly determined to be BB+1, and the number of bits to be measured AA is mistakenly determined to be BB-1. The bit counting unit 301 is designed so that the latter error does not occur.
[0238] Therefore, an error in the pre-correction fail bit number S<6:0> is detected by detecting a mismatch between the even / odd of the fail bit number and the pre-correction fail bit number S<6:0>. If an error is detected in the pre-correction fail bit number S<6:0>, it is sufficient to simply add the value 1 to the pre-correction fail bit number S<6:0> to obtain the confirmed fail bit number C<7:0>.
[0239] However, the above is limited to the case where the number of non-inverted fail bits is set as the number of bits to be measured in the bit comparing section 341. When the number of inverted fail bits is set as the number of bits to be measured in the bit comparing section 341, the bit correcting section 343 obtains the intermediate number of fail bits Sd<6:0> by logically inverting only S<5:0> included in the number of pre-correction fail bits S<6:0> input from the bit comparing section 341. Since this is an operation to obtain 1'C of the number of pre-correction fail bits S<6:0>, the operation result is less than that of the operation to obtain 2'C of the number of pre-correction fail bits S<6:0> by 1.
[0240] In this case, unlike when the number of non-inverted fail bits is set as the number of bits to be measured in the bit comparing section 341, the intermediate fail bit number Sd<6:0> indicates a number obtained by subtracting 1 from the number of fail bits when there is no error, and indicates the same number as the number of fail bits when there is an error. Therefore, when an error occurs in the bit comparing section 341, the even / odd status of the number of fail bits matches the even / odd status of the intermediate fail bit number Sd<6:0>, and when no error occurs in the bit comparing section 341, the even / odd status of the number of fail bits does not match the even / odd status of the intermediate fail bit number Sd<6:0>.
[0241] Therefore, even when the number of inverted fail bits is the measurement target bit, the same processing as when the number of fail bits is the measurement target bit can be performed. In other words, if the even / odd of the number of fail bits and the number of fail bits before correction S<6:0> match, the number of intermediate fail bits Sd<6:0> is simply extended by bits to become the number of fail bits after correction SS<7:0>. If the even / odd of the number of fail bits and the number of fail bits before correction S<6:0> do not match, 1 is added to the number of intermediate fail bits Sd<6:0> and the number of fail bits after correction SS<7:0> is obtained by bit extension.
[0242] The bit corrector 343 receives the number of fail bits before correction S<6:0> from the bit comparator 341 .
[0243] Bit data S, which is the MSB of the number of failed bits before correction S<6:0> <6> is LOW, the number FB of fail bits included in the fail bit data PF<127:0> is less than 64, and the number of uncorrected fail bits S<6:0> represents the number FB of non-inverted fail bits in binary.
[0244] On the other hand, bit data S <6> is HIGH, if the number FB of fail bits included in the fail bit data PF<127:0> is 64 or more, the number of fail bits before correction S<6:0> represents the number of inverted fail bits FC in binary.
[0245] Furthermore, the number of uncorrected fail bits S<6:0> may contain an error.
[0246] The bit correction unit 343 operates in four different ways depending on these combinations.
[0247] [5.3 Explanation of operation #1 related to bit correction unit] Operation #1 is performed when the number FB of fail bits included in the fail bit data PF<127:0> is less than 64 and there is no error in the number S<6:0> of uncorrected fail bits.
[0248] If the number of fail bits FB included in the fail bit data PF<127:0> is less than 64, the bit data S <6> is LOW. Also, the number of fail bits before correction S<6:0> represents the number of fail bits FB as a 7-bit binary number.
[0249] Therefore, the pre-correction fail bit number S<6:0> is directly supplied to the plus-1 adder 391 as the intermediate fail bit number Sd<6:0>.
[0250] The plus-1 adder 391 bit-extends the intermediate fail bit number Sd<6:0> and outputs it as the post-correction fail bit number SS<7:0>.
[0251] In this case, the six exclusive OR gates 395 have a LOW level bit data S <6> Since the LOW level S is supplied, the six exclusive OR gates 395 supply S<5:0> to the plus-1 adder 391 as Sd<5:0>. <6> Sd <6> The result is supplied to the plus-1 adder 391 as the positive input.
[0252] Also, when the number of fail bits is even, the data Sd <0> When the number of fail bits is odd, the data Sd <0> is HIGH. Therefore, in either case, the 129-input exclusive OR gate 397 supplies the control data OEMatch whose value is LOW to the plus-1 adder 391, so that the plus-1 adder 391 does not perform addition. In other words, as described above, the intermediate fail bit number Sd<6:0> is simply bit-extended and output as the post-correction fail bit number SS<7:0>.
[0253] [5.4 Explanation of operation #2 related to bit correction unit] Operation #2 is performed when the number FB of fail bits included in the fail bit data PF<127:0> is less than 64 and the number S<6:0> of uncorrected fail bits contains an error.
[0254] If the number of fail bits FB included in the fail bit data PF<127:0> is less than 64, the bit data S <6> is LOW. Also, the number of fail bits before correction S<6:0> represents the number of fail bits FB as a 7-bit binary number.
[0255] Therefore, the pre-correction fail bit number S<6:0> is directly supplied to the plus-1 adder 391 as the intermediate fail bit number Sd<6:0>.
[0256] Therefore, the plus-1 adder 391 adds 1 to the intermediate fail bit number Sd<6:0>, and performs bit expansion to output the result as the post-correction fail bit number SS<7:0>.
[0257] In this case, the six exclusive OR gates 395 have a LOW level bit data S <6> Since the LOW level S is supplied, the six exclusive OR gates 395 supply S<5:0> to the plus-1 adder 391 as Sd<5:0>. <6> Sd <6> The result is supplied to the plus-1 adder 391 as the positive input.
[0258] Also, when the number of fail bits is even, the data Sd <0> When the data Sd goes from LOW to HIGH and the number of fail bits is odd, <0> has changed from HIGH to LOW. Therefore, in either case, the 129-input exclusive OR gate 397 supplies the control data OEMatch whose value is HIGH to the plus-1 adder 391, which causes the plus-1 adder 391 to perform addition. That is, as described above, 1 is added to the intermediate fail bit number Sd<6:0>, and then a LOW-level bit is added to the upper part to output it as the post-correction fail bit number SS<7:0>.
[0259] [5.5 Explanation of operation #3 related to bit correction unit] Operation #3 is performed when the number FB of fail bits included in the fail bit data PF<127:0> is 64 or more and there is no error in the number S<6:0> of fail bits before correction.
[0260] If the number of fail bits FB included in the fail bit data PF<127:0> is 64 or more, then the bit data S <6> is HIGH. The number of uncorrected fail bits S<6:0> represents the number of inverted fail bits FC in 7-bit binary notation.
[0261] Therefore, the pre-correction fail bit number S<6:0>, which indicates the number of inverted fail bits, is converted to an intermediate fail bit number Sd<6:0>, which indicates the number obtained by subtracting 1 from the number of non-inverted fail bits, and then supplied to the plus-1 adder 391 .
[0262] Moreover, the plus-1 adder 391 adds 1 to the intermediate fail bit number Sd<6:0>, and performs bit expansion to output the result as the post-correction fail bit number SS<7:0>.
[0263] In this case, the six exclusive OR gates 395 have a HIGH level bit data S on one input terminal. <6> Since the HIGH level S is supplied, six exclusive OR gates 395 logically invert S<5:0> and supply it to the plus-1 adder 391 as Sd<5:0>. <6> Sd <6> The result is supplied to a plus-1 adder 391 as Sd<6:0>. Here, the number obtained by subtracting 1 from the number of non-inverted fail bits based on the number of pre-correction fail bits S<6:0> representing the number of inverted fail bits can be obtained as Sd<6:0>.
[0264] Also, when the number of fail bits is even, the data Sd <0> When is HIGH and the number of fail bits is odd, data Sd <0> is LOW. Therefore, in either case, the 129-input exclusive OR gate 397 supplies the control data OEMatch whose value is HIGH to the plus-1 adder 391, which causes the plus-1 adder 391 to perform addition. That is, as described above, 1 is added to the intermediate fail bit number Sd<6:0>, and the result is bit-expanded and output as the post-correction fail bit number SS<7:0>.
[0265] [5.6 Explanation of operation #4 related to bit correction unit] Operation #4 is performed when the number FB of fail bits included in the fail bit data PF<127:0> is 64 or more and there is an error in the number S<6:0> of uncorrected fail bits.
[0266] If the number of fail bits FB included in the fail bit data PF<127:0> is 64 or more, then the bit data S <6> is HIGH. The number of uncorrected fail bits S<6:0> represents the number of inverted fail bits FC in 7-bit binary notation.
[0267] Therefore, the pre-correction fail bit number S<6:0>, which indicates the number of inverted fail bits, is converted to an intermediate fail bit number Sd<6:0>, which indicates the number obtained by subtracting 1 from the number of non-inverted fail bits, and then supplied to the plus-1 adder 391 .
[0268] Moreover, the plus-1 adder 391 does not add 1 to the intermediate fail bit number Sd<6:0>, but extends it by a bit and outputs it as the post-correction fail bit number SS<7:0>.
[0269] In this case, the six exclusive OR gates 395 have a HIGH level bit data S on one input terminal. <6> Since the HIGH level S is supplied, six exclusive OR gates 395 logically invert S<5:0> and supply it to the plus-1 adder 391 as Sd<5:0>. <6> Sd <6> The result is supplied to a plus-1 adder 391 as Sd<6:0>. Here, the number obtained by subtracting 1 from the number of non-inverted fail bits based on the number of pre-correction fail bits S<6:0> representing the number of inverted fail bits can be obtained as Sd<6:0>.
[0270] Also, when the number of fail bits is even, the data Sd <0> When the number of fail bits is odd, the data Sd <0> has changed from LOW to HIGH. Therefore, in either case, the 129-input exclusive OR gate 397 supplies the control data OEMatch whose value is LOW to the plus-1 adder 391, which causes the plus-1 adder 391 to not perform addition. In other words, as described above, the intermediate fail bit number Sd<6:0> is not added by 1, but is expanded by bits and output as the post-correction fail bit number SS<7:0>.
[0271] [5.7 Specific operation examples] [Example 1: When the number of fail bits is 88 - Part 1] To explain briefly, at time t1, it is detected that the number of fail bits, 88, included in the fail bit data PF<127:0> is equal to or greater than the initial reference active bit number, 64. Therefore, all bits of the fail bit data PF<127:0> are inverted and supplied as measurement target data A<127:0> to the bit count differential amplifier 355. Here, the number of measurement target bits AA included in the measurement target data A<127:0> is 128-88=40.
[0272] From time t2 to time t7, the number of uncorrected failed bits S<6:0>, which is a binary number indicating the number AA of measurement target bits included in the measurement target data A<127:0>, is found according to a binary search algorithm.
[0273] At time t8, an intermediate fail bit number Sd<6:0> is obtained, which indicates 87, by subtracting the fail bit number 40 indicated by the uncorrected fail bit number S<6:0> from 127. 87 is a value obtained by subtracting 1 from 88, which is the number of correct fail bits.
[0274] Also, at time t8, the even / odd of the actual fail bit number 88 does not match the even / odd of the fail bit number 87 indicated by the intermediate fail bit number Sd<6:0>, so 1 is added to the fail bit number 87 indicated by the intermediate fail bit number Sd<6:0> to obtain the confirmed fail bit number C<7:0> in binary, which indicates the correct fail bit number 88.
[0275] Next, the operation at each time will be described in order. <Time t1> (F7, F6, F5, F4, F3, F2, F1, F0) =(H, L, L, L, L, L, L, L) The number of fail bits (88) included in the measurement target data A<127:0>, which is the same as the fail bit data PF<127:0>, is compared with the number of reference active bits (64) included in the reference data B<127:0>. In this case, the bit data S <6> becomes HIGH.
[0276] <Time t2> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, L, L, L) The number of fail bits 40 (=128-88) included in the measurement target data A<127:0> is compared with the number of reference active bits 32 included in the reference data B<127:0>. In this case, the bit data S <5> becomes HIGH.
[0277] <Time t3> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, H, L, L, L, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 48 contained in the reference data B<127:0>. In this case, the bit data S <4> becomes LOW.
[0278] <Time t4> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, H, L, L, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 40 contained in the reference data B<127:0>. In this case, the bit data S <3> becomes HIGH.
[0279] <Time t5> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, H, H, L, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 44 contained in the reference data B<127:0>. In this case, the bit data S <2> becomes LOW.
[0280] <Time t6> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, H, L, H, L) The number of fail bits 40 included in the measurement target data A<127:0> is compared with the number of reference active bits 42 included in the reference data B<127:0>. In this case, the bit data S <1> becomes LOW.
[0281] <Time t7> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, H, L, L, H) The number of fail bits 40 included in the measurement target data A<127:0> is compared with the number of reference active bits 41 included in the reference data B<127:0>. In this case, the bit data S <0> becomes LOW.
[0282] At this point, the comparison result is multiple bit data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the above, the logic levels of HIGH, HIGH, LOW, HIGH, LOW, LOW and LOW are determined in the latch circuit 357. Here, the number of uncorrected fail bits S<6:0> indicates 40.
[0283] <Time t8> Since the number of fail bits in the fail bit data PF<127:0>, 88, is equal to or greater than the number of initial reference active bits, 64, the comparison result at time t1 is the bit data S <6> Therefore, the intermediate number of fail bits Sd<6:0> is obtained by inverting each bit of the number of fail bits before correction S<6:0>. <6> ~S <0> indicates 40, so the intermediate fail bit number Sd<7:0> is set to indicate 87, which is obtained by subtracting 40 from 127, which is one less than 128.
[0284] Since the actual number of fail bits 88 is an even number and the number of intermediate fail bits 87 indicated by the number of intermediate fail bits Sd<6:0> is an odd number, the control data OEMatch indicates that the even / odd of the two does not match.
[0285] Therefore, the plus-1 adder 391 outputs the post-correction fail bit number SS<7:0> indicating the post-correction fail bit number 88 obtained by adding 1 to the pre-correction fail bit number 87 indicated by the intermediate fail bit number Sd<6:0>.
[0286] Thereafter, the latch circuit 399 (see FIG. 13) latches the post-correction fail bit number SS<7:0> in response to the latch signal LATC, thereby determining the determined fail bit number C<7:0> indicating 88 fail bits.
[0287] Then, the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulator 401 calculate the cumulative total of the number of fail bits CC by the control signal CUM. <n-1:0>The confirmed fail bit number C<7:0>, which indicates the number of fail bits (88) of the data currently being measured for fail bits, is added to this.
[0288] [Example 2: When the number of fail bits is 88 - Part 2] To explain briefly, at time t1, it is detected that the number of fail bits, 88, included in the fail bit data PF<127:0> is equal to or greater than the initial reference active bit number, 64. Therefore, all bits of the fail bit data PF<127:0> are inverted and supplied as measurement target data A<127:0> to the bit count differential amplifier 355. Here, the number of measurement target bits AA included in the measurement target data A<127:0> is 128-88=40.
[0289] From time t2 to time t7, the number of uncorrected fail bits S<6:0>, which is a binary number indicating the number AA of measurement target bits contained in the measurement target data A<127:0>, is obtained according to a binary search algorithm. Here, the number indicated by the number of uncorrected fail bits S<6:0> obtained by the processing from time t2 to time t7 should be 40, but due to the influence of manufacturing errors and noise in the characteristics of semiconductors, this value becomes 39.
[0290] At time t8, the number of fail bits 39 indicated by the number of fail bits before correction S<6:0> is subtracted from 127 to obtain the intermediate number of fail bits Sd<6:0> indicating 88. 88 is the number of correct fail bits.
[0291] Furthermore, at time t8, the even / odd of the actual fail bit number 88 matches the even / odd of the fail bit number 88 indicated by the intermediate fail bit number Sd<6:0>, so a confirmed fail bit number C<7:0> in binary is obtained which directly indicates the pre-correction fail bit number 88 indicated by the intermediate fail bit number Sd<6:0>.
[0292] Next, the operation at each time will be described in order. <Time t1> (F7, F6, F5, F4, F3, F2, F1, F0) =(H, L, L, L, L, L, L, L) The number of fail bits (88) included in the measurement target data A<127:0>, which is the same as the fail bit data PF<127:0>, is compared with the number of reference active bits (64) included in the reference data B<127:0>. In this case, the bit data S <6> becomes HIGH.
[0293] <Time t2> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, L, L, L) The number of fail bits 40 (=128-88) included in the measurement target data A<127:0> is compared with the number of reference active bits 32 included in the reference data B<127:0>. In this case, the bit data S <5> becomes HIGH.
[0294] <Time t3> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, H, L, L, L, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 48 contained in the reference data B<127:0>. In this case, the bit data S <4> becomes LOW.
[0295] <Time t4> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, H, L, L, L) The number of fail bits 40 included in the measurement target data A<127:0> is compared with the number of reference active bits 40 included in the reference data B<127:0>. Unlike the first embodiment, in this case, due to the influence of manufacturing errors and noise of the semiconductor characteristics, the bit data S <3> becomes LOW.
[0296] <Time t5> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, H, L, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 36 contained in the reference data B<127:0>. In this case, the bit data S <2> becomes HIGH.
[0297] <Time t6> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, H, H, L) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 38 contained in the reference data B<127:0>. In this case, the bit data S <1> becomes HIGH.
[0298] <Time t7> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, H, H, H) The number of fail bits 40 contained in the measurement target data A<127:0> is compared with the number of reference active bits 39 contained in the reference data B<127:0>. In this case, the bit data S <0> becomes HIGH.
[0299] At this point, the comparison results are multiple S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the above, the logic levels of HIGH, HIGH, LOW, LOW, HIGH, HIGH and HIGH are determined in the latch circuit 357. Here, the number of uncorrected fail bits S<6:0> indicates 39.
[0300] <Time t8> Since the number of fail bits in the fail bit data PF<127:0>, 88, is equal to or greater than the number of initial reference active bits, 64, the comparison result at time t1 is the bit data S <6> Therefore, the intermediate number of fail bits Sd<6:0> is obtained by inverting each bit of the number of fail bits before correction S<6:0>. <6> ~S <0> indicates 39, so the intermediate fail bit number Sd<7:0> is set to indicate 88, which is obtained by subtracting 39 from 127, which is one less than 128.
[0301] Since the actual number of fail bits 88 is an even number, and the number of intermediate fail bits 88 indicated by the number of intermediate fail bits Sd<6:0> is also an even number, the control data OEMatch indicates that the even / odd of the two numbers matches.
[0302] Therefore, the plus-1 adder 391 outputs the number of fail bits after correction SS<7:0> which indicates the number of fail bits before correction 88 indicated by the intermediate number of fail bits Sd<6:0> as the number of fail bits after correction 88 as it is.
[0303] Thereafter, the latch circuit 399 (see FIG. 13) latches the post-correction fail bit number SS<7:0> in response to the latch signal LATC, thereby determining the determined fail bit number C<7:0> indicating 88 fail bits.
[0304] Then, the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulator 401 calculate the cumulative total of the number of fail bits CC by the control signal CUM. <n-1:0>The confirmed fail bit number C<7:0>, which indicates the number of fail bits (88) of the data currently being measured for fail bits, is added to this.
[0305] [Example 3: When the number of fail bits is 24 - Part 1] To explain briefly, at time t1, it is detected that the number of fail bits in the fail bit data PF<127:0>, which is 24, is less than the initial reference number of active bits, which is 64. Therefore, unlike operation examples 1 and 2, from time t2 to time t7, the fail bit data PF<127:0> is supplied as is to the bit count differential amplifier 355 as measurement target data A<127:0>.
[0306] From time t2 to time t7, the number of uncorrected failed bits S<6:0>, which is a binary number indicating the number AA of measurement target bits included in the measurement target data A<127:0>, is found according to a binary search algorithm.
[0307] At time t8, an intermediate number of failed bits Sd<6:0> is obtained which directly indicates the number of failed bits, 24, indicated by the number of failed bits before correction S<6:0>.
[0308] Furthermore, at time t8, the even / odd of the actual fail bit number 24 matches the even / odd of the fail bit number 24 indicated by the intermediate fail bit number Sd<6:0>, so a confirmed fail bit number C<7:0> in binary is obtained which directly indicates the pre-correction fail bit number 24 indicated by the intermediate fail bit number Sd<6:0>.
[0309] Next, the operation at each time will be described in order. <Time t1>
[0310] (F7, F6, F5, F4, F3, F2, F1, F0) =(H, L, L, L, L, L, L, L) The number of non-inverted fail bits (24) contained in the measurement target data A<127:0>, which is the same as the fail bit data PF<127:0>, is compared with the number of reference active bits (64) contained in the reference data B<127:0>. In this case, the bit data S <6> becomes LOW.
[0311] <Time t2> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, H, L, L, L, L, L) The number of fail bits, 24, contained in the measurement target data A<127:0> is compared with the number of reference active bits, 32, contained in the reference data B<127:0>. In this case, the bit data S <5> becomes LOW.
[0312] <Time t3> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, L, L, L, L) The number of fail bits, 24, contained in the measurement target data A<127:0> is compared with the number of reference active bits, 16, contained in the reference data B<127:0>. In this case, the bit data S <4> becomes HIGH.
[0313] <Time t4> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, H, L, L, L) The number of fail bits 24 contained in the measurement target data A<127:0> is compared with the number of reference active bits 24 contained in the reference data B<127:0>. In this case, the bit data S <3> becomes HIGH.
[0314] <Time t5> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, H, H, L, L) The number of fail bits 24 contained in the measurement target data A<127:0> is compared with the number of reference active bits 28 contained in the reference data B<127:0>. In this case, the bit data S <2> becomes LOW.
[0315] <Time t6> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, H, L, H, L) The number of fail bits 24 contained in the measurement target data A<127:0> is compared with the number of reference active bits 26 contained in the reference data B<127:0>. In this case, the bit data S <1> becomes LOW.
[0316] <Time t7> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, H, L, L, H) The number of fail bits 24 contained in the measurement target data A<127:0> is compared with the number of reference active bits 25 contained in the reference data B<127:0>. In this case, the bit data S <0> becomes LOW.
[0317] At this point, the comparison result is multiple bit data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the above, the logic levels of LOW, LOW, HIGH, HIGH, LOW, LOW and LOW are determined in the latch circuit 357. Here, the number of uncorrected fail bits S<6:0> indicates 24.
[0318] <Time t8> Since the number of fail bits in the fail bit data PF<127:0>, 24, is less than the number of initial reference active bits, 64, the comparison result S at time t1 is the bit data S <6> Therefore, the number of uncorrected fail bits S<6:0> is set as the number of intermediate fail bits Sd<6:0>. <6> ~S <0> indicates 24, so 24 is set as the intermediate fail bit number Sd<7:0>.
[0319] The actual number of fail bits, 24, is an even number, and the number of intermediate fail bits, 24, indicated by the number of intermediate fail bits Sd<6:0> is also an even number, so the control data OEMatch indicates that the even / odd of the two numbers matches.
[0320] Therefore, the plus-1 adder 391 outputs the number of fail bits after correction SS<7:0> which indicates the number of fail bits before correction (24) indicated by the intermediate number of fail bits Sd<6:0> as the number of fail bits after correction (24).
[0321] Thereafter, the latch circuit 399 (see FIG. 13) latches the post-correction fail bit number SS<7:0> in response to the latch signal LATC, thereby determining the determined fail bit number C<7:0> indicating 24 fail bits.
[0322] Then, the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulator 401 calculate the cumulative total of the number of fail bits CC by the control signal CUM. <n-1:0>The confirmed fail bit number C<7:0>, which indicates the number of fail bits (24) of the data currently being measured for fail bits, is added to this.
[0323] [Example 4: When the number of fail bits is 24 - Part 2] To explain briefly, at time t1, it is detected that the number of fail bits in the fail bit data PF<127:0>, which is 24, is less than the initial reference number of active bits, which is 64. Therefore, unlike operation examples 1 and 2, from time t2 to time t7, the fail bit data PF<127:0> is supplied as is to the bit count differential amplifier 355 as measurement target data A<127:0>.
[0324] From time t2 to time t7, the number of uncorrected fail bits <6:0> in binary form corresponding to the measurement target data A<127:0> is found according to a binary search algorithm. Here, the number corresponding to the number of uncorrected fail bits S<6:0> found by the process from time t2 to time t7 should be 24, but due to the effects of manufacturing errors and noise in the characteristics of semiconductors, this value becomes 23.
[0325] At time t8, an intermediate number of failed bits Sd<6:0> is obtained which directly indicates the number of failed bits 23 indicated by the number of failed bits before correction S<6:0>.
[0326] Also, at time t8, the even / odd of the actual fail bit number 24 does not match the even / odd of the fail bit number 23 indicated by the intermediate fail bit number Sd<6:0>, so 1 is added to 23 indicated by the intermediate fail bit number Sd<6:0> to obtain the confirmed fail bit number C<7:0> in binary indicating the fail bit number 24.
[0327] Next, the operation at each time will be described in order. <Time t1> (F7, F6, F5, F4, F3, F2, F1, F0) =(H, L, L, L, L, L, L, L) The number of non-inverted fail bits (24) contained in the measurement target data A<127:0>, which is the same as the fail bit data PF<127:0>, is compared with the number of reference active bits (64) contained in the reference data B<127:0>. In this case, the bit data S <6> becomes LOW.
[0328] <Time t2> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, H, L, L, L, L, L) The number of fail bits, 24, contained in the measurement target data A<127:0> is compared with the number of reference active bits, 32, contained in the reference data B<127:0>. In this case, the bit data S <5> becomes LOW.
[0329] <Time t3> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, L, L, L, L) The number of fail bits, 24, contained in the measurement target data A<127:0> is compared with the number of reference active bits, 16, contained in the reference data B<127:0>. In this case, the bit data S <4> becomes HIGH.
[0330] <Time t4> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, H, L, L, L) The number of fail bits 24 included in the measurement target data A<127:0> is compared with the number of reference active bits 24 included in the reference data B<127:0>. In this case, unlike the third embodiment, the bit data S <3> becomes LOW.
[0331] <Time t5> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, L, H, L, L) The number of fail bits included in the measurement target data A<127:0>, 24, is compared with the number of reference active bits included in the reference data B<127:0>, 20. In this case, the bit data S <2> becomes HIGH.
[0332] <Time t6> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, L, H, H, L) The number of fail bits 24 included in the measurement target data A<127:0> is compared with the number of reference active bits 22 included in the reference data B<127:0>. In this case, the bit data S <1> becomes HIGH.
[0333] <Time t7> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, H, L, H, H, H) The number of fail bits 24 included in the measurement target data A<127:0> is compared with the number of reference active bits 23 included in the reference data B<127:0>. In this case, the bit data S <0> becomes HIGH.
[0334] At this point, the comparison result is multiple bit data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the above, the logic levels of LOW, LOW, HIGH, LOW, HIGH, HIGH and HIGH are determined in the latch circuit 357. Here, the number of uncorrected fail bits S<6:0> indicates 23.
[0335] <Time t8> Since the number of fail bits in the fail bit data PF<127:0>, 24, is less than the first reference active bit number, 64, the comparison result bit data S <6> Therefore, the number of uncorrected fail bits S<6:0> is set as the number of intermediate fail bits Sd<6:0>. <6> ~S <0> indicates 23, so 23 is set as the intermediate fail bit number Sd<7:0>.
[0336] Since the actual number of fail bits, 24, is an even number, and the number of intermediate fail bits, 23, indicated by the number of intermediate fail bits Sd<6:0> is an odd number, the control data OEMatch indicates that the even / odd of the two does not match.
[0337] Therefore, the plus-1 adder 391 outputs the post-correction fail bit number SS<7:0> indicating the post-correction fail bit number 24 obtained by adding 1 to the pre-correction fail bit number 23 indicated by the intermediate fail bit number Sd<6:0>.
[0338] Thereafter, the latch circuit 399 (see FIG. 13) latches the post-correction fail bit number SS<7:0> in response to the latch signal LATC, thereby determining the determined fail bit number C<7:0> indicating 24 fail bits.
[0339] Then, the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulator 401 calculate the cumulative total of the number of fail bits CC by the control signal CUM. <n-1:0>The confirmed fail bit number C<7:0>, which indicates the number of fail bits (24) of the data currently being measured for fail bits, is added to this.
[0340] [Example 5: When the number of fail bits is 128] To explain briefly, at time t1, it is detected that the number of fail bits, 128, included in the fail bit data PF<127:0> is equal to or greater than the initial reference active bit number, 64. Therefore, all bits of the fail bit data PF<127:0> are inverted and supplied as measurement target data A<127:0> to the bit count differential amplifier 355. Here, the number of measurement target bits AA included in the measurement target data A<127:0> is 128-128=0.
[0341] From time t2 to time t7, the number of uncorrected failed bits S<6:0>, which is a binary number indicating the number AA of measurement target bits included in the measurement target data A<127:0>, is found according to a binary search algorithm.
[0342] At time t8, the number of fail bits, zero, indicated by the number of fail bits before correction S<6:0> is subtracted from 127 to obtain an intermediate number of fail bits Sd<6:0> indicating 127.
[0343] Furthermore, at time t8, the even / odd of the actual fail bit number 128 does not match the even / odd of the fail bit number 127 indicated by the intermediate fail bit number Sd<6:0>, so 1 is added to the fail bit number 127 indicated by the intermediate fail bit number Sd<6:0> to obtain the confirmed fail bit number C<7:0> in binary indicating the correct fail bit number 128.
[0344] Next, the operation at each time will be described in order. <Time t1> (F7, F6, F5, F4, F3, F2, F1, F0) =(H, L, L, L, L, L, L, L) The number of fail bits, 128, contained in the measurement target data A<127:0>, which is the same as the fail bit data PF<127:0>, is compared with the number of reference active bits, 64, contained in the reference data B<127:0>. In this case, the bit data S <6> becomes HIGH.
[0345] <Time t2> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, H, L, L, L, L, L) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 32. In this case, the bit data S <5> becomes LOW.
[0346] <Time t3> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, L, H, L, L, L, L) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 16. In this case, the bit data S <4> becomes LOW.
[0347] <Time t4> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, L, L, H, L, L, L) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 8. In this case, the bit data S <3> becomes LOW.
[0348] <Time t5> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, L, L, L, H, L, L) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 4. In this case, the bit data S <2> becomes LOW.
[0349] <Time t6> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, L, L, L, L, H, L) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 2. In this case, the bit data S <1> becomes LOW.
[0350] <Time t7> (F7, F6, F5, F4, F3, F2, F1, F0) =(L, H, L, L, L, L, L, H) The number of fail bits included in the measurement target data A<127:0> is compared with the number of reference active bits included in the reference data B<127:0>, which is 1. In this case, the bit data S <0> becomes LOW.
[0351] At this point, the comparison result is multiple bit data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the above, the logic levels of HIGH, LOW, LOW, LOW, LOW, LOW, and LOW are determined in the latch circuit 357. Here, the number of uncorrected fail bits S<6:0> indicates 0.
[0352] <Time t8> Since the number of fail bits in the fail bit data PF<127:0>, 128, is equal to or greater than the number of initial reference active bits, 64, the comparison result at time t1 is the bit data S <6> Therefore, the intermediate number of fail bits Sd<6:0> is obtained by inverting each bit of the number of fail bits before correction S<5:0>. <6> ~S <0> indicates 0, so the intermediate fail bit number Sd<7:0> is made to indicate 127, which is obtained by subtracting 0 from 127, which is one less than 128.
[0353] The actual number of fail bits, 128, is an even number, and the number of intermediate fail bits, 127, indicated by the number of intermediate fail bits Sd<6:0> is an odd number, so the control data OEMatch indicates that the even / odd of the two does not match.
[0354] Therefore, the plus-1 adder 391 outputs the post-correction fail bit number SS<7:0> indicating the post-correction fail bit number 128 obtained by adding 1 to the pre-correction fail bit number 127 indicated by the intermediate fail bit number Sd<6:0>.
[0355] Thereafter, the latch circuit 399 (see FIG. 13) latches the post-correction fail bit number SS<7:0> in response to the latch signal LATC, thereby determining the determined fail bit number C<7:0> indicating 128 fail bits.
[0356] Then, the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulator 401 calculate the cumulative total of the number of fail bits CC by the control signal CUM. <n-1:0>The confirmed fail bit number C<7:0>, which indicates 128, the number of fail bits in the data currently being measured for fail bits, is added to this.
[0357] [5.8 Flow of bit counting operation using bit count differential amplifier in bit compression mode] In the bit compression mode, some calculation processes are omitted. In case 1, instead of obtaining the number of fail bits, data indicating whether or not fail bits have occurred is obtained. In case 2, instead of obtaining the number of fail bits, data indicating whether or not fail bits have occurred and, if fail bits have occurred, whether the number of fail bits is an even number or an odd number is obtained. <Time t1> Set all data from F7 to F0 to LOW. In other words, (F7, F6, F5, F4, F3, F2, F1, F0) =(L, L, L, L, L, L, L, L) to. As a result, the fail bit data PF<127:0> is set as the measurement target data A<127:0> to the bit count differential amplifier 355. In addition, zero is set as the reference data B<127:0> to the bit count differential amplifier 355.
[0358] Therefore, the bit count differential amplifier 355 compares the number of fail bits included in the fail bit data PF<127:0> with zero.
[0359] If the number of fail bits contained in the fail bit data PF<127:0> is greater than zero (i.e., if the fail bit data PF<127:0> contains at least one fail bit), the bit data S <0> Set to HIGH.
[0360] On the other hand, if the number of fail bits included in the fail bit data PF<127:0> is zero (i.e., there are no fail bits in the fail bit data PF<127:0>), the bit data S <0> Set to LOW.
[0361] (Case 1) Skip the above process from time t2 to time t8: The process from time t2 to time t8 is skipped, and multiple bit data S <6> ~S <1> Therefore, the calculation processing time can be reduced.
[0362] S <6> Since is LOW, Sd <0> The logic level of is S <0> The logic level of the bit data S <6> ~S <1> Since is LOW, each bit data Sd<6:1> <6> ~Sd <1> becomes LOW.
[0363] Moreover, since the plus-1 adder 391 does not perform addition, the data obtained by bit-extending Sd<6:0> becomes the number of post-correction fail bits SS<7:0>.
[0364] Therefore, if the number of fail bits included in the fail bit data PF<127:0> is greater than zero (i.e., if the fail bit data PF<127:0> contains at least one fail bit), the post-correction fail bit number SS<7:0> will indicate 1. On the other hand, if the number of fail bits included in the fail bit data PF<127:0> is zero (i.e., if there are no fail bits in the fail bit data PF<127:0>), the post-correction fail bit number SS<7:0> will indicate zero.
[0365] (Case 2) Skip the above process from time t2 to time t7, but execute the process at time t8:
[0366] The process from time t2 to time t8 is skipped, and multiple bit data S <6> ~S <1> Therefore, the calculation processing time can be reduced.
[0367] S <6> Since is LOW, Sd <0> The logic level of is S <0> The logic level of the bit data S <6> ~S <1> Since is LOW, each bit data Sd<6:1> <6> ~Sd <1> becomes LOW.
[0368] Here, unlike Case 1, at time t8, the fail bit data PF<127:0> and Sd <0> Performs a plus 1 operation based on the exclusive OR operation with the input.
[0369] When the number of fail bits included in the fail bit data PF<127:0> is an even number equal to or greater than 1, the operation is as follows. <0> becomes HIGH. Therefore, an odd number of HIGH level data are input to the 129-input exclusive OR gate 397, so OEMatch becomes HIGH. Therefore, the plus-1 adder 391 performs an addition process of plus 1 (addition process of 1+1) and bit expansion, and the number of post-correction fail bits SS<7:0> becomes 2.
[0370] When the number of fail bits included in the fail bit data PF<127:0> is an odd number equal to or greater than 1, the operation is as follows. <0> becomes HIGH. Therefore, an even number of HIGH level data are input to the 129-input exclusive OR gate 397, so OEMatch becomes LOW. Therefore, the plus-1 adder 391 does not perform an addition process of plus 1 (it performs an addition process of 1+0), but performs bit extension, and the number of post-correction fail bits SS<7:0> indicates 1.
[0371] When the number of fail bits included in the fail bit data PF<127:0> is zero, the operation is as follows. <0> becomes LOW. Therefore, only LOW level data is input to the 129-input exclusive OR gate 397, so OEMatch becomes LOW. Therefore, the plus-1 adder 391 does not perform the addition process of plus-1 (it performs the addition process of 0+0), but performs bit extension, and the number of post-correction fail bits SS<7:0> indicates zero.
[0372] Second embodiment 16 is a block diagram showing a semiconductor memory device 100B according to a second embodiment of the present invention. The semiconductor memory device 100B is a dynamic memory.
[0373] In the semiconductor memory device 100A according to the first embodiment, the fail bit detection unit 201 included in the first half fail bit count related unit 101 provided in the memory bank 821-i (i=1, 2, 3,..., n) corresponds to one memory bank 821-i. The fail bit detection unit 201 measures the fail bit that occurs in the corresponding one memory bank 821-i.
[0374] In contrast, in the semiconductor memory device 100B according to the second embodiment, the fail bit detection unit 201B included in the fail bit count related unit 105 provided in a location other than the memory bank 821-i (i=1, 2, 3,..., n) corresponds to the multiple memory banks 821-i. Also, the fail bit detection unit 201B measures the fail bits that occur in the multiple corresponding memory banks 821-1 to 821-n.
[0375] FIG. 17 is a circuit diagram showing a configuration of the fail bit count related unit 105 shown in FIG.
[0376] 17, the fail bit count related section 105 includes a fail bit detection section 201B, a bit count section 301 and a bit count accumulator section 401.
[0377] The bit count section 301 and the bit count accumulating section 401 in the fail bit count related section 105 are similar to those in the latter half fail bit count related section 103 of the semiconductor memory device 100A according to the first embodiment.
[0378] The fail bit detecting section 201B has the same basic configuration as the fail bit detecting section 201 provided in the latter fail bit count related section 103 of the semiconductor memory device 100A according to the first embodiment, but is partially different.
[0379] Therefore, only the fail bit detection section 201B will be described below.
[0380] As in the first embodiment, the fail bit detection section 201B includes 16 exclusive OR gate groups 215. Each exclusive OR gate group 215 includes eight two-input, one-output exclusive OR gates.
[0381] Similarly to the first embodiment, the fail bit detection section 201B includes 16 AND gate groups 213. Each AND gate group 213 includes eight two-input, one-output AND gates.
[0382] Furthermore, unlike the first embodiment, the fail bit detection section 201 includes 16 data scramble & latch circuits 211B.
[0383] The 128-bit write data WDATA is supplied to 16 data scramble & latch circuits 211B as expected seed data EXPSEED<127:0> via the I / O gate 217. At this time, the expected seed data EXPSEED<127:0> is divided into 16 groups of 8 bits each. The n-th data scramble & latch circuit 211 (where n=0 to 6) scrambles the 8-bit expected seed data EXPSEED included in each group.<n+7:n> Based on the expected data EXPDATA<n+7:n> Generate the expected data EXPDATA<n+7:n> The 8 bits included in are supplied to the first input terminals of the AND gates included in the corresponding AND gate group 213.
[0384] In each data scramble & latch circuit 211B, when instructed by the test mode signal, expected seed data EXPSEED based on row address XADD and column address YADD.<n+7:0> When data scrambling is enabled by the test mode signal, the data scrambling and latch circuit 211B scrambles the expected seed data EXPSEED<n+7:0> The logic level of each bit of the expected data EXPDATA is maintained or inverted according to the combination of the row address XADD and the column address YADD.<n+7:0> is generated.
[0385] Furthermore, in each data scramble & latch circuit 211B, data scrambling is not enabled unless instructed by the test mode signal.
[0386] Therefore, when instructed by the test mode signal, each data scramble & latch circuit 211B outputs expected data EXPDATA<127:0> obtained by scrambling the expected seed data EXPSEED<127:0> according to the combination of the row address XADD and the column address YADD, but otherwise, it does not scramble the expected seed data EXPSEED<127:0> and outputs it as is as the write data WDATA<127:0>. In the second embodiment, as in the first embodiment, the data output from the scramble & latch circuit 211B is called expected data EXPDATA<127:0> whether it is scrambled or not.
[0387] The expected data EXPDATA<127:0> of 128 bits in total output from the scramble & latch circuit 211 B is supplied to the first input terminals of all the AND gates included in the AND gate group 213 .
[0388] Furthermore, a control signal BC whose logic level becomes HIGH in the fail bit count mode is supplied to the first input terminals of all the AND gates included in the AND gate group 213 .
[0389] An output terminal of each AND gate included in each AND gate group 213 is supplied to a second input terminal of a corresponding exclusive-OR gate included in the corresponding exclusive-OR gate group 215 .
[0390] The 128-bit read data RDATA<127:0> is divided into 16 groups of 8 bits each. Each bit RDATA<8m+i> (where i=0 to 7) of the 8-bit read data RDATA<8m+7:8m> (where m=0 to 15) included in each group is supplied to the second input terminal of each OR gate included in each exclusive OR gate group 215.
[0391] Therefore, in the fail bit count mode, the group of 16 exclusive OR gates 215 can check for bit-by-bit match between the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0>. When the signal BC is HIGH, each bit of the fail bit data PF<127:0> formed by the output of the group of 16 exclusive OR gates 215 has a logic level indicating for each bit whether the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> match or not. In other words, the bit data PF included in the fail bit data PF<127:0> (where i=0 to 127) is the bit data EXPDATA contained in the expected data EXPDATA<127:0> and the bit data RDATA included in the read data RDATA<127:0> A bit whose value does not match between the expected data EXPDATA and the read data RDATA is a fail bit.
[0392] In order to detect a fail bit, the write data WDATA to be written to a cell of a specific bit at a specific address of the memory is usually compared with the read data RDATA read from that cell. For this reason, for example, at each time during the period in which a fail bit is detected, the bit of the read data RDATA must correspond correctly to the bit of the write data WDATA corresponding to it in each exclusive OR gate included in each exclusive OR gate group 215. In this way, the data scramble & latch circuit 211B is controlled so that the bit of the read data RDATA and the bit of the write data WDATA corresponding to it are compared correctly in the exclusive OR gate. In other words, the data scramble & latch circuit 211 is controlled so that the timing of each exclusive OR gate is matched with the address and bit pair corresponding to the bit of the read data RDATA input to the second terminal of each exclusive OR gate included in the exclusive OR gate group 215, which is converted into expected data EXPDATA, and then input to the first terminal of each exclusive OR gate included in the exclusive OR gate group 215.
[0393] Therefore, the data scramble & latch circuit 211 delays the write data WDATA by an appropriate time so that it can be compared with the read data RDATA, and outputs it as expected data EXPDATA.
[0394] The fail bit data PF<127:0> output from the fail bit detection section 201B is supplied to the bit count section 301.
[0395] The above-described embodiments are described for the purpose of facilitating understanding of the present invention, and are not described for the purpose of limiting the present invention. Therefore, the elements disclosed in the above embodiments are intended to include all design modifications and equivalents that fall within the technical scope of the present invention.
[0396] For example, in each of the above-described embodiments, a dynamic memory is described as an example of the semiconductor memory device, but the present invention is not limited to this case. For example, the semiconductor memory device may be a static memory or a ferroelectric random access memory (FRAM (registered trademark)).
[0397] For example, in each of the above-mentioned embodiments, the binary search method has been described as an example of the search method, but the present invention is not limited to this case. For example, a linear search method may be used as the search method. Even in such a case, an error similar to that in the case of using the binary search method may occur in the bit comparison unit, but the error can be corrected by the bit correction unit.
[0398] Also, even if the number of fail bits is 64 or more, the fail bit data PF<127:0> itself may be used as the measurement target data A<127:0>. In this case, the bit comparator 341 is expanded so that it can output the pre-correction fail bit number S<7:0>. The pre-correction fail bit number S<7:0> obtained by expanding the pre-correction fail bit number S<6:0> is used as it is as the intermediate fail bit number Sd<7:0> obtained by expanding the intermediate fail bit number Sd<6:0>. In other words, the buffer 393 and all exclusive OR gates 395 are omitted. The plus-1 adder 391 is expanded so that it can input the intermediate fail bit number Sd<7:0> and output the post-correction data<7:0>. The extended plus-1 adder 391 calculates the post-correction fail bit number SS<7:0> by adding 1 to the intermediate fail bit number Sd<7:0> when the even / odd of the fail bit data PF<127:0> does not match the even / odd of the intermediate fail bit number Sd<7:0> (specifically, when the intermediate fail bit number Sd<7:0> is 1 smaller than the fail bit data PF<127:0>).
[0399] In addition, in each of the above-mentioned embodiments, the configuration in which each data has a specific number of bits has been described, but the present invention is not limited to this case. The number of bits may have other values. Not limited to the number of bits, the number of columns of memory cells, the number of rows, the number of gates, the number of inputs of the gate, the number of stages of the adder, the number of full adders included in one adder, the number of full adders included in one adder, the number of gates included in the circuit block, the number of latch circuits included in the latch circuit group, the number of input bits of the bit count differential amplifier, etc. may be appropriately changed according to the data.
[0400] Furthermore, in each of the above-mentioned embodiments, the expected data EXPDATA<127:0> is prepared in the expected data preparation unit (data scramble & latch circuit 211) (i.e., the expected data EXPDATA<127:0> is generated within the semiconductor memory device 100A) as an example, but the present invention is not limited to this case. For example, when the expected data EXPDATA<127:0> is input from the outside, the first half fail bit count related unit 101 or the fail bit count related unit 105 of the semiconductor memory device 100A may be configured to acquire the input expected data EXPDATA<127:0>. [Explanation of symbols]
[0401] 101…First half fail bit counting section 103…Second half fail bit counting section 105…Fail bit counting section 201, 201B...Fail bit detection section 301...Bit count section 401…Bit count accumulation section
Claims
1. a fail bit detection unit that detects whether read data from the semiconductor memory device matches or does not match expected data on a bit-by-bit basis, and outputs fail bit data consisting of pass / fail information indicating whether each detected bit matches or does not match; a bit counting section for counting the number of fail bits indicating a mismatch between the read data and the expected data, or the number of pass bits indicating a match, among the fail bit data; Equipped with Semiconductor memory device.
2. The fail bit detection unit a group of exclusive-OR gates for performing an exclusive-OR operation on a bit-by-bit basis between the read data and the expected data to generate the fail bit data; 2. The semiconductor memory device according to claim 1.
3. an expected data preparation unit that prepares write data to be written to the semiconductor memory device and that corresponds to the read data as the expected data; 3. The semiconductor memory device according to claim 2.
4. the expected data preparation unit inverts a logic level of the write data to generate the expected data, for a bit that should indicate a match when the read data is logically inverted with respect to the write data; 4. The semiconductor memory device according to claim 3.
5. the expected data preparation unit latches the write data so that it can be compared with the read data; 4. The semiconductor memory device according to claim 3.
6. The bit count unit a plurality of sub fail bit counters each counting the number of fail bits included in the partial fail bit data assigned to each of the sub fail bit counters and outputting the count value as the number of partial fail bits; an adder for calculating the number of fail bits by adding together the partial fail bit numbers output by the sub fail bit counters; Equipped with 2. The semiconductor memory device according to claim 1.
7. Each of the plurality of sub fail bit counters a first block which takes a logical product of all bits included in the partial fail bit data assigned to its own sub fail bit counter, and outputs a bit indicating the logical product as a most significant bit of binary data indicating the number of partial fail bits; a second block for generating, as a reference voltage, a voltage corresponding to the number of partial fail bits corresponding to the partial fail bit data assigned to its own sub fail bit counter; a third block for outputting a result of a comparison between the reference voltage and a voltage corresponding to a bit weight assigned to the own block of the binary data indicating the number of partial fail bits as a second most significant bit of the binary data indicating the number of partial fail bits; one or more fourth blocks for outputting a result of a comparison between the reference voltage and a voltage determined by a weight of a bit assigned to the own block of the binary data indicating the number of partial fail bits and a value of one or more bits of the binary data higher than the bit assigned to the own block, as a bit assigned to the own block that is less than the second higher bit of the binary data indicating the number of partial fail bits; Equipped with 7. The semiconductor memory device according to claim 6.
8. Each of the plurality of bit counters means for stopping operations of the third block and the one or more fourth blocks when a value of the most significant bit of the binary data indicating the number of partial fail bits is equal to a value when the number of partial fail bits is a maximum value; 8. The semiconductor memory device according to claim 7.
9. The bit count unit a bit count differential amplifier which receives each bit of data to be measured including a plurality of bits and each bit of reference data to be measured including a plurality of bits, and outputs a determination result (size data) indicating a size relationship between the number of bits having a first logic level included in the data to be measured and the number of bits having the first logic level included in the reference data; a measurement target data setting section that supplies the fail bit data to the bit count section as the measurement target data; a reference data setting unit that sets a logic level of a reference active bit number of bits among a plurality of bits included in the reference data to the first logic level; a calculation unit which operates the measurement target data setting unit, the reference data setting unit and the bit count differential amplifier while successively changing the reference number of active bits based on the output from the bit count differential amplifier by a binary search algorithm, and determines the number of fail bits based on the plurality of large and small data successively output from the bit count differential amplifier by this operation; Equipped with 2. The semiconductor memory device according to claim 1.
10. The bit count unit a bit correction unit which receives the number of fail bits calculated by the calculation unit as a number of fail bits before correction, and outputs the number of fail bits before correction as a number of fail bits after correction if the number of fail bits before correction is the same as the number of fail bits included in the fail bit data, and outputs a number obtained by subjecting the number of fail bits before correction to a correction process as a number of fail bits after correction if they are not the same; 10. The semiconductor memory device according to claim 9.
11. The bit correction unit determining whether to execute a correction process based on whether the number of pre-correction fail bits is even or odd and the number of fail bits included in the fail bit data is even or odd; In the correction process, a value different by 1 from the number of fail bits before correction is set as the number of fail bits after correction. The semiconductor memory device according to claim 10.
12. when the number of fail bits included in the fail bit data is equal to or greater than a predetermined number, the measurement target data setting unit corrects the fail bit data so that the number of fail bits is less than the predetermined number, and supplies the corrected data to the bit count differential amplifier as the measurement target data; the calculation unit determines the number of fail bits based on a plurality of outputs sequentially output from the bit count differential amplifier and the predetermined number.
10. The semiconductor memory device according to claim 9.
13. the bit counting unit outputs data indicating whether the number of bits having the first logic level among the bits included in the fail bit data is zero or is one or more based on a comparison result between the reference data, in which the number of bits having the first logic level is zero, and the fail bit data.
10. The semiconductor memory device according to claim 9.
14. the bit counting unit outputs data indicating whether the number of bits having the first logic level among the bits included in the fail bit data is zero, an even number of 1 or more, or an odd number of 1 or more, based on a comparison result between the reference data, in which the number of bits having the first logic level is zero, and the fail bit data, and whether the number of bits having the first logic level included in the fail bit data is even or odd.
10. The semiconductor memory device according to claim 9.
15. The semiconductor memory device includes a plurality of memory banks, Each memory bank is provided with the fail bit detection unit; The bit count unit is provided in a portion other than the plurality of memory banks.
2. The semiconductor memory device according to claim 1.
16. The semiconductor memory device includes a plurality of memory banks, the fail bit detection unit and the bit count unit are provided in a portion other than the plurality of memory banks; 2. The semiconductor memory device according to claim 1.
Citation Information
Patent Citations
Furyoseruofukumumemorinitaisurukiokuhoshiki
JP1976087928A
Semiconductor integrated memory
JP1989014797A
Self-test circuit and memory device incorporating it
JP2001236797A
Nonvolatile semiconductor memory and detecting method for the number of its fail bits
JP2002197898A
Population count circuit
JP2005165793A
