Memory testing method and chip

By writing different binary values ​​into the SoC chip memory unit multiple times and performing logical operations, it solves the existing problems of long time-consuming memory testing and high energy consumption, improves test efficiency and reduces energy consumption, and is suitable for use in SoC chips. Demand for increased failure rates.

CN118711646BActive Publication Date: 2024-10-29HANGZHOU SHIDE CLOUD MEASUREMENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411207470.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-10-29
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

Existing memory testing solutions are time-consuming and energy-intensive, and cannot adapt to the increasing memory failure rate in SoC chips.

Method used

By writing different binary values ​​​​to the memory units respectively, logical operations are performed to determine faults, avoiding read operations on all memory units, improving test efficiency and reducing energy consumption.

Benefits of technology

It realizes the efficiency improvement and energy consumption reduction of memory testing, and adapts to the changing testing needs in the actual production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711646B_ABST
    Figure CN118711646B_ABST
Patent Text Reader

Abstract

The present application provides a memory testing method and chip, wherein the memory includes a plurality of memory cells, and the method includes the following steps: writing a binary value into each of the memory cells to form a first arrangement array; performing a logic operation on the first arrangement array to obtain a corresponding first logic operation result; judging whether the first logic operation result is the same as a first preset result; if the first logic operation result is the same as the first preset result, writing a binary value into each of the memory cells to form a second arrangement array; performing a logic operation on the second arrangement array to obtain a corresponding second logic operation result; judging whether the memory has a fault based on the second logic operation result and the second preset result, and outputting a first memory test result; the present application improves the test efficiency of the memory and reduces the energy consumption of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of memory testing, and in particular to a memory testing method and chip. Background Art

[0002] In recent years, consumers' demand for higher performance and smaller size of electronic products has continued to promote the improvement of the integration level of SoC (System on a Chip) products, and has prompted them to have more functions and better performance. The typical structure of SoC includes CPU, memory, peripheral logic circuit, multimedia digital signal codec and interface module. In today's SoC, memory usually occupies most of the area of ​​the entire chip. At present, SoC design requires that the capacity of memory is constantly increasing, and the percentage of area occupied by memory in SoC is also increasing. In addition, the complexity of SoC is constantly increasing while the size of integrated circuit process is constantly decreasing, which leads to an increasing proportion of manufacturing defects in memory. Therefore, the failure rate of memory has an increasingly greater impact on the total yield of SoC, and one of the key points to ensure a low failure rate is an efficient memory testing solution.

[0003] The current memory test solution usually writes a binary value to each memory cell, then reads the value of each memory cell and verifies its correctness. Since the value of all memory cells needs to be read, it takes a long time and the system energy consumption is high. Therefore, this solution has the disadvantages of low test efficiency and high energy consumption, and cannot adapt to the ever-changing test requirements in the actual production process.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of the problems in the prior art, the purpose of the present application is to provide a memory testing method and chip, which improves the testing efficiency of the memory and reduces the system energy consumption.

[0006] In a first aspect, the present application provides a memory testing method, wherein the memory includes a plurality of storage units, and the method includes the following steps:

[0007] Writing a binary value into each of the storage cells to form a first arrangement array;

[0008] Performing a logic operation on the first arrangement array to obtain a corresponding first logic operation result;

[0009] Determining whether the first logic operation result is the same as the first preset result;

[0010] If the first logic operation result is the same as the first preset result, a binary value is written into each of the storage cells to form a second arrangement array; wherein the binary values ​​written into the same storage cell in the first arrangement array and the second arrangement array are different;

[0011] Performing a logic operation on the second arrangement array to obtain a corresponding second logic operation result;

[0012] Based on the second logic operation result and the second preset result, it is determined whether the memory has a fault, and a first memory test result is output.

[0013] In a possible implementation manner of the first aspect, writing a binary value into each of the storage units to form a first arrangement array includes:

[0014] Starting from the test start position of the memory, writing first binary values ​​into all storage cells in the order of increasing addresses to form a first arrangement array;

[0015] Writing a binary value into each of the storage cells to form a second arrangement array comprises:

[0016] Starting from the test start position of the memory, second binary values ​​are written into all storage cells in ascending order of address to form a second arrangement array; the first binary value is different from the second binary value.

[0017] In a possible implementation manner of the first aspect, writing a binary value into each of the storage units to form a first arrangement array includes:

[0018] Dividing all storage units of the memory into first-category storage units and second-category storage units;

[0019] Writing a first binary value into the first type of storage unit and writing a second binary value into the second type of storage unit to form a first arrangement array;

[0020] Writing a binary value into each of the storage cells to form a second arrangement array comprises:

[0021] The second binary value is written into the first type of storage unit, and the first binary value is written into the second type of storage unit to form a second arrangement array; the first binary value is different from the second binary value.

[0022] In a possible implementation manner of the first aspect, dividing all storage units of the memory into first-category storage units and second-category storage units includes:

[0023] One of the storage units of the memory is used as a first type of storage unit, and the remaining storage units are used as second type of storage units;

[0024] The method further comprises:

[0025] The next storage unit of the memory is used as the first type of storage unit, and the test process is executed again; until all the storage units are used as the first type of storage units and the test process is completed.

[0026] In a possible implementation manner of the first aspect, binary values ​​in two adjacent storage cells in the first arrangement array and the second arrangement array are different.

[0027] In a possible implementation manner of the first aspect, performing a logical operation on the first arrangement array to obtain a corresponding first logical operation result includes:

[0028] Performing a logic operation on each row of the first arrangement array to obtain an initial logic operation result corresponding to each row;

[0029] A logical operation is performed on the initial logical operation results between different rows to obtain the first logical operation result.

[0030] In a possible implementation manner of the first aspect, judging whether the memory has a fault based on the second logic operation result and the second preset result includes:

[0031] If the second logic operation result is the same as the second preset result, then the memory is not faulty; otherwise, the memory is faulty.

[0032] In a possible implementation manner of the first aspect, the logical operation is one of a logical AND operation, a logical OR operation, a logical NOT operation, a logical XOR operation, a logical XNOR operation, a logical AND NOT operation, and a logical OR NOT operation.

[0033] In a possible implementation manner of the first aspect, the logical relationship of binary values ​​written into the same storage unit in the first arrangement array and the second arrangement array is opposite.

[0034] In a second aspect, the present application provides a chip, including:

[0035] processor;

[0036] a memory in which an executable program of the processor is stored;

[0037] The processor is configured to execute the steps of any one of the above-mentioned memory testing methods by executing the executable program.

[0038] Compared with the prior art, this application has the following advantages and outstanding effects:

[0039] The memory testing method and chip provided in the present application write different binary values ​​to each memory cell for multiple times, then perform logic operations on all memory cells, and verify whether the memory is faulty based on the results of the logic operations; there is no need to perform a read operation on the values ​​of all memory cells. Since the logic operations are time-consuming and energy-consuming, the memory testing efficiency is improved and the system energy consumption is reduced, and it can adapt to the ever-changing testing requirements in the actual production process. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings.

[0041] Figure 1 A schematic diagram of a memory testing method disclosed in an embodiment of the present application;

[0042] Figure 2 A schematic diagram of a memory testing method disclosed in another embodiment of the present application;

[0043] Figure 3 A schematic diagram of a memory testing method disclosed in another embodiment of the present application;

[0044] Figure 4 Schematic diagram of some storage units after assignment. DETAILED DESCRIPTION

[0045] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in the present application. The present application can also be implemented or applied through other different specific implementation methods, and the details in the present application can also be modified or changed in various ways according to different viewpoints and application systems without departing from the spirit of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0046] The following is a detailed description of the embodiments of the present application with reference to the accompanying drawings so that those skilled in the art can easily implement the present application. The present application can be embodied in a variety of different forms and is not limited to the embodiments described herein.

[0047] In the representations of the present application, the representations with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean that the specific features, structures, materials or characteristics represented in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the represented specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples represented in the present application and the features of the different embodiments or examples, unless they contradict each other.

[0048] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the representation of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0049] In order to clearly describe the present application, components irrelevant to the description are omitted, and the same reference symbols are given to the same or similar components throughout the specification.

[0050] Throughout the specification, when a device is said to be "connected" to another device, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a device is said to "include" a certain component, unless otherwise stated, it does not exclude other components, but means that other components may be included.

[0051] When a device is said to be "on" another device, it may be directly on the other device, but there may also be other devices between it. In contrast, when a device is said to be "directly" on another device, there are no other devices between it.

[0052] Although the terms first, second, etc. are used to represent various elements in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, the first interface and the second interface, etc. are represented. Moreover, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate the existence of features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Only when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way, will there be an exception to this definition.

[0053] The technical terms used herein are only used to refer to specific embodiments and are not intended to limit the present application. The singular form used herein also includes the plural form as long as the sentence does not clearly indicate the opposite meaning. The meaning of "including" used in the specification is to specify specific characteristics, regions, integers, steps, operations, elements and / or components, and does not exclude the existence or addition of other characteristics, regions, integers, steps, operations, elements and / or components.

[0054] Although not defined differently, all terms, including technical and scientific terms used herein, have the same meaning as those generally understood by those skilled in the art to which this application belongs. Terms defined in commonly used dictionaries are additionally interpreted as having meanings consistent with the relevant technical literature and the contents of the current disclosure, and unless defined, shall not be overly interpreted as ideal or very formal meanings.

[0055] Example embodiments will now be described more fully in conjunction with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided so that this application will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their repeated description will be omitted.

[0056] like Figure 1 As shown, an embodiment of the present application discloses a memory testing method, wherein the memory includes a plurality of storage units. The method includes the following steps:

[0057] S110, write a binary value to each storage unit to form a first arrangement array. In this embodiment, the above binary value can be 0 or 1. The binary value written in each storage unit of the memory can be the same or different. The first arrangement array is an array composed of the binary values ​​written in all storage units of the memory.

[0058] S120, performing a logic operation on the first arrangement array to obtain a corresponding first logic operation result. In this embodiment, when performing a logic operation, if the first arrangement array is in the form of a single row or a single column, then only the row or the column needs to be logically operated, and the obtained first logic operation result is a numerical value.

[0059] If the first arrangement array is in the form of multiple rows and columns, a logical operation can be performed on each row or each column, and then the logical operation results of all rows or all columns are combined into a binary sequence, and the binary sequence can be used as the first logical operation result. The above logical operation can also be performed again on the binary sequence, and the logical operation is the same as the operation type of the above logical operation on each row, and then a binary number is obtained, and the binary number is used as the first logical operation result.

[0060] Among them, in a possible implementation method, the process of performing logical operations on a row or a column of binary values ​​can be: for example, the operation objects are three adjacent numbers: the first value, the second value and the third value, respectively. After performing logical operations on the first value and the second value, a logical operation result can be obtained, and the logical operation result can be logically operated with the third value, and so on, to finally obtain the logical operation result of a row or a column of data.

[0061] The above-mentioned logical operation is one of a logical AND operation, a logical OR operation, a logical NOT operation, a logical XOR operation, a logical XNOR operation, a logical AND NOT operation and a logical OR NOT operation.

[0062] S130, determine whether the first logic operation result is the same as the first preset result. If they are the same, execute step S140. If they are different, execute step S170: output the second memory test result. In this case, the second memory test result indicates that the memory is faulty.

[0063] When the first logic operation result is a numerical value, then the first preset result is a numerical value accordingly. If the first logic operation result is a binary sequence, then the first preset result is a binary sequence accordingly.

[0064] S140, writing a binary value into each storage unit to form a second arrangement array, wherein the binary value written into the same storage unit in the first arrangement array and the second arrangement array is different.

[0065] In this embodiment, similar to the first arrangement array, the second arrangement array is also an array composed of binary values ​​written in all storage cells of the memory. The logical relationship between the binary values ​​written in the first arrangement array and the second arrangement array of the same storage cell is opposite. Exemplarily, if the binary value written in the first arrangement array of the same storage cell is one of 0 and 1, then the binary value written in the second arrangement array of the same storage cell is the other of 0 and 1.

[0066] S150, performing a logic operation on the second arrangement array to obtain a corresponding second logic operation result.

[0067] In this embodiment, the principle of the logic operation of the second arrangement array is the same as the principle of the logic operation of the first arrangement array, and this application will not repeat them here.

[0068] S160, based on the second logic operation result and the second preset result, determine whether the memory has a fault, and output the first memory test result. That is, determine the first memory test result according to the second logic operation result and the second preset result and output it.

[0069] Specifically, when the second logic operation result is a numerical value, then correspondingly, the second preset result is a numerical value. If the second logic operation result is a binary sequence, then correspondingly, the second preset result is a binary sequence.

[0070] If the second logic operation result is the same as the second preset result, the memory does not have a fault, and in this case the first memory test result indicates that the memory does not have a fault. Otherwise, the memory does have a fault, and in this case the first memory test result indicates that the memory does have a fault.

[0071] The first preset result and the second preset result may be the same or different and may be set as required. For example, the first preset result may be 0 and the second preset result may be 1.

[0072] In this embodiment, after writing different binary values ​​to each storage unit for multiple times, logic operations are performed on all storage units, and whether the memory is faulty is verified based on the results of the logic operations. There is no need to perform a read operation on the values ​​of all memory cells. Since logic operations are time-consuming and energy-consuming, the test efficiency of the memory is improved and the system energy consumption is reduced, which can adapt to the ever-changing test requirements in the actual production process.

[0073] In another embodiment of the present application, another memory testing method is disclosed. Figure 2 As shown in the above Figure 1 On the basis of the corresponding embodiment, on the basis of step S110, step S111 is formed:

[0074] Starting from the test start position of the memory, first binary values ​​are written into all the storage cells in the order of increasing addresses to form a first arrangement array.

[0075] On the basis of step S140, step S141 is formed:

[0076] Starting from the test start position of the memory, the second binary value is written into all the storage cells in the order of increasing addresses to form a second arrangement array. The first binary value is different from the second binary value.

[0077] In this embodiment, in step S111, the binary values ​​written into all storage units are the same. In step S141, the binary values ​​written into all storage units are also the same.

[0078] In a possible implementation, the logical operation in step S120 is a logical OR operation, and the logical operation in step S150 is a logical AND operation. Starting from the starting address position of the memory, write "0" to all storage cells in the ascending order of the address in the row direction or column direction. Then perform a logical OR operation along the row direction or column direction. If the read result is not 0, it is considered that the memory has a fault. If it is 0, start again from the starting address position of the memory, and write "1" to all storage cells in the ascending order of the address in the row direction or column direction. Then perform a logical AND operation along the row direction or column direction. If the read result is not 1, it is considered that the memory has a fault. If the read result is 1, it is considered that the memory does not have a fault.

[0079] This embodiment improves the existing MSCAN (Memory SCAN) algorithm. The method provided by this embodiment has a fast detection speed and a simple test process. It can detect fixed faults, such as fixed type faults and fixed open circuit faults. The algorithm time complexity is improved from O(4N) ​​before the improvement to O(2N), thereby improving the test efficiency of the memory.

[0080] In another embodiment of the present application, another memory testing method is disclosed. Figure 3 As shown in the above Figure 1 On the basis of the corresponding embodiment, on the basis of step S110, the following steps are formed:

[0081] S112, dividing all storage units of the memory into first-category storage units and second-category storage units.

[0082] S113, writing a first binary value into the first type of storage unit and writing a second binary value into the second type of storage unit to form a first arrangement array, wherein the first binary value is different from the second binary value.

[0083] On the basis of step S140, step S142 is formed:

[0084] The second binary value is written into the first type of storage unit, and the first binary value is written into the second type of storage unit to form a second arrangement array.

[0085] In this embodiment, in step S113, the binary values ​​written into all the storage units have two values, for example, 0 is written into some storage units, and 1 is written into other storage units. The same is true in step S142.

[0086] In some embodiments, in the above Figure 3 On the basis of the corresponding embodiment, the binary values ​​of two adjacent storage cells in the first arrangement array and the second arrangement array are different. That is, when assigning values ​​to the storage cells, 0 and 1 are assigned alternately, so that the value of each storage cell is different from the surrounding four storage cells. The assigned partial storage cells can refer to Figure 4 .

[0087] In a possible implementation, the logical operation in step S120 and the logical operation in step S150 are both logical XOR operations. Starting from the starting address position of the memory, in the ascending order of the address in the column direction, the first column is written with the "0101" sequence, the second column is written with the "1010" sequence, the third column is written with the "0101" sequence, and the fourth column is written with the "1010" sequence, forming an array arrangement in which the values ​​of adjacent cells are different. Starting from the first row, the XOR logical operation of each row is performed in turn, and then the calculation results of each row are subjected to an XOR operation. If the result is not 0, it is considered that the memory is faulty.

[0088] If it is 0, start again from the starting address position of the memory, and write the "1010" sequence in the first column, the "0101" sequence in the second column, the "1010" sequence in the third column, and the "0101" sequence in the fourth column in the ascending order of the address in the column direction. An array arrangement is formed in which the values ​​of adjacent cells are different. The array arrangement formed this time is completely opposite to the array arrangement formed last time. Then, starting from the first row, perform an XOR logic operation on each row in turn, and then perform an XOR operation on the calculation results of each row. If the result is not 0, it is considered that the memory is faulty. If it is 0, it is considered that the memory is not faulty.

[0089] In the above implementation, step S120 includes:

[0090] A logic operation is performed on each row of the first arrangement array to obtain an initial logic operation result corresponding to each row.

[0091] A logical operation is performed on initial logical operation results between different rows to obtain a first logical operation result.

[0092] This embodiment improves the existing Checker board algorithm. The method provided by this embodiment can be used to detect fixed-type faults, address decoding faults, and coupling short-circuit faults between adjacent storage cells of the memory. The time complexity of the algorithm is improved from O(4N) ​​before the improvement to O(2N), thereby improving the test efficiency of the memory.

[0093] In some embodiments, in the above Figure 3 Based on the corresponding embodiment, step S114 is formed on the basis of step S112:

[0094] One of the storage units of the memory is used as a first type of storage unit, and the remaining storage units are used as second type of storage units.

[0095] The above method further comprises the steps of:

[0096] The next storage unit of the memory is used as the first type of storage unit, and the test process is executed again. Until all storage units are used as the first type of storage units and the test process is completed. Only when the test results of all storage units are the same as the preset results, that is, they all meet the requirements, can it be determined that the memory does not have a fault. Otherwise, it is determined that the memory has a fault. The above test process refers to the process from step S114 to step S170.

[0097] Specifically, for example, the first type of storage unit is a basic unit (BC), and the second type of storage unit is a common unit (OC). In this embodiment, the first storage unit is first selected as the basic unit, and the remaining storage units are common units. Then, a write 0 operation is performed on the basic unit, and a write 1 operation is performed on all common units. A logical XOR operation is performed on all data along the row direction or column direction. If the read result is not 1, it is considered that the memory has a fault. If it is 1, a write 1 operation is performed on the basic unit, and a write 0 operation is performed on all common units. A logical XOR operation is performed on all data along the row direction or column direction. If the read result is not 1, it is considered that the memory has a fault. If it is 1, the next storage unit is selected as the basic unit, and the above test process is repeated until each storage unit is tested once as a basic unit. Finally, as long as one test result does not meet the expected requirements, it is determined that the memory has a fault. If all test results meet the requirements, it is determined that the memory does not have a fault.

[0098] This embodiment improves the existing Galpat algorithm. The method provided by this embodiment can be used to detect various potential problems of the memory and can provide practical solutions for complex memory systems. By using XOR logic, this test method improves the sensitivity of fault detection, making it a very effective diagnostic tool. The algorithm time complexity is reduced from O(4N) ​​before the improvement to 2 ) is improved to O(2N 2 ), which improves the test efficiency of the memory.

[0099] Since different memories (such as SRAM, DRAM, Flash, etc.) have different internal structures, such as the arrangement of storage units, address decoding methods, data access paths, etc., the memories may have multiple fault types, including but not limited to stuck-at faults, bridging faults, address decoding faults, coupling faults, etc. Therefore, in some optional embodiments, based on any of the above embodiments, the steps are further included:

[0100] According to the structural characteristics of the memory under test and the faults of concern, a suitable test algorithm can be selected to generate test vectors, which is beneficial to improve the test fault coverage of the memory, thereby helping to improve the overall yield of the SoC chip. Among them, the test vector is the input data sequence used for memory testing. They are generated according to the selected test algorithm, and the purpose is to stimulate and detect specific faults. The design of the test vector needs to ensure that all types of faults of concern can be covered. The test vector can also be optimized in combination with the test time, test cost and complexity of the test data. Optimizing the test vector can reduce the test time while maintaining high fault coverage.

[0101] An embodiment of the present application further discloses a memory testing system, the system comprising:

[0102] The first arrangement array forming module writes a binary value into each storage unit to form a first arrangement array.

[0103] The first logic operation result acquisition module performs a logic operation on the first arrangement array to obtain a corresponding first logic operation result.

[0104] The first judgment module judges whether the first logic operation result is the same as the first preset result.

[0105] The second array formation module writes a binary value into each storage unit to form a second array if the first logic operation result is the same as the first preset result, wherein the binary value written into the same storage unit in the first array and the second array is different.

[0106] The second logic operation result acquisition module performs a logic operation on the second arrangement array to obtain a corresponding second logic operation result.

[0107] The second judgment module judges whether the memory has a fault based on the second logic operation result and the second preset result, and outputs the first memory test result.

[0108] It is understandable that the memory test system of the present application also includes other existing functional modules that support the operation of the memory test system. The memory test system in this embodiment is used to implement the above-mentioned memory test method, so the specific implementation steps of the memory test system can refer to the above-mentioned description of the memory test method, which will not be repeated here.

[0109] The present application also discloses a chip, which includes a memory and a processor. The memory stores an executable program of the processor. The processor is configured to execute the steps of the memory testing method disclosed in any of the above embodiments by executing the executable program.

[0110] The present application also discloses a computer-readable storage medium for storing a program, which, when executed, implements the steps in the memory testing method disclosed in any of the above embodiments. In some possible implementations, various aspects of the present application may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps described in the memory testing method described in the specification according to various exemplary implementations of the present application.

[0111] As shown above, when the program of the computer-readable storage medium of this embodiment is executed, after writing different binary values ​​to each storage unit for multiple times, logical operations are performed on all storage units, and whether the memory is faulty is verified based on the results of the logical operations; without performing a read operation on the values ​​of all memory cells, since logical operations are time-consuming and energy-consuming, the test efficiency of the memory is improved and the system energy consumption is reduced, and it can adapt to the ever-changing test requirements in the actual production process.

[0112] An embodiment of the present application discloses a computer-readable storage medium. The storage medium is a program product for implementing the above method, which can be a portable compact disk read-only memory (CD-ROM) and includes program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus, or a device.

[0113] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0114] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0115] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0116] The memory testing method and chip provided in the embodiments of the present application write different binary values ​​to each memory cell for multiple times, then perform logic operations on all memory cells, and verify whether the memory is faulty based on the results of the logic operations; there is no need to perform a read operation on the values ​​of all memory cells. Since the logic operations are time-consuming and energy-consuming, the memory testing efficiency is improved and the system energy consumption is reduced, and it can adapt to the ever-changing testing requirements in the actual production process.

[0117] The above content is a further detailed description of the present application in combination with specific preferred implementation methods, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. For ordinary technicians in the technical field to which the present application belongs, several simple deductions or substitutions can be made without departing from the concept of the present application, which should be deemed to fall within the scope of protection of the present application.

Claims

1. A memory testing method, characterized in that: The memory includes a plurality of storage units, and the method includes the following steps: Writing a binary value into each of the storage cells to form a first arrangement array; Performing a logic operation on the first arrangement array to obtain a corresponding first logic operation result; Determining whether the first logic operation result is the same as the first preset result; If the first logic operation result is the same as the first preset result, a binary value is written into each of the storage cells to form a second arrangement array; wherein the binary values ​​written into the same storage cell in the first arrangement array and the second arrangement array are different; Performing a logic operation on the second arrangement array to obtain a corresponding second logic operation result; Based on the second logic operation result and the second preset result, it is determined whether the memory has a fault, and a first memory test result is output.

2. The memory testing method according to claim 1, wherein: Writing a binary value into each of the storage cells to form a first arrangement array comprises: Starting from the test start position of the memory, writing first binary values ​​into all storage cells in the order of increasing addresses to form a first arrangement array; Writing a binary value into each of the storage cells to form a second arrangement array comprises: Starting from the test start position of the memory, second binary values ​​are written into all storage cells in the order of increasing addresses to form a second arrangement array; the first binary value is different from the second binary value.

3. The memory testing method according to claim 1, wherein: Writing a binary value into each of the storage cells to form a first arrangement array comprises: Dividing all storage units of the memory into first-category storage units and second-category storage units; Writing a first binary value into the first type of storage unit and writing a second binary value into the second type of storage unit to form a first arrangement array; Writing a binary value into each of the storage cells to form a second arrangement array comprises: The second binary value is written into the first type of storage unit, and the first binary value is written into the second type of storage unit to form a second arrangement array; the first binary value is different from the second binary value.

4. The memory testing method according to claim 3, wherein: The dividing all storage units of the memory into first-category storage units and second-category storage units comprises: One of the storage units of the memory is used as a first type of storage unit, and the remaining storage units are used as second type of storage units; The method further comprises: The next storage unit of the memory is used as the first type of storage unit, and the test process is executed again; until all the storage units are used as the first type of storage units and the test process is completed.

5. The memory testing method according to claim 3, wherein: The binary values ​​of two adjacent storage cells in the first arrangement array and the second arrangement array are different.

6. The memory testing method according to claim 3, characterized in that: The performing a logic operation on the first arrangement array to obtain a corresponding first logic operation result includes: Performing a logic operation on each row of the first arrangement array to obtain an initial logic operation result corresponding to each row; A logical operation is performed on the initial logical operation results between different rows to obtain the first logical operation result.

7. The memory testing method according to any one of claims 1 to 6, characterized in that: The determining whether the memory has a fault based on the second logic operation result and the second preset result includes: If the second logic operation result is the same as the second preset result, then the memory is not faulty; otherwise, the memory is faulty.

8. The memory testing method according to any one of claims 1 to 6, characterized in that: The logic operation is one of a logic AND operation, a logic OR operation, a logic NOT operation, a logic XOR operation, a logic XNOR operation, a logic NAND operation and a logic NOR operation.

9. The memory testing method according to any one of claims 1 to 6, characterized in that: The logic relationship of the binary values ​​written into the same storage unit in the first arrangement array and the second arrangement array is opposite.

10. A chip, characterized in that: include: processor; a memory in which an executable program of the processor is stored; The processor is configured to execute the steps of the memory testing method according to any one of claims 1 to 9 by executing the executable program.

Citation Information

Patent Citations

  • Device and method for increasing the test efficiency of chip

    CN102201268A

  • Test method, device and equipment for storage unit of DDR chip and storage medium

    CN113889176A