Semiconductor memory device
By introducing error bit detection and counting functions into semiconductor storage devices, the problem of inconsistency between writing and reading data is solved, fast and accurate error bit counting is achieved, and the efficiency of data consistency analysis is improved.
Patent Information
- Application Number
- CN202410460514.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-04-20
- Filing Date
- 2024-04-17
- Publication Date
- 2024-10-22
AI Technical Summary
In semiconductor storage devices, when written data and read data are inconsistent, the existing technology is difficult to effectively analyze and correct, resulting in a long error bit counting processing time and the inability to obtain pass/fail information for all bits.
A semiconductor memory device is designed, which includes an error bit detection part and a bit counting part. It detects the consistency of each bit and outputs pass or fail information, and counts inconsistent error bits or pass bits to provide an error bit counting function. The device uses a data scrambling and latch circuit to generate expected data, compares it with the read data, and accumulates and outputs the number of error bits through a bit counting section.
It realizes rapid detection and counting of error bits, improves the efficiency of data consistency analysis of semiconductor storage devices, can effectively correct data inconsistencies, and simplifies the error bit counting process.
Smart Images

Figure CN118824342A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a semiconductor memory device. Background Art
[0002] In semiconductor memory devices, errors in physical properties often cause inconsistencies between written data and read data. Therefore, it is necessary to obtain information related to the inconsistent data and analyze or correct the semiconductor memory device accordingly. For example, there is an error bit counting device for counting the number of bits (error bits) where the written data and the read data are inconsistent.
[0003] The patent document (Japanese Patent Publication No. 9-33615) discloses a memory failure analysis device of a semiconductor memory test device, which divides the failed memory into multiple blocks to shorten the error counting processing time, and counts the error bits outside the semiconductor memory to be analyzed. However, depending on the situation, it is not possible to obtain the pass / fail information of all bits of the semiconductor memory. In view of the above problems, the purpose of the present invention is to provide a semiconductor memory device including an error bit counting device. Summary of the invention
[0004] The present invention provides a semiconductor memory device, comprising: an error bit detection unit, which detects whether the read data from the semiconductor memory device and the expected data are consistent in units of bits, and outputs error bit data of pass or fail information, the pass or fail information indicating whether each detected bit is consistent; and a bit counting unit, which counts the number of error bits indicating the inconsistency between the read data and the expected data, or the number of pass bits indicating the number of consistent bits in the error bit data. The present invention provides a semiconductor memory device including an error bit counting device. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 FIG. 1 is a block diagram showing an example of the structure of a semiconductor memory device according to the first embodiment of the present invention.
[0006] Figure 2 for Figure 1 The circuit diagram of the first half error bit count correlation unit is shown.
[0007] Figure 3 for Figure 1 The block diagram of the second half error bit count correlation unit is shown.
[0008] Figure 4 FIG. 1 is a timing chart showing an operation example of the semiconductor memory device according to the first embodiment of the present invention.
[0009] Figure 5 for Figure 3 and Fig.17 The block diagram of the configuration example #1 of the bit counting unit shown.
[0010] Figure 6 for Figure 5 The circuit diagram of the bit count tree section is shown.
[0011] Figure 7 for Figure 6 The circuit diagram of the adder is shown.
[0012] Figure 8 for Figure 6 The circuit diagram of the configuration example #1 of the sub-error bit counter is shown.
[0013] Fig. 9 for Figure 6 The circuit diagram of the configuration example #2 of the sub-error bit counter is shown.
[0014] Fig.10 for Figure 3 and Fig.17 The block diagram of the configuration example #2 of the bit counting unit shown.
[0015] Fig.11 for Fig.10 A circuit diagram showing the configuration of a bit comparison unit.
[0016] Fig.12 for Fig.11 The circuit diagram of the bit counting differential amplifier is shown.
[0017] Fig.13 for Fig.10 A circuit diagram showing the structure of the position correction unit.
[0018] Fig.14 For illustration Fig.10 The timing chart of the operation of the bit counting unit configuration example #2 is shown.
[0019] Fig.15 for Figure 3 and Fig.17 The circuit diagram of the bit counting unit shown in FIG.
[0020] Fig.16 is a block diagram showing an example of the structure of a semiconductor memory device according to a second embodiment of the present invention.
[0021] Fig.17 for Fig.16 A circuit diagram showing the structure of an error bit count association unit.
[0022] Figure Number:
[0023] 100A:Semiconductor storage device
[0024] 101: First half error bit count correlation unit
[0025] 103: Second half error bit count correlation unit
[0026] 105: Error bit count correlation unit
[0027] 201, 201B: Error bit detection unit
[0028] 211, 211B: Data scrambling and latching circuit
[0029] 217:I / O gate
[0030] 301: Bit counting unit
[0031] 321: Sub-error bit counter
[0032] 331~336: Circuit block
[0033] 401: Bit counting accumulation unit
[0034] 801: instruction input buffer
[0035] 803: Instruction decoder
[0036] 805: Address input buffer
[0037] 807: Address decoder
[0038] 809:DQ input and output buffer
[0039] 811: Global Input and Output Gate
[0040] 813: Clock input buffer
[0041] 815: Internal clock generation unit
[0042] 817: Mode register and fuse ROM
[0043] 819: Internal power generation unit
[0044] 821-1~821-n: Storage Repository
[0045] 831: Storage unit
[0046] 833: column decoder library selection unit
[0047] 835: word drive unit
[0048] 837: Line Decoder
[0049] 839:Sense Amplifier
[0050] A: Measurement object data
[0051] ADD: address
[0052] Amp EN:signal
[0053] B: Reference data
[0054] BC, CBC, CBCOUT, COMP, RD: control signals
[0055] BCEN, CUM: control signal
[0056] C: Determine the number of error bits
[0057] CC: Cumulative error bits
[0058] CK, CKB, ICLK, LCLK: Clock
[0059] CNT: Output data
[0060] COM:Instructions
[0061] DQ: External Data
[0062] ENd:Signal
[0063] EXPDATA: expected data
[0064] EXPSEED: Expected seed data
[0065] OEMatch: Control your data
[0066] OUT: size data
[0067] OUTF: complementary data
[0068] OUTpre, OUTpreF: internal signal
[0069] PF: Error bit data
[0070] RDATA: Read data
[0071] RDATAd: data
[0072] S<:>: Data of the number of erroneous digits before correction
[0073] S<>: bit data
[0074] SS<:>: Number of error digits after correction
[0075] SS<>: bit data
[0076] VDD: External power supply
[0077] VPP, VBB, VBLH, VOD, VINT: internal power supply
[0078] WDATA: Write data
[0079] XADD: column address
[0080] YADD: row address
[0081] VIBC: Power Supply
[0082] PCf:Signal
[0083] LATC: latch signal
[0084] RST: Reset signal DETAILED DESCRIPTION
[0085] (First embodiment)
[0086] Figure 1 FIG. 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.
[0087] Reference Figure 1 The semiconductor memory device 100A includes an instruction input buffer 801, an instruction 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 generation unit 815, a mode register and fuse ROM unit 817, and an internal power generation unit 819.
[0088] In addition, the semiconductor memory device 100A includes memory banks 821-1 to 821-n. Each memory bank 821-i (i=1, 2, 3 ..., n) includes a storage unit 831, a column decoder bank selection unit 833, a word driver unit 835, a row decoder 837, a sense amplifier 839, and a first-half error bit count association unit 101. Each memory bank 821-i (i=1, 2, 3 ..., n) is connected to the global input and output gate 811 via a corresponding memory input and output bus MIO. Furthermore, the semiconductor memory device 100A includes a second-half error bit count association unit 103.
[0089] The instruction input buffer 801 is an input buffer for instructions from the outside. The instruction decoder 803 decodes the instruction inputted into the instruction input buffer 801 and provides a signal indicating the decoding result to each part of the semiconductor memory device 100A. The address input buffer 805 is an input buffer for addresses from the outside. The address decoder 807 decodes the address inputted into the address input buffer 805 and provides a signal indicating the decoding result to each part of the semiconductor memory device 100A. The signal indicating the decoding result includes a column address, a row address and a bank address. The DQ input / output buffer 809 is an input buffer for external data DQ. The global input / output gate 811 is between the DQ input / output buffer 809 and the memory banks 821-1 to 821-n and mainly performs data multiplexing and demultiplexing between them. The clock input buffer 813 is an input buffer for clocks from the outside. The internal clock generation unit 815 generates an internal clock based on the clock inputted into the clock input buffer 813 and distributes it to the inside of the semiconductor memory device 100A. The mode register and fuse ROM unit 817 generates signals for controlling the semiconductor memory device 100A based on the decoding results of the command input from the command decoder 803 and the decoding results of the address input from the address input buffer 805, and supplies these signals to the semiconductor memory device 100A. The internal power supply generating unit 819 generates internal power based on the power supplied from the outside, and supplies these signals to the inside of the semiconductor memory device 100A.
[0090] The memory cell 831 includes two-dimensionally arranged memory cells MC arranged in the column direction and the row direction. The column decoder bank selection unit 833 decodes the column address and generates a column selection signal for selecting the column corresponding to the column address. The word driving unit 835 activates the word line of the selected column. The row decoder 837 decodes the row address and generates a row selection signal for selecting the row corresponding to the row address. The sense amplifier 839 is provided for each row, and the output of the sense amplifier 839 of the selected row is selected. Figure 2 To display Figure 1 The circuit diagram of the structure of the first half error bit count association unit 101 is shown. The error bit detection unit 201 includes 16 exclusive OR gate groups 215 and 16 AND gate groups 213. Each exclusive OR gate group 215 includes 8 exclusive OR gates with 2 inputs and 1 output. Each AND gate group 213 includes 8 AND gates with 2 inputs and 1 output. In addition, the error bit detection unit 201 includes a data scramble and latch circuit 211. The data scramble and latch circuit 211 corresponds to the "expected data preparation unit" in the present invention.
[0091] Each bit of the 8-bit write data WDATA<7:0> selected from the 128-bit write data WDATA<127:0> is provided to the data scrambling and latching circuit 211 as the expected seed data EXPSEED<7:0>. The error bit counting is performed based on the following premise: the 128-bit expected data EXPDATA<127:0> is constructed by repeating the 8-bit write data WDATA<7:0> having a specific logic level combination 16 times. That is, WDATA<8m+i>=WDATA<7:0>. (here, m=0~15, i=0~7) is taken as the premise.
[0092] In each data scrambling and latching circuit 211, when instructed by the test mode signal, data scrambling of the expected seed data EXPSEED<7:0> by the column address XADD is enabled. When data scrambling is enabled by the test mode signal, the data scrambling and latching circuit 211 generates the expected data EXPDATA<7:0> by maintaining or inverting the logic level of each bit of the expected seed data EXPSEED<7:0> in accordance with the column address XADD. The 128-bit expected data EXPDATA<127:0> is constructed by repeating the expected seed data EXPSEED<7:0> 16 times. Here, when the write data WDATA<127:0> passes through the memory including the storage unit and returns as the read data RDATA<127:0>, the logic level is maintained or inverted in accordance with the column address XADD. Therefore, each bit of the expected data EXPDATA<127:0> generated by the data scrambling and latching circuit 211 becomes the expected correct logic level. The expected data EXPDATA<127:0> generated in this way is latched in the data scrambling and latching circuit 211 in order to be used when executing the error bit count. In addition, in each data scrambling and latching circuit 211, data scrambling is not enabled unless instructed by the test mode signal.
[0093] Therefore, when each data scrambler and latch circuit 211 is instructed by the test mode signal, it outputs the expected data EXPDATA<127:0> obtained by repeatedly scrambling the expected seed data EXPSEED<7:0> starting from the column address XADD. On the other hand, when each data scrambler and latch circuit 211 is not instructed by the test mode signal, it outputs the expected data EXPDATA<127:0> obtained by repeatedly not scrambling the expected seed data EXPSEED<7:0>. In the first embodiment, regardless of whether or not scrambled, the data output from the data scrambler and latch circuit 211 is the so-called expected data EXPDATA<127:0>.
[0094] The total 128 bits of expected data EXPDATA<127:0> output from the data scrambling and latching circuit 211 are included in the first input terminals of all the AND gates of all the AND gate groups 213. The expected data EXPDATA<7:0> provided to the first AND gate group 213, the expected data EXPDATA<15:8> provided to the second AND gate group 213, ..., and the expected data EXPDATA<127:120> provided to the 16th AND gate group 213 are common. In addition, in the error bit count mode, the control signal BC with a high level (HIGH) is commonly provided to the second input terminals of all the AND gates included in all the AND gate groups 213. The output terminals of the AND gates included in each AND gate group 213 are included in the corresponding exclusive OR gate group 215 and provided to the first input terminals of the corresponding exclusive OR gates.
[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 provided to the second input terminal of each exclusive OR gate included in each exclusive OR gate group 215. Therefore, in the error bit count mode, it can be confirmed one by one that the 128-bit expected data EXPDATA<127:0> from the 16 exclusive OR gate groups 215 is consistent with each bit of the 128-bit read data RDATA<127:0>. When the signal BC is HIGH, each bit of the data RDATAd<127:0> composed of the outputs of the 16 exclusive OR gate groups 215 has a logic level that shows the consistency / inconsistency between the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> bit by bit. That is, the bit data RDATAd<127:0> included in the data RDATAd<127:0> is consistent with each other. (Here, i=0-127) shows the bit data RDATAd included in the expected data EXPDATA<127:0> The bit data RDATAd contained in the read data RDATA<127:0> Therefore, when the signal BC is HIGH, the error bit whose median value is HIGH included in the bits of the data RDATAd<127:0> indicates that the read data RDATA<127:0> is inconsistent with the expected data EXPDATA<127:0>.
[0096] In addition, in order to detect an error bit, the write data WDATA of a specific bit cell to be written to a specific address of the memory is usually compared with the read data RDATA read from the cell. For this reason, at each time during the error bit detection period, the bit of the read data RDATA and the corresponding bit of the write data WDATA must be correctly matched in each exclusive OR gate included in each exclusive OR gate group 215. The data scrambling and latching circuit 211 is controlled so that the bit of the read data RDATA and the corresponding bit of the write data WDATA are correctly compared in the exclusive OR gate in this way. In other words, the data scrambling and latching circuit 211 is controlled so that the address and bit combination corresponding to the read data RDATA, which is data input to the second terminal of each exclusive OR gate included in the exclusive OR gate group 215, and the write data WDATA, which is data input to the first terminal of each exclusive OR gate included in the exclusive OR gate group 215, are consistent with the timing of the address and bit combination corresponding to the write data WDATA in each exclusive OR gate after the address and bit combination corresponding to the read data RDATA are converted into the expected data EXPDATA. Therefore, the data scrambling and latching 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 the expected data EXPDATA.
[0097] In the mode other than the error bit count mode, since the signal BC becomes LOW, the data RDATAd<127:0> formed by the outputs of the 16 exclusive OR gate groups 215 are consistent with the read data RDATA<127:0>. That is, the data RDATAd<127:0> becomes the read data.
[0098] Reference Figure 1 , the data RDATAd<127:0> outputted from the error bit detection unit 201 in each memory bank 821-i (i=1, 2, 3 ..., n) is provided to the global input / output gate 811 via the corresponding memory input / output bus MIO. In the error bit count mode, the data RDATAd<127:0> from the currently selected memory bank 821-i (i=1, 2, 3 ..., n) among the plurality of memory banks 821-1 to 821-n is provided to the second-half error bit count association unit 103 as the error bit data PF<127:0>.
[0099] Figure 3 To display Figure 1 FIG. 1 is a block diagram showing the configuration of the second-half error bit count association section 103 . The second-half error bit count association section 103 includes a bit counting section 301 and a bit count accumulating section 401 .
[0100] The error bit data PF<127:0> from the global input / output gate 811 is input to the second half error bit count association unit 103. Here, in the error bit count mode, the error bit data PF<127:0> is the data RDATAd<127:0> multiplexed between the memory banks 821-1 to 821-n in the memory input / output bus MIO. In addition, when the signal BC is HIGH, the data RDATAd<127:0> has a logic level indicating the consistency / inconsistency between the 128-bit expected data EXPDATA and the 128-bit read data RDATA.
[0101] Therefore, the error bit data PF<127:0>, which is composed of 128 bits of pass / error information having a logic level indicating whether each bit of the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> is consistent or inconsistent (that is, a logic level indicating whether each bit is an error bit), is input to the bit counting section 301. Among the 128 bits included in the error bit data PF<127:0>, a bit with a HIGH logic level is an error bit, and a bit with a LOW logic level is a pass bit. The bit counting section 301 counts the number of error bits indicating the inconsistency in logic level between the expected data EXPDATA and the read data RDATA based on the logic level of each bit of the error bit data PF<127:0>, and outputs a determined error bit number C<7:0> indicating a binary number of the number of error bits. In addition, the bit counting unit 301 can also count the number of pass bits with the same logic level between the expected data EXPDATA and the read data RDATA based on the logic level of each bit of the input error bit data PF<127:0>, and output a determined pass bit number (not shown) indicating the binary number of the pass bit number.
[0102] The bit count accumulation section 401 accumulates the number of error bits included in the determined error bit number C<7:0> and outputs the accumulated value as output data CNT <n-1:0>Output to the outside. In addition, the bit count accumulation unit 401 can also accumulate the number of pass bits included in determining the number of pass bits, and output the accumulated value as output data (not shown) to the outside. Furthermore, the bit count accumulation unit 401 can also output the accumulated value of each error bit and pass bit to the outside.
[0103] Figure 4 This is a timing chart showing an operation example of the semiconductor memory device according to the first embodiment of the present invention. In the error bit count mode, data from the terminal connected to the DQ input / output buffer 809 as external data DQ is output from the semiconductor memory device in the interval from the 8-bit period of the error bit counter #1 to the 8-bit period of the error bit counter #n, and then the 32-bit error bit count cumulative value is output.
[0104] Figure 5 To display Figure 3 The block diagram of the configuration example #1 of the bit counting unit 301 is shown. The bit counting unit 301 includes a first bit counting timing generating unit 311 and a bit counting tree unit 313. The first bit counting timing generating unit 311 generates a signal for operating the bit counting tree unit 313. The bit counting tree unit 313 inputs the error bit data PF<127:0> and outputs the determined error bit number C<7:0>. That is, the bit counting tree unit 313 counts the number of error bits with a logic level of HIGH among the 128 bits constituting the error bit data PF<127:0>, and outputs the determined error bit number C<7:0> indicating the number of error bits in binary.
[0105] Figure 6 To display Figure 5 The circuit diagram of the bit count tree section 313 is shown. The bit count tree section 313 includes 16 sub-error bit counters 321, 8 4-bit adders 323-1, 4 5-bit adders 323-2, 2 6-bit adders 323-3, 1 7-bit adder 323-4 and a latch circuit 325 from bottom to top.
[0106] Each of the 16 sub-error bit counters 321 counts the partial error bit number corresponding to the 8 bits selected from the error bit data PF<127:0>, and counts the number of bits having a high (HIGH) logic level corresponding to the inconsistency among the 8 bits as the partial error bit number. The partial error bit number is then output as a 4-bit binary number.
[0107] Therefore, a total of 16 pieces of 4-bit binary data indicating the number of error bits in the display portion divided into 16 are output from the 16 sub-error bit counters 321 .
[0108] The control signal BCEN is input to the 16 sub-error bit counters 321, and the sub-error bit counters 321 operate only when the control signal BCEN is HIGH.
[0109] By connecting the 16 partial error bit numbers represented by binary data in a tree-like manner to 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, the determined error bit number S<7:0> represented by an 8-bit binary number can be obtained by adding them together. That is, the 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 obtain the total number of error bits by summing up the partial error bit numbers.
[0110] The latch circuit 325 latches the 8-bit error bit number S<7:0> before correction, which indicates the error bit number output by the 7-bit adder 323-4, by means of the latch signal LATC and outputs it as the determined error bit number C<7:0>. The determined error bit number C<7:0> latched by the latch circuit 325 is reset by means of the reset signal RST. Therefore, the latch circuit 325 outputs the determined error bit number C<7:0>, which is an 8-bit binary number indicating the error bit number, during the period from when the latch signal LATC is input to when the reset signal RST is input.
[0111] Figure 7 for Figure 6 The adders 323-1 to 323-4 and the power supply circuit (power supply unit for n-bit adder) 327 for supplying power to them are shown. The power supply circuit 327 supplies the power supply selected by the 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 becomes HIGH, the external power supply VDD is selected as the power supply VIBC, and the n-bit adders 323-1 to 323-4 can perform normal operations. On the other hand, during the period other than the bit count mode, the control signal BCEN becomes LOW, the internal power supply VINT is selected as the power supply VIBC, and power can be saved.
[0112] Figure 8 for Figure 6 A circuit diagram of a configuration example #1 of the sub-error bit counter 321 is shown. Figure 8 The sub-error bit counter 321 shown in FIG. 1 obtains the 1-bit measurement target data A. <0> ~A <7> The total number of 1-bit data with HIGH level among the total 8 1-bit data is output by B <0> , B <1> , B <2> and B <3> The constructed 4-bit binary number refers to the data B<3:0> which shows the number of error bits.
[0113] As Figure 6 as well as Figure 8 As shown, the partial error bit data PF<127:120> among the error bit data PF<127:0> becomes the input measurement target data A<7:0> of the first sub-error bit counter. Similarly, the partial error bit data PF<119:112> becomes the input measurement target data A<7:0> of the second sub-error bit counter. Similarly, the partial error bit data PF<8×n+7:8×n> becomes the input measurement target data A<7:0> of the (16-n)th sub-error bit counter (assuming n=1, 2, 3, ..., 16).
[0114] Fig. 9 for Figure 6 The circuit diagram of the configuration example #2 of the sub-error bit counter 321 is shown in FIG. The sub-error bit counter 321 includes circuit blocks 331, 332, 333, 334, 335, and 336. When the control signal BCEN is HIGH, the circuit block 331 outputs a signal pbias having a value corresponding to the 1-bit measurement target data A. <0> ~A <7> The voltage of the total number of 1-bit data whose level is HIGH is used as a reference voltage. That is, the circuit block 331 outputs the signal pbias, and the signal pbias has a voltage corresponding to the number of error bits corresponding to the 8-bit portion as a reference voltage. In addition, the circuit block 331 is an example of the "second block" in the present invention.
[0115] The circuit block 332 outputs the measurement object data A <0> ~A <7> The logical product of <3> Here B <3> , showing the most significant bit (MSB) of the reference data B<3:0> of the partial error bit. <0> ~A <7> A total of 8 data are all HIGH. When all 8 bits are displayed as error bits, refer to data B. <3> In addition, the circuit block 332 is an example of the "first block" in the present invention.
[0116] When the control signal BCEN is HIGH, the circuit block 333 has the function of converting the reference data B <3> The level of the logic inversion is outputted and the delayed control signal ENd is outputted. In addition, the circuit block 333 is an example of "the device for disabling the third block and one or more fourth blocks" in the present invention.
[0117] Reference data B <3> When it is HIGH, since it is known that reference data B <2> , Reference data B <1> And reference data B <0> = is LOW, the control signal ENd stops the operation of the amplifiers included in the circuit blocks 334, 335 and 336 to save power. <2> , Reference data B <1> And reference data B <0> Become LOW.
[0118] The circuit block 334 outputs the reference data B whose level is determined by comparing the voltage (reference voltage) of the signal pbias corresponding to the actual number of error bits with the voltage of the signal corresponding to 3.5 error bits. <2> Therefore, referring to data B <2> It becomes HIGH when the number of partial error bits is between 4 and 7. Here, refer to data B <2> The second most significant bit (2nd MSB) of the reference data B<3:0> indicates the number of partial error bits.
[0119] The circuit block 335 outputs the signal pbias by comparing the voltage (reference voltage) corresponding to the actual number of error bits with the voltage corresponding to 1.5+4×B <2> The voltage of the signal with the number of error bits determines the reference data B of the level <1> Therefore, referring to data B <1> It becomes HIGH when the number of partial error bits is 2, 3, 6 or 7. In addition, circuit block 335 is an example of the "third block" in the present invention. <1> The third most significant bit (3rdMSB) of the reference data B<3:0> indicates the number of partial error bits.
[0120] The circuit block 336 outputs the signal pbias by comparing the voltage (reference voltage) corresponding to the actual number of error bits with the voltage corresponding to 0.5+2×B <1> +4×B <2> The voltage of the signal with the number of error bits determines the reference data B of the level <0> Therefore, referring to data B <0> It becomes HIGH when the number of partial error bits is 1, 3, 5 or 7. In addition, circuit block 336 is an example of the "fourth block" in the present invention.
[0121] Fig.10 for Figure 3 The block diagram of the configuration example #2 of the bit counting unit 301 shown in FIG. 3 is shown. The bit counting unit 301 includes a bit comparison unit 341, a bit correction unit 343, and a second bit counting timing generation unit 345. The bit comparison unit 341 inputs the error bit data PF<127:0>, and outputs the number of error bits before correction S<6:0>. The number of error bits before correction S<6:0> is displayed by a number that is the same as the number of error bits or is only 1 different from the number of error bits. The bit correction unit 343 corrects the number of error bits before correction S<6:0> through correction processing as needed, and outputs the determined number of error bits C<7:0>. The second bit counting timing generation unit 345 generates a signal for causing the bit comparison unit 341 and the bit correction unit 343 to operate. In addition, the second bit counting timing generation unit 345 is included in an example of the "calculation unit" in the present invention.
[0122] Fig.11 for Fig.10 The circuit diagram of the bit comparison unit 341 is shown in FIG. The bit comparison unit 341 includes eight exclusive OR gate groups 351 - 1 to 351 - 8 , nine NOT gate groups 353 - 1 to 353 - 9 , a bit counting differential amplifier 355 , and seven latch circuits 357 .
[0123] As the measurement target data A<127:0>, non-inverted error bit data which is the same data as the error bit data PF<127:0> or inverted error bit data obtained by inverting each bit of the error bit data PF<127:0> is supplied to the bit count differential amplifier 355. Data to be compared with the measurement target data A<127:0> is supplied as reference data B<127:0> to the bit count differential amplifier 355. 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.
[0124] In the following description, the number of error bits (or non-inverted error bits) is referred to as FB, the number of inverted error bits when each bit of the error bit data is logically inverted is referred to as FC, the number of bits whose logic level is HIGH included in the measurement object data A<127:0> is referred to as the measurement object bit number AA, and the number of bits whose logic level is HIGH included in the reference data B<127:0> is referred to as the reference activation bit number BB. The bit comparison unit 341 uses the binary search algorithm action control operation through the second bit count timing generation unit 345. Through this control, the bit count differential amplifier 355 included in the bit comparison unit 341 outputs the successively changing size data (discrimination result) OUT based on the size relationship between the measurement object bit number AA and the successively updated reference activation bit number BB. The bit comparison unit 341 outputs a plurality of bit data S obtained by successively sampling and synthesizing the size data OUT through 7 latch circuits 357. <6> ~S <0> The number of error bits before correction S<6:0> is formed.
[0125] In order to control the operation of the bit count differential amplifier 355 by an algorithm mainly using a binary search method, the second bit count timing generation unit 345 changes the data F0 to F7 successively. The data F0 to F5 and F7 are data for adjusting the reference activation bit number 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 measurement target bit number indicated in the measurement target data A<127:0> and its complementary data Af<127:0> in the bit count differential amplifier 355.
[0126] The eight exclusive OR gate groups 351-1 to 351-8 include 128, 32, 16, 8, 4, 2, 64 and 1 2-input 1-output exclusive OR gates, respectively. In addition, the eight NOT gate groups 353-1 to 353-8 include 128, 32, 16, 8, 4, 2, 64 and 1 NOT gates, respectively. In addition, the exclusive OR gate group 351-1 and the NOT gate group 353-1 are examples of the "measurement object setting unit" in the present invention, and the circuit including the exclusive OR gate group 351-2 to 351-8 and the NOT gate group 353-2 to 353-9 for generating the data of B<127:0> and Bf<127:0> is an example of the "reference data setting unit" in the present invention.
[0127] In general, the error bit data PF<127:0> and the data F0 to F7 are provided to the eight exclusive OR gate groups 351-1 to 351-8. Each bit of the error bit data PF<127:0> is provided to the first input terminal of the 128 exclusive OR gate groups included in the exclusive OR gate group 351-1, and the data F6 is provided in common to the second input terminal. Next, the output data of the 128 exclusive OR gate groups included in the exclusive OR gate group 351 and the data that pass through the NOT gate group 353-1 are provided to the bit counting differential amplifier 355 as the measurement object data A<127:0> and its complementary data Af<127:0>. Here, the circuit including the exclusive OR gate group 351-1 and the NOT gate group 353-1 for generating the data A<127:0> and Af<127:0> is an example of the "measurement data setting unit" in the present invention.
[0128] When data F6 is LOW, error bit data PF<127:0> directly becomes measurement target data A<127:0>. On the other hand, when data F6 is HIGH, data obtained by logically inverting error bit data PF<127:0> in bit units becomes measurement target data A<127:0>. Here, the number of bits with a logic level of HIGH included in measurement target data A<127:0> obtained by logically inverting error bit data PF<127:0> in bit units is the number obtained by subtracting the number of error bits included in error bit data PF<127:0> from 128.
[0129] As described later, before searching the number of error bits by the binary search algorithm, it is determined whether the number of error bits included in the error bit data PF<127:0> is less than 64. When the number of error bits FB is less than 64, the error bit data PF<127:0> is directly set as the measurement object data A<127:0>. On the other hand, when the number of error bits FB is greater than or equal to 64, data obtained by logically inverting the error bit data PF<127:0> in bit units is set as the measurement object data A<127:0>. In this way, it is possible to avoid the measurement object data A<127:0> provided to the bit counting differential amplifier 355 being greater than or equal to 64, and it is possible to reduce the error caused by the voltage error in the comparison between the measurement object data A<127:0> and the reference data B<127:0> in the bit counting differential amplifier 355.
[0130] In addition, when each bit of the error bit data PF<127:0> is used as the measurement target data A<127:0> without being logically inverted, the error bit number FB directly becomes the measurement target bit number AA. On the other hand, when each bit of the error bit data PF<127:0> is used as the measurement target data A<127:0> after being logically inverted, the inverted error bit number FC becomes the measurement target bit number AA.
[0131] The 128-bit output of the exclusive OR gate group 351-1 is provided to the bit counting differential amplifier 355 as the measurement object data A<127:0>, and the 128-bit output of the exclusive OR gate group 351-1 is provided to the bit counting differential amplifier 355 as the complementary data Af<127:0> via the inverted output of the logic inversion gate group 353-1.
[0132] The data F5 and its inverted data are provided as reference data B<127:96> and its complementary data Bf<127:96> to the bit count differential amplifier 355 through the 32 exclusive OR gate groups included in the exclusive OR gate group 351-2 and the 32 NOT gates included in the NOT gate group 353-2. Similarly, the data F4 and its inverted data are provided as reference data B<95:80> and its complementary data Bf<95:80> to the bit count differential amplifier 355 through the exclusive OR gate group 351-3 and the NOT gate group 353-3. The data F3 and its inverted data are provided as reference data B<79:72> and its complementary data Bf<79:72> to the bit count differential amplifier 355 through the exclusive OR gate group 351-4 and the NOT gate group 353-4. Through the exclusive OR gate group 351-5 and the NOT gate group 353-5, the data F2 and its inverted data are provided as reference data B<71:68> and its complementary data Bf<71:68> to the bit count differential amplifier 355. Through the exclusive OR gate group 351-6 and the NOT gate group 353-6, the data F1 and its inverted data are provided as reference data B<67:66> and its complementary data Bf<67:66> to the bit count differential amplifier 355. Through the exclusive OR gate group 351-7 and the NOT gate group 353-7, the data F7 and its inverted data are provided as reference data B<65:2> and its complementary data Bf<65:2> to the bit count differential amplifier 355. Through the exclusive OR gate group 351-8 and the NOT gate group 353-8, the data F0 and its inverted data are provided as reference data B<67:66> and its complementary data Bf<67:66> to the bit count differential amplifier 355. <1> and its complementary data Bf <1> The data at the LOW level and the data inverted to HIGH by the NOT gate 353-9 are respectively used as reference data B. <0> and its complementary data Bf <0> Provided to the bit counting differential amplifier 355.
[0133] The 7 latch circuits 357 are operated by following the Fig.14 The latch signals LAT6 to LAT0 generated successively with a time difference as shown latch the size data OUT sequentially outputted from the bit counting differential amplifier 355, and the plurality of bit data S <6> ~S <0> As output alignment. Multiple bits of data S <6> ~S <0> It is composed of the number of error bits before correction S<6:0> which shows the number of error bits before correction in binary.
[0134] like Fig.14 As shown, the previous data S at time t2 is about to <6> is latched, and the previous data S is about to reach time t3 <5> is latched, and similarly, the bit data S<8-i> immediately before time ti (i=4, 5, ..., 8) is latched. Therefore, at time t8, the number of error bits before correction S<6:0> is determined.
[0135] Fig.12 for Fig.11 The circuit diagram of the bit counting differential amplifier 355 is shown in FIG. (i=0,1,2,…,n-1;n=128) complementary data Bf The P channel MOS transistor 361 and the P channel MOS transistor 363 controlled by the measurement object data A The N-channel MOS transistor 365 controlled by the signal Amp EN and the N-channel MOS transistor 367 controlled by the signal Amp EN include a first group of 128 transistors directly connected from the power supply side to the ground side. The P channel MOS transistor 371 and the P channel MOS transistor 373 controlled by the reference data B The N-channel MOS transistor 375 controlled by the signal Amp EN and the N-channel MOS transistor 377 controlled by the signal Amp EN include 128 second groups directly connected from the power supply side to the ground side. Next, 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 groups are connected to each other and are used to control all the P-channel MOS transistors 373 included in the second group. 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 groups are connected to each other and are used to control all the P-channel MOS transistors 363 included in the first group. 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 groups can also be 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 groups can also be used as the internal signal OUTpre.
[0136] If the signal AMPEn changes from LOW to HIGH, the signal PCf also changes from LOW to HIGH after a specific delay time from the delay circuit 381, and the signal END also changes from LOW to HIGH after a specific delay time from another delay circuit 383. In addition, when the signal PCf changes from LOW to HIGH, the gate 369 and the AND gate 379 are closed. Therefore, when the signal AMPEn changes from LOW to HIGH, all N-channel MOS transistors 367 and all N-channel MOS transistors 377 are turned on, and the levels of the internal signal OUTpre and the internal signal OUTpreF are changed according to the measurement object data A. <n-1:0>The number of bits with HIGH level (i.e., the number of bits to be measured AA) and the reference data B <n-1:0>The number of bits of HIGH level (i.e., the number of active bits BB) included in the ENd are complementary to each other. After a specific delay time, the gates 385 and 386 opened by the signal ENd and the gates 387 and 388 behind them complementarily output the large and small data OUT and the complementary data OUTF corresponding to the internal signal OUTpre and the internal signal OUTpreF, respectively.
[0137] Specifically, when the external signal AmpEN is HIGH, if the measurement target data A <n-1>~A <0> The number of data with HIGH level (i.e., the number of measurement target bits AA) exceeds the reference data B. <n-1>~B <0> The internal signal OUTpre and its inverted internal signal OUTpreF become HIGH and LOW respectively. On the other hand, when the external signal Amp EN is HIGH, if the measured data A is <n-1>~A <0> The number of data with HIGH level (i.e., the number of bits of the measurement object AA) does not reach the reference data B <n-1>~B <0> During the period when the data level is HIGH (i.e., the number of active bits BB), the internal signal OUTpre and its inverted internal signal OUTpreF become LOW and HIGH respectively. Next, during the period when the external signal Amp EN is HIGH, the internal signal OUTpre and the inverted internal signal OUTpreF are output to the outside as the large and small data OUT and its complementary data OUTF.
[0138] Fig.13 for Fig.10 The circuit diagram of the bit correction unit 343d shown in FIG. 3 is composed of a buffer 393, six two-input exclusive OR gates 395, a 129-input exclusive OR gate 397, an adder 391, and eight latch circuits 399. The error bit number S<6:0> before correction is applied to the intermediate correction via the buffer 393 and the six two-input exclusive OR gates 395, and is provided to the adder 391 as the intermediate error bit number Sd<6:0>. Next, the intermediate error bit number Sd<6:0> is applied to the adder 391 controlled by the 129-input exclusive OR gate 397, and is output from the bit correction unit 343 as the determined error bit number C<7:0> via eight latches. In the intermediate correction, when the inverted error bit number is referred to as FC as the measurement target bit number AA in the bit comparison unit 341, the corresponding processing is performed. In the subsequent correction, if an error occurs in the number of error bits S<6:0> before correction, a process for correcting the error is executed. <6> The bit data S included in the error bit number S<6:0> before correction is provided to the adder 391 via the buffer 393. <5> ~S <0> Each of the bits S in the exclusive OR gate 395 <6> After taking the exclusive OR, it is provided to the add-1 adder 391.
[0139] Therefore, if the bit data S <6> is LOW, the error bit number S<6:0> before correction is directly provided to the adder 391 as the intermediate error bit number Sd<6:0>. <6> HIGH, the data showing the value obtained by subtracting the value shown by the number of error bits before correction S<6:0> from 127 is provided as the intermediate number of error bits Sd<6:0> to the adder 391. This is because when it is known that the number of error bits is greater than 64 as described above, the number of error bits FB is replaced by the inverse number of error bits FC obtained by subtracting the number of error bits FB from 128 as the number of measurement target bits AA, and then the corresponding number of measurement target bits AA is found by the binary search algorithm. That is, the number of error bits before correction S<6:0> corresponds to the number obtained by subtracting the number of error bits from 128 expressed in binary.
[0140] The 129-input exclusive OR gate 397 calculates the sum of all bits of the error bit data PF<127:0> and the least significant bit (LSB) of the middle error bit number Sd<6:0>. <0> The exclusive logic of 129 inputs is calculated (i.e., the exclusive OR of 129 inputs is calculated), and the result is provided as control data OEMatch to the add-1 adder 391. The control data OEMatch is used as an enable signal for addition in the add-1 adder 391. Here, the control data OEMatch is used in the parity of the error bit data PF<127:0> and the data Sd <0> The parity of the error bit data PF<127:0> is consistent with the data Sd <0> It becomes HIGH when the parity is inconsistent.
[0141] Therefore, when the parity of the actual number of error bits included in the error bit data PF<127:0> detected by the error bit detection unit 201 after bit expansion and the parity of the number of error bits before correction indicated by the 7-bit binary number of the number of error bits before correction S<6:0> do not match, 1 is added to the intermediate number of error bits Sd<6:0> in the adder 391. Then, the added data is output from the adder 391 as the corrected number of error bits SS<7:0> indicating the corrected number of error bits. On the other hand, when the parity of the actual number of error bits included in the error bit data PF<127:0> and the parity of the number of error bits before correction indicated by the pre-correction number of error bits S<6:0> match, the intermediate number of error bits Sd<6:0> input to the adder 391 is output from the adder 391 as the corrected number of error bits SS<7:0> indicating the corrected number of error bits.
[0142] The latch circuit 399 latches the plurality of bit data SS<7:0> outputted from the adder 391, which constitute the corrected error bit number SS<7:0>. <7> ~SS <0> , as C <7> ~C <0> The determined error bit number C<7:0> of the binary number obtained by summing up the above is the determined error bit number C<7:0> output from the bit counting unit 301 .
[0143] In the bit comparison unit 341, when the inverted error bit number FC is used as the bit number AA to be measured, it is assumed that data showing a value obtained by subtracting the value shown by the error bit number S<6:0> before correction from 128 instead of from 127 is obtained as the intermediate error bit number Sd<6:0>. That is, when no error occurs, the intermediate error bit number Sd<6:0> becomes the correct error bit number FB. On the other hand, when an error occurs, it becomes necessary to obtain a value obtained by subtracting 1 from the intermediate error bit number Sd<6:0> as the correct error bit number FB.
[0144] Therefore, the following configuration and operation are required:
[0145] Configuration: One adder 391 is replaced by ±1 adders.
[0146] Action #1: In the bit comparison section 341, the non-inverted error bit number FB is set as the measurement target bit number AA. When there is no error, the error bit number Sd<6:0> is directly set to SS<6:0> in the ±1 adder.
[0147] Action #2: In the bit comparison unit 341, the non-inverted error bit number FB is used as the measurement target bit number AA, and when an error occurs, the ±1 adder sets the value of Sd<6:0> plus 1 to SS<6:0>. In other words, the ± adder performs a process of adding 1 to Sd<6:0>.
[0148] Action #3: Invert the error bit number FC as the measurement target bit number AA, and when there is no error, set the error bit number Sd<6:0> to SS<6:0>.
[0149] Action #4: Invert the error bit number FC as the measurement target bit number AA, and when an error occurs, set the value of Sd<6:0> minus 1 to SS<6:0>. That is, the ±1 adder performs a process of subtracting 1 from Sd<6:0>.
[0150] In order to achieve such a configuration and operation, a larger circuit and more calculation processing are required compared with the above configuration.
[0151] Fig.15 for Figure 3 4 is a circuit diagram showing the structure of the bit count accumulating unit 401. The 8-input exclusive OR gate 411 outputs the logical sum of all bits of the determined error bit number C<7:0> indicating the number of error bits as data CMP. Therefore, if there is no error bit in the 1 set of error bit data PF<127:0>, the data CMP is LOW, and if there is at least one error bit in the 1 set of error bit data PF<127:0>, the data CMP is HIGH. That is, the data CMP indicates whether there is an error bit for the 1 set of error bit data PF<127:0>.
[0152] The output data CCMP of the flip-flop circuit 413 becomes LOW by the reset signal RST corresponding to the control signal CBC, and then the data CMP changes from LOW to HIGH. Therefore, the data CCMP indicates whether all the error bit data PF<127:0> that are the detection targets of the error bit have an error bit. That is, the i-th error bit data PF<127:0> is marked as PF(i), and if the error bit number FB corresponding to PF(i) is set to FB(i), if at least one error bit is generated from the first cycle after the CCMP reset signal RST is generated to the S-th cycle corresponding to the current cycle, the output data CCMP of the flip-flop circuit 413 becomes HIGH.
[0153] The 8 / n-bit adder 415 and the latch circuit 417 constitute a cumulative circuit. Therefore, the cumulative error bit CC output by the latch circuit 417 is <n-1:0>Displays whether there are any error bits for all error bit data PF<127:0> that are the detection targets of error bits. That is, the i-th error bit data PF<127:0> is marked as PF(i), and if the error bit number FB corresponding to PF(i) is set to FB(i), the cumulative error bit number CC output by the latch circuit 417 is <n-1:0>Displays the number of accumulated error bits from the first cycle after the reset signal RST is generated to the current Sth cycle:
[0154] ∑ i=1~S FB(i)
[0155] The multiplexers MUX421, 423 and 425 select the data CMP, the data CCMP, the determined error bit number C<7:0> and the accumulated error bit number CC according to the combination of the control signal CBOUT and the control signal COMP. <n-1:0>Any one of them is used as output data CNT <n-1:0>.
[0156] Fig.14 For illustration Fig.10 The timing chart of the operation of the bit counting unit configuration example #2 is shown.
[0157] In addition, in the following description, although it is indicated:
[0158] (F7, F6, F5, F4, F3, F2, F1, F0) = (X7, X6, X5, X4, X3, X2, X1, X0);
[0159] At this time, the measurement target bit AA and the reference activation bit BB are as follows:
[0160] AA=FB(when F6=LOW)
[0161] 128-FB (when F6=HIGH)
[0162] BB=x7·64+x5·32+x4·16+x3·8+x2·4+x1·2+x0
[0163] Here,
[0164] When xi=HIGH, xi=1
[0165] When xi=LOW, xi=0
[0166] When xi=HIGH / LOW, xi=1 or 0
[0167] <Time t1>
[0168] Data F7 is set to HIGH. On the other hand, data F0 to data F6 are set to LOW. As a result, the error bit number FB is set to the measurement target bit number AA, and the reference activation bit number BB becomes 64. Next, starting from the change of signal Amp EN from LOW to HIGH, the measurement target bit number AA and the reference activation bit number BB (64) are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT6. <6> Specifically, if the error bit number FB is greater than 64, the bit data S <6> is set to HIGH, if the error bit FB does not reach 64, the bit data S <6> At this point in time, only the bit data S included in the number of error bits before correction S<6:0> is determined. <6> .
[0169] <Time t2>
[0170] The signal Amp EN returns from HIGH to LOW. The data F7 returns from HIGH to LOW. In addition, the data F5 is set to HIGH. Furthermore, the data F0 to F4 remain LOW. Therefore, the reference activation bit number BB becomes 32. The reference activation bit number BB here is referred to as the reference activation bit number BB#5. In addition, the bit data S <6> Specifically, if the number of error bits FB is greater than 64, data F6 is set to HIGH, and if the number of error bits FB is less than 64, data F6 is set to LOW.
[0171] Therefore, the number of bits whose logic level is HIGH (the number of bits to be measured AA) included in the measurement target data A<127:0> is determined as follows:
[0172] If the error bit number FB is greater than 64, the measurement target bit number AA is equal to the inverted error bit number FC obtained by subtracting the error bit number FB from 128. If the error bit number FB is less than 64, the measurement target bit number AA is equal to the error bit number (i.e., the non-inverted error bit number) FB.
[0173] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H, L, L, L, L, L);
[0174] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference active bit number BB#5 are compared by the bit counting differential amplifier 355 .
[0175] The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is stored in the latch circuit 357 as the bit data S by the latch signal LAT5. <5> If the measured bit number AA exceeds the reference activation bit number BB#5, the latched bit data S <5> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#5, the latched bit data S <5> At this point in time, the bit data S <5> .
[0176] <Time t3>
[0177] The signal Amp EN returns from HIGH to LOW. Data F6 maintains the logic level set at time t2. Therefore, the measurement target bit number AA is maintained. In addition, data F7 maintains LOW. Furthermore, bit data S <5> The value of is set as the value of data F5. Furthermore, data F4 is set to HIGH. Furthermore, data F0 to data F3 are maintained LOW. Therefore, if the reference activation bit number BB here is called the reference activation bit number BB#4, the reference activation bit number BB#4 is S <5> ×32+16.
[0178] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H, L, L, L, L)
[0179] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference activation bit number BB#4 are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT4. <4> Here, if the measurement target bit number AA exceeds the reference activation bit number BB#4, the latched bit data S <4> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#4, the latched bit data S <4> At this point in time, the bit data S <4> .
[0180] <Time t4>
[0181] The signal Amp EN returns from HIGH to LOW. Data F6 maintains the logic level set at time t2. Therefore, the measurement target bit number AA is maintained. In addition, data F7 maintains LOW. Data F5 maintains the logic level set at time t3. Furthermore, bit data S <4> The value of is set to the value of data F4. Furthermore, data F3 is set to HIGH. Furthermore, data F0 to data F2 are maintained LOW. Therefore, if the reference activation bit number BB here is called the reference activation bit number BB#3, the reference activation bit number BB#3 is S <4> ×16+8.
[0182] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H / L, H, L, L, L);
[0183] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference activation bit number BB#3 are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT3. <3> Here, if the measurement target bit number AA exceeds the reference activation bit number BB#3, the latched bit data S <3> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#3, the latched bit data S <3> At this point in time, the bit data S <3> .
[0184] <Time t5>
[0185] The signal Amp EN returns from HIGH to LOW. Data F6 maintains the logic level set at time t2. Therefore, the measurement target bit number AA is maintained. In addition, data F7 maintains LOW. Data F5 and F4 maintain the logic levels set at time t3 and t4, respectively. <3> The value of is set to the value of data F3. Furthermore, data F2 is set to HIGH. Furthermore, data F0 to data F1 are maintained LOW. Therefore, if the reference activation bit number BB here is called the reference activation bit number BB#2, the reference activation bit number BB#2 is S <5> ×32+S <4> ×16+S <3> ×8+4.
[0186] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H / L, H / L, H, L, L);
[0187] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference activation bit number BB#2 are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT2. <2> Here, if the measurement target bit number AA exceeds the reference activation bit number BB#2, the latched bit data S <2> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#2, the latched bit data S <2> At this point in time, the bit data S <2> .
[0188] <Time t6>
[0189] The signal Amp EN returns from HIGH to LOW. Data F6 maintains the logic level set at time t2. Therefore, the measurement target bit number AA is maintained. In addition, data F7 maintains LOW. Data F5, F4, and F3 maintain the logic levels set at time t3, t4, and t5, respectively. <2> The value of is set to the value of data F2. Furthermore, data F1 is set to HIGH. Furthermore, data F0 is maintained LOW. Therefore, if the reference activation bit number BB here is called the reference activation bit number BB#1, the reference activation bit number BB#1 is S <5> ×32+S <4> ×16+S <3> ×8+S <2> ×4+2.
[0190] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H / L, H / L, H / L, H, L)
[0191] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference activation bit number BB#1 are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT1. <1> Here, if the measurement target bit number AA exceeds the reference activation bit number BB#1, the latched bit data S <1> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#1, the latched bit data S <1> At this point in time, the bit data S <1> .
[0192] <Time t7>
[0193] The signal Amp EN returns from HIGH to LOW. Data F6 maintains the logic level set at time t2. Therefore, the measurement target bit number AA is maintained. In addition, data F7 maintains LOW. Data F5, F4, F3, and F2 maintain the logic levels set at time t3, t4, t5, and t6, respectively. <1> The value of is set to the value of data F1. Furthermore, data F1 is set to bit data S <1> The value of. Furthermore, data F0 is set to HIGH. Therefore, if the reference activation bit number BB here is called the reference activation bit number BB#0, the reference activation bit number BB#0 is S <5> ×32+S <4> ×16+S <3> ×8+S <2> ×4+S <1> ×2+1.
[0194] At this time, (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H / L, H / L, H / L, H / L, H / L, H / L, L);
[0195] Next, the signal Amp EN changes from LOW to HIGH, and the measurement target bit number AA and the reference activation bit number BB#0 are compared by the bit counting differential amplifier 355. The magnitude data OUT from the bit counting differential amplifier 355 showing the comparison result is latched in the latch circuit 357 as the bit data S by the latch signal LAT0. <0> Here, if the measurement target bit number AA exceeds the reference activation bit number BB#0, the latched bit data S <0> On the other hand, if the measurement target bit number AA does not reach the reference activation bit number BB#0, the latched bit data S <0> At this point in time, the bit data S <0> Therefore, due to the multiple bit data S <6> ~S <0> It has been determined that the number of error bits S<6:0> before correction is determined at this point in time.
[0196] <Time t8>
[0197] If you also refer to Fig.13 , Fig.14 In the example shown, the positioning data S is determined just before time t8. <0> In addition, the positioning data S is determined before time t2 <6> Therefore, in the case corresponding to the bit data S <0> The output portion of the exclusive OR gate 395 determines the display bit data S <0> And bit data S <6> The intermediate error bit number Sd<6:0> of the exclusive OR of these two is determined. Next, the error bit data PF<127:0> is determined before time t1. Next, the control data OEMatch is determined in the output portion of the 129-input exclusive OR gate 397 after time t8.
[0198] <Time t9>
[0199] In addition, the bit data S included in the number of error bits S<6:0> before correction <5> ~S <1> Therefore, at time t9, the latch circuit 399 latches the corrected error bit number SS<7:0> determined by the output of the adder 391 that has been activated by these determined signals by means of the latch signal LATC, and outputs it as the determined error bit number C<7:0>.
[0200] <Time t10>
[0201] Fig.15 When the accumulating circuit composed of the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulating section 401 is driven by the control signal CUM, the accumulating error bit number CC is <n-1:0>is updated to the value added to the number of definite error bits C<7:0> to be the target of the current error bit measurement. Fig.14 The operation shown is assumed to be 1 cycle, and the number of error bits C<7:0> is determined in each cycle. Next, the cumulative number of error bits CC is updated every time the time advances by 1 cycle. <n-1:0>In addition, the latch circuit 417 is set by the control signal CBC. Therefore, the cumulative error bit CC <n-1:0>Displays the value of the number of error bits C<7:0> accumulated from the start of the generation of the control signal CBC to the present.
[0202] When the bit counting differential amplifier 355 is used to compare the measurement object data A<127:0> and the reference data B<127:0>, although the reference activation bit number is updated successively, when the measurement object bit number and the reference activation bit number are the same, there is a possibility that an error will occur in the logic level of the comparison result data OUT.
[0203] For example, when the number of error bits is 24, it should be:
[0204] S <6> =LOW
[0205] S <5> =LOW
[0206] S <4> =HIGH
[0207] S <3> =HIGH
[0208] S <2> =LOW
[0209] S <1> =LOW
[0210] S <0> =LOW
[0211] Here, we need to obtain the bit data S <3> When comparing the 24th bit AA of the measurement object and the 24th bit BB of the reference activation bit. <3> The value of should be HIGH, but it may become LOW due to the influence of manufacturing errors or noise of semiconductor characteristics. In other words, during the tree search, the bit data S <3> =HIGH, but mistakenly judged as bit data S <3> =LOW. At this time, we can get
[0212] S <6> =LOW
[0213] S <5> =LOW
[0214] S <4> =HIGH
[0215] S <3> =LOW
[0216] S <2> =HIGH
[0217] S <1> =HIGH
[0218] S <0> =HIGH
[0219] In this case, the number of error bits indicated by the number of error bits before correction S<6:0> is not 24 but an error value of 23.
[0220] As described above, when comparing the measurement target bit number with the reference activation bit number of the same number, there is a possibility of such an error. Therefore, generally, when comparing the measurement target bit number AA with the reference activation bit number BB having the same value as the measurement target bit number AA (when AA=BB), there is a possibility of an error. When comparing the measurement target bit number AA with the reference activation bit number BB having a different value from it (when AA≠BB), there is no possibility of an error. Here, although when the measurement target bit number AA and the reference activation bit number BB are equal, there is an error of erroneously judging the measurement target bit number AA as BB+1, and an error of erroneously judging the measurement target bit number AA as BB-1, the bit counting unit 301 is designed so that the latter error does not occur.
[0221] Therefore, the presence of an error in the number of error bits before correction S<6:0> is detected by the inconsistency between the parity of the number of error bits and the parity of the number of error bits before correction S<6:0>. If an error is detected in the number of error bits before correction S<6:0>, in order to obtain the definite number of error bits C<7:0>, it is only necessary to add 1 to the value of the number of error bits before correction S<6:0>. However, the above is limited to the case where the number of non-inverted error bits in the bit comparison unit 341 is set as the number of bits to be measured. In the case where the number of inverted error bits in the bit comparison unit 341 is set as the number of bits to be measured, in the bit correction unit 343, the intermediate number of error bits Sd<6:0> is obtained by logically inverting only S<5:0> included in the number of error bits before correction S<6:0> input from the bit comparison unit 341. Since this is a calculation of 1'C to obtain the number of error bits before correction S<6:0>, the calculation result is only 1 less than the calculation result of 2'C to obtain the number of error bits before correction S<6:0>.
[0222] Thus, unlike the case where the non-inverted error bit number is set as the measurement target bit number in the bit comparison section 341, the middle error bit number Sd<6:0> displays the number of error bits minus 1 when there is no error, and displays the same number as the error bit number when there is an error. Therefore, when an error occurs in the bit comparison section 341, the parity of the error bit number coincides with the parity of the middle error bit number Sd<6:0>, and when no error occurs in the bit comparison section 341, the parity of the error bit number coincides with the parity of the middle error bit number Sd<6:0>.
[0223] Therefore, even when the inverted error bit number is used as the measurement target bit, the same processing as when the error bit number is used as the measurement target bit can be performed. That is, if the parity of the error bit number is consistent with the parity of the error bit number S<6:0> before correction, only the middle error bit number Sd<6:0> is bit-expanded to be the error bit number SS<7:0> after correction. On the other hand, if the parity of the error bit number is inconsistent with the parity of the error bit number S<6:0> before correction, 1 is added to the middle error bit number Sd<6:0> and bit-expanded to be the error bit number SS<7:0> after correction.
[0224] The bit correction unit 343 inputs the number of error bits before correction S<6:0> from the bit comparison unit 341 .
[0225] If the MSB bit data S of the error bit S<6:0> before correction <6> is LOW, the error bit number FB included in the error bit data PF<127:0> is less than 64, and the error bit number S<6:0> before correction represents the non-inverted error bit number FB in binary.
[0226] On the other hand, if the bit data S <6> is HIGH, the number of error bits FB included in the error bit data PF<127:0> is greater than or equal to 64, and the number of error bits before correction S<6:0> represents the inverted number of error bits FC in binary.
[0227] In addition, the number of error bits S<6:0> before correction may contain errors.
[0228] The position correction unit 343 performs four operations by the above combination.
[0229] Operation #1 related to the bit correction unit is performed when the error bit number FB included in the error bit data PF<127:0> does not reach 64 and the error bit number S<6:0> before correction does not include an error.
[0230] When the error bit number FB included in the error bit data PF<127:0> does not reach 64, the bit data S <6> The error bit number S<6:0> before correction directly represents the error bit number FB in a 7-bit binary number. Therefore, the error bit number S<6:0> before correction is directly provided to the adder 391 as the intermediate error bit number Sd<6:0>.
[0231] The adder 391 expands the intermediate error bit number Sd<6:0> by one bit and outputs it as the corrected error bit number SS<7:0>. Since the input terminal of one side of the six exclusive OR gates 395 is provided with the bit data S of the LOW level, <6> , the six exclusive OR gates 395 directly provide S<5:0> as Sd<5:0> to the adder 391. In addition, the buffer 393 directly provides the bit data S of the LOW level <6> As Sd <6> Provided to add-1 adder 391.
[0232] In addition, when the number of error bits is even, the data Sd <0> is LOW; when the number of error bits is odd, the data Sd <0> Therefore, in any case, the 129-input exclusive OR gate 397 provides the control data OEMatch with a value of LOW to the adder 391, so the adder 391 does not perform addition. That is, only the intermediate error bit number Sd<6:0> is expanded as the corrected error bit number SS<7:0> output.
[0233] Action #2 related to the bit correction unit is when the error bit number FB included in the error bit data PF<127:0> does not reach 64 and the error bit number S<6:0> before correction includes an error.
[0234] If the number of error bits FB included in the error bit data PF<127:0> does not reach 64, the bit data S <6> The error bit number S<6:0> before correction directly represents the error bit number FB as a 7-bit binary number. Therefore, the error bit number S<6:0> before correction is directly provided to the adder 391 as the intermediate error bit number Sd<6:0>.
[0235] The adder 391 adds 1 to the intermediate error bit number Sd<6:0> and outputs it as the corrected error bit number SS<7:0>. <6> , the exclusive OR gate 395 directly provides S<5:0> as Sd<5:0> to the adder 391, and the buffer 393 directly provides the bit data S of the LOW level <6> As Sd <6> Provided to add-1 adder 391.
[0236] When the number of error bits is even, the data Sd <0> From LOW to HIGH; when the number of error bits is odd, data Sd <0> Therefore, no matter what the situation, the 129-input exclusive OR gate 397 provides the control data OEMatch with the value of HIGH to the adder 391, and the adder 391 performs addition. That is, the intermediate error bit number Sd<6:0> is added by 1 and the bit extension is added to output as the corrected error bit number SS<7:0>.
[0237] Operation #3 related to the bit correction unit is performed when the error bit number FB included in the error bit data PF<127:0> is greater than or equal to 64 and the error bit number S<6:0> before correction does not include any error.
[0238] If the number of error bits FB included in the error bit data PF<127:0> is greater than 64, the bit data S <6> HIGH. In addition, the number of error bits before correction S<6:0> represents the number of inverted error bits FC as a 7-bit binary number. Therefore, the number of error bits before correction S<6:0> representing the number of inverted error bits is converted into the number of intermediate error bits Sd<6:0> representing the number of non-inverted error bits minus 1 and is provided to the adder 391.
[0239] The adder 391 adds 1 to the intermediate error bit number Sd<6:0> and outputs it as the corrected error bit number SS<7:0>. <6> , the exclusive OR gate 395 logically inverts S<5:0> as Sd<5:0> and provides it to the adder 391. The buffer 393 directly converts the HIGH level bit data S <6> As Sd <6> The number is supplied to the adder 391. Here, based on the error bit number S<6:0> before correction indicating the inversion error bit number, the number obtained by subtracting 1 from the non-inversion error bit number is obtained as Sd<6:0>.
[0240] In any case, the control data OEMatch of HIGH value is provided to the adder 391, and the adder 391 performs addition, that is, adds 1 to the intermediate error bit number Sd<6:0> and then bit-expands it to output as the corrected error bit number SS<7:0>.
[0241] Action #4 related to the bit correction unit is performed when the number of error bits FB included in the error bit data PF<127:0> is greater than or equal to 64 and the number of error bits before correction S<6:0> includes an error.
[0242] If the number of error bits FB included in the error bit data PF<127:0> is greater than 64, the bit data S <6> The error bit number S<6:0> before correction represents the inversion error bit number FC as a 7-bit binary number. Therefore, the error bit number S<6:0> before correction is converted into the intermediate error bit number Sd<6:0> representing the number of non-inversion error bits minus 1 and is provided to the adder 391.
[0243] The adder 391 does not add 1 to the intermediate error bit number Sd<6:0>, and the bit expansion is output as the corrected error bit number SS<7:0>. <6> , the exclusive OR gate 395 logically inverts S<5:0> as Sd<5:0> and provides it to the adder 391. The buffer 393 directly converts the HIGH level bit data S <6> As Sd <6> The number is supplied to the adder 391. Here, based on the number of error bits before correction S<6:0>, the number obtained by subtracting 1 from the number of non-inverted error bits can be obtained as Sd<6:0>.
[0244] In any case, the control data OEMatch of LOW is provided to the adder 391, so the adder 391 does not perform addition. That is, the intermediate error bit number Sd<6:0> is not added by 1, and the bit expansion is output as the corrected error bit number SS<7:0>.
[0245] Specific action examples
[0246] Action Example 1: When the number of error bits is 88,
[0247] At time t1, it is detected that the number of the first reference active bits of the error bit data 88 included in the error bit data PF<127:0> is greater than 64. Therefore, all bits of the inverted error bit data PF<127:0> are provided as the measurement object data A<127:0> to the bit counting differential amplifier 355. The number of measurement object bits AA included in the measurement object data A<127:0> is 128-88=40.
[0248] From time t2 to time t7, the pre-correction error bit number S<6:0> of the binary number representing the measurement target bit number AA included in the measurement target data A<127:0> is obtained according to the binary search algorithm.
[0249] At time t8, the intermediate error bit number Sd<6:0> is obtained, which is 87 obtained by subtracting the error bit number 40 (indicated by the error bit number S<6:0> before correction) from 127. 87 is the value of the correct error bit number 88 minus 1.
[0250] At time t8, since the parity of the actual error bit number 88 is inconsistent with the parity of the error bit number 87 shown by the middle error bit number Sd<6:0>, the definite error bit number C<7:0> of the binary number showing the correct error bit number 88 is obtained by adding 1 to the error bit number 87 shown by the middle error bit number Sd<6:0>.
[0251] Next, the actions at each moment are described in order.
[0252] <Time t1>
[0253] (F7, F6, F5, F4, F3, F2, F1, F0) = (H, L, L, L, L, L, L, L);
[0254] The error bit number 88 included in the measurement target data A<127:0> which is the same as the error bit data PF<127:0> is compared with the reference active bit number 64 included in the reference data B<127:0>. <6> Become HIGH.
[0255] <Time t2>
[0256] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, L, L, L);
[0257] The error bit number 40 (=128-88) included in the measurement target data A<127:0> is compared with the reference active bit number 32 included in the reference data B<127:0>. <5> Become HIGH.
[0258] <Time t3>
[0259] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, H, L, L, L, L);
[0260] The error bit number 40 included in the measurement target data A<127:0> is compared with the reference active bit number 48 included in the reference data B<127:0>. <4> Become LOW.
[0261] <Time t4>
[0262] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, L, L);
[0263] The error bit number 40 included in the measurement target data A<127:0> is compared with the reference active bit number 40 included in the reference data B<127:0>. <3> Become HIGH.
[0264] <Time t5>
[0265] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, H, L, L);
[0266] The error bit number 40 included in the measurement target data A<127:0> is compared with the reference active bit number 44 included in the reference data B<127:0>. <2> Become LOW.
[0267] <Time t6>
[0268] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, H, L);
[0269] The error bit number 40 included in the measurement target data A<127:0> is compared with the reference active bit number 42 included in the reference data B<127:0>. <1> Become LOW.
[0270] <Time t7>
[0271] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, L, H);
[0272] The error bit number 40 included in the measurement target data A<127:0> is compared with the reference active bit number 41 included in the reference data B<127:0>. <0> Become LOW.
[0273] The comparison result at this time point is about multiple bits of data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the latch circuits 357, the logic levels of HIGH, HIGH, LOW, HIGH, LOW, LOW, and LOW are determined. Here, the number of error bits S<6:0> before correction shows 40.
[0274] <Time t8>
[0275] Since the number of error bits 88 of the error bit data PF<127:0> exceeds the initial reference activation bit number 64, at time t1, the middle bit data S <6> Therefore, the intermediate error bit number Sd<6:0> is obtained by inverting each bit of the error bit number S<6:0> before correction. <6> ~S <0> Displaying 40 causes the middle error bit number Sd<6:0> to display 87 obtained by subtracting 40 from 127 which is 1 less than 128.
[0276] The actual number of error bits 88 is an even number, and since the middle number of error bits 87 indicated by the middle number of error bits Sd<6:0> is an odd number, the control data OEMatch indicates that the parity of the two numbers is inconsistent. Therefore, the adder 391 outputs the corrected number of error bits SS<7:0> indicating the corrected number of error bits 88 obtained by adding 1 to the pre-corrected number of error bits 87 indicated by the middle number of error bits Sd<6:0>.
[0277] Afterwards, by latching the latch signal LATC in the latch circuit 399 (refer to Fig.13 ) latches the corrected error bit number SS<7:0> to determine the determined error bit number C<7:0> showing the error bit number 88.
[0278] Then, in the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulation section 401, the determined error bit number C<7:0> indicating the error bit number 88 of the data to be currently measured for error bit is added to the accumulated error bit number CC by the control signal CUM. <n-1:0>.
[0279] Action Example 2: When the number of error bits is 88,
[0280] At time t1, it is detected that the first reference active bit number is greater than 64. Therefore, all bits of the inverted error bit data PF<127:0> are provided as the measurement target data A<127:0> to the bit counting differential amplifier 355. Here, the measurement target bit number AA included in the measurement target data A<127:0> is 128-88=40.
[0281] From time t2 to time t7, the number of error bits before correction S<6:0> is obtained by following the binary search algorithm. Here, the number of error bits before correction S<6:0> obtained by the process from time t2 to time t7 is 40, but due to the influence of manufacturing errors or noise of semiconductor characteristics, the value becomes 39.
[0282] At time t8, the intermediate number of error bits Sd<6:0> is obtained, which shows 127 minus the number of error bits 39 shown by the number of error bits S<6:0> before correction to get a number 88. 88 is the correct number of error bits.
[0283] In addition, at time t8, since the parity of the actual error bit number 88 is consistent with the parity of the error bit number 87 indicated by the middle error bit number Sd<6:0>, the binary definite error bit number C<7:0> is obtained by directly displaying the error bit number 88 indicated by the middle error bit number Sd<6:0>.
[0284] Next, the actions at each moment are described in order.
[0285] <Time t1>
[0286] (F7, F6, F5, F4, F3, F2, F1, F0) = (H, L, L, L, L, L, L, L);
[0287] The error bit number 88 included in the measurement target data A<127:0> which is the same as the error bit data PF<127:0> is compared with the reference active bit number 64 included in the reference data B<127:0>. <6> Become HIGH.
[0288] <Time t2>
[0289] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, L, L, L);
[0290] The error bit number 40 (=128-88) of the measurement target data A<127:0> is compared with the reference active bit number 32 of the reference data B<127:0>. <5> Become HIGH.
[0291] <Time t3>
[0292] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, H, L, L, L, L);
[0293] The error bit number 40 of the measurement target data A<127:0> is compared with the reference active bit number 48 of the reference data B<127:0>. <4> Become LOW.
[0294] <Time t4>
[0295] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, L, L);
[0296] The error bit number 40 of the measurement target data A<127:0> is compared with the reference active bit number 40 of the reference data B<127:0>. <3> Become LOW.
[0297] <Time t5>
[0298] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, H, L, L);
[0299] The error bit number 40 of the measurement target data A<127:0> is compared with the reference active bit number 36 of the reference data B<127:0>. <2> Become HIGH.
[0300] <Time t6>
[0301] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, H, H, L);
[0302] The error bit number 40 of the measurement target data A<127:0> is compared with the reference active bit number 38 of the reference data B<127:0>. <1> Become HIGH.
[0303] <Time t7>
[0304] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, H, H, H);
[0305] The error bit number 40 of the measurement target data A<127:0> is compared with the reference active bit number 39 of the reference data B<127:0>. <0> Become HIGH.
[0306] Regarding the multiple bits of data S at this time point <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the latch circuits 357, the logic levels of HIGH, HIGH, LOW, LOW, HIGH, HIGH, and HIGH are determined. Here, the number of error bits S<6:0> before correction shows 39.
[0307] <Time t8>
[0308] Since the number of error bits 88 of the error bit data PF<127:0> exceeds the initial reference activation bit number 64, at time t1, the middle bit data S <6> Therefore, the intermediate error bit number Sd<6:0> is obtained by inverting each bit of the error bit number S<6:0> before correction. <6> ~S <0> Displaying 39 causes the middle error bit number Sd<6:0> to display 88 obtained by subtracting 39 from 127 which is 1 less than 128.
[0309] The actual number of error bits 88 is an even number. Since the number of middle error bits 88 displayed by the middle error bit Sd<6:0> is an even number, the control data OEMatch shows that the parity of the two is consistent.
[0310] Therefore, the adder 391 directly outputs the pre-correction error bit number 88 indicated by the intermediate error bit number Sd<6:0> as the post-correction error bit number SS<7:0> indicating the post-correction error bit number 88. Fig.13 ) latches the corrected error bit number SS<7:0> to determine the determined error bit number C<7:0> showing the error bit number 88.
[0311] Then, in the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulation section 401, the determined error bit number C<7:0> indicating the error bit number 88 of the data to be currently measured for error bit is added to the accumulated error bit number CC by the control signal CUM. <n-1:0>.
[0312] Action Example 3: When the number of error bits is 24, 1
[0313] At time t1, the error bit data number 24 included in the error bit data PF<127:0> detects that the first reference activation bit number has not reached 64. Therefore, unlike operation examples 1 and 2, from time t2 to time t7, the error bit data PF<127:0> is directly provided to the bit counting differential amplifier 355 as the measurement target data A<127:0>.
[0314] From time t2 to time t7, the number of error bits before correction S<6:0> is obtained by following the binary search algorithm.
[0315] At time t8, the intermediate error bit number Sd<6:0> is obtained which directly shows the error bit number 24 shown by the error bit number S<6:0> before correction.
[0316] In addition, at time t8, since the parity of the actual error bit number 24 is consistent with the parity of the error bit number 24 indicated by the middle error bit number Sd<6:0>, the binary definite error bit number C<7:0> is obtained by directly displaying the error bit number 24 indicated by the middle error bit number Sd<6:0>.
[0317] Next, the actions at each moment are described in order.
[0318] <Time t1>
[0319] (F7, F6, F5, F4, F3, F2, F1, F0) = (H, L, L, L, L, L, L, L);
[0320] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 64 of the reference data B<127:0>. <6> Become LOW.
[0321] <Time t2>
[0322] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, H, L, L, L, L, L);
[0323] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 32 of the reference data B<127:0>. <5> Become LOW.
[0324] <Time t3>
[0325] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, L, L, L, L);
[0326] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 16 of the reference data B<127:0>. <4> Become HIGH.
[0327] <Time t4>
[0328] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, H, L, L, L);
[0329] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 24 of the reference data B<127:0>. <3> Become HIGH.
[0330] <Time t5>
[0331] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, H, H, L, L);
[0332] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 28 of the reference data B<127:0>. <2> Become LOW.
[0333] <Time t6>
[0334] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, H, L);
[0335] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 26 of the reference data B<127:0>. <1> Become LOW.
[0336] <Time t7>
[0337] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, H, L, L, H);
[0338] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 25 of the reference data B<127:0>. <0> Become LOW.
[0339] The comparison result at this time point is about multiple bits of data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the latch circuits 357, the logic levels of LOW, LOW, HIGH, HIGH, LOW, LOW, and LOW are determined. Here, the number of error bits S<6:0> before correction shows 24.
[0340] <Time t8>
[0341] Since the error bit number 24 of the error bit data PF<127:0> does not reach the initial reference activation bit number 64, at time t1, the middle bit data S <6> Therefore, the number of error bits before correction S<6:0> is directly set to the number of error bits Sd<6:0>. <6> ~S <0> Display 24, so that the middle error bit number Sd<6:0> displays 24.
[0342] The actual number of error bits 24 is an even number. Since the middle number of error bits 24 shown by the middle number of error bits Sd<6:0> is an even number, the control data OEMatch shows that the parity of the two numbers is consistent. Therefore, the adder 391 directly outputs the pre-correction error bit 24 shown by the middle number of error bits Sd<6:0> as the post-correction error bit SS<7:0>.
[0343] Afterwards, by latching the latch signal LATC in the latch circuit 399 (refer to Fig.13 ) latches the corrected error bit number SS<7:0> to determine the determined error bit number C<7:0> showing the error bit number 24.
[0344] Then, in the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulation section 401, the determined error bit number C<7:0> indicating the error bit number 24 of the data to be measured for the current error bit is added to the accumulated error bit number CC by the control signal CUM. <n-1:0>.
[0345] Action Example 3: When the number of error bits is 24,
[0346] At time t1, the error bit data number 24 included in the error bit data PF<127:0> detects that the first reference activation bit number has not reached 64. Therefore, unlike operation examples 1 and 2, from time t2 to time t7, the error bit data PF<127:0> is directly provided to the bit counting differential amplifier 355 as the measurement target data A<127:0>.
[0347] From time t2 to time t7, the pre-correction error bit number S<6:0> is obtained by following the binary search algorithm. Here, the pre-correction error bit number S<6:0> obtained by the process from time t2 to time t7 originally shows a number of 24, but due to the influence of manufacturing errors or noise of semiconductor characteristics, the value becomes 23.
[0348] At time t8, the intermediate error bit number Sd<6:0> is obtained which directly shows the error bit number 23 shown by the error bit number before correction S<6:0>.
[0349] In addition, at time t8, since the parity of the actual error bit number 24 is inconsistent with the parity of the error bit number 23 shown by the middle error bit number Sd<6:0>, the definite error bit number C<7:0> of the binary number showing the error bit number 24 is obtained by adding 1 to the error bit number 23 shown by the middle error bit number Sd<6:0>.
[0350] Next, the actions at each moment are described in order.
[0351] <Time t1>
[0352] (F7, F6, F5, F4, F3, F2, F1, F0) = (H, L, L, L, L, L, L, L);
[0353] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 64 of the reference data B<127:0>. <6> Become LOW.
[0354] <Time t2>
[0355] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, H, L, L, L, L, L);
[0356] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 32 of the reference data B<127:0>. <5> Become LOW.
[0357] <Time t3>
[0358] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, L, L, L, L);
[0359] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 16 of the reference data B<127:0>. <4> Become HIGH.
[0360] <Time t4>
[0361] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, H, L, L, L);
[0362] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 24 of the reference data B<127:0>. Different from the third embodiment, the bit data S<127:0> is affected by the manufacturing error or noise of the semiconductor characteristics. <3> Become LOW.
[0363] <Time t5>
[0364] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, L, H, L, L);
[0365] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 20 of the reference data B<127:0>. <2> Become HIGH.
[0366] <Time t6>
[0367] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, L, H, H, L);
[0368] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 22 of the reference data B<127:0>. <1> Become HIGH.
[0369] <Time t7>
[0370] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, H, L, H, H, H);
[0371] The error bit number 24 of the measurement target data A<127:0> is compared with the reference active bit number 23 of the reference data B<127:0>. <0> Become HIGH.
[0372] The comparison result at this time point is about multiple bits of data S <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the latch circuits 357, the logic levels of LOW, LOW, HIGH, LOW, HIGH, HIGH, and HIGH are determined. Here, the number of error bits S<6:0> before correction shows 23.
[0373] <Time t8>
[0374] Since the error bit number 24 of the error bit data PF<127:0> does not reach the initial reference activation bit number 64, at time t1, the middle bit data S <6> Therefore, the number of error bits before correction S<6:0> is directly set to the number of error bits Sd<6:0>. <6> ~S <0> Display 23, so that the middle error bit number Sd<6:0> displays 23.
[0375] The actual number of error bits 24 is an even number, and since the middle number of error bits 23 indicated by the middle number of error bits Sd<6:0> is an odd number, the control data OEMatch indicates that the parity of the two numbers is inconsistent. Therefore, the adder 391 outputs the corrected number of error bits SS<7:0> indicating the corrected number of error bits 24 obtained by adding 1 to the pre-corrected number of error bits 23 indicated by the middle number of error bits Sd<6:0>.
[0376] Afterwards, by latching the latch signal LATC in the latch circuit 399 (refer to Fig.13 ) latches the corrected error bit number SS<7:0> to determine the determined error bit number C<7:0> showing the error bit number 24.
[0377] Then, in the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulation section 401, the determined error bit number C<7:0> indicating the error bit number 24 of the data to be measured for the current error bit is added to the accumulated error bit number CC by the control signal CUM. <n-1:0>.
[0378] Action example 5: When the number of error bits is 128
[0379] At time t1, the number of error bit data 128 included in the error bit data PF<127:0> detects that the first reference active bit number is greater than 64. Therefore, all bits of the inverted error bit data PF<127:0> are provided as the measurement target data A<127:0> to the bit counting differential amplifier 355. Here, the measurement target bit number AA included in the measurement target data A<127:0> is 128-128=0.
[0380] From time t2 to time t7, the number of error bits before correction S<6:0> is obtained by following the binary search algorithm.
[0381] At time t8, the intermediate error bit number Sd<6:0> is 127, which is obtained by subtracting the error bit number 0 indicated by the error bit number S<6:0> before correction from 127. 88 is the correct error bit number.
[0382] In addition, at time t8, since the parity of the actual error bit number 128 is inconsistent with the parity of the error bit number 127 shown by the middle error bit number Sd<6:0>, the definite error bit number C<7:0> of the binary number showing the error bit number 128 is obtained by adding 1 to the error bit number 127 shown by the middle error bit number Sd<6:0>.
[0383] Next, the actions at each moment are described in order.
[0384] <Time t1>
[0385] (F7, F6, F5, F4, F3, F2, F1, F0) = (H, L, L, L, L, L, L, L);
[0386] The error bit number 128 of the measurement target data A<127:0> is compared with the reference active bit number 64 of the reference data B<127:0>. <6> Become HIGH.
[0387] <Time t2>
[0388] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, L, L, L);
[0389] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 32 of the reference data B<127:0>. <5> Become LOW.
[0390] <Time t3>
[0391] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, L, H, L, L, L, L);
[0392] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 16 of the reference data B<127:0>. <4> Become LOW.
[0393] <Time t4>
[0394] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, H, L, L, L);
[0395] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 8 of the reference data B<127:0>. <3> Become LOW.
[0396] <Time t5>
[0397] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, H, L, L);
[0398] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 4 of the reference data B<127:0>. <2> Become LOW.
[0399] <Time t6>
[0400] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, L, L, L, L, H, L);
[0401] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 2 of the reference data B<127:0>. <1> Become LOW.
[0402] <Time t7>
[0403] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, H, H, L, L, H, H, H);
[0404] The error bit number 0 of the measurement target data A<127:0> is compared with the reference active bit number 1 of the reference data B<127:0>. <0> Become LOW.
[0405] Regarding the multiple bits of data S at this time point <6> , S <5> , S <4> , S <3> , S <2> , S <1> and S <0> For each of the latch circuits 357, the logic levels of HIGH, LOW, LOW, LOW, LOW, LOW, and LOW are determined. Here, the number of error bits S<6:0> before correction indicates 0.
[0406] <Time t8>
[0407] Since the number of error bits 128 of the error bit data PF<127:0> exceeds the initial reference activation bit number 64, at time t1, the middle bit data S <6> Therefore, the intermediate error bit number Sd<6:0> is obtained by inverting each bit of the error bit number S<6:0> before correction. <6> ~S <0> Displaying 0 causes the middle error bit number Sd<6:0> to display 127 obtained by subtracting 0 from 127 which is 1 less than 128.
[0408] The actual number of error bits 128 is an even number, and since the middle number of error bits 127 indicated by the middle number of error bits Sd<6:0> is an odd number, the control data OEMatch indicates that the parity of the two numbers is inconsistent. Therefore, the adder 391 outputs the corrected number of error bits SS<7:0> indicating the corrected number of error bits 128 obtained by adding 1 to the pre-corrected number of error bits 127 indicated by the middle number of error bits Sd<6:0>.
[0409] Afterwards, by latching the latch signal LATC in the latch circuit 399 (refer to Fig.13 ) latches the corrected error bit number SS<7:0> to determine the determined error bit number C<7:0> showing the error bit number 128.
[0410] Then, in the 8 / n-bit adder 415 and the latch circuit 417 included in the bit count accumulation section 401, the determined error bit number C<7:0> indicating the error bit number 128 of the data to be measured for the current error bit is added to the accumulated error bit number CC by the control signal CUM. <n-1:0>.
[0411] This is a flow chart of the bit counting operation of the bit counting differential amplifier in the bit compression mode. In case 1, data indicating whether an error bit has occurred is obtained instead of obtaining the number of error bits. In case 2, data indicating whether an error bit has occurred and, if an error bit has occurred, whether the number of error bits is an odd number or an even number is obtained instead of obtaining the number of error bits.
[0412] <Time t1>
[0413] Data F7 to data F0 are all set to LOW. This means that:
[0414] (F7, F6, F5, F4, F3, F2, F1, F0) = (L, L, L, L, L, L, L, L)
[0415] Therefore, the error bit data PF<127:0> is set as the measurement target data A<127:0> for the bit count differential amplifier 355. In addition, 0 is set as the reference data B<127:0> for the bit count differential amplifier 355.
[0416] Therefore, the bit counting differential amplifier 355 compares the number of error bits included in the error bit data PF<127:0> with 0.
[0417] If the number of error bits included in the error bit data PF<127:0> is greater than 0 (that is, if the error bit data PF<127:0> contains at least one error bit), the bit data S <0> Set to HIGH.
[0418] On the other hand, if the number of error bits included in the error bit data PF<127:0> is 0 (ie, if there is no error bit in the error bit data PF<127:0>), the bit data S <0> Set to LOW.
[0419] (Case 1) Skipping the above processing from time t2 to time t8:
[0420] As a process accompanying the above process at time t1, a plurality of bit data S <6> ~S <1> All are set to LOW. Therefore, the calculation processing time can be compressed.
[0421] Due to S <6> is LOW, Sd <0> The logic level and S <0> In addition, due to S <6> ~S <1> = LOW, each bit data Sd of Sd<6:1> <6> ~Sd <1> Become LOW.
[0422] Since the addition is not performed in the adder 391, the data with the expanded bits Sd<6:1> becomes the corrected error bit number SS<7:0>.
[0423] Therefore, if the number of error bits included in the error bit data PF<127:0> is greater than 0 (i.e., if the error bit data PF<127:0> includes at least one error bit), the corrected error bit number SS<7:0> indicates 1. If the number of error bits included in the error bit data PF<127:0> is 0 (i.e., if there is no error bit in the error bit data PF<127:0>), the corrected error bit number SS<7:0> indicates 0.
[0424] (Case 2) The processing from time t2 to time t7 is skipped, but the processing at time t8 is executed:
[0425] As a process accompanying the above process at time t1, a plurality of bit data S <6> ~S <1> All are set to LOW. Therefore, the calculation processing time can be compressed.
[0426] Due to S <6> is LOW, Sd <0> The logic level and S <0> In addition, due to S <6> ~S <1> = LOW, each bit data Sd of Sd<6:1> <6> ~Sd <1> Become LOW.
[0427] Here, unlike case 1, at time t8, the error bit data PF<127:0> and Sd are used to perform <0> The mutual exclusion or calculation process adds 1 to the calculation.
[0428] When the number of error bits contained in the error bit data PF<127:0> is an even number greater than 1, Sd <0> OEMatch becomes HIGH because an odd number of HIGH level data is input to the exclusive OR gate 397. In the adder 391, addition processing (1+1 addition processing) and bit expansion are performed, and the corrected error bit number SS<7:0> shows 2.
[0429] If the number of error bits contained in the error bit data PF<127:0> is an odd number greater than 1, Sd <0> OEMatch becomes LOW because an even number of HIGH level data is input to the exclusive OR gate 397. Therefore, in the adder 391, the addition of 1 is not performed (the addition of 1+0 is performed), but the bit expansion is performed, and the corrected error bit number SS<7:0> shows 1.
[0430] When the error bit data PF<127:0> contains the error bit number 0, Sd <0> OEMatch is LOW because there is no input other than LOW level data in the 129-input exclusive OR gate 397. Therefore, in the adder 391, the addition of 1 is not performed (the addition of 1+0 is performed), but bit expansion is performed, and the corrected error bit number SS<7:0> shows 0.
[0431] (Second embodiment)
[0432] Fig.16 FIG. 1 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.
[0433] According to the semiconductor memory device 100A of the first embodiment, the error bit detection unit 201 included in the first half error bit count association unit 101 provided in the memory bank 821-i (i=1, 2, 3 ..., n) corresponds to one memory bank 821-i. In addition, the error bit detection unit 201 sets the error bit generated in the corresponding one memory bank 821-i as the measurement object.
[0434] In contrast, in the semiconductor storage device 100B of the second embodiment, the error bit detection unit 201B included in the error bit count association unit 105 provided in a place other than the memory bank 821-i (i=1, 2, 3, ..., n) corresponds to the plurality of memory banks 821-i. In addition, the error bit detection unit 201B takes the error bits generated in the corresponding plurality of memory banks 821-1 to 821-n as measurement objects.
[0435] Fig.17 To display Fig.16 A circuit diagram showing the configuration of the error bit count association unit 105 is shown.
[0436] Reference Fig.17 The error bit count associating section 105 includes an error bit detecting section 201B, a bit counting section 301 and a bit count accumulating section 401 .
[0437] The bit counting section 301 and the bit count accumulating section 401 included in the error bit count associating section 105 are the same as those included in the second-half error bit count associating section 103 of the semiconductor memory device 100A according to the first embodiment.
[0438] The error bit detection unit 201B has the same basic configuration as the error bit detection unit 201 included in the second-half error bit count associating unit 103 of the semiconductor memory device 100A according to the first embodiment, but has some differences.
[0439] The error bit detection unit 201B, similar to the first embodiment, includes 16 exclusive OR gate groups 215. Each exclusive OR gate group 215 includes 8 exclusive OR gates with 2 inputs and 1 output.
[0440] In addition, the error bit detection unit 201B includes 16 AND gate groups 213, similarly to the first embodiment. Each AND gate group 213 includes 8 AND gates with 2 inputs and 1 output.
[0441] Furthermore, unlike the first embodiment, the error bit detection unit 201B includes 16 data scrambling and latching circuits 211B.
[0442] Although the 128-bit write data WDATA is provided as the expected seed data EXPSEED<127:0> to the 16 data scrambling and latching circuits 211B via the I / O gate 217, the expected seed data EXPSEED<127:0> is divided into 16 groups, each with 8 bits. The nth data scrambling and latching circuit 211B (here, n=0-6) generates 16 groups of 8-bit expected seed data EXPSEED<127:0> based on the 8-bit expected seed data EXPSEED<127:0> in each group.<n+7:n> Generate expected data EXPDATA<n+7:n> Expected data EXPDATA<n+7:n> The 8 bits included in are provided to the 1-input terminal of each AND gate included in the corresponding AND gate group 213 .
[0443] In each data scrambling and latching circuit 211B, when instructed by the test mode signal, the expected seed data EXPSEED is scrambled according to the column address XADD and the row address YADD.<n+7:n> Data scrambling is enabled. When data scrambling is enabled by the test mode signal, the expected seed data EXPSEED is stored in the data scrambling and latching circuit 211B.<n+7:n> Each bit of the address maintains or inverts the logic level according to the combination of the column address XADD and the row address YADD, and as a result, the expected data EXPDATA is generated.<n+7:n> .
[0444] Furthermore, in each data scrambling and latching circuit 211B, data scrambling is not enabled when not instructed by the test mode signal.
[0445] Therefore, when instructed by the test mode signal, each data scrambling and latching circuit 211B outputs the expected data EXPDATA<127:0> obtained by scrambling the expected seed data EXPSEED<127:0> according to the combination of the column address XADD and the row address YADD. However, when not instructed by the test mode signal, the expected seed data EXPSEED<127:0> is not scrambled and is directly output as the write data WDATA<127:0>. In the second embodiment, as in the first embodiment, the data output from the data scrambling and latching circuit 211B is called the expected data EXPDATA<127:0> regardless of whether it is scrambled or not.
[0446] The expected data EXPDATA<127:0> of 128 bits in total output from the data scramble and latch circuit 211B is supplied to the first input terminals of all AND gates included in the AND gate group 213 .
[0447] In addition, the control signal BC whose logic level is HIGH in the error bit count mode is supplied to the first input terminals of all the AND gates in the AND gate group 213 .
[0448] The output terminal of each AND gate in each AND gate group 213 is included in the corresponding exclusive OR gate group 215 and is provided to the second input terminal of the corresponding exclusive OR gate.
[0449] 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-7) of the 8-bit read data RDATA<8m+7:8m> (where m=0-15) included in each group is provided to the second input terminal of each exclusive OR gate included in each exclusive OR gate group 215.
[0450] Therefore, in the error bit counting mode, it can be confirmed that each bit of the 128-bit expected data EXPDATA<127:0> from the 16 exclusive OR gate groups 215 is consistent with each other. When the signal BC is HIGH, each bit of the error bit data PF<127:0> formed by the output of the 16 exclusive OR gate groups 215 has a logic level that shows whether the 128-bit expected data EXPDATA<127:0> and the 128-bit read data RDATA<127:0> are consistent or inconsistent bit by bit. That is, the bit data PF<127:0> included in the error bit data PF<127:0> is consistent with each other. (Here, i=0-127) shows the bit data RDATAd included in the expected data EXPDATA<127:0> The bit data RDATAd contained in the read data RDATA<127:0> The bits whose values are inconsistent between the expected data EXPDATA and the read data RDATA are error bits.
[0451] In addition, in order to detect an error bit, the write data WDATA of a specific bit cell to be written to a specific address of the memory is usually compared with the read data RDATA read from the cell. For this reason, at each time during the error bit detection period, the bit of the read data RDATA and the corresponding bit of the write data WDATA must be correctly matched in each exclusive OR gate included in each exclusive OR gate group 215. The data scrambling and latching circuit 211 is controlled so that the bit of the read data RDATA and the corresponding bit of the write data WDATA are correctly compared in the exclusive OR gate in this way. In other words, the data scrambling and latching circuit 211 is controlled so that after the address and bit combination corresponding to the read data RDATA are transformed into the expected data EXPDATA, they are consistent with the timing of the address and bit combination corresponding to the write data WDATA in each exclusive OR gate. The read data RDATA is the data input to the second terminal of each exclusive OR gate included in the exclusive OR gate group 215, and the write data WDATA is the data input to the first terminal of each exclusive OR gate included in the exclusive OR gate group 215.
[0452] Therefore, the data scrambling and latching 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 the expected data EXPDATA.
[0453] The error bit data PF<127:0> output from the error bit detection section 201B is supplied to the bit counting section 301 .
[0454] The above-described embodiments are described to make the present invention easy to understand, and are not intended to limit the present invention. Therefore, the elements disclosed in the above-described embodiments are intended to include all design changes or equivalents within the technical scope of the present invention.
[0455] For example, in the above embodiments, although a dynamic memory as a semiconductor memory device is described as an example, 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).
[0456] For example, in the above-mentioned embodiments, although the binary search method is used as an example of the search method, the present invention is not limited to this case. For example, a linear search method may also be used as the search method. Even in such a case, there is a possibility that an error will occur in the bit comparison unit as in the case of using the binary search method, and the error can be corrected by the bit correction unit.
[0457] In addition, even when the number of error bits is 64 or more, the error bit data PF<127:0> can be used as the measurement object data A<127:0>. At this time, the bit comparison unit 341 is expanded by one bit so that the number of error bits before correction S<7:0> can be output. Next, the number of error bits before correction S<7:0> that is expanded by one bit from the number of error bits before correction S<6:0> is directly used as the intermediate number of error bits Sd<7:0> of the expanded intermediate number of error bits Sd<6:0>. That is, the buffer 393 and all the exclusive OR gates 395 are omitted. The add-1 adder 391 is expanded so that the intermediate number of error bits Sd<6:0> can be input to output the corrected data <7:0>. Next, when the parity of the error bit data PF<127:0> and the middle error bit number Sd<7:0> are inconsistent with the expanded adder 391 (specifically, when the middle error bit number Sd<7:0> is only 1 less than the error bit data PF<127:0>), the corrected error bit number SS<7:0> is obtained by adding 1 to the middle error bit number Sd<7:0>.
[0458] In addition, in the above-mentioned embodiments, although it is described that each data has a specific number of bits, the present invention is not limited to this case. The number of bits may also have other values. The number of bits is not limited, and the number of columns, rows, gates, inputs of gates, segments of adders, the number of gates included in one adder, the number of gates included in a circuit block, the number of latch circuits included in a latch circuit group, the number of input bits of a bit counting differential amplifier, etc., may also be appropriately changed according to the data.
[0459] Furthermore, in the above-mentioned embodiments, although the case where the expected data EXPDATA<127:0> is prepared in the expected data preparation unit (data scrambling and latching circuit 211) (that is, the expected data EXPDATA<127:0> is generated in the semiconductor memory device 100A) is described as an example, 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 error bit count association unit 101 or the error bit count association unit 105 of the semiconductor memory device 100A may also be configured to obtain the input expected data EXPDATA<127:0>.
Claims
1. A semiconductor memory device, It is characterized in that include: an error bit detection unit that detects whether the read data and expected data of the semiconductor memory device are consistent with each other in units of bits, and outputs error bit data of pass or fail information, wherein the pass or fail information indicates whether each detected bit is consistent; and The bit counting unit counts the number of error bits indicating a mismatch between the read data and the expected data, or the number of pass bits indicating a match, among the error bit data.
2. The semiconductor memory device according to claim 1, It is characterized in that The aforementioned error bit detection unit includes: The exclusive OR gate group generates the error bit data by performing an exclusive OR operation of bit units between the read data and the expected data.
3. The semiconductor memory device according to claim 2, It is characterized in that Also includes: The expected data preparation unit prepares write data corresponding to the read data as the expected data, wherein the write data is write data to be written into the semiconductor memory device.
4. The semiconductor memory device according to claim 3, It is characterized in that The expected data preparation unit inverts the logic level of the write data as the expected data for a bit that should indicate consistency with the write data when the read data is logically inverted.
5. The semiconductor memory device according to claim 3, It is characterized in that The expected data preparation section latches the write data to compare with the read data.
6. The semiconductor memory device according to claim 1, It is characterized in that The aforementioned bit counting unit further comprises: a plurality of sub-error bit counters for counting the number of error bits included in the error bit data allocated to the portion of the error bit data, and outputting the counted value as a partial error bit number; and The adder obtains the aforementioned error bit number by adding the plurality of partial error bit numbers respectively outputted by the aforementioned plurality of sub-error bit counters.
7. The semiconductor memory device according to claim 6, It is characterized in that Each of the plurality of sub-error bit counters comprises: The first block takes the logical product of all bits of the error bit data included in the aforementioned portion to which the sub-error bit counter of the block is allocated, and outputs a bit indicating the logical product as the highest bit of the binary number data indicating the error bit number of the aforementioned portion; The second block generates a voltage corresponding to the aforementioned partial error bit number as a reference voltage, wherein the aforementioned partial error bit number corresponds to the aforementioned portion of error bit data allocated to the sub-error bit counter of the own block; a third block, outputting a comparison result between the reference voltage and a voltage corresponding to a weight of a bit assigned to the own block of the binary data as a second high bit of the binary data indicating the number of bits of the partial error, the binary data indicating the number of bits of the partial error; and One or more fourth blocks output the comparison result of the aforementioned reference voltage and the voltage determined by the weight of the bit assigned to the aforementioned binary data of its own block displaying the aforementioned partial error bit number and the value of one or more bits higher than the bit of the own block assigned to the aforementioned binary data, as the bit assigned to its own block, the bit of the aforementioned own block being the second highest bit of the aforementioned binary data that does not reach the aforementioned partial error bit number.
8. The semiconductor memory device according to claim 7, It is characterized in that Each of the plurality of sub-error bit counters further comprises: A device for stopping the operation of the third block and the one or more fourth blocks when the value of the highest bit of the binary data indicating the number of partial error bits is the same as the value taken when the number of partial error bits is the maximum value.
9. The semiconductor memory device according to claim 1, It is characterized in that The aforementioned bit counting unit comprises: a bit counting differential amplifier that inputs each bit of the measurement target data including a plurality of bits and each bit of the reference data including a plurality of bits, and outputs a determination result indicating a magnitude relationship between the number of bits having a first logic level included in the measurement target data and the number of bits having the first logic level included in the reference data; a measurement object data setting unit that provides the error bit data as the measurement object data to the bit counting unit; a reference data setting unit that sets the logic level of a bit that refers to the number of active bits among a plurality of bits included in the reference data to the first logic level; and The calculation unit, by means of a binary search algorithm, operates the measurement object data setting unit, the reference data setting unit, and the bit count differential amplifier while successively changing the reference activation bit number based on the output from the bit count differential amplifier, and obtains the error bit number based on the judgment results of the plurality of size relationships successively outputted from the bit count differential amplifier by the operation.
10. The semiconductor memory device according to claim 9, It is characterized in that The bit counting unit further comprises: A bit correction unit inputs the aforementioned error bit number obtained by the aforementioned calculation unit as the number of error bits before correction. If the number of error bits before correction is the same as the aforementioned error bit number contained in the aforementioned error bit data, the aforementioned number of error bits before correction is directly output as the number of error bits after correction. If they are different, the number obtained by applying the aforementioned number of error bits before correction to the correction processing is output as the number of error bits after correction.
11. The semiconductor memory device according to claim 10, It is characterized in that The aforementioned correction department: Based on the consistency or inconsistency between the parity of the error bit number before correction and the parity of the error bit number included in the error bit data, determining whether to execute or not to execute the correction process; In the correction process, a value that is different from the number of error bits before correction by only 1 is set as the number of error bits after correction.
12. The semiconductor memory device according to claim 9, It is characterized in that The measurement target data setting unit provides data in which the error bit data has been corrected as the measurement target data to the bit counting differential amplifier so that the error bit number does not reach the specific number when the error bit number included in the error bit data is greater than a specific number; The calculation unit obtains the number of error bits based on a plurality of outputs sequentially output from the bit counting differential amplifier and the specific number.
13. The semiconductor memory device according to claim 9, It is characterized in that The bit counting unit outputs data indicating whether the number of bits having the first logic level among the bits included in the error bit data is zero or greater than 1, based on a comparison result between the reference data having the first logic level being zero and the error bit data.
14. The semiconductor memory device according to claim 9, It is characterized in that The bit counting unit outputs data showing that the number of bits with the first logic level among the bits contained in the error bit data is zero, an even number greater than 1, or an odd number greater than 1, based on the comparison result between the reference data in which the number of bits with the first logic level is zero and the error bit data, and the parity of the number of bits with the first logic level contained in the error bit data.
15. The semiconductor memory device according to claim 1, It is characterized in that The semiconductor storage device comprises a plurality of storage banks; Each memory bank includes the aforementioned error bit detection unit; The portion other than the plurality of memory banks includes the bit counting unit.
16. The semiconductor memory device according to claim 1, It is characterized in that The semiconductor storage device comprises a plurality of storage banks; The portion other than the plurality of memory banks includes the error bit detection unit and the bit counting unit.
