Storage element testing circuit and storage element testing method

By designing a storage element test circuit, including storage, comparison and control circuits, to test the state of the storage element in low power consumption mode and the logic value after recovery, the problem that the existing technology cannot test the impact of the low power consumption mode of the memory is solved, and the More comprehensive and thorough testing results.

CN112309482BActive Publication Date: 2024-10-29REALTEK SEMICON CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910703354.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-31
Publication Date
2024-10-29
Estimated Expiration
2039-07-31

AI Technical Summary

Technical Problem

The built-in self-test circuit of existing storage devices cannot test whether the memory will be affected and lose its logic value after returning from the low-power mode to the functional mode, and cannot fully test the state of the memory in the low-power mode.

Method used

A storage element test circuit is designed, including a storage circuit, a comparison circuit and a control circuit. By writing test data, controlling the storage element to enter low power consumption mode and functional mode, and comparing the output data and test data, the storage element is tested. Status in low power mode and logic value after recovery.

Benefits of technology

It achieves a comprehensive and thorough test of the low-power mode of storage elements, and can adjust the test duration and the length of the wake-up period according to different storage element types and applications to ensure that the logic value of the storage element is maintained in the low-power mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112309482B_ABST
    Figure CN112309482B_ABST
Patent Text Reader

Abstract

The present invention discloses a storage element test circuit and a storage element test method. The storage element test circuit is used to test a storage element, and includes a storage circuit, a comparison circuit and a control circuit. The storage circuit stores a test data. The comparison circuit is coupled to the storage circuit. The control circuit is coupled to the storage circuit, the comparison circuit and the storage element, and is used to perform the following steps to test the storage element: writing the test data into the storage element; controlling the storage element to enter a low power consumption mode; controlling the storage element to enter a functional mode; and controlling the comparison circuit to compare an output data of the storage element with the test data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a storage element, and in particular to a testing circuit and a testing method for the storage element. Background Art

[0002] In order to reduce the standby power consumption of the System on a Chip (SoC) and maintain the storage value of the memory element, the circuit usually adds a low power mode for control. Taking memory application as an example, the low power mode of the memory includes light sleep mode and deep sleep mode. However, the current built-in self-test (BIST) circuit can only be tested in the functional mode of the memory. It is impossible to test whether the memory will be affected by the low power mode after returning to the functional mode from the low power mode and lose the logical value it should maintain. Therefore, a built-in self-test circuit that can test the low power mode of the memory is needed. Summary of the invention

[0003] In view of the shortcomings of the prior art, an object of the present invention is to provide a storage element testing circuit and a storage element testing method to test the low power consumption mode of the storage element.

[0004] The present invention discloses a storage element test circuit for testing a storage element, comprising a storage circuit, a comparison circuit and a control circuit. The storage circuit stores a test data. The comparison circuit is coupled to the storage circuit. The control circuit is coupled to the storage circuit, the comparison circuit and the storage element, and is used to perform the following steps to test the storage element: writing the test data into the storage element; controlling the storage element to enter a low power consumption mode; controlling the storage element to enter a functional mode; and controlling the comparison circuit to compare an output data of the storage element with the test data.

[0005] The present invention also discloses a storage element testing method for testing a storage element, comprising: writing a test data into the storage element; controlling the storage element to enter a low power consumption mode; controlling the storage element to enter a functional mode; and comparing an output data of the storage element with the test data.

[0006] The storage element test circuit and test method of the present invention can test the low power consumption mode of the storage element, and can flexibly adjust the length of time the storage element under test is in the low power consumption mode, and the length of the wake-up period after returning from the low power consumption mode to the functional mode according to the type, design and application of the storage element under test, and the test requirements. Compared with the conventional technology, the present invention can test the storage element more comprehensively and thoroughly.

[0007] The features, implementation and effects of the present invention are described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a functional block diagram of an embodiment of a memory device built-in self-test circuit of the present invention;

[0009] Figure 2 is a flow chart of a storage element testing method of the present invention;

[0010] Figure 3 for Figure 1 Timing diagrams of the main signals of

[0011] Figure 4 The flowchart of the storage element testing method of the present invention is shown in FIG. DETAILED DESCRIPTION

[0012] The technical terms used in the following description refer to the customary terms in the technical field. If some terms are explained or defined in this specification, the interpretation of these terms shall be based on the explanation or definition in this specification.

[0013] The disclosure of the present invention includes a storage element test circuit and a storage element test method. Since some components included in the storage element test circuit of the present invention may be known components individually, the details of the known components will be omitted in the following description without affecting the full disclosure and feasibility of the device invention. In addition, part or all of the process of the storage element test method of the present invention may be in the form of software and / or firmware, and can be executed by the storage element test circuit of the present invention or its equivalent device. Without affecting the full disclosure and feasibility of the method invention, the following description of the method invention will focus on the steps rather than the hardware.

[0014] In the following description, a signal at a high level represents active, and at a low level represents inactive, and enabling / disabling a signal represents pulling up / lowering the level of the signal. However, this is only an implementation or illustrative example and is not intended to limit the present invention. In other words, in different implementations, a signal at a high level may represent inactive, and at a low level may represent active, and enabling / disabling a signal may represent pulling down / higher the level of the signal. Level conversion or logic level conversion represents a signal changing from enabled (active) to disabled (inactive), or vice versa.

[0015] Figure 11 is a functional block diagram of an embodiment of a memory element built-in self-test circuit of the present invention. The memory element test circuit 20 is coupled to the memory element 30 for testing the memory element 30. The memory element test circuit 20 includes a storage circuit 210, a control circuit 220, and a comparison circuit 230. Under normal operation, the logic circuit 10 (which may include a memory element control circuit) controls the memory element 30 with an address signal ADDR, a memory element enable / disable signal ME, and a memory element mode control signal PM. The input data D is the data to be written into the memory element 30, and the output data Q is the data read from the memory element 30. Under test mode, the control circuit 220 of the memory element test circuit 20 controls or operates the memory element 30 with an address signal TEST_ADDR, a memory element enable / disable signal TEST_ME, and a memory element mode control signal TEST_PM. When the memory element 30 is enabled, it can be accessed (read and / or written), and when the memory element 30 is disabled, it cannot be accessed. The storage element mode control signal PM / TEST_PM can not only control the storage element 30 to enter a low power consumption mode, but can further control the storage element 30 to enter different types of low power consumption modes: a light sleep mode or a deep sleep mode.

[0016] The test start signal BIST_MODE controls the multiplexers 242 to 248 to output the signal generated by the logic circuit 10 or the signal generated by the storage element test circuit 20, that is, to determine whether the storage element 30 is controlled by the logic circuit 10 (i.e., normal operation) or by the control circuit 220 (i.e., test mode). The storage element test circuit 20 operates according to the frequency BIST_CLK. Figure 2 is a flow chart of a storage element testing method of the present invention, Figure 3 for Figure 1 See the timing diagram of the main signals of Figures 1 to 3 for instructions below.

[0017] When the test starts (the test start signal BIST_MODE is at a high level), the control circuit 220 controls the storage element 30 to operate in a functional mode (i.e., notifies the control storage element mode control signal TEST_PM to be at a low level), enables the storage element 30 (i.e., by controlling the storage element enable / disable signal TEST_ME to be at a high level), and writes the test data TEST_D stored in the storage circuit 210 into the storage element 30 (step S210, between time points T0 and T1). After the test data TEST_D is written, the control circuit 220 disables the storage element 30 by controlling the storage element enable / disable signal TEST_ME to be at a low level (step S220, time point T1). Next, the control circuit 220 controls the test notification signal START_PAUSE to be high level to notify the tester that the storage element 30 is about to enter the low power mode (step S230, time point T2), and then controls the storage element mode control signal TEST_PM to be high level to control the storage element 30 to enter the low power mode (which can be a light sleep mode or a deep sleep mode) (step S240, time point T3). After the tester knows that the storage element 30 is about to enter the low power mode, he can start timing. The purpose of timing is to control the length of time that the storage element 30 enters the low power mode. Afterwards, the tester can send a resume signal TEST_RESUME to the storage element test circuit 20 to indicate that the storage element test circuit 20 should end the low power mode. In other words, the control circuit 220 does not act in step S245 (that is, between time points T3 and T4) until the resume signal TEST_RESUME is received. Between time points T3 and T4, the storage element 30 stores the test data TEST_D and operates in the low power mode.

[0018] After receiving the resume signal TEST_RESUME (step S245 is yes, time point T4), the control circuit 220 controls the test notification signal START_PAUSE to be low level to notify the tester that the storage element 30 is about to leave the low power mode (step S250, time point T5). The tester can calculate the length of time the storage element 30 operates in the low power mode during the test process based on the test notification signal START_PAUSE. Next, the control circuit 220 controls the storage element 30 to enter the functional mode by controlling the storage element mode control signal TEST_PM to be low level (step S260, time point T6). The storage element 30 needs a wake-up period to return to the functional mode from the low power mode to ensure that the storage element 30 and / or its peripheral circuits return to the normal working state. Therefore, the control circuit 220 waits in step S265 until the wake-up period ends (step S265 is yes). In some embodiments, the setting value associated with the wake-up period is stored in the storage circuit 210. The control circuit 220 controls when to end the wake-up period according to the setting value and the frequency BIST_CLK, and enables the storage element 30 by controlling the storage element enable / disable signal TEST_ME to be high level after the wake-up period ends (step S270, time point T7). In some embodiments, the setting value can be the number of cycles of the frequency BIST_CLK, and can be stored in the storage circuit 210 of the storage element test circuit 20 by the tester before the test.

[0019] After the storage element 30 is enabled again, the storage element test circuit 20 accesses the storage element 30, and the control circuit 220 controls the comparison circuit 230 to compare the output data Q of the storage element 30 with the test data TEST_D (step S280). If the output data Q is equal to the test data TEST_D, it means that the storage element 30 passes the test; otherwise, it means that the storage element 30 fails the test. The comparison circuit 230 can indicate whether the storage element 30 passes the test by outputting the comparison result RLT. Under normal operation, the output data Q of the storage element 30 can be processed by the subsequent output logic circuit (not shown).

[0020] In some embodiments, to further test the storage element 30, the storage element test circuit 20 may use the inverted data of the test data TEST_D to perform the test again. Figure 2 (i.e., steps S210 to S280). Figure 4 , Figure 4 The flowchart of the storage element testing method of the present invention is shown in FIG. Figure 2After the process is completed, when the output data Q is different from the test data TEST_D (step S410 is no), the comparison result RLT indicates that the storage element has not passed the test (step S420); when the output data Q is the same as the test data TEST_D (step S410 is yes), the control circuit 220 determines whether the inverted test data #TEST_D of the test data TEST_D has been used to test the storage element 30 (step S430). If the inverted test data #TEST_D has not been tested (step S430 is no), the control circuit 220 uses the inverted test data #TEST_D (step S440) to perform the test again. Figure 2 process (i.e., steps S210 to 280); if the inverted test data #TEST_D has been tested (step S430 is yes), it means that the storage element has passed the test (step S450), and then the test process can be ended. In step S440, the control circuit 220 can read the inverted test data #TEST_D from the storage circuit 210, or invert the original test data TEST_D to generate the inverted test data #TEST_D. Logic 1 and logic 0 are each other's inverted data. The present invention can not only test the low power mode of the storage element 30, but also flexibly adjust or set the duration of the storage element 30 in the low power mode and the length of the wake-up period of the storage element 30. More specifically, the tester can freely control when to input the recovery signal TEST_RESUME to the storage element test circuit 20 to control the duration of the low power mode, and adjust the length of the wake-up period by changing the set value. The length of the wake-up period (i.e., the setting value) can be set according to the type of storage element 30 and / or the type of low power mode. For example, the tester can give different setting values ​​for different types of static random access memory (SRAM), and can give different setting values ​​for light sleep mode and deep sleep mode. In some embodiments, the length of the wake-up period of the deep sleep mode is greater than the length of the wake-up period of the light sleep mode.

[0021] The storage circuit 210 may be a memory or a register. The control circuit 220 may be a finite state machine (FSM) composed of a plurality of logic circuits. A person skilled in the art may Figure 2 The comparison circuit 230 is well known to those skilled in the art, so it will not be described in detail.

[0022] Please note that in some embodiments, steps S220 , S265 and S270 may be omitted, that is, the present invention may only test the low power consumption mode of the storage element without testing the impact on the storage element during the wake-up period.

[0023] Since a person with ordinary knowledge in the technical field can understand the implementation details and variations of the method invention of this case through the disclosure of the device invention of this case, in order to avoid redundancy, repeated descriptions are omitted here without affecting the disclosure requirements and feasibility of the method invention. Please note that in the above-mentioned icons, the shapes, sizes, proportions, and order of steps of the components are only for illustration, and are for the purpose of understanding the present invention by a person with ordinary knowledge in the technical field, and are not intended to limit the present invention. In addition, although the above-mentioned embodiments take a memory as an example, this is not a limitation of the present invention. A person skilled in the art can appropriately apply the present invention to other types of storage elements, such as a cache, according to the disclosure of the present invention.

[0024] Although the embodiments of the present invention are described above, these embodiments are not intended to limit the present invention. A person having ordinary knowledge in the technical field may make changes to the technical features of the present invention according to the explicit or implicit contents of the present invention. All these changes may fall within the scope of patent protection sought by the present invention. In other words, the scope of patent protection of the present invention shall be subject to the scope defined by the claims of this specification.

[0025]

Explanation of symbols

[0026] 10 Logic Circuit

[0027] 20 Storage Element Test Circuit

[0028] 210 Storage Circuit

[0029] 220 Control circuit

[0030] 230 Comparison Circuit

[0031] 242, 244, 246, 248 Multitasker

[0032] 30 Storage Components

[0033] ADDR, TEST_ADDR address signal

[0034] D Input data

[0035] TEST_D Test data

[0036] Q Output data

[0037] ME, TEST_ME storage element enable / disable signal

[0038] PM, TEST_PM storage element mode control signal

[0039] BIST_MODE test start signal

[0040] BIST_CLK frequency

[0041] START_PAUSE Test notification signal

[0042] TEST_RESUME resume signal

[0043] RLT comparison results

[0044] Steps S210 to S290.

Claims

1. A memory element test circuit for testing a memory element, comprising: A storage circuit for storing a test data; a comparison circuit coupled to the storage circuit; A control circuit is coupled to the storage circuit, the comparison circuit and the storage element, and is used to perform the following steps to test the storage element: (A) writing the test data into the storage element; wherein, at the beginning of the test, the control circuit controls the storage element to operate in a functional mode, enables the storage element, and writes the test data stored in the storage circuit into the storage element; (B) after the test data is written, controlling the storage element to enter a low power consumption mode; (C) waiting for a recovery signal after controlling the storage element to enter the low power consumption mode; (D) controlling the storage element to enter the functional mode according to the recovery signal; (E) controlling the storage element to enter the functional mode; (F) Controlling the comparison circuit to compare an output data of the storage element with the test data.

2. The storage element test circuit according to claim 1, wherein the control circuit further performs the following steps: (G) disabling the storage element before controlling the storage element to enter the low power consumption mode; and (H) enabling the storage element after controlling the storage element to enter the functional mode.

3. The storage element test circuit according to claim 2, wherein: The storage circuit also stores a set value, and the control circuit further performs the following steps: (I) After controlling the storage element to enter the functional mode, the storage element is enabled after waiting for a period of time according to the setting value, wherein the setting value is related to the type of the storage element and / or the type of the low power consumption mode.

4. The storage element test circuit according to claim 1, wherein: The control circuit also performs the following steps: (G) Execute steps (A) to (D) again using an inverted data of the test data.

5. A memory element testing method, for testing a memory element, comprising: (A) writing a test data into the storage element; wherein, at the beginning of the test, the control circuit controls the storage element to operate in a functional mode, enables the storage element, and writes the test data stored in the storage circuit into the storage element; (B) after the test data is written, controlling the storage element to enter a low power consumption mode; (C) waiting for a recovery signal after controlling the storage element to enter the low power consumption mode; (D) controlling the storage element to enter the functional mode according to the recovery signal; (E) controlling the storage element to enter the functional mode; and (F) Comparing an output data of the storage element with the test data.

6. The method according to claim 5, further comprising: (G) disabling the storage element before controlling the storage element to enter the low power consumption mode; as well as (H) enabling the storage element after controlling the storage element to enter the functional mode.

7. The method according to claim 6, further comprising: (I) after controlling the storage element to enter the functional mode, waiting for a period of time before enabling the storage element; The period of time is related to the type of the storage element and / or the type of the low power consumption mode.

8. The method according to claim 5, further comprising: (G) Execute steps (A) to (D) again using an inverted data of the test data.

Citation Information

Patent Citations

  • Method and apparatus for testing memory

    US20160111170A1

  • Solid state drive with self-refresh power saving mode

    US20160231797A1

  • Built-in self test for integrated circuits

    US5173906A