Test circuit, chip and method for reading time of static random access memory

By using a controllable delay module and a high-precision timing module in the SRAM test circuit, the problems of long test time, low efficiency and poor accuracy in the existing technology are solved, achieving fast and accurate SRAM read time measurement, reducing the cost of cost.

CN118737245APending Publication Date: 2024-10-01QINGXIN SEMICON TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410772944.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing SRAM read time test circuit has problems such as long test time, low efficiency, poor accuracy, and high cost. The fixed delay unit cannot be adjusted, which may result in insufficient pulse width, insufficient address bit establishment time, and an oscillation ring speed that is faster than SRAM. maximum operating frequency, causing the test to fail.

Method used

The controllable delay module and timing module are used to adjust the pulse width, the establishment time of the address bit to be tested and the total delay of the oscillation ring through multi-level series delay sub-modules, combined with a high-precision timer to determine the total test duration and calculate the SRAM read time.

Benefits of technology

Test time is shortened, measurement accuracy is improved, hardware and labor costs are reduced, design risks are avoided, and flexible test parameter adjustment is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737245A_ABST
    Figure CN118737245A_ABST
Patent Text Reader

Abstract

The invention discloses a static random access memory read time test circuit which comprises a controllable delay module and a timing module, the controllable delay module is used for adjusting pulse width, to-be-tested address bit establishment time and oscillation ring total delay to meet preset test conditions, and the timing module is used for determining the total test time length to adjust the to-be-tested address bit establishment time and the oscillation ring total delay to meet the preset test conditions. And further determining the reading time of the static random access memory. The controllable delay module is adopted, so that the pulse width, the to-be-measured address bit establishment time and the oscillation ring total delay can be flexibly increased and decreased, and the design risk is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a test circuit, chip and method for reading time of a static random access memory. Background Art

[0002] Static random access memory (SRAM) is widely used in modern electronic devices due to its high-speed access characteristics. The performance indicators of SRAM include storage capacity, access speed, etc., among which one of the key indicators of its performance is the reading speed. In practical applications, when the circuit system needs to change the SRAM or the SRAM version status changes, designers usually need to rewrite the system program according to the new chip configuration to adapt to the new SRAM read and write speed. However, the system cannot automatically identify the new maximum read and write speed of the SRAM, which may lead to unreasonable read and write speeds: if the read and write speed is set low, the best performance of the SRAM cannot be brought into play, and if the read and write speed is set high, when the external conditions change, it exceeds the maximum read and write speed of the SRAM, which may have a greater impact on the system. Based on this, it is necessary to perform speed testing on the SRAM and provide the read and write speed parameters to the system software for updating.

[0003] The existing SRAM read time test circuit is as follows: Figure 1As shown, it includes selectors 101, 102, 104, delay units 105, 109, 110, inverters 106, 113, buffers 107, 108, AND gate 111, XOR gate 112, and frequency divider 114. The test circuit is used to test the reading speed of the memory 103. Finally, the analog signal to be tested is led out by PAD 115 and measured by an oscilloscope. The test process includes: the SRAM is first switched to the write operation, TE is low level, the clock signal comes from the system clock, and the address bit and other control bits are controlled externally. When the measured address bit ADDR of the memory 103 is 0, data 0 is written; when the measured address bit ADDR is 1, data 1 is written. Then the SRAM switches to the read operation, the signal TE is set to a high level, and enters the self-oscillation test mode. The self-oscillation test period T1 is the sum of the delays of the memory 103, the selector 104, the delay unit 105, the inverter 106, the buffer 108, the delay unit 109, the XOR gate 112, and the selector 101. The pulse width Tw of the test clock signal is equal to the delay sum of the delay unit 110 and the AND gate 111. The holding time Ts of the address control signal is equal to T1-T2, where T2 is equal to the delay sum of the buffer 107 and the selector 102. The period P1 can be measured by an oscilloscope through the frequency divider 114. When the selection signal MACRO_BYPASS of the selector 104 is set to 1, the memory will be short-circuited in this oscillation loop, and the self-oscillation test period T3 is the sum of the delays of the selector 104, the delay unit 105, the inverter 106, the buffer 108, the delay unit 109, the XOR gate 112, and the selector 101, which can be measured by the oscilloscope to the period P2 after the frequency divider 114. If the frequency divider ratio is R, the read time of the SRAM can be calculated to be (P1-P2) / 2R.

[0004] Since the measured signal is an analog signal, the oscilloscope test has extremely high requirements for the accuracy of the test equipment, the stability of the test environment, and the quality of the PAD unit that leads to the signal to be tested. There are problems such as long test time, low efficiency, poor accuracy, and high cost. In the existing technology, fixed delay units are mostly used, and their delay is determined by the designer's estimation and simulation and cannot be adjusted. In actual operation, there may be design risks such as insufficient pulse width, insufficient address bit establishment time, and the oscillation ring speed is faster than the maximum operating frequency of the SRAM, which will fail to collect the observed signal and cause the test to fail. Summary of the invention

[0005] In view of some or all of the problems in the prior art, the present invention provides a test circuit for static random access memory read time in a first aspect, comprising:

[0006] A controllable delay module, which is used to adjust the pulse width, the address bit setup time to be tested, and the total delay of the oscillation loop to meet the preset test conditions; and

[0007] A timing module is used to determine the total test duration, and further determine the read time of the static random access memory.

[0008] Furthermore, the controllable delay module includes multiple stages of delay submodules connected in series, and the output of each stage of the delay submodule is determined by selecting a signal, thereby determining the delay duration.

[0009] Furthermore, the delay submodule includes:

[0010] A delay device, whose input end is connected to the output of the previous delay submodule;

[0011] A selector, wherein the first input terminal is connected to the output of the previous delay submodule, the second input terminal is connected to the output terminal of the delay device, the selection terminal is connected to the output terminal of the AND gate, and when the selection terminal signal is 1, the signal of the second input terminal is selected as the output, otherwise the signal of the first input terminal is selected as the output; and

[0012] The AND gate has two input terminals connected to the selection bit corresponding to the delay submodule and the TE signal respectively.

[0013] Furthermore, the timing module includes:

[0014] A first counter, used for counting the clock of the oscillation ring;

[0015] a second counter, which is used to count a certain high-frequency clock, wherein the period of the high-frequency clock is t, and during the test process, the total duration of the second counter is equal to that of the first counter; and

[0016] A clock synchronization register is used to ensure that the first counter starts counting at the same time as the second counter.

[0017] Further, the first counter is a 4-bit binary counter, and the second counter is a 16-bit binary counter.

[0018] Furthermore, the test circuit includes three controllable delay modules, wherein the output end of the first controllable delay module is provided with a first inverter, the output end of the first inverter is connected to the input end of the second controllable delay module via a second buffer, and the output end of the second controllable delay module is connected to the input end of the third controllable delay module.

[0019] Furthermore, the test circuit further includes:

[0020] A first selector, wherein a first input terminal is connected to a system clock signal, a second input terminal is connected to an output terminal of an XOR gate, and an output terminal is connected to a clock terminal of the static random access memory, and the first selector uses a TE signal as a selection signal;

[0021] A second selector, a first input end of which is connected to the external address control signal, a second input end of which is connected to the output end of the first buffer, and an output end of which is connected to the address end of the static random access memory, and the second selector uses the TE signal as a selection signal;

[0022] a third selector, wherein a first input end is connected to the output end of the static random access memory, a second input end is connected to the output end of the first selector, and an output end is connected to the input end of the first controllable delay module, and the third selector adopts a branch selection signal (MACRO_BYPASS) as a selection signal;

[0023] a first buffer having an input terminal connected to an output terminal of the first inverter;

[0024] a frequency divider having an input connected to the output of the second buffer and an output connected to the input of the timing module;

[0025] An AND gate, two input ends of which are respectively connected to the output end of the second inverter and the output end of the third controllable delay module, and an output end of which is connected to the first input end of an XOR gate, wherein the input end of the second inverter is connected to the branch selection signal; and

[0026] An XOR gate, a second input end of which is connected to the output end of the second controllable delay module.

[0027] Based on the test circuit as described above, the second aspect of the present invention provides a test method for static random access memory read time, comprising:

[0028] Control the TE signal to be low level, so that the static random access memory uses the system clock, and controls its address bit and control bit through an external signal, enters a write operation state, and writes data at the tested address bit;

[0029] Control the TE signal to a high level, and adjust the controllable delay module at the same time to enter the self-oscillation test mode. After the first counter counts a specified period, the timing ends, and the output of the timing module is recorded as Q1;

[0030] Short-circuit the static random access memory in the oscillation ring, restart the timing, end the timing after the first counter counts a specified period, and record the output of the timing module as Q2; and

[0031] The static random access memory read time T is determined according to the output of the two timing modules:

[0032] T=(Q1-Q2)*t / (n*R*2),

[0033] Wherein, t is the period of the high-frequency clock counted by the second counter, R is the multiplier of the frequency divider, and n is the number of periods counted by the first counter.

[0034] Further, writing data at the tested address bit includes:

[0035] If the tested address bit is 0, then write data 0; and

[0036] If the tested address bit is 1, data 1 is written.

[0037] Furthermore, the static random access memory in the oscillation ring is short-circuited by setting the branch selection signal to 1.

[0038] A third aspect of the present invention provides a chip, which includes the test circuit as described above.

[0039] The present invention provides a test circuit, chip and method for static random access memory read time. The entire test process is completed completely inside the chip, and the test result is output as a digital signal through software, which greatly shortens the test time and reduces the hardware and labor costs required for the test. At the same time, the timing module adopts a high-precision timer, which effectively improves the accuracy of the read time measurement, and does not need to rely on high-precision test equipment and high-quality PAD units. In addition, the test circuit adopts a controllable delay module, which can flexibly increase or decrease the pulse width, the hold time of the address bit to be tested and the total delay of the oscillation ring, avoiding design risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.

[0041] Figure 1 A test circuit for SRAM read time in the prior art is shown;

[0042] Figure 2 A schematic diagram showing the structure of a test circuit for static random access memory read time according to an embodiment of the present invention;

[0043] Figure 3A schematic diagram showing the structure of a controllable delay module of a static random access memory read time test circuit according to an embodiment of the present invention; and

[0044] Figure 4 A schematic flow chart showing a method for testing read time of a static random access memory according to an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that the various embodiments can be implemented without one or more specific details or with other replacement and / or additional methods or components. In other cases, well-known structures or operations are not shown or described in detail to avoid blurring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of the embodiments of the present invention. However, the present invention is not limited to these specific details. In addition, it should be understood that the various embodiments shown in the drawings are illustrative representations and are not necessarily drawn in correct proportions.

[0046] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.

[0047] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.

[0048] In order to avoid the problem that insufficient pulse width, insufficient address bit setup time, and oscillation ring speed is faster than the maximum operating frequency of SRAM, which leads to failure of collecting observation signals and test failure, the present invention provides a test circuit for static random access memory read time, which adopts a controllable delay module, so that the pulse width, the address bit setup time to be tested and the total delay of the oscillation ring can be flexibly adjusted, and has the advantages of short test time, high precision and low cost. At the same time, the test circuit is used to test the SRAM read time, and the entire test process is completely completed inside the chip, and the test result is output as a digital signal through software, thereby greatly shortening the test time and reducing the hardware and labor costs required for the test.

[0049] The scheme of the present invention is further described below in conjunction with the accompanying drawings of the embodiments.

[0050] Figure 2The structure diagram of the test circuit of the static random access memory read time according to one embodiment of the present invention is shown. Figure 2 As shown, a test circuit for static random access memory read time includes selectors 211, 212, 213, controllable delay modules 221, 222, 223, inverters 231, 232, buffers 241, 242, an AND gate 205, an XOR gate 206, a frequency divider 207, and a timing module 208.

[0051] The controllable delay module is used to adjust the pulse width, the address bit setup time to be tested, and the total delay of the oscillation ring to meet the preset test conditions. In one embodiment of the present invention, the test circuit includes three controllable delay modules, wherein the output end of the first controllable delay module 221 is provided with a first inverter 231, the output end of the first inverter 231 is connected to the input end of the second controllable delay module 222 via a second buffer 242, and the output end of the second controllable delay module 222 is connected to the input end of the third controllable delay module 223.

[0052] Figure 3 The structure diagram of the controllable delay module of the test circuit of the static random access memory read time according to one embodiment of the present invention is shown. Figure 3 As shown, in one embodiment of the present invention, the controllable delay module includes multiple stages of delay submodules connected in series, and the output of each stage of the delay submodule is determined by a selection signal, thereby determining the delay duration. Specifically, the selection signal of the first controllable delay module 221 is MP_SEL_REG, the selection signal of the second controllable delay module 222 is MS_SEL_REG, and the selection signal of the third controllable delay module 223 is PW_SEL_REG, and the number of bits of the selection signal is equal to the number of delay submodules included in the controllable delay module.

[0053] like Figure 3As shown, any of the delay submodules includes a delayer DELAY, a selector MUX and an AND gate SEL_GATE, wherein the input end of the delayer is connected to the output of the previous delay submodule, the first input end of the selector is connected to the output of the previous delay submodule, the second input end is connected to the output end of the delayer, the selection end is connected to the output end of the AND gate, when the selection end signal is 1, the signal of the second input end is selected as the output, otherwise the signal of the first input end is selected as the output, and the two input ends of the AND gate are respectively connected to the selection bit DLY_SEL[] and TE signal corresponding to the delay submodule. It should be understood that the input end of the delayer of the first-stage delay submodule and the first input end of the selector are connected to the input signal DLY_I NPUT of the delay submodule. And the output signal of the selector of the last-stage delay submodule is used as the output DLY_OUTPUT of the entire delay submodule.

[0054] like Figure 2 As shown, in one embodiment of the present invention, the timing module uses a high-precision timer to implement timing to determine the total test duration, and then calculate the read time of the SRAM, which can improve the accuracy of the read time measurement and does not rely on high-precision test equipment and high-quality PAD units. Figure 2 As shown, the timing module includes a first counter 281, a second counter 282 and a clock synchronization register 283, wherein the first counter 281 is used to count the clock of the oscillation ring, that is, to count the signal to be tested, and the second counter 282 is used to count a certain high-frequency clock, wherein the period of the high-frequency clock is t, and during the test process, the total duration of the second counter is equal to that of the first counter, and the clock synchronization register 283 is used to make the time when the first counter starts counting consistent with that of the second counter. In one embodiment of the present invention, the first counter is a 4-bit binary counter, and the second counter is a 16-bit binary counter.

[0055] like Figure 2 As shown, the first input end of the first selector 211 is connected to the system clock signal SYSTEM_CLK, the second input end is connected to the output end of the XOR gate 206, and the output end is connected to the clock end CLK of the static random access memory 001. The first selector uses the TE signal as the selection signal. When the TE signal is low, the clock signal of the SRAM comes from the system clock. When the TE signal is high, the oscillation ring signal is used as the clock signal of the SRAM.

[0056] The first input terminal of the second selector 212 is connected to the external address control signal, the second input terminal is connected to the output terminal of the first buffer, and the output terminal is connected to the address terminal ADDR of the SRAM. The second selector uses the TE signal as the selection signal. When the TE signal is low, the address bit and other control bits of the SRAM are controlled by the outside. When the TE signal is high, the oscillation ring signal is used to control the address bit of the SRAM.

[0057] The first input end of the third selector 213 is connected to the output end of the SRAM, the second input end is connected to the output end of the first selector 211, and the output end is connected to the input end of the first controllable delay module 221. The third selector uses a branch selection signal (MACRO_BYPASS) as a selection signal. When the branch selection signal is high, the SRAM is short-circuited.

[0058] An input terminal of the first buffer 241 is connected to an output terminal of the first inverter 231 .

[0059] The input end of the frequency divider 207 is connected to the output end of the second buffer 242 , and the output end is connected to the input end of the timing module 208 .

[0060] The two input ends of the AND gate 205 are respectively connected to the output end of the second inverter 232 and the output end of the third controllable delay module 223, and the output end is connected to the first input end of the XOR gate 206, wherein the input end of the second inverter 232 is connected to the branch selection signal.

[0061] The second input terminal of the XOR gate 206 is connected to the output terminal of the second controllable delay module 222 .

[0062] Based on the test circuit described above, Figure 4 A flow chart showing a method for testing the read time of a static random access memory according to an embodiment of the present invention is shown as follows: Figure 4 As shown, a method for testing the read time of a static random access memory includes:

[0063] First, in step 401, data is written. During the test, the SRAM is first switched to a write operation, including controlling the TE signal to a low level, so that the static random access memory uses the system clock, and controls its address bit and control bit through an external signal, enters a write operation state, and writes data to the tested address bit. In one embodiment of the present invention, if the tested address bit is 0, data 0 is written, and if the tested address bit is 1, data 1 is written;

[0064] Next, in step 402, a self-oscillation test is performed. The SRAM switches to a read operation, controls the TE signal to a high level, and adjusts the controllable delay module by selecting signals MP_SEL_REG, MS_SEL_REG, and PW_SEL_REG, so that the pulse width, the establishment time of the address bit to be tested, and the total delay of the oscillation ring meet the test conditions, and enters the self-oscillation test mode. After the first counter counts the specified period, the timing ends, and the output of the timing module is recorded as Q1. In one embodiment of the present invention, after the first counter 281 counts 16 periods, an end signal is sent to the second counter 282 to end the current count, and the end flag signal CNT_LOCK is pulled high. At this time, the value of the output CNT_VAL[15:0] of the second counter is read, converted into decimal, and recorded as Q1;

[0065] Next, in step 403, the SRAM is short-circuited and self-oscillated. The static random access memory in the oscillation loop is short-circuited by setting the branch selection signal to 1, and the timing is restarted. Similar to step 402, after the first counter counts a specified period, the timing ends and the output of the timing module is recorded as Q2; and

[0066] Finally, in step 404, the read time is determined. The static random access memory read time T is determined according to the outputs of the two timing modules:

[0067] T=(Q1-Q2)*t / (n*R*2),

[0068] Wherein, t is the moderate high frequency period counted by the second counter, R is the ratio of the frequency divider, and n is the number of periods counted by the first counter. As in the above-mentioned embodiment, the value of n is 16.

[0069] According to the test method described above, the measurement error is t / (n*R*2). Assuming R=32, t=1ns, n=16, the error is about 1ps.

[0070] In addition, the present invention also provides a chip, which includes the test circuit as described above, so that the entire test process is completely completed inside the chip.

[0071] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.

Claims

1. A static random access memory read time test circuit, characterized in that: include: A controllable delay module configured to adjust the pulse width, the address bit setup time to be tested, and the total delay of the oscillation loop to meet the preset test conditions; and a timing module, which is configured to determine the total test duration and further calculate the read time of the static random access memory.

2. The test circuit according to claim 1, characterized in that: The controllable delay module includes multiple stages of delay submodules connected in series, and the output of each stage of the delay submodule is determined by selecting a signal, thereby determining the delay duration, wherein each delay submodule includes: A delay device, whose input end is connected to the output of the previous delay submodule; A selector, wherein the first input terminal is connected to the output of the previous delay submodule, the second input terminal is connected to the output terminal of the delay device, the selection terminal is connected to the output terminal of the AND gate, and when the selection terminal signal is 1, the signal of the second input terminal is selected as the output, otherwise the signal of the first input terminal is selected as the output; and The AND gate has two input terminals connected to the selection bit corresponding to the delay submodule and the TE signal respectively.

3. The test circuit according to claim 1, characterized in that: The timing module comprises: a first counter configured to count a clock of the oscillating ring; A second counter configured to count a certain high-frequency clock, wherein the period of the high-frequency clock is t, and during the test process, the total duration of the second counter is equal to that of the first counter; and A clock synchronization register is configured to make the first counter and the second counter start counting time consistent.

4. The test circuit according to claim 3, characterized in that: The first counter is a 4-bit binary counter, and the second counter is a 16-bit binary counter.

5. The test circuit according to claim 1, characterized in that: The test circuit includes three controllable delay modules, wherein the output end of the first controllable delay module is provided with a first inverter, the output end of the first inverter is connected to the input end of the second controllable delay module via a second buffer, and the output end of the second controllable delay module is connected to the input end of the third controllable delay module.

6. The test circuit according to claim 5, characterized in that: Also includes: A first selector, wherein a first input terminal is connected to a system clock signal, a second input terminal is connected to an output terminal of an XOR gate, and an output terminal is connected to a clock terminal of the static random access memory, and the first selector uses a TE signal as a selection signal; A second selector, a first input end of which is connected to the external address control signal, a second input end of which is connected to the output end of the first buffer, and an output end of which is connected to the address end of the static random access memory, and the second selector uses the TE signal as a selection signal; a third selector, wherein a first input end is connected to the output end of the static random access memory, a second input end is connected to the output end of the first selector, and an output end is connected to the input end of the first controllable delay module, and the third selector adopts a branch selection signal as a selection signal; a first buffer having an input terminal connected to an output terminal of the first inverter; a frequency divider having an input connected to the output of the second buffer and an output connected to the input of the timing module; An AND gate, two input ends of which are respectively connected to the output end of the second inverter and the output end of the third controllable delay module, and an output end of which is connected to the first input end of the XOR gate, wherein the input end of the second inverter is connected to the branch selection signal; as well as An XOR gate, a second input end of which is connected to the output end of the second controllable delay module.

7. A method for testing the read time of a static random access memory, characterized in that: A test circuit as claimed in any one of claims 1 to 6 is used, and comprises the steps of: Control the TE signal to be low level, so that the static random access memory uses the system clock, and controls its address bit and control bit through an external signal, enters a write operation state, and writes data at the tested address bit; Control the TE signal to a high level, and adjust the controllable delay module at the same time to enter the self-oscillation test mode. After the first counter counts a specified period, the timing ends, and the output of the timing module is recorded as Q1; Short-circuit the static random access memory in the oscillation ring, restart the timing, end the timing after the first counter counts a specified period, and record the output of the timing module as Q2; and The static random access memory read time T is determined according to the output of the two timing modules: T=(Q1-Q2)*t / (n*R*2), Wherein, t is the period of the high-frequency clock counted by the second counter, R is the multiplier of the frequency divider, and n is the number of periods counted by the first counter.

8. A testing method as claimed in claim 7, characterized in that: Writing data at the address bit under test includes the following steps: If the tested address bit is 0, then write data 0; and If the tested address bit is 1, data 1 is written.

9. A testing method as claimed in claim 7, characterized in that: By setting the branch selection signal to 1, the static random access memory in the oscillation ring is short-circuited.

10. A chip, characterized in that: The test circuit comprises the test circuit as claimed in any one of claims 1 to 6.