Method for testing and repair memory components

Through line repair, sensing amplifier adjustment and local reference current adjustment, the read accuracy of data cells and reference cells in resistive memory is solved, and efficient repair of memory arrays and read margin optimization is achieved, ensuring that Accuracy and stability of read operations.

CN118942520APending Publication Date: 2024-11-12TAIWAN SEMICONDUCTOR MANUFACTURING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410561472.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-10
Filing Date
2024-05-08
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The prior art is difficult to ensure the read accuracy of data cells and reference cells in resistive memory, especially in the possible defects of data cells and reference cells and differences between different rows of read margins and sense amplifiers. hour.

Method used

Test and repair defective cells in memory arrays with line repair, sense amplifier adjustment, and local reference current adjustment, optimize read margins using alternate cell rows and sense amplifiers, adjust reference current ratios to ensure read accuracy .

Benefits of technology

It effectively improves the accuracy of read operations of memory arrays, reduces read error counts, and ensures data reliability and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118942520A_ABST
    Figure CN118942520A_ABST
Patent Text Reader

Abstract

The invention provides a method for testing and repairing a memory component. The memory component includes a memory array including data cells and reference cells arranged along a cell row and a cell column. The data cell is configured to store data, and the reference cell is configured to generate a reference current for reading the data stored in the data cell. The method includes: performing row repair to test a reference cell in each cell row, and replacing a cell row including at least one defective reference cell in the cell rows with a spare cell row including an additional data cell and an additional reference cell; and performing local reference current adjustment to adjust the ratio of the number of the reference cells written with the low resistance state to the number of the reference cells written with the high resistance state in at least one of the cell rows.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiment relates to a method for testing and repairing a memory component. Background Art

[0002] For resistive memory, a read operation can be performed by comparing the current from the selected data cell with the reference current provided by one or more reference cells. The comparison result indicates whether the selected data cell is written to a high resistance state (which may represent logical data 0) or a low resistance state (which may represent logical data 1). Inevitably, defects may occur in the data cells and the reference cells. Furthermore, the read margin of data cells in different columns and rows may be different. Therefore, reliable test and repair methods are needed to ensure the accuracy of the read operation. Summary of the invention

[0003] One aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, the data cells are configured to store data, the reference cells are configured to generate a reference current for reading the data stored in the data cells, and the method includes: performing row repair to test the reference cells in each cell row, and replacing a cell row in the cell row containing at least one defective reference cell with a spare cell row including additional data cells and additional reference cells; and performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows.

[0004] Another aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, subarrays of the memory array are respectively connected to a sense amplifier, and the method includes: performing row repair to test the reference cells in each cell row and replacing a cell row in the cell row containing at least one defective reference cell with a spare column including additional data cells and additional reference cells; performing sense amplifier adjustment to adjust the sense amplifier corresponding to at least one of the subarrays to adjust the read margin of each of the data cells in the at least one of the subarrays; and performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows.

[0005] Another aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, subarrays of the memory array respectively include multiple rows of the data cells and two rows of the reference cells, and the method includes: performing row repair to test the reference cells in each cell row, and replacing a cell row in the cell row containing at least one defective reference cell with a spare cell row including additional data cells and additional reference cells; performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows; and operating column repair to test the data cells in each subarray, and replacing a subarray in the subarray containing at least one defective data cell with the additional data cells in the spare subarray. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The various aspects of the present disclosure will be understood by reading the following detailed description in conjunction with the accompanying drawings. It should be understood that the devices and / or structures shown in the drawings are not necessarily drawn to scale. Therefore, the size of various features may be arbitrarily increased and / or reduced for clarity of discussion.

[0007] Figure 1A is a circuit diagram of a portion of a memory array according to some embodiments of the present disclosure.

[0008] Figure 1B is a schematic diagram of a memory read operation according to some embodiments of the present disclosure.

[0009] Figure 2 is a flow chart of a method for testing and repairing a memory array according to some embodiments of the present disclosure.

[0010] Figure 3 is a schematic diagram of a row repair operation of a memory array according to some embodiments of the present disclosure.

[0011] Figure 4A is a schematic diagram of an adjustment operation of a sense amplifier according to some embodiments of the present disclosure.

[0012] Figure 4B Draw the current Figure 4A Possible changes in the current distribution during the regulation operation are shown.

[0013] Figure 4C According to some embodiments of the present disclosure, detailed circuits of a sense amplifier are illustrated.

[0014] Figure 5 It is a schematic diagram of local reference current adjustment operations for some rows of a memory array according to some embodiments of the present disclosure.

[0015] Figure 6 is a schematic diagram of a row repair operation for a memory array according to some embodiments of the present disclosure.

[0016] Figure 7 is a flow chart of a method for testing and repairing a memory array according to some other embodiments of the present disclosure. DETAILED DESCRIPTION

[0017] The following disclosure provides many different embodiments or examples for implementing the different features of the provided subject matter. Specific examples of components and arrangements are set forth below to simplify the present disclosure. Of course, these are merely examples and are not intended to be limiting. For example, in the following description, forming a first feature on or on a second feature may include an embodiment in which the first feature and the second feature are formed to be in direct contact, and may also include an embodiment in which an additional feature may be formed between the first feature and the second feature so that the first feature and the second feature may not be in direct contact. In addition, the present disclosure may reuse reference numbers and / or letters in various examples. This repetition is for simplicity and clarity, and does not itself represent the relationship between the various embodiments and / or configurations discussed.

[0018] In addition, for ease of description, spatially relative terms such as "beneath", "below", "lower", "above", "upper", etc. may be used herein to describe the relationship of one component or feature shown in the figures to another (other) component or feature. In addition to the orientations shown in the figures, the spatially relative terms are also intended to encompass different orientations of the components in use or operation. The device may have other orientations (rotated 90 degrees or in other orientations), and the spatially relative descriptors used herein may be interpreted accordingly. Unless explicitly described, components with the same reference number are assumed to have the same material composition and have thicknesses within the same thickness range.

[0019] Figure 1A is a circuit diagram of a portion of a memory array 10 according to some embodiments of the present disclosure.

[0020] Please refer to Figure 1A, the memory array 10 includes a plurality of rows and a plurality of columns of memory cells 100. Each memory cell 100 includes an access transistor 102 and a resistive storage element 104 connected to the access transistor 102. In some embodiments, the access transistor 102 is a field effect transistor (FET), and the resistive storage element 104 is connected to one of the source / drain terminals of the access transistor 102. Furthermore, in some embodiments, the resistive storage element 104 as a two-terminal element includes a magnetic tunnel junction (MTJ), in which a tunnel barrier layer is sandwiched between two magnetic layers. When the magnetization directions of the two magnetic layers are parallel, electrons can more easily tunnel through the tunnel barrier layer, so that the MTJ is in a low resistance state. On the other hand, if the magnetization directions of the two magnetic layers are antiparallel to each other, the MTJ is in a high resistance state. In this way, logical data 1, 0 can be stored as a low resistance state and a high resistance state (interchangeably). Even after the power source is removed, the magnetization of the magnetic layer can still be retained, so the resistive storage element 104 is a non-volatile storage element.

[0021] The bit lines BL are respectively connected to a column of memory cells 100, and the word lines WL are respectively connected to a row of memory cells 100. In this way, each memory cell 100 is defined at the intersection of a bit line BL and a word line WL, and can be accessed independently. In each memory cell 100, one end of the resistive storage element 104 is connected to one end of the access transistor 102 (for example, a source / drain end of the access transistor 102), and the other end of the resistive storage element 104 is connected to the bit line BL. In an embodiment where the access transistor 102 is a FET, each access transistor 102 is connected to a word line WL via a gate end, and the switch of each access transistor 102 can be controlled by the connected word line WL.

[0022] Furthermore, the access transistors 102 of the memory cells 100 are respectively connected to a source line SL. In an embodiment where the access transistors 102 are FETs, each access transistor 102 is connected to the source line SL via a source / drain terminal, and is connected to the resistive storage element 104 in the same memory cell 100 via another source / drain terminal. In this way, when the corresponding access transistor 102 is turned on, the bias voltage across each resistive storage element 104 can be determined by the connected bit line BL and the source line SL, and a write operation or a read operation can be performed on the resistive storage element 104 in the selected memory cell 100. Furthermore, the resistive storage element 104 in each memory cell 100 can be written by a spin-transfer torque (STT) mechanism, and the memory array 10 can be referred to as an STT magnetic random access memory (MRAM).

[0023] The illustrated portion of the memory array 10 is connected to a sense amplifier (not shown) via connected source lines SL (eg, source lines SL0, SL1) and is configured to be read by the sense amplifier. Figure 1B To explain in more detail, the memory array 10 may include a plurality of Figure 1A The sub-array shown in FIG. 1 is connected to multiple sense amplifiers via more source lines SL. The memory cells 100 in each sub-array are connected to the same sense amplifier and can be divided into data cells 100a and reference cells 100b. The data cell 100a is used to store data, and the reference cell 100b is configured to provide a reference current for reading the data stored in the data cell 100a. Figure 1AIn the example shown, the data cell 100a is defined at the intersection of a series of word lines WL (e.g., from word line WL0 to word line WL511) and a series of bit lines BL (e.g., bit lines BL0, BL1, ..., BL14, BL15, BL16, BL17, ..., BL30, BL31), and the reference cell 100b is arranged in two columns of two bit lines BL connected to the series of word lines WL and extending on opposite sides of the series of bit lines BL connected to the data cell 100a. For the purpose of illustration, the bit lines BL connected to the reference cell 100b are referred to as reference bit lines (e.g., reference bit lines REFBL0, REFBL1). Furthermore, one of the source lines SL (e.g., source line SL0) is connected to the data cells 100a of most columns (the data cells 100a defined at the intersections of word lines WL0 to WL511 and bit lines BL0 to BL15) and one of the reference cells 100b (e.g., reference cells 100b defined at the intersections of word lines WL0 to WL511 and reference bit line REFBL0). In addition, another source line SL (e.g., source line SL1) is connected to the data cells 100a of other columns (e.g., data cells 100a defined at the intersections of word lines WL0 to WL511 and bit lines BL16 to BL31) and another column of reference cells 100b (e.g., reference cells 100b defined at the intersections of word lines WL0 to WL511 and reference bit line REFBL1). When a data cell 100a connected to one of the source lines SL (e.g., source line SL0) is selected for reading, one of the reference cells 100b connected to another source line SL (e.g., source line SL1) can be selected to provide a reference current, and the selected data cell 100a and the reference cell 100b can be connected to corresponding sense amplifiers via different source lines SL. In this way, mutual interference between the selected data cell 100a and the reference cell 100b can be avoided.

[0024] Figure 1B is a schematic diagram of a read operation of the memory array 10 according to some embodiments of the present disclosure.

[0025] Please refer to Figure 1B , the memory array 10 includes a plurality of sub-arrays 10a, each connected to a sense amplifier 106 via at least two source lines SL among a plurality of source lines SL (e.g., source lines SL0, SL1, SL2, SL3, SL4, SL5, SL6, SL7). Each sub-array 10a includes a plurality of columns of data cells 100a and at least two columns of reference cells 100b (e.g., two columns of reference cells 100b). The word lines WL (e.g., Figure 1BThe word lines WL0, WL1, ..., WL511 (indicated only by reference numerals) extend through the plurality of sub-arrays 10a and are respectively connected to the data cells 100a and the reference cells 100b arranged along the same row. Figure 1B ) extends through each sub-array 10a and is respectively connected to a row of data cells 100a or a row of reference cells 100b of a sub-array 10a. Figure 1A As illustrated, the data cells 100a and reference cells 100b in each subarray 10a may be grouped so that a selected data cell 100a in one group and a reference cell 100b in another group may be connected to corresponding sense amplifiers 106 via different source lines SL during a read operation.

[0026] like Figure 1B As shown, some reference cells 100b in the sub-array 10a are written with a parallel magnetization direction P indicating a low resistance state, and some reference cells 100b in the other sub-arrays 10a are written with an anti-parallel magnetization direction AP indicating a high resistance state. During a read operation, some reference cells 100b written with the parallel magnetization direction P and some reference cells 100b written with the anti-parallel magnetization direction AP are connected in parallel between a sense amplifier 106 and a common node to provide a reference current (corresponding to an intermediate resistance state lower than the high resistance state but higher than the low resistance state) to the reference input terminal T of the sense amplifier 106. REF By using this sense amplifier 106 to compare the reference current with the data input terminal T flowing through the selected data cell 100a and input to this sense amplifier 106 DATA The data current of can identify whether the selected data cell 100a is written to a high resistance state or a low resistance state. Accordingly, the data stored in the selected data cell 100a can be read out. Since the reference current is contributed by multiple reference cells 100b written in a parallel magnetization direction P (corresponding to a low resistance state) and multiple reference cells 100b written in an antiparallel magnetization direction AP (corresponding to a high resistance state), the variation of the reference current caused by individual reference cells 100b can be minimized. Furthermore, according to the aforementioned circuit configuration and reading method, the reference cells 100b from multiple sub-arrays 10a are connected to each other and participate in providing a reference current to a sense amplifier 106. Therefore, each reference cell 100b is not only connected to the reference input terminal T of the corresponding sense amplifier, but also to the reference input terminal T of the sense amplifier. REF , and is also connected to the reference input terminal T of the other sense amplifier 106 REF In this way, the reference input terminal T of the sense amplifier 106 REF In some embodiments, an internal connection 108 may be used to connect the reference input terminal T of the sense amplifier 106. REF .

[0027] During the exemplary read operation, a data cell 100a in a sub-array 10a is selected and connected to the data input terminal T of the corresponding sense amplifier 106 via the source line SL0. DATA At this time, the reference cell 100b in the same sub-array 10a and arranged in the same row as the selected data cell 100a is connected to the reference input terminal T of the same sense amplifier 106 via the source line SL1. REF Furthermore, some reference cells 100b from other sub-arrays 10a and arranged in the same row as the selected data cell 100a are also connected to the reference input terminal T of the same sense amplifier 106 via source lines SL3, SL5, SL7. REF The reference cells 100b connected to the source lines SL1 and SL5 can be written with a parallel magnetization direction P, while the reference cells 100b connected to the source lines SL3 and SL7 can be written with an antiparallel magnetization direction AP. By connecting these reference cells 100b in parallel, an equivalent resistance lower than the high resistance state corresponding to the antiparallel magnetization direction AP but higher than the low resistance state corresponding to the parallel magnetization direction P can be obtained, and a reference current corresponding to the intermediate resistance state can be provided to the sense amplifier 106. As described above, the sense amplifier 106 can compare the data input from the selected data cell 100a to the data input terminal T DATA The data stored in the selected data cell 100a can be read out by comparing the data current provided by the data cell 100a and the reference current provided by the reference cell 100b.

[0028] It should be understood that the above example is provided for illustrative purposes only. In general, more reference cells 100b may be used to generate the reference current. For example, during a read operation, 36 reference cells 100b from 36 sub-arrays 10a may be connected in parallel to generate the reference current. Among the 36 reference cells 100b, the ratio of the number of reference cells 100b written with the parallel magnetization direction P to the number of reference cells 100b written with the antiparallel magnetization direction AP may be close to or equal to 1.

[0029] The read operation described above can be accurate in an ideal situation. However, in actual situations, there may be defects in the data cell 100a and the reference cell 100b, and the read margin defined as the difference between the reference current and the data current may vary from row to row and / or from sense amplifier 106 to sense amplifier 106. A test and repair method for the memory array 10 is required to ensure the accuracy of the read operation.

[0030] Figure 2 is a flow chart of a method for testing and repairing the memory array 10 according to some embodiments of the present disclosure.

[0031] Please refer to Figure 2 In step S200, row repair is performed. Specifically, by performing row repair, defective ones of the reference cells 100b can be identified, and the defective row including the defective reference cells 100b can be replaced. To identify the defective reference cells 100b, a read operation is performed on the reference cells 100b of each row. During each of these read operations, a reference cell 100b is connected to the data input terminal T of the corresponding sense amplifier 106. DATA , to provide the data current to the data input terminal T of the sense amplifier 106 DATA , and other reference cells 100b in the same row as the selected reference cell 100b are connected in parallel to provide a reference current to the reference input terminal T of the sense amplifier 106. REF By using this sense amplifier 106 to compare the data current with the reference current, it can be verified whether the selected reference cell 100b is correctly written to the predetermined resistance state. If the selected reference cell 100b is correctly written, another read operation is performed on the next reference cell 100b. If the resistance state of the selected reference cell 100b does not meet the predetermined resistance state, it is determined to be a defective reference cell, and the selected reference cell 100b and other reference cells 100b and data cells 100a in the same row are replaced by data cells 100a and reference cells 100b in a redundant row (as further described below).

[0032] Figure 3 is a schematic diagram of a row repair operation of the memory array 10 according to some embodiments of the present disclosure.

[0033] Although not shown in Figure 1A and Figure 1B , the memory array 10 includes at least one spare row of data cells 100a and reference cells 100b. Figure 3As shown, the memory array 10 may, for example, include a spare row arranged on one side of a normal cell row. The data cells 100a of the normal cell row are connected to the reference cells along a word line WL (e.g., word lines WL0, WL1, ..., WL511). Similarly, the data cells 100a of the spare row are connected to the reference cells 100b along a spare word line WLR (which is only indicated by a component symbol). Although not shown, the bit line BL also extends through the spare row, and the source line SL also connects the data cells 100a and the reference cells 100b of the spare row to the sense amplifier 106 in batches. Furthermore, in terms of the arrangement of the data cells 100a and the reference cells 100b, the spare row is equivalent to the normal cell row. For example, in each sub-array 10a, each spare row and each normal cell row includes a group of data cells 100a arranged between two reference cells 100b. According to some embodiments, the reference cells 100b of the spare row may be pre-written to be identical to the reference cells 100b in the normal cell row of the same subarray 10a (except for the defective reference cell 100b). After replacing the normal cell row including at least one defective reference cell 100b with the spare row, the spare row is accessed in place of the normal cell row. For example, assuming that the normal cell row connected to the bit line WL1 has at least one defective reference cell 100b, the spare row connected to the spare word line WLR may be used to replace the normal cell row connected to the word line WL1. During the subsequent test and repair process and normal read and write operations, the data cells 100a in the spare row will replace the data cells 100a in the normal cell row connected to the word line WL1, and the reference cells 100b in the spare row will replace the reference cells 100b in the normal cell row connected to the word line WL1. In other words, a command to access a normal cell row connected to word line WL1 may be changed to access a spare cell row.

[0034] In other embodiments, the memory array 10 may include a plurality of spare rows to prevent defective reference cells 100b from appearing in more normal cell rows. A person skilled in the art may adjust the number of spare rows according to the manufacturing yield of the memory array 10, and the present disclosure is not limited thereto.

[0035] According to some embodiments, the word line address of the defective reference cell 100b and the address of the corresponding spare word line WLR are stored in a row redundancy look up table (RRLUT). As an example, the RRLUT can be implemented based on a memory circuit (such as a static random access memory (SRAM)) based on a latch circuit. When a word line address for accessing one or more data cells 100a on a specified word line WL is provided, a logic circuit (not shown) can be used to check whether this word line address matches any of the addresses of the defective reference cell 100b stored in the RRLUT. If not, this word line address will be transmitted to a word line decoder (not shown) for enabling (asserting) the specified word line WL in the memory array 10. If the word line address matches the address of a defective reference cell 100b stored in the RRLUT, the logic circuit outputs the spare word line WLR address corresponding to the address of the defective reference cell 100b, and the word line decoder turns on the spare word line WLR. In this way, the normal cell row including at least one defective reference cell 100b is re-addressed to the corresponding spare row.

[0036] Please refer to Figure 2 , in the next step S202, the sense amplifier 106 is adjusted. As a result, the read margin can be optimized. Specifically, the data current of the data cell 100a written in the low resistance state (corresponding to the parallel magnetization direction P) can be distributed in a specific range. Similarly, the data current of the data cell 100a written in the high resistance state (corresponding to the antiparallel magnetization direction AP) and the reference current generated by the reference cell 100b are not a single fixed value. The interval between the data current distribution of the data cell 100a written in the low resistance state and the reference current distribution (in terms of current) defines the read margin of the low resistance state. In addition, the interval between the data current distribution of the data cell 100a written in the high resistance state and the reference current distribution (in terms of current) defines the read margin of the high resistance state. In a specific embodiment, the interval between the reference current distribution and the two data current distributions may be different, and the read margin for one of the low resistance state and the high resistance state may be too narrow. By adjusting the sense amplifier 106, the data current distribution and / or the reference current distribution can be shifted so that the spacing between the data current distribution and the reference current distribution can be adjusted, and the resulting read margin for the low resistance state and the read margin for the high resistance state can be closer. In other embodiments, the reference current distribution is more likely to overlap one or both of the data current distributions. By adjusting the sense amplifier 106, the overlap can be eliminated and the fail count of the read operation can be reduced.

[0037] Figure 4A is a schematic diagram illustrating an adjustment operation of the sense amplifier 106 according to some embodiments of the disclosure. Figure 4B Draw the current Figure 4A Possible changes in the current distribution during the regulation operation are shown.

[0038] Please refer to Figure 4A , when adjusting one of the sense amplifiers 106 (sense amplifier 106-1), one half of the data cells 100a connected to the sense amplifier 106-1 are written into a low resistance state (corresponding to the parallel magnetization direction P), and the other half of the data cells 100a connected to the sense amplifier 106-1 are written into a high resistance state (corresponding to the antiparallel magnetization direction AP). Figure 1B In the illustrated manner, sense amplifier 106-1 may be operated to read each connected data cell 100a. In addition, sense amplifier 106-1 may be operated to read each connected reference cell 100b, and each read operation for sensing reference cell 100b is similar to the reference cell 100a. Figure 3 A read operation is illustrated for identifying a defective reference cell 100b.

[0039] The resulting current distribution is shown in Figure 4B . Figure 4B The horizontal axis of the graph represents the current amplitude, and the vertical axis represents the number of bits (i.e., the number of cells). Figure 4B As shown, the data current distribution 400 of the data cell 100a written into the low resistance state (corresponding to the parallel magnetization direction P) occupies the highest current range; the data current distribution 402 of the data cell 100a written into the high resistance state (corresponding to the antiparallel magnetization direction AP) occupies the lowest current range; and the reference current distribution 404 of the reference current is located between the data current distributions 400 and 402. As an example, the interval 406 between the data current distribution 400 and the reference current distribution 404 is significantly smaller than the interval 408 between the data current distribution 402 and the reference current distribution 404. In this example, the read margin for the low resistance state may be too narrow. In this regard, the data current distributions 400 and 402 can be shifted to the direction of larger current amplitude to be the data current distributions 400' and 402', so that the intervals 406 and 408 are changed to more average intervals 406' and 408'. The above-mentioned displacement of the current distribution can be achieved by increasing the data input terminal T of the sense amplifier 106-1. DATA Alternatively (or in combination with the above method), the intervals 406 and 408 can be balanced by shifting the reference current distribution 404 toward the direction of low current amplitude, and this shift can be achieved by lowering the reference input terminal T of the sense amplifier 106-1. REF This is achieved by adjusting the current level.

[0040] As another example, reference current distribution 404 is more likely to overlap one or both of data current distributions 400 and 402. To improve reading accuracy, the overlapping area needs to be reduced, and this can also be achieved by shifting data current distributions 400, 402 and / or reference current distribution 404.

[0041] Figure 4C According to some embodiments of the present disclosure, detailed circuits of the sense amplifier 106 are shown.

[0042] Please refer to Figure 4C Like the other sense amplifiers 106, the sense amplifier 106-1 includes a data input terminal T coupled to the sense amplifier 106-1. DATA During a read operation for sensing the selected data cell 100a, the data current I CELL Provided to the data input terminal T DATA , and the data current adjustment element 410 can amplify or reduce the data current I CELL In some embodiments, the data current adjustment element 410 includes a plurality of transistors 412, such as N-type field effect transistors (FETs). The transistors 412 are switchably connected in parallel to the data input terminal T of the sense amplifier 106-1. DATA By increasing the number of transistors 412 connected in parallel, the data current I CELL By amplifying the data current I in each read operation for sensing the data cell 100a, CELL , refer to Figure 4B The described data current distributions 400, 402 can both be shifted toward higher current amplitudes. On the other hand, by reducing the number of transistors 412 connected in parallel, the data current I CELL By reducing the data current I in each read operation for sensing the data cell 100a CELL , refer to Figure 4B Both depicted data current distributions 400, 402 may be shifted toward lower current magnitudes.

[0043] The switch 414 may be used to control the number of transistors 412 connected in parallel. More specifically, the transistors 412 may share a shared source / drain terminal connected to the node N1, and the non-shared source / drain terminals of the transistors 412 may be connected to the data input terminal T1 through the switch 414, respectively. DATAFurthermore, the gate terminals of the transistors 412 are connected to each other. In this way, if all switches 414 are closed (short-circuited), all transistors 412 are connected in parallel, and the node N1 can be coupled to the most amplified data current I CELL When more switches 414 are turned on, fewer transistors 412 are connected in parallel, and the node N1 may be coupled to a less amplified or even lower data current I CELL .

[0044] Similarly, the reference current adjustment component 416 may be coupled to the reference input terminal T of the sense amplifier 106 - 1 . REF During each read operation for sensing the data cell 100a, a reference current I is passed by a set of reference cells 100b. REF Provided to the reference input terminal T REF , and the reference current I can be amplified or reduced by the reference current adjustment component 416 REF . Equivalently, the reference current distribution 404 may be shifted. Similar to the data current adjustment component 410, the reference current adjustment component 416 may include transistors (not shown, such as N-type FETs) that are switchably connected in parallel, and a switch (also not shown) may be used to adjust the number of transistors connected in parallel. In some embodiments, the gate terminal of the transistor 412 of the data current adjustment component 410 is connected to the gate terminal of the transistor of the reference current adjustment component 416 via a common gate line 418, and the data current adjustment component 410 and the reference current adjustment component 416 may be activated simultaneously.

[0045] Furthermore, in some embodiments, the reference input terminal T REF The node N3 may be connected to the reference input terminal T of the other sense amplifier 106. REF , where the node N3 is located at the input side of the reference current adjustment component 416 of the connected sense amplifiers 106. In these embodiments, the reference current I REF amplification or reduction, and the reference current I of the different sense amplifiers 106 REF The adjustments may be different from each other. In an alternative embodiment, the reference input terminal T of the sense amplifier 106-1 REF The node N4 may be connected to the reference input terminal T of the other sense amplifier 106. REF , wherein the node N4 is located at the output end side of the reference current adjustment component 416 of the connected sense amplifiers 106. In these alternative embodiments, the reference current I REF The enlargement or reduction of can be synchronized with each other and can be substantially the same.

[0046] During each read operation for sensing the data cell 100a, each sense amplifier 106 (e.g., sense amplifier 106-1) may be operated so that the precharge circuit 420 connected to the nodes N1 and N2 may be enabled in the initial stage to charge the nodes N1 and N2 to the power supply voltage V DD After the nodes N1 and N2 are decoupled from the power supply source, the data current adjustment element 410 and the reference current adjustment element 416 can be activated by enabling the common gate line 418, and the transistors connected to each other in the data current adjustment element 410 and the reference current adjustment element 416 are turned on. CELL With reference current I REF can be regulated and coupled to nodes N1 and N2. As described above, the data current I CELL corresponds to a low resistance state or a high resistance state, and the reference current I REF The data current I is determined by comparing the potentials at the nodes N1 and N2 to determine the data current I. CELL The comparison result can be provided at the output terminal DOUT of the latch-based circuit 422. In some embodiments, the inverter 424 connected to the node N2 is configured to CELL With reference current I REF After being coupled to the nodes N1 and N2, an enable signal EN is provided to the latch-based circuit 422. According to some embodiments, an additional inverter 426 is coupled to the node N1 to balance the loads of the nodes N1 and N2.

[0047] Please refer again Figure 2 In the subsequent step S204, local reference current adjustment is performed to further improve the read margin of each column. Figure 1BAs described, when a data cell 100a connected to a word line WL is selected to be read, a group of reference cells 100b connected to the word line WL with the selected data cell 100a are connected in parallel to provide a reference current. Some reference cells 100b in the group of reference cells 100b are written to a low resistance state (corresponding to a parallel magnetization direction P), and other reference cells 100b in the group of reference cells 100b are written to a high resistance state (corresponding to an antiparallel magnetization direction AP). In the group of reference cells 100b, the ratio of the number of reference cells 100b written to a low resistance state to the number of reference cells 100b written to a high resistance state is close to or equal to 1. For example, when reading a data cell 100a connected to the word line WL1, 36 reference cells 100b connected to the word line WL1 are connected in parallel to provide a reference current. Among the 36 reference cells 100 b , 18 reference cells 100 b are written into a low resistance state, and the other 18 reference cells 100 b are written into a high resistance state.

[0048] However, the memory cell 100 connected to the first word line WL among the word lines WL and the memory cell 100 connected to the second word line WL among the word lines WL may have different conditions, and the reference current used to read the data cell 100a connected to the first word line WL and the reference current used to read the data cell 100a connected to the second word line WL may be different from each other. As an example (but not limited to), the above-mentioned row difference may be attributed to the signal path from the reference cell 100b connected to the first word line WL to the corresponding sense amplifier 106 may be longer or shorter than the signal path from the reference cell 100b connected to the second word line WL to the corresponding sense amplifier 106. In order to optimize the read margin of each column of data cells 100a, the reference current of each row should be fine-tuned.

[0049] The method of adjusting the reference current generated by a group of reference cells 100b connected to a word line WL includes changing the ratio of the number of reference cells 100b written in a low resistance state to the number of reference cells 100b written in a high resistance state in the group of reference cells 100b. By increasing the ratio (i.e., increasing the number of reference cells 100b written in a low resistance state in the group of reference cells 100b), the reference current generated by the group of reference cells 100b can be increased. On the other hand, by decreasing the ratio (i.e., reducing the number of reference cells 100b written in a low resistance state in the group of reference cells 100b), the reference current generated by the group of reference cells 100b can be decreased. According to some embodiments, a built-in self-test (BIST) circuit system coupled to the memory array 10 is operated to determine the optimal ratio for each column (i.e., the ratio of the number of reference cells 100b written in a low resistance state to the number of reference cells 100b written in a high resistance state).

[0050] In some embodiments, changing the ratio of one row (i.e., the ratio of the number of reference cells 100b written into the low resistance state to the number of reference cells 100b written into the high resistance state) includes changing the resistance state pattern of the reference cells 100b in the row.

[0051] Figure 5 FIG. 4 is a schematic diagram of a local reference current adjustment operation for some rows of the memory array 10 according to some embodiments of the present disclosure.

[0052] As an example, the reference cells 100b in the subarrays 10a-1 and 10a-3 are initially written to a low resistance state (corresponding to a parallel magnetization direction P), while the reference cells 100b in the subarrays 10a-2 and 10a-4 are initially written to a high resistance state (corresponding to an antiparallel magnetization direction AP). During the local reference current adjustment, the reference cells 100b connected to the word line WL1 in the subarray 10a-2 can be rewritten to a low resistance state (corresponding to a parallel magnetization direction P). In addition, the reference cells 100b connected to the word line WL511 in the subarray 10a-3 can be rewritten to a high resistance state (corresponding to an antiparallel magnetization direction AP). As a result, the ratio of the number of reference cells 100b connected to the word line WL1 and written to a low resistance state to the number of reference cells 100b connected to the word line WL1 and written to a high resistance state can be increased. Therefore, the reference current generated by the reference cell 100b connected to the word line WL1 can be slightly increased. In addition, the ratio of the number of reference cells 100b connected to the word line WL511 and written to the low resistance state to the number of reference cells 100b connected to the word line WL511 and written to the high resistance state can be reduced, and the reference current generated by the reference cell 100b connected to the word line WL511 can be slightly reduced. On the other hand, the reference cell 100b connected to the word line WL0 can maintain the initial resistance state distribution, so the reference current generated by the reference cell 100b connected to the word line WL0 can remain unchanged.

[0053] It should be understood that this is provided for illustrative purposes only. Figure 5 The memory array 10 may have more sub-arrays 10a, and the rewritten reference cells 100b may not be limited to the reference cells 100b in a specific sub-array 10a or a specific group of sub-arrays 10a. Furthermore, the local reference current adjustment may cover the reference cells 100b in the memory array 10. Figure 3 A spare row connected to a spare word line WLR is illustrated, and some reference cells 100b in the spare row can be rewritten.

[0054] Please refer again Figure 2 In the next step S206, a column repair is performed. During the column repair, defective data cells 100a are identified, and all data cells 100a of the subarray 10a including the defective data cells 100a are replaced. To identify the defective data cells 100a, a reference is used. Figure 1BThe described reading operation is to confirm whether the data cell 100a can correctly store both the low resistance state (corresponding to the parallel magnetization direction P) and the high resistance state (corresponding to the antiparallel magnetization direction AP). Specifically, all data cells 100a may be initially written into one of the low resistance state (corresponding to the parallel magnetization direction P) and the high resistance state (corresponding to the antiparallel magnetization direction AP), and each data cell 100a is read by the corresponding sense amplifier 106 to identify the defective data cells 100a that cannot correctly store the written resistance state. Afterwards, all data cells 100a may be written into the other of the low resistance state and the high resistance state, and each data cell 100a is read again to identify the defective data cells 100a that cannot correctly store the written resistance state. The data cell 100a that cannot correctly store the low resistance state or the high resistance state will be determined as a defective data cell 100a. Next, all data cells 100a in the sub-array 10a including the defective data cell 100a are replaced with data cells in the spare sub-array (as will be further described below).

[0055] Figure 6 is a schematic diagram of a row repair operation for the memory array 10 according to some embodiments of the present disclosure.

[0056] Although not shown in other figures, the memory array 10 includes at least one spare sub-array 10R for replacing the data cells 100a in the defective sub-array 10a (the sub-array 10a including the defective data cell 100a). Equivalent to each sub-array 10a, the spare sub-array 10R includes a plurality of columns of data cells 100a and a plurality of columns of reference cells 100b (for example, two columns of reference cells 100b located on opposite sides of the plurality of columns of data cells 100a). The word line WL further extends through the spare sub-array 10R and respectively connects a row of data cells 100a and reference cells 100b of the spare sub-array 10R. Although not shown, the memory array 10 further includes additional bit lines and additional reference bit lines. The additional bit lines are respectively connected to a column of data cells 100a in the spare sub-array 10R, and the additional reference bit lines are respectively connected to a column of reference cells 100b in the spare sub-array 10R. Furthermore, the data cells 100a and the reference cells 100b in the spare sub-array 10R are connected to the additional sense amplifier 106R via the additional source line SLR. Similar to the data cells 100a and the reference cells 100b in any sub-array 10a, the data cells 100a and the reference cells 100b in the spare sub-array 10R are connected to the additional sense amplifier 106R in batches. In other words, one of the additional source lines SLR is configured to connect a group of data cells 100a and reference cells 100b in the spare sub-array 10R to the additional sense amplifier 106R, and the other additional source line SLR is configured to connect another group of data cells 100a and reference cells 100b in the spare sub-array 10R to the additional sense amplifier 106R. Furthermore, in some embodiments, the reference input terminal T of the additional sense amplifier 106R is REF For example, it is connected to the reference input terminal T of the other sense amplifier 106 via the internal connection 108. REF In these embodiments, a reference cell 100b in the spare sub-array 10R may participate in the generation of the reference current during each read operation, and the reference cell 100b in the spare sub-array 10R may be pre-written as a low resistance state (corresponding to the parallel magnetization direction P) or a high resistance state (corresponding to the anti-parallel magnetization direction AP). On the other hand, the data input terminal T of the additional sense amplifier 106R DATA may not be connected to the data input terminal T of other sense amplifiers 106 DATA .

[0057] It should be understood that the memory array 10 may include a plurality of spare sub-arrays 10R in response to more sub-arrays 10a being found to have defective data cells 100a. A person skilled in the art may adjust the number of spare sub-arrays according to the yield of the memory array 10, and the present disclosure is not limited thereto.

[0058] like Figure 6In the row repair example shown, if one or more defective data cells 100a are found in the subarray 10a-4, all data cells 100a in the subarray 10a-4 are replaced with data cells 100a in the spare subarray 10R. After the replacement, when a data cell 100a in the subarray 10a-4 is selected for access, the corresponding data cell 100a in the spare subarray 10R is accessed instead of the selected data cell 100a in the subarray 10a-4. In other words, the instruction to access the data cell 100a in the subarray 10a-4 can be changed to access the data cell 100a in the spare subarray 10R.

[0059] According to some embodiments, the bit line addresses of the data cells 100a in the defective sub-array 10a (the sub-array 10a including the defective data cells 100a) and the corresponding bit line addresses of the corresponding data cells in the spare sub-array 10R are stored in a spare column lookup table (CRLUT). As an example, the CRLUT may be implemented based on a memory circuit (e.g., SRAM) of a latch circuit. When a bit line address for accessing one or more data cells 100a on a designated bit line BL is provided, a logic circuit (not shown) may be used to check whether the bit line address matches any of the bit line addresses of the defective data cells 100a stored in the CRLUT. If not, the logic circuit may output the bit line address, and an operating voltage may be provided to the bit line BL corresponding to the bit line address. If the bit line address matches the address of a defective data cell 100a stored in the CRLUT, the logic circuit outputs the bit line address of the corresponding data cell 100a in the spare sub-array 10R, and the operating voltage is in turn provided to the additional bit line corresponding to the bit line address for replacement. In this way, the data cell 100a in the defective sub-array 10a (i.e., the sub-array 10a including at least one defective data cell 100a) is re-addressed to the corresponding data cell 100a in the spare sub-array 10R.

[0060] In some embodiments, the spare row connected along the spare word line WLR further extends through the spare sub-array 10R. In these embodiments, the additional bit line and the additional reference bit line (both not shown) further extend through the data cells 100a and the reference cells 100b connected along the spare word line WLR in the spare sub-array 10R. In addition, the additional source line SLR connects these data cells 100a and the reference cells 100b to the additional sense amplifier 106R. Since the spare row further extends to the spare sub-array 10R, the data cells 100a arranged along the spare row in the defective sub-array 10a can also be redirected to the data cells 100a extending along the spare row in the spare sub-array 10R.

[0061] At this point, the defective ones in the data cells 100a and the reference cells 100b have been identified and repaired (i.e., replaced by spare cells). In addition, the read margin for each sub-array 10a and for each cell row extending across multiple sub-arrays 10a has been optimized. Therefore, the accuracy of the read operation of the memory array 10 can be effectively improved.

[0062] According to the above process, the reference cell 100b is tested and repaired in the row repair step (i.e., step S200), and the row repair step is before the adjustment step (i.e., step S202) of the sense amplifier 106, the local reference current adjustment step (i.e., step S204), and the column repair step (i.e., step S206). Therefore, it can be ensured that the verified reference cell 100b is operated to obtain the data current distribution and the reference current distribution during the sense amplifier adjustment period, is rewritten during the local reference current adjustment period, and is operated to test the data cell 100a during the column repair period. In addition, when adjusting each sense amplifier 106, the read margin optimization is performed on a complete sub-array 10a, while only the reference cell 100b of a single row is optimized for read margin during the local reference current adjustment period. Therefore, the read margin optimization during the sense amplifier adjustment period is a coarse adjustment of the read margin, and the read margin optimization during the local reference current adjustment period is a fine adjustment of the read margin, and is performed after the coarse adjustment of the read margin. Furthermore, since the column repair is performed after the sense amplifier adjustment for the coarse read margin adjustment and the local reference current adjustment for the fine read margin adjustment, the defective data cell 100 a can be identified with higher accuracy during the column repair.

[0063] Alternatively, steps S200 , S202 , S204 , and S206 may be performed in another order.

[0064] Figure 7 is a flow chart of a method for testing and repairing the memory array 10 according to some other embodiments of the present disclosure.

[0065] Please refer to Figure 7 In some embodiments, the sense amplifier adjustment of step S202 is performed before the row repair of step S200, and the local reference current adjustment of step S204 and the column repair of step S206 are performed sequentially after the row repair of step S200. In these embodiments, in addition to other advantageous effects, the optimized read margin obtained by the sense amplifier adjustment can be used to read the reference cell 100b during the row repair.

[0066] In summary, the present disclosure provides a memory component and a read operation for the memory component. The memory component includes a memory array having a plurality of sub-arrays, wherein each sub-array includes a plurality of columns of data cells and a plurality of columns of reference cells. The data cells and the reference cells respectively include an access transistor and a magnetic storage component coupled to the access transistor. A plurality of source lines connect different groups of data cells and reference cells in each sub-array to corresponding sense amplifiers. During a read operation, a selected data cell in a sub-array is connected to a data input terminal of a corresponding sense amplifier via a first source line, and a reference cell in the same sub-array arranged in the same cell row as the selected data cell is connected to the reference input terminal of the sense amplifier via a second source line, thereby avoiding interference between the data cell and the reference cell. Furthermore, reference cells in other sub-arrays arranged in the same cell row as the selected data cell are also connected to the reference input terminal of the sense amplifier. These reference cells are partially written to a low resistance state and partially written to a high resistance state, and are connected in parallel between the reference input terminal and the common terminal of the sense amplifier to provide a reference current to the reference input terminal of the sense amplifier. By using this sense amplifier to compare the data current from the selected data cell with the reference current provided by the parallel-connected reference cell, the resistance state of the selected data cell can be identified and the data stored in the selected data cell can be read. Since the reference current is provided by multiple reference cells connected in parallel rather than by a single reference cell, the reference current variation caused by the individual reference cells can be minimized.

[0067] In addition, the present disclosure also provides a method for testing and repairing memory components. In addition to adjusting the sense amplifier to roughly adjust the read margin and operating the row repair to replace the defective data cell, the method also includes performing row repair and locally adjusting the reference current. During the row repair, the defective ones in the reference cells are identified, and the cell row including at least one defective reference cell is completely redirected to the spare cell row. As a result of the row repair, it can be determined that the verified reference cells participate in the subsequent test and repair process and the normal read operation. In addition, during the local reference current adjustment, the reference current of each cell row is finely adjusted. Specifically, the method for adjusting the reference current for each cell row includes adjusting the ratio of the number of reference cells written to the low resistance state to the number of reference cells written to the high resistance state in each cell row. As a result of the local adjustment of the reference current, the difference in the read margin between different cell rows can be reduced or even eliminated. Therefore, based on further including row repair and local reference current adjustment, the method for testing and repairing memory components can further avoid reading inaccuracies caused by the reference current.

[0068] One aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, the data cells are configured to store data, the reference cells are configured to generate a reference current for reading the data stored in the data cells, and the method includes: performing row repair to test the reference cells in each cell row, and replacing a cell row in the cell row containing at least one defective reference cell with a spare cell row including additional data cells and additional reference cells; and performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows.

[0069] In some embodiments, the sense amplifier is configured to read the data stored in the data cells, the subarrays of the memory array are respectively connected to one of the sense amplifiers, the first group of data cells and the first group of reference cells in each subarray are connected to the corresponding one of the sense amplifiers via a first source line, and the second group of data cells and the second group of reference cells in each subarray are connected to the corresponding one of the sense amplifiers via a second source line. In some embodiments, each sense amplifier has a reference input terminal, and the reference input terminal of each sense amplifier is configured to receive a reference current generated by a group of reference cells from a plurality of the subarrays and connected in parallel between the reference input terminal and a common terminal, a portion of the group of reference cells is written to the low resistance state, and another portion of the group of reference cells is written to the high resistance state. In some embodiments, the reference input terminals of the sense amplifiers are connected to each other. In some embodiments, testing one of the reference cells in one of the subarrays during the row repair includes: coupling the one of the reference cells to a data input of one of the sense amplifiers; coupling a group of reference cells including another reference cell in the one of the subarrays and a plurality of reference cells in the other of the subarrays to the reference input of the one of the sense amplifiers, wherein the group of reference cells are connected in parallel between the reference input of the one of the sense amplifiers and a common terminal, a portion of the group of reference cells are written to the low resistance state, and another portion of the group of reference cells are written to the high resistance state; and operating the one of the sense amplifiers to compare a data current from the one of the reference cells coupled to the data input with a reference current generated by the group of reference cells. In some embodiments, the row repair includes storing a word line address of the cell row including the at least one defective reference cell and a word line address of the spare cell row in a spare row lookup table. In some embodiments, replacing the row of cells containing the at least one defective reference cell with the spare row of cells comprises: redirecting the row of cells containing the at least one defective reference cell to the spare row of cells. In some embodiments, the row repair is performed before the local reference current adjustment. In some embodiments, adjusting the ratio of at least one of the rows of cells comprises: rewriting a portion of the reference cells in the at least one of the rows of cells. In some embodiments, the local reference current adjustment comprises: adjusting the ratio of at least one of the rows of cells according to an optimal value generated by a built-in self-test circuit system coupled to the memory array.

[0070] Another aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, subarrays of the memory array are respectively connected to a sense amplifier, and the method includes: performing row repair to test the reference cells in each cell row, and replacing a cell row in the cell row containing at least one defective reference cell with a spare row including additional data cells and additional reference cells; performing sense amplifier adjustment to adjust the sense amplifier corresponding to at least one of the subarrays to adjust the read margin of each of the data cells in the at least one of the subarrays; and performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows.

[0071] In some embodiments, each sense amplifier has a data input coupled to a first node connected to an input of a latch-based circuit and a reference input coupled to a second node of another input of the latch-based circuit, the data input configured to receive a data current from a selected one of the data cells during a read operation, the reference input configured to receive a reference current generated by a set of reference cells from a plurality of the subarrays during the read operation, and adjusting the at least one of the sense amplifiers comprises adjusting a resistance between the data input of the one of the sense amplifiers and the first node. In some embodiments, each sense amplifier comprises a data current adjustment component comprising transistors switchably connected in parallel between the data input and the first node, and adjusting the at least one of the sense amplifiers comprises adjusting a number of parallel-connected transistors of the data current adjustment component in the at least one of the sense amplifiers. In some embodiments, adjusting the at least one of the sense amplifiers further comprises adjusting a resistance between the reference input of the at least one of the sense amplifiers and the second node. In some embodiments, each sense amplifier includes a reference current adjustment component, the reference current adjustment component including transistors switchably connected in parallel between the reference input terminal and the second node, and adjusting the at least one of the sense amplifiers further includes adjusting the number of transistors connected in parallel of the reference current adjustment component in the at least one of the sense amplifiers. In some embodiments, the row repair, the sense amplifier adjustment, and the local reference current adjustment are performed sequentially. In some embodiments, the sense amplifier adjustment is performed before the row repair, and the row repair is performed before the local reference current adjustment.

[0072] Another aspect of the present disclosure provides a method for testing and repairing a memory component, wherein the memory component includes a memory array, the memory array includes data cells and reference cells arranged along cell rows and cell columns, subarrays of the memory array respectively include multiple rows of the data cells and two rows of the reference cells, and the method includes: performing row repair to test the reference cells in each cell row, and replacing a cell row in the cell row containing at least one defective reference cell with a spare cell row including additional data cells and additional reference cells; performing local reference current adjustment to adjust the ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows; and operating column repair to test the data cells in each subarray, and replacing a subarray in the subarray containing at least one defective data cell with the additional data cells in the spare subarray.

[0073] In some embodiments, the spare subarray further includes at least two columns of additional reference cells. In some embodiments, testing the cells in one of the subarrays includes: writing the data cells in the one of the subarrays to one of the low resistance state and the high resistance state; reading the data cells in the one of the subarrays; rewriting the data cells in the one of the subarrays to the other of the low resistance state and the high resistance state; and reading the data cells in the one of the subarrays again.

[0074] The foregoing summarizes the features of several embodiments so that those skilled in the art can better understand the aspects of the present disclosure. Those skilled in the art should understand that they can easily use the present disclosure as a basis for designing or modifying other processes and structures to implement the same purposes and / or achieve the same advantages as the embodiments described herein. Those skilled in the art should also recognize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they can make various changes, substitutions and modifications to them without departing from the spirit and scope of the present disclosure.

Claims

1. A method for testing and repairing a memory device, wherein the memory device comprises a memory array, the memory array comprises data cells and reference cells arranged along cell rows and cell columns, the data cells are configured to store data, the reference cells are configured to generate a reference current for reading data stored in the data cells, and the method comprises: Performing row repair to test the reference cells in each cell row and replacing a cell row containing at least one defective reference cell with a spare cell row including additional data cells and additional reference cells; and A local reference current adjustment is performed to adjust a ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state for at least one of the cell rows.

2. The method for testing and repairing the memory device according to claim 1, wherein a sense amplifier is configured to read data stored in the data cells, sub-arrays of the memory array are respectively connected to one of the sense amplifiers, a first group of data cells and a first group of reference cells in each sub-array are connected to a corresponding one of the sense amplifiers via a first source line, and a second group of data cells and a second group of reference cells in each sub-array are connected to the corresponding one of the sense amplifiers via a second source line.

3. The method for testing and repairing the memory component according to claim 2, wherein each sense amplifier has a reference input terminal, and the reference input terminal of each sense amplifier is configured to receive a reference current generated by a group of reference cells from a plurality of the sub-arrays and connected in parallel between the reference input terminal and a common terminal, a portion of the group of reference cells is written to the low resistance state, and another portion of the group of reference cells is written to the high resistance state.

4. The method for testing and repairing the memory device according to claim 3, wherein the reference input terminals of the sense amplifiers are connected to each other.

5. The method for testing and repairing the memory device of claim 2, wherein testing one of the reference cells located in one of the sub-arrays during the row repair comprises: coupling said one of said reference cells to a data input of one of said sense amplifiers; coupling a group of reference cells including another reference cell of the reference cell located in the one of the subarrays and a plurality of reference cells located in the other of the subarrays to the reference input terminal of the one of the sense amplifiers, wherein the group of reference cells are connected in parallel between the reference input terminal of the one of the sense amplifiers and a common terminal, a portion of the group of reference cells are written to the low resistance state, and another portion of the group of reference cells are written to the high resistance state; as well as The one of the sense amplifiers is operated to compare a data current from the one of the reference cells coupled to the data input with a reference current collectively generated by the set of reference cells.

6. The method for testing and repairing the memory device according to claim 1, wherein replacing the cell row containing the at least one defective reference cell with the spare cell row comprises: The cell row containing the at least one defective reference cell is redirected to the spare cell row.

7. The method for testing and repairing the memory device according to claim 1, wherein the row repair is performed before the local reference current adjustment.

8. The method for testing and repairing the memory component according to claim 1, wherein adjusting the ratio of the at least one of the cell rows comprises: A portion of the reference cells in the at least one of the cell rows is rewritten.

9. A method for testing and repairing a memory component, wherein the memory component comprises a memory array, the memory array comprises data cells and reference cells arranged along cell rows and cell columns, subarrays of the memory array are respectively connected to a sense amplifier, and the method comprises: Performing row repair to test the reference cells in each cell row and replacing a cell row containing at least one defective reference cell with a spare row including additional data cells and additional reference cells; Performing sense amplifier adjustment to adjust the sense amplifier corresponding to at least one of the sub-arrays to adjust a read margin of each of the data cells in the at least one of the sub-arrays; as well as A local reference current adjustment is performed to adjust a ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows.

10. A method for testing and repairing a memory component, wherein the memory component comprises a memory array, the memory array comprises data cells and reference cells arranged along cell rows and cell columns, a subarray of the memory array comprises a plurality of rows of the data cells and two rows of the reference cells, and the method comprises: Performing row repair to test the reference cells in each cell row and replacing a cell row containing at least one defective reference cell in the cell row with a spare cell row including additional data cells and additional reference cells; Performing a local reference current adjustment to adjust a ratio of the number of reference cells written with a low resistance state to the number of reference cells written with a high resistance state in at least one of the cell rows; as well as A row repair is performed to test the data cells in each sub-array and replace a sub-array containing at least one defective data cell with an extra data cell in a spare sub-array.