Memory protection circuit testing and memory scrubbing using memory built-in self-test

By using the indirect and direct test paths of the memory built-in self-test circuit in the data processing system, combined with the support of the MBIST controller, the problems of long test time of the memory protection circuit and difficulty in correcting multiple error bits are solved, achieving fast and low-cost Memory testing and error correction improve system availability and data reliability.

CN108630284BActive Publication Date: 2024-09-06ARM LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201711351173.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-03-23
Filing Date
2017-12-15
Publication Date
2024-09-06
Estimated Expiration
2039-06-08

AI Technical Summary

Technical Problem

When testing the memory protection circuit of the existing data processing system, there are problems such as long test time, great impact on the functional use of the IP core, and the inability to effectively correct multiple error bits, making the memory susceptible to irreparable damage.

Method used

The memory built-in self-test circuit is used to provide indirect test access paths and direct test access paths. The MBIST controller bypasses the memory protection circuit for testing. Additional circuits in the IP core are used to support memory scrubbing to achieve fast and low-cost testing and error correction. .

Benefits of technology

It achieves fast, low-impact testing of memory protection circuits, reduces test time, avoids long-term memory locking, improves memory availability and data reliability, and barely affects power, performance and area standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108630284B_ABST
    Figure CN108630284B_ABST
Patent Text Reader

Abstract

The present disclosure relates to memory protection circuit testing and memory scrubbing using memory built-in self-test. A data processing device includes a memory and a memory protection circuit for providing an operational path to the memory during operational use of the memory. A memory built-in self-test controller 34 performs built-in self-test operations on the memory using an indirect test access path to the memory through the memory protection circuit or a direct test access path to the memory bypassing the memory protection circuit. Thus, in addition to the correct operation of the memory, the correct operation of the memory protection circuit itself can also be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing systems. More specifically, the present disclosure relates to in-situ testing of memory protection circuits and memory scrubbing within a data processing system using a memory built-in self-test circuit. Background Art

[0002] It is known to provide a data processing device (e.g., a so-called system-on-chip (SoC) device) having one or more memories in various forms for storing data values ​​to be operated on and program instructions for specifying data processing operations to be performed. The data processing operations may be performed by so-called IP cores (individually licensed blocks of processing operations implementable as logic circuits) such as a CPU (central processing unit). The forms of memory may include, for example, main memory, cache memory (including, for example, level 1 (L1) cache, level 2 (L2) cache, etc.); data translation lookaside buffers for storing data specifying virtual-to-physical memory address translations and / or memory permission data; and memory for storing data for other purposes within the data processing system, such as branch history data for branch prediction.

[0003] It is known to provide a memory built-in self-test (MBIST) circuit in a data processing system for performing memory test operations on the memory in the data processing system. Such a memory built-in self-test circuit can be used to perform initial tests at the time of initial manufacture of the data processing system and / or when performing continuous tests during the life of the data processing system. Identifying errors in memory operations can be used to trigger appropriate responses, for example, to disable relevant portions of the memory so that the operation of the system as a whole is not damaged or slowed down. Many other different forms of responses to detected errors are also possible.

[0004] It is also known in data processing systems to provide memory protection circuits that are used to prevent errors in memory during operational use of the memory. For example, error correction code circuits and / or parity code circuits can be used to store error correction codes and / or parity bits associated with stored data values ​​within the memory. These error correction codes and / or parity bits can then be used to detect errors that occur within the memory and potentially correct these errors. Soft errors caused by particle strikes can be detected and corrected before they are able to disrupt the operation of the entire system because such errors are not a sign of permanent failure within the memory, so the memory can continue its normal operation. The term "memory protection circuit" may include memory error checking or correction code generation circuits, error detection circuits, and error correction circuits. These include parity check codes and error correction code (ECC) circuits.

[0005] Testing of the memory protection circuitry itself may be performed in the field (that is, in the context of an operating device rather than at the manufacturing stage) at power up, power down, or periodically during operation.

[0006] Three possible use modes of on-site MBIST can be divided into: production test, off-line test and online test.Any one of these use models can be used for periodically testing the memory protection circuit at power on, power off or during operation.There is a trade-off in the following aspects: the MBIST circuit supports the complexity of each use model in these use models and the intrusiveness of the test to the functional operation performed by the IP core.

[0007] Production Test

[0008] In the production test use model, all functional operation of the IP core is stopped during testing, data in memory is corrupted by the test, all state within the IP core is lost, and no memory within the IP core is accessed except by the MBIST circuitry. When the test is complete, the IP core is reset and most of the memory in the core is initialized. Memory testing is performed in the field in a manner similar to how it would be performed when manufacturing a device such as an SoC. Typically, the production test algorithm may need to run for a long time, rendering the IP core unavailable for functional use for a considerable period of time.

[0009] Offline testing

[0010] In the offline test use model, the memory to be tested is disabled by the software running on the IP core and therefore cannot be used for normal functional use. The IP core can still operate, but at a reduced performance level. For example, if the L1 data cache is offline, the CPU can still access data in the L2 or lower memory, but each access may take longer compared to accessing the L1 data cache. In addition, the L1 instruction cache can still be accessed when the L1 data cache is offline. If the data in the L1 data cache needs to be retained for use after testing, any dirty data must be cleaned to lower levels of memory before testing begins.

[0011] The memory being tested must not be accessed except by the MBIST circuitry. The contents of the memory being tested are usually corrupted by the test, and it may be necessary to reinitialize the memory when functional use is enabled. Typically, production test algorithms are used to test the memory. The state of the IP core is not lost as a result of the test, and it does not need to be reset after the test is complete.

[0012] Online Test

[0013] In the online test method, all or part of the memory to be tested is locked by the MBIST controller, and a short burst online memory test algorithm is used to test only a small part of the memory at a time. So the time when the memory is not available for functional use is very short. If the IP core wishes to access the memory entry locked for the test, the functional access is stopped until the MBIST controller removes the lock. The IP core can still freely access all other memories and entries that are not locked for testing. Even if the access to a specific memory stops, the other parts of the IP core can still work normally. Any value in the memory entry modified during the test is saved at the beginning of the test and restored at the end of the test of the MBIST controller. The test is carried out autonomously relative to the normal operation of the IP core, and the memory tested does not need to disable functional use. The state of the IP core will not be lost due to the test, and does not need to be reset after the test is completed.

[0014] The test has little impact on the operation or performance of the IP core due to the following reasons: the core may not need to access locked entries during the test burst or may try to access locked memory partial paths through the test burst, the memory contents are saved and consistency with other shared memories is maintained, the test time is short, and the test interval is large.

[0015] Memory scrubbing is used to mitigate multiple soft errors occurring in the same memory entry from multiple events interfering by checking and, if necessary, correcting the stored data values. Current practice is for memory protection circuits to support single-bit error correction and double-bit error detection. Therefore, if a memory entry contains two or more erroneous bits, it is not possible to correct these errors, so the data is lost. Memory entries may not be read for a long time, so they may include undetected soft errors, thereby being susceptible to a second soft error event that may irreparably destroy the data. Therefore, memory scrubbing may be appropriately performed to correct soft errors immediately after the error occurs. Summary of the invention

[0016] At least some embodiments of the present disclosure provide a device for processing data, comprising: a memory; a memory protection circuit for providing an operational access path to the memory and preventing errors in the memory during operational use of the memory; and a memory built-in self-test circuit for performing test operations on the memory; wherein the memory built-in self-test circuit provides an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit.

[0017] At least some embodiments of the present disclosure provide a method for performing built-in self-test on a memory, the memory having a memory protection circuit, the memory protection circuit providing an operational access path to the memory and preventing errors in the memory during operational use of the memory, the method comprising: accessing the memory using an indirect test access path through the memory protection circuit; and accessing the memory using a direct test access path that bypasses the memory protection circuit.

[0018] At least some embodiments of the present disclosure provide a memory built-in self-test device for performing built-in self-test on a memory, the memory having a memory protection circuit, the memory protection circuit providing an operational access path to the memory and preventing errors in the memory during operational use of the memory, the memory built-in self-test device comprising: a memory interface circuit for providing an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit.

[0019] The above and other objects, features and advantages of the present disclosure will become apparent from the following detailed description of illustrative embodiments when read in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 schematically illustrates a data processing system including a plurality of memories of different types, some of which are combined with memory protection circuits and some of which have associated memory built-in self-test circuits;

[0021] Figure 2 schematically illustrates a memory built-in self-test circuit connected to the memory and both a write-side memory protection circuit and a read-side memory protection circuit;

[0022] Figure 3 is a flow chart schematically illustrating a write-side memory protection test, for example, for detecting faults in parity or error detection / correction code generation circuits;

[0023] Figure 4 is a flow chart schematically illustrating a read-side memory protection test for detecting a fault in an error detection circuit;

[0024] Figure 5 is a flow chart schematically illustrating a read-side memory protection test for detecting a fault in a syndrome value generating circuit;

[0025] Figure 6 is a flow chart schematically illustrating a read-side memory protection test for detecting failures in an error correction circuit; and

[0026] Figure 7 is a schematic flow chart illustrating a memory scrubbing process. DETAILED DESCRIPTION

[0027] An example configuration may provide an apparatus for processing data, comprising: a memory; a memory protection circuit for providing an operational access path to the memory and preventing errors in the memory during operational use of the memory; and a memory built-in self-test circuit for performing test operations on the memory; wherein the memory built-in self-test circuit provides an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit.

[0028] In an exemplary embodiment, the MBIST controller may also perform memory scrubbing using additional circuitry in the IP core required to support testing of the memory protection circuitry.

[0029] Memory scrubbing may be similarly implemented by an MBIST controller using examples of the present technique and features already used to test memory protection circuits.

[0030] The example arrangement can be low-cost potentially, and has little influence on power, performance (functional circuit timing) and area (collectively referred to as so-called " PPA " standard), because they can utilize the MBIST interface and MBIST circuit in the IP core and the MBIST controller that has been used for memory test, so that the memory protection circuit is allowed to be tested by a small amount of additional circuit. The memory core built-in self-test use model supported by the IP core can also be used to test the memory protection circuit. In addition, the memory is used to capture value from the memory protection circuit and provide data value to the memory protection circuit, as occurs in normal functional operation.

[0031] Now turning to the attached figure, Figure 1A data processing system 2 is schematically shown, such as a system-on-chip integrated circuit, which includes a first processor core 4, a second processor core 6, a graphics processing unit 8, a main memory 10, and peripheral devices 12, all connected via an interconnect 14. The first processor core 4 and the second processor core 6 each include a level 1 instruction cache 16, a level 1 data cache 18, and a translation lookaside cache 20. In order to maintain consistency between the data caches within the first processor core 4 and the second processor core 6, a snoop control unit 22 is used to initiate snoop operations and consistency control, wherein a snoop filter 24 and other circuits are utilized. The snoop control unit 22 also includes a level 2 cache 26 shared by the first processor core 4 and the second processor core 6. A DRAM controller 28 is disposed between the interconnect 14 and the main memory (DRAM) 10. The DRAM controller 28 includes a data buffer 30 for buffering data accessed within the main memory 10, for example, providing a buffer memory for multiple lines of data recently accessed within the main memory 10. The graphics processing unit 8 includes a random access memory 32 for graphics processing operations performed by the graphics processing unit 8.

[0032] like Figure 1 As shown by the "#" mark in Figure 1 The various memories 16, 18, 20, 24, 26, 30 within the data processing system 2 in the example are provided with memory protection circuitry. The memory 32 of the graphics processing unit 8 in the illustrated example system does not have memory protection circuitry, but it may be present in this or other graphics processor units. The memory protection circuitry may take a variety of different forms, for example, a circuit that generates parity values ​​and / or error correction code values ​​associated with data values ​​stored in the corresponding memory (which includes both data values ​​and instructions to be manipulated). The parity values ​​and / or error correction code values ​​may be generated by the memory protection circuitry when the data values ​​are written to the memory, and then read and checked by the memory protection circuitry when the data values ​​are read from the memory. In this way, errors in memory operations may be detected and potentially corrected (if not too stringent). It will be appreciated that the memory protection circuitry may operate in many different ways, and that there is generally a trade-off between the overhead of processing and storing parity codes and / or error correction codes and the error protection and error correction capabilities they provide. Data may also be accessed within a given memory in a manner where the accessed bit values ​​represent multiple data values, each having a separate associated parity code and / or error correction code, e.g., 128 bits of data may be accessed together and represent two 64-bit data words, each having a separate parity code and / or error correction code.

[0033] Figure 1Each of the memories 16, 18, 20, 24, 26, 30, 32 in the apparatus has an associated memory built-in self-test controller 34 (as an example of memory built-in test circuitry) for performing memory built-in self-test operations on its respective memory under the control of a management processor 35. Note that it is not necessary to use a separate management processor; the roles and functions of the management processor may be provided by another (or more than one) processor in the apparatus along with the other roles and functions of one or more other processors.

[0034] A separate memory built-in self-test controller 34 can be dedicated to performing built-in self-test operations on a separate memory (e.g., for the RAM memory 32 within the graphics processing unit 8), or can be shared between multiple memories (e.g., for the first level instruction cache 16, the first level data cache 18, and the translation lookaside buffer 20 within the first processor 4).

[0035] Each memory can be made up of multiple sub-memory (for example, cache can include tag RAM and data RAM, and each of these RAMs can be subdivided into multiple storage paths or storage bodies). Each sub-memory can have its own memory protection logic. Multiple MBIST controllers 34 can perform tests simultaneously, so the memories in different IP cores 4,6,8,22,28 can be tested in parallel.

[0036] When the management processor 35 instructs an instance of the memory built-in self-test controller 34 to perform a built-in self-test operation on one of its respective associated memories, the memory built-in self-test controller 34 is used to reserve one or more entries (represented by memory addresses) within the memory to be tested. If the associated processing circuits 4, 6, 8, 22, 28 wish to utilize those memory locations while retaining them, the processing circuits stop until the built-in self-test operation is completed and the memory locations are released. This describes the online test use model as discussed above. The production test use model as described above (operation of the entire device is unavailable during testing) or the offline test use model (specific memories are unavailable during testing, and operation continues in other ways without using the disabled memories) may also be used.

[0037] As described above, the tests can be arranged to have little effect on the operation of the processor. For an extended period of time, the management processor 35 directs the execution of a built-in self-test operation that ultimately overwrites all storage locations within a given memory in order to check the correct operation of the complete memory. This test mode allows ongoing built-in self-test operations to be performed while the data processing system 2 is used in the field and performing its functional processing operations.

[0038] Figure 2Schematically shown is a connection to a memory 36 (which may be, for example, Figure 1 The memory built-in self-test controller 34 of the memory 16,18,20,24,26,30 of the present invention is equipped with a memory protection circuit in the form of a write-side memory protection circuit 38 and a read-side memory protection circuit 40. In this exemplary embodiment, the write-side memory protection circuit 38 is used to generate an error correction code 50 according to the data value 52 stored in the memory 36. The error correction code (ECC) includes a protection code value, and the stored data value includes the protection data value 52. The data bus from the MBIST controller can be, for example, wide enough to carry data and ECC values. More specifically, during the normal functional operation of the memory 36, the data value z to be written into the memory 36 is provided to the memory 36 by the fourth multiplexer 46 and is provided to the write-side memory protection circuit 38 by the second multiplexer 42. The write-side memory protection circuit 38 generates a protection code value y according to the protection data value z, so that the protection code value y can be stored in the memory 36 by the first multiplexer 44, and is associated with the protection data value z written by the fourth multiplexer 46. Thus, memory entry X comprises (at least) an ECC protection code value 50 and a corresponding protection data value 52. During normal functional operation, functional memory addresses for read access and write access are provided to the memory 36 via the fifth multiplexer 47. In a normal write operation, y and z are written together.

[0039] In functional (non-test) use, the read-side memory protection circuit 40 reads the protection data value 52 and the protection code value 50 of the entry in the memory 36, and processes the protection code value 50 and the protection data value 52 together to detect any errors therein and attempt to correct the error if necessary. The functional read data path from the read-side memory protection circuit 40 includes: a correction data path (the protected data value 52 undergoes any correction that is necessary and possible); a concurrent bit value indicating one or more bit positions within the protection data value 52 at which the read-side memory protection circuit 40 detected an error; and an error detection value indicating that the read-side memory protection circuit 40 detected an error in the protection data value 52 and the protection code value 50.

[0040] The first multiplexer 44 and the second multiplexer 42 are used together to provide both an indirect test access path “1” and a direct test access path “2” to the memory 36 for writing the protection code value y 50 portion of the data into the memory 36. The indirect path “1” passes through the write-side memory protection circuit 38, and the direct path “2” bypasses the write-side memory protection circuit 38.

[0041] During testing, the MBIST controller 34 provides the protection data value z to the memory 36 for write access via the direct test access path "7" using the fourth multiplexer 46. Therefore, for write access to the memory 36 during testing:

[0042] - both the protection code value y and the protection data value z are provided by the MBIST controller 34 using paths "2" and "7" simultaneously, or

[0043] - The protection code value y is provided by the write-side memory protection circuit 38, and the protection data value z is provided by the MBIST controller 34 using paths "1" and "7". Note that the values ​​provided by the MBIST controller 34 to paths "1" and "7" are the same.

[0044] This is achievable because the first and fourth multiplexers are independently controllable. The direct paths "2" and "7" allow the memory built-in self-test controller 34 to write the protection code value 50 and the protection data value 52 directly to the memory 36, independent of the operation of the write-side memory protection circuit 38. This helps, for example, to simulate errors in the protection code value 50 and the protection data value 52 in the following manner, wherein the correct operation of the read-side memory protection circuit 40 in detecting and / or correcting these errors can be tested.

[0045] During testing, the MBIST controller 34 provides addresses for read access or write access to the memory 36 using the fifth multiplexer 47 through the direct test access path "8".

[0046] The third multiplexer 48 is used to select a connection to the memory built-in self-test controller 34 and one or more different read outputs (paths). Read path "3" provides a direct path to allow the protection code value 50 and the protection data value 52 to be read from the memory 36 by bypassing the operation of the read-side memory protection circuit 40. Read path "4" allows the error detection value generated by the read-side memory protection circuit 40 to be read. Read path "5" allows the concurrent bit value generated by the read-side memory protection circuit 40 to be read. Read path "6" allows the correction data value generated by the read-side memory protection circuit 40 to be read.

[0047] Thus, the third multiplexer 48 provides a direct path “3” for the memory built-in self-test controller 34 to read the protection code and protection data values ​​stored in the memory 36, and provides indirect paths “4”, “5”, “6” through the read-side memory protection circuit 40 to read the memory 36. This allows, for example, correct operation of the write-side memory protection circuit 38 in generating the appropriate protection code value 50 for a given protection data value to be tested.

[0048] Note that the MBIST operation also uses paths "2", "7", "8", and "3" to test the memory itself.

[0049] Providing direct and indirect test access paths that respectively include or bypass the memory protection circuits 38, 40 allows test operations to be performed, including test operations that test the proper operation of the memory protection circuits 38, 40 themselves.

[0050] Note that, as applied to all memory protection circuit tests described herein, (a) any memory (e.g., RAM) entry can be used for testing; (b) if a fault is detected, the RAM entry used in the test must be tested to check that the fault does not originate from a hard or soft error in the entry itself; and (c) the test can be repeated with different data values ​​to fully test all bits of the memory protection circuitry.

[0051] therefore, Figure 1 and Figure 2 An example of an apparatus 2 for processing data is provided, comprising: a memory 36; a memory protection circuit (e.g., 38, 40) for providing an operational access path to the memory and preventing errors in the memory during operational use of the memory; and a memory built-in self-test circuit 34 for performing a test operation on the memory; wherein the memory built-in self-test circuit provides an indirect test access path ("1") to the memory through the memory protection circuit and a direct test access path ("2") to the memory bypassing the memory protection circuit. The MBIST controller 34 and associated circuits can provide an example of a memory built-in self-test device for performing a built-in self-test on a memory, the memory having a memory protection circuit, the memory protection circuit providing an operational access path to the memory and preventing errors in the memory during operational use of the memory, the memory built-in self-test device comprising: a memory interface circuit for providing an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit.

[0052] Before the test process begins, the management processor 35 pairs of mbist controllers 34 for testing target memory and associated memory protection circuits are programmed. This programming comprises providing information about the memory to be accessed (for example, mbist array identifier (ID)), one or more test data patterns, expected read data and the operation to be performed as described below. Then, the management processor 34 indicates that the mbist controller 34 performs the memory protection circuit test. When the test is completed, the management processor 35 can access the mbist controller 34 to obtain the result of the test, and if the test failure then takes appropriate action. The mbist controller 34 is used to perform the test, because it can use continuous (back-to-back) operation to test the memory protection circuit with full-featured speed. In the example configuration, the test pattern of the fast switching data bit is provided, because the influence of aging may cause the operation of the circuit to slow down, causing it to break down in a mode similar to hard faults. This also allows fast execution of the test, so the memory can be retained for the test with the least possible time, which is important for the use in the online mbist method.

[0053] Figure 3 is a flow chart schematically illustrating a write-side memory protection test for testing the correct operation of the write-side memory protection circuit 38 .

[0054] At the start of processing at step 54, the value in the memory entry to be tested may be saved by the MBIST controller 34 so that it may be restored at the end of the test at step 56. This save and restore operation may also be performed for each of the other forms of example testing described herein.

[0055] This test uses known test data values ​​and their inverses to quickly stimulate the write-side memory protection circuit with different values. Each value is applied back-to-back by the MBIST controller 34. Two unrelated data values ​​may also be used.

[0056] At step 55, the inverse of the known test data value is written to the memory 36 via path "1" and path "7". At step 57, the write-side memory protection circuit 38 generates a protection code value 50 and stores it in the memory 36 together with the protection data value 52.

[0057] At step 58, by path " 1 " and path " 7 ", known test data value is written to memory 36.At step 60, write-side memory protection circuit 38 generates protection code value 50, and it is stored in memory 36 together with protection data value 52.At step 62, mbist controller 34 is used for reading protection code value 50 from memory 36 by path " 3 ", and protection code value 50 is stored in one of its data register.Therefore, the write to memory 36 at step 58 and 60 places uses indirect protection code path " 1 " and direct protection data path " 7 ", and reading from memory 36 at step 62 places is by direct path " 3 ".

[0058] At step 64, read the protection code value read at step 62 by management processor 35 from mbist controller 34 data registers, and compare it with the expected protection code value determined by management processor 35.Step 66 determines whether these are equal.If the protection code value read is not identical with the expected protection code value, then process proceeds to step 68, wherein performs the action based on the write-side memory protection circuit fault.If the protection code value read equals the expected protection code value, then process proceeds to step 70, wherein performs the write-side memory protection circuit test by operation.At step 56, report test result and finish test option (comprising recovery from the original preservation value of the tested memory location in the memory 36).

[0059] Figure 4 A read-side memory protection test for testing the correct generation of an error detection value is schematically shown. For example, the value may indicate that the contents of a memory entry include no errors, include correctable errors, or include uncorrectable errors.

[0060] The test uses known test data value D1 and another (second) value D2 (may be derived from first value D1, but have one or more inversion bits relative to first value D1) to utilize different values ​​to quickly excite the read side memory protection circuit.One value comprises error, and another does not comprise error.For example, value D1 can comprise error.Each value D1, D2 are all written to different clauses (A1 or A2), then read back to back by mbist controller 34.Therefore, each value excites the different responses from the error detection circuit.

[0061] At step 70 , the test begins (saving the original data values ​​of the entries used by the test if necessary so that they can be restored at the end of the test at step 72 ).

[0062] At step 73, the second protection code value 52 and the data value 50D2 are written into the memory 36 entry A2 via path "2" (the direct protection code value path for write access to the memory 36) and path "7".

[0063] At step 74, the known protection code value 52 and data value 50D1 are written into memory 36 entry A1 via path “2” (the direct protection code value path for write access to memory 36) and path “7”. The values ​​written for the protection code value and data value may or may not indicate an error in those values, depending on whether it is desired to test for false positives or false negatives within the read-side memory protection circuitry 40.

[0064] At step 75, the error detection value for D2 is read by the MBIST controller 34 from entry A2 of the memory 36 via path "4".

[0065] At step 76, the error detection value for D1 is read from memory 36 entry A1 by MBIST controller 34 through path "4", and the error detection value is stored in one of its data registers. The read value passes through an indirect path that includes the read side memory protection circuit 40. Step 78 compares the error detection value for D1 read at step 76 with the expected error detection value. Step 80 determines whether these are equal. If the read value of the error detection signal is not equal to the expected value of the error detection signal, then step 82 is used to perform the processing associated with the error in the read side detection error circuit 40. On the contrary, if the values ​​are equal, then step 84 performs the read side protection error detection circuit test pass processing. The test then ends at step 72, and the original value is restored to the tested memory entry.

[0066] Figure 5 is a flow chart schematically illustrating a read-side memory protection test for detecting errors in generating concurrent bit values.

[0067] The test uses known test data value D1 and another (second) value D2 (may be derived from the first data value D1, but have one or more inversion bits relative to the first data value D1), to utilize different values ​​to excite the read side memory protection circuit quickly.One value comprises error, and another does not comprise error.Each value D1, D2 are all written to different clauses (A1 and A2), then read back to back by mbist controller 34.Therefore, each value excites the different responses from the concurrent bit circuit.

[0068] Steps 86 and 88 start and stop the processing of the test, respectively, wherein the original values ​​of the entries used are saved and then restored.

[0069] At step 89 , the second protection code value 52 and the second data value 50D2 are written into the memory 36 entry A2 via path “ 2 ” (the direct protection code value path for write access to the memory 36 ) and path “ 7 ”.

[0070] At step 90, known protection code value 52 and data value 50D1 are written into memory 36 entry A1 via path "2" and path "7" corresponding to the direct path. The values ​​of protection code 52 and data value 50 may or may not include one or more bit errors.

[0071] At step 91, the concurrent bit value for D2 is read from entry A2 of memory 36 by the MBIST controller via path "5".

[0072] At step 92, the concurrent bit value for D1 is read from memory 36 entry A1 by path "5" (indirect path by read side memory protection circuit 40). Step 94 compares the concurrent bit value for D1 read at step 92 with the expected value of the concurrent bit value of a given protection code value 52 and data value 50, which is written to memory 36 and stored in one of its data registers by MBIST controller 34 at step 90. Step 96 determines whether the expected value of the concurrent bit value is equal to the read value. If the expected value is not equal to the read value, step 98 triggers the read side concurrent bit circuit fault response. If the values ​​are equal, step 100 triggers the read side concurrent bit circuit test pass response. Step 88 reports the test result and ends the test process.

[0073] Figure 6 is a flow chart schematically illustrating a read-side memory protection test for testing error correction.

[0074] The test uses known test data value D1 and another (second) value D2 (may be derived from first value D1, but have one or more inversion bits relative to first value D1) to utilize different values ​​to quickly excite the read side memory protection circuit. One value includes error, and another does not include error. Each value is written to different clauses (A1 and A2), then read back to back by mbist controller 34. Therefore, each value excites the different responses from the error correction circuit. In some examples, these two values ​​are the reciprocals of each other.

[0075] The test begins at step 102, where the current values ​​of the entries used by the test are saved in memory 36, and ends at step 104, where the test results are reported, the test is terminated, and the values ​​are restored to the entries.

[0076] At step 105 , the second protection code value 52 and the second data value 50D2 are written into the memory 36 entry A2 via path “ 2 ” and path “ 7 ”.

[0077] At step 106 , the known protection code value 52 and data value 50D1 are written into memory entry A1 via path “ 2 ” (a direct protection code value access path that bypasses the write-side memory protection circuit 38 ) and path “ 7 ”.

[0078] At step 107, the correction data value for D2 is read from entry A2 of memory 36 by the MBIST controller via path "6".

[0079] At step 108, the correction data value for D1 is read from memory entry A1 by path "6" (indirect path by read side memory protection circuit 40). In step 110, the correction data value for D1 read at step 108 is compared with the expected correction data value by MBIST controller 34, and stored in one of its data registers. Step 112 determines whether the read value and the expected value are equal. If these values ​​are not equal, then step 114 is used to trigger the read side error correction circuit fault response. If these values ​​are equal, then step 116 is used to trigger the read side error correction circuit test pass response. Then in step 104, the test is terminated.

[0080] Figure 7 is a flow chart schematically illustrating a memory scrubbing process for one memory entry using the circuitry required to test the memory protection circuitry. The process is repeated for each entry within the memory 36 and may be performed periodically during normal operation. Memory accesses are performed serially to ensure that the memory is locked in the shortest possible time. The process may be repeated for multiple different memory entries at a time without releasing the lock between entries.

[0081] The process begins at step 700 by reading the protection data value stored in an entry (illustrated as arbitrary entry X) stored in memory 36 via path “4” by MBIST controller 34. The error indication value from read-side memory protection circuit 40 is read and returned to MBIST controller 34.

[0082] At steps 705 and 710, the MBIST controller 34 checks the error indication value. (Note that these are shown as separate steps for the clarity of the routing of the control flow in the figure, but can be implemented as a single check with three possible results: no error, correctable error, uncorrectable error). If no error is indicated, control is transferred to step 715, at which the address is updated to scrub the next entry. If an error is indicated, control is transferred to step 710, at which, if a correctable error is indicated, the process continues to step 720, or if not (that is, if an uncorrectable error is indicated), control is transferred to step 725.

[0083] At step 720, the protection data value stored in the entry being scrubbed within memory 36 is read by the MBIST controller 34 via path "6" (an indirect path via the read-side memory protection circuit 40). This has the effect of reading the correction data value.

[0084] At step 730, the MBIST controller 34 writes the correction value back to the entry being erased in the memory 36 via path "1" and path "7", where path "1" passes through the write-side protection circuit to generate the protection code value as described above, and path "7" is used to protect the data value. The write-side memory protection circuit 38 generates the protection code value 50 and stores it in the memory 36 together with the corrected protection data value 52.

[0085] Note that the detected error may be in the data field or in the ECC field. If the error is in the data field, then the ECC logic can correct the data when reading, and this (corrected) data is written back to memory, correcting the error. The ECC field is regenerated, but the same as before. If the error is in the ECC field, then the corrected read data is the same as the value stored in memory. This value is written back to memory, regenerating a different ECC field than before, correcting the error.

[0086] In step 735, the protection data value stored in the entry being erased in the memory 36 is read again by the MBIST controller 34 via path "4".

[0087] In step 740, the error indication value read at step 735 is checked by the MBIST controller 34, and if an error is indicated, the process continues to step 725. If not (if no error is indicated), control is transferred to step 715, where (as described above) the memory address is updated in the MBIST controller to point to the next entry to be scrubbed in the memory 36, and the process (with respect to that memory address) ends.

[0088] In step 725, the MBIST controller 34 alerts the management processor 35 to indicate that the flushed entry contains an unrecoverable error or hard error. The management processor 35 may then take mitigation measures: for example, it may test the flushed entry in the memory 36 or reset the processor or take some other action.

[0089] Although the illustrative embodiments have been described in detail herein with reference to the accompanying drawings, it should be understood that the claims are not limited to those explicit embodiments and that various changes, additions and modifications may be made by those skilled in the art without departing from the scope and spirit of the appended claims. For example, various combinations of the features of the dependent claims may be put together with the features of the independent claims.

Claims

1. A device for processing data, comprising: Memory; memory protection circuitry for providing an operational access path to the memory and preventing errors in the memory during operational use of the memory; as well as A memory built-in self-test circuit, used to perform a test operation on the memory; wherein the memory built-in self-test circuit provides an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit; The memory built-in self-test circuit is configured to perform a test operation to test the correct operation of the memory protection circuit, and the memory built-in self-test circuit is configured to test the correct operation of the memory protection circuit in the following manner: writing to the memory via one of the indirect test access path and the direct test access path, and A read is performed from the memory via the other of the indirect test access path and the direct test access path.

2. The device according to claim 1, wherein: The memory stores, during the operational use, at least one protection data value and an associated protection code value generated by the memory protection circuit and based on the protection data value.

3. The device according to claim 2, wherein: The protection code value includes one of a parity check value and an error correction code value.

4. The device according to claim 1, wherein: The memory protection circuit performs at least one of detecting errors and correcting errors.

5. The device according to claim 2, wherein: The memory protection circuit includes a write-side memory protection circuit for generating the associated protection code value based on the protection data value when the protection data value is written to the memory during the operational use.

6. The device according to claim 2, wherein: The memory protection circuit includes a read-side memory protection circuit for performing at least one of detecting errors in the protection data value and correcting errors in the protection data value using the protection code value when the protection data value is read during the operational use.

7. The device according to claim 2, wherein: The direct test access path allows the memory built-in self-test circuit to perform at least one of the following during the test operation: writing a test protection data value and a test protection code value independent of the test protection data value into the memory; as well as The test protection data value and the test protection code value stored in the memory are read from the memory.

8. The device according to claim 2, wherein: The indirect test access path allows the memory built-in self-test circuit to write the following into the memory through the memory protection circuit during the test operation: (i) a test protection data value; and (ii) a test protection code value generated by the memory protection circuit and based on the test protection data value.

9. The device according to claim 2, wherein: The indirect test access path allows the memory built-in self-test circuit to read at least one of the following from the memory through the memory protection circuit during the test operation: a test-protected data value that is subject to any error correction performed by the memory protection circuit; a test protection data value stored in said memory; a test protection code value stored in the memory; an error detection value indicating that the memory protection circuitry detected that the test protection code value indicated at least one error within the test protection data value stored in the memory; as well as A concurrent bit value indicates one or more bit positions within the test protection data value stored in the memory at which the memory protection circuit detected an error.

10. The apparatus of claim 1, comprising at least one memory access source for generating memory accesses to the memory during the operational use of the memory, wherein accesses to the memory by the at least one memory access source are blocked during the test operation.

11. The device according to claim 10, wherein: The at least one memory access source continues to operate independently of accessing the memory during the testing operation.

12. The apparatus of claim 1, comprising a plurality of memories, the plurality of memories being subjected to test operations controlled by the memory built-in self-test circuit.

13. A method of performing a built-in self-test on a memory having a memory protection circuit that provides an operational access path to the memory and prevents errors in the memory during operational use of the memory, the method comprising: accessing the memory using an indirect test access path through the memory protection circuit; as well as accessing the memory using a direct test access path that bypasses the memory protection circuit; The method includes performing a test operation to test the correct operation of the memory protection circuit by: writing to the memory via one of the indirect test access path and the direct test access path, and A read is performed from the memory via the other of the indirect test access path and the direct test access path.

14. The method according to claim 13, wherein: The memory stores, during the operational use, at least one protection data value and an associated protection code value generated by the memory protection circuit and based on the protection data value.

15. The method according to claim 14, wherein: The memory protection circuit includes a write-side memory protection circuit for generating the associated protection code value according to the protection data value when the protection data value is written to the memory during the operational use, and the method includes testing the write-side memory protection circuit by the following steps: writing one or more test protection data values ​​into the memory through the indirect test access path, so that the write-side memory protection circuit generates one or more corresponding test protection code values ​​according to the one or more test protection data values ​​and stores them in the memory; reading the one or more test protection code values ​​stored in the memory through the direct test access path; and The one or more test protection code values ​​read from the memory are compared to corresponding expected protection code values ​​generated from the test protection data values.

16. The method according to claim 14, wherein: The memory protection circuit includes a read-side memory protection circuit for detecting errors in the protection data value using the protection code value when the protection data value is read during the operational use, the method including testing the read-side memory protection circuit by: writing one or more test protection data values ​​and one or more corresponding test protection codes into the memory via the direct test access path, the one or more test protection codes having values ​​indicative of one or more errors in the corresponding test protection data; reading the one or more test protection data values ​​through the indirect test access path such that the one or more test protection data values ​​are subjected to error detection performed by the read-side memory protection circuitry; as well as A determination is made as to whether an error detection value generated by the read-side memory protection circuit indicates an error in the test protection data.

17. The method according to claim 14, wherein: The memory protection circuit includes a read-side memory protection circuit for detecting errors in the protection data value using the protection code value when the protection data value is read during the operational use, the method including testing the read-side memory protection circuit by: writing one or more test protection data values ​​and one or more corresponding test protection codes into the memory via the direct test access path, the one or more test protection codes having corresponding values ​​indicative of one or more errors at a given location in the test protection data; reading the one or more test protection data values ​​through the indirect test access path such that the one or more test protection data values ​​are subject to error correction performed by the read-side memory protection circuitry; as well as A determination is made as to whether the test protection data value read by the read-side memory protection circuit indicates the given location of the one or more errors in the test protection data.

18. The method according to claim 14, wherein: The memory protection circuit includes a read-side memory protection circuit for correcting errors in the protection data value using the protection code value when the protection data value is read during the operational use, and the method includes testing the read-side memory protection circuit by the following steps: writing one or more test protection data values ​​and one or more corresponding test protection codes into the memory via the direct test access path, the test protection codes having corresponding values ​​indicative of one or more errors in the test protection data; reading the test protection data through the indirect test access path such that the test protection data value is subjected to error correction performed by the read-side memory protection circuit; as well as The test protection data values ​​read from the memory and subject to the error correction are compared to corresponding expected protection data values.

19. The method according to claim 14, comprising: reading a protection code value of a stored data value through the indirect test access path; when the protection code value indicates an error, reading the stored data value through the indirect test access path to provide a replacement data value, and writing the replacement data value to replace the stored data value, thereby regenerating the protection code value; as well as The protection code value of the replacement stored data value is read through the indirect test access path to confirm whether the error has been corrected.

20. A memory built-in self-test device for performing a built-in self-test on a memory, the memory having a memory protection circuit that provides an operational access path to the memory and prevents errors in the memory during operational use of the memory, the memory built-in self-test device comprising: A memory interface circuit for providing an indirect test access path to the memory through the memory protection circuit and a direct test access path to the memory bypassing the memory protection circuit; The memory built-in self-test circuit is configured to perform a test operation to test the correct operation of the memory protection circuit, and the memory built-in self-test circuit is configured to test the correct operation of the memory protection circuit in the following manner: writing to the memory via one of the indirect test access path and the direct test access path, and A read is performed from the memory via the other of the indirect test access path and the direct test access path.