Circuit, chip and method for testing reading time of pipeline memory

By designing circuits for pipeline memory, including judgment modules, input modules, controllable delay modules and timing modules, the problem of low measurement accuracy of analog signal and fixed delay units in the prior art cannot meet the needs, and high Accurate and fast memory read time test.

CN118942525APending Publication Date: 2024-11-12QINGXIN SEMICON TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410980553.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing memory read time test circuit outputs an analog signal, with low measurement accuracy and poor efficiency, and the fixed delay unit is difficult to meet the needs of multi-stage pipelined output memory, which may lead to test failure.

Method used

Design a circuit including a judgment module, an input module, a controllable delay module and a timing module. Through selector, inverter, buffer, counter and other components, digital signal testing of pipeline memory reading time can be realized, and can be adjusted The pulse width and total delay of the oscillation ring meet different test conditions.

Benefits of technology

It realizes high-precision and fast memory read time testing, reduces test time and cost, avoids design risks, and can be suitable for different types of multi-stage pipelined output memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118942525A_ABST
    Figure CN118942525A_ABST
Patent Text Reader

Abstract

The invention discloses a circuit for testing the reading time of a pipeline memory, which comprises a judgment module and an input module, the judgment module is used for judging the type of the pipeline memory, and the input module is connected to a tested address bit of the pipeline memory and comprises a plurality of selectors. The method is used for determining input of a to-be-tested bit of the pipelined memory in a test stage based on the type of the pipelined memory. The circuit can determine the test input signal according to the type of the assembly line memory so as to test the reading time of different types of multi-stage assembly line output memories, and meanwhile, the circuit can also be used for testing the search time of the multi-stage assembly line output tri-state addressable memory.
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 circuit, a chip and a method for testing the read time of a pipeline memory. Background Art

[0002] Pipeline design is a typical area-for-performance design. On the one hand, it can reasonably divide long functional paths and process multiple functional requests in parallel at the same time, greatly improving the throughput of a certain function. On the other hand, since long functional paths are cut into short paths, higher operating frequencies can be achieved. If the operating frequency does not need to be increased, the extra frequency increase space can be used to reduce voltage and power consumption. Based on this, Pipeline design is also used in memory designs such as tri-state addressable memory. Memories with multi-stage pipeline outputs can reduce the number of stages in the combinational logic and shorten the data path between storage elements.

[0003] In practical applications, system software often needs to adapt the read and write speeds of the memory. For memories with multi-stage pipeline outputs, their read and write speeds are related to the design. Therefore, it is necessary to design corresponding test circuits to test their read time and / or search time in order to provide the read and write speed parameters to the system software for updating.

[0004] The output of the existing memory read time test circuit is mostly an analog signal, so it is mostly measured by instruments such as oscilloscopes. However, 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 addition, the existing technology mostly uses fixed delay units, whose delay is determined by the designer's estimation and simulation and cannot be adjusted. For memories with multi-stage pipeline outputs, fixed delay units are difficult to meet the requirements. There may be design risks such as insufficient pulse width, insufficient address bit setup time, and the oscillation ring speed is faster than the maximum operating frequency of the memory, and the observation signal cannot be collected, resulting in test failure. Summary of the invention

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

[0006] A determination module, used for determining the type of the pipeline memory; and

[0007] The input module is connected to the tested address bit of the pipeline memory, comprises a plurality of selectors, and is used to determine the input of the bit to be tested of the pipeline memory based on the type and test stage of the pipeline memory.

[0008] Furthermore, the circuit further comprises:

[0009] The first, second and third controllable delay modules are 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, 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 buffer, and the output end of the second controllable delay module is connected to the input end of the third controllable delay module; and

[0010] A timing module is used to determine the total test duration, and further determine the read time of the pipeline memory.

[0011] Furthermore, the test circuit further includes:

[0012] a fifth selector, wherein a first input end is connected to the output end of the pipeline stage memory, a second input end is connected to the output end of the clock signal selection module, and an output end is connected to the input end of the first controllable delay module, and the fifth selector adopts a branch selection signal (MACRO_BYPASS) as a selection signal;

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

[0014] a third AND gate, two input ends of which are respectively connected to the output end of the fourth 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 fourth inverter is connected to the branch selection signal; and

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

[0016] Furthermore, the circuit further comprises a clock signal selection module, which is connected to the clock bit of the pipeline memory and is used to determine the clock signal used by the pipeline memory, and the clock signal selection module comprises:

[0017] A level trigger, whose reset bit is connected to a test enable signal, whose clock terminal is connected to an output terminal of the pipeline memory, and whose data input terminal is connected to a loop switching signal;

[0018] A first AND gate, two input terminals of which are respectively connected to the data input terminal and the output terminal of the level trigger, and an output terminal of which is connected to the selection signal terminal of the fourth selector; and

[0019] A fourth selector has a first input terminal connected to a system clock signal, a second input terminal connected to an output terminal of the XOR gate, and an output terminal connected to a clock terminal of the pipeline memory.

[0020] Furthermore, the input module comprises:

[0021] A first selector, wherein a first input terminal is connected to the output terminal of the third inverter, a second input terminal is connected to the output terminal of the second inverter, an output terminal is connected to the second input terminal of the second selector, and a signal selection terminal is connected to the output terminal of the judgment module, wherein the input terminal of the second inverter is connected to the output terminal of the first inverter, and the input terminal of the third inverter is connected to the output terminal of the second inverter;

[0022] a second selector having a first input terminal connected to the data input signal and an output terminal connected to the first input terminal of the third selector, the second selector using the test enable signal as a selection signal; and

[0023] A third selector, wherein the second input terminal of the third selector is connected to the output terminal of the D flip-flop, and the output terminal is connected to the measured address bit of the pipeline memory, and the signal selection terminal is connected to the output terminal of the second AND gate, wherein the first input terminal of the second AND gate is connected to the test enable signal TE, the output terminal of the first AND gate is connected to the second input terminal of the second AND gate through a fifth inverter, the D flip-flop includes a set terminal and a reset terminal, and the output terminal of the third selector is connected to the data input terminal of the third selector through an inverter, and the clock terminal is connected to the system clock signal.

[0024] Furthermore, the first, second and third controllable delay modules include 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 the delay submodule includes:

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

[0026] 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

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

[0028] Furthermore, the timing module includes:

[0029] A first counter, which is a 4-bit binary counter, for counting the clock of the oscillation ring;

[0030] a second counter, which is a 16-bit binary counter, for counting 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

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

[0032] Based on the circuit as described above, the second aspect of the present invention provides a method for testing pipeline memory read time, comprising:

[0033] Controlling the test enable signal to be at a low level, so that the pipeline 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 address bit under test;

[0034] Control the test enable signal and the loop switching signal to be high level, and adjust the controllable delay module so that the pulse width, the establishment time of the loop return data and the total delay of the oscillation ring meet the test conditions, enter the self-oscillation test mode, and end the timing after the first counter counts the specified period, and record the output of the timing module as T1;

[0035] Short-circuit the pipeline 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 T2; and

[0036] The pipeline memory read time T is determined according to the output of the two timing modules:

[0037] T=(T1-T2)*t / (N*R*2),

[0038] 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.

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

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

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

[0042] Furthermore, the pipeline memory in the oscillation ring is short-circuited by setting the branch selection signal to 1.

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

[0044] The present invention provides a circuit, chip and method for testing the read time of a pipeline memory, which can determine the test input signal according to the type of the pipeline memory to realize the test of the read time of the memory output by different types of multi-stage pipelines. At the same time, it can also be used to test the search time of the three-state addressing memory output by the multi-stage pipeline. 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

[0045] 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.

[0046] Figure 1 A schematic diagram showing the structure of a circuit for testing pipeline memory read time according to an embodiment of the present invention;

[0047] Figure 2 A schematic diagram showing the structure of a D flip-flop of a circuit for testing pipeline memory read time according to an embodiment of the present invention;

[0048] Figure 3 A schematic diagram showing the structure of a controllable delay module of a circuit for testing pipeline memory read time according to an embodiment of the present invention; and

[0049] Figure 4 A schematic flow chart of a method for testing pipeline memory read time according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0050] 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.

[0051] 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.

[0052] 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.

[0053] In order to test the memory read time and search time of different types of multi-stage pipeline output designs, the present invention provides a circuit, chip and method for testing pipeline memory read time. The scheme of the present invention is further described below in conjunction with the accompanying drawings of the embodiments.

[0054] Figure 1 FIG. 1 is a schematic diagram showing a circuit for testing pipeline memory read time according to an embodiment of the present invention. Figure 1 As shown, a circuit for testing the pipeline memory reading time includes a judgment module, an input module, a clock signal selection module, a delay module and a timing module.

[0055] The judging module 101 is used to judge the type of the pipeline memory 001. In one embodiment of the present invention, judging the type of the pipeline memory 001 mainly includes judging whether the number of pipeline stages of the memory is an odd number or an even number, if it is an odd number, the output signal P IPEMODE of the judging module 101 is set to 1, if it is an even number, the output signal P IPEMODE of the judging module 101 is set to 0.

[0056] The input module is connected to the tested address bit of the pipeline memory, and includes a plurality of selectors for determining the input of the tested address bit of the pipeline memory based on information such as the type and test stage of the pipeline memory. Figure 1As shown, in one embodiment of the present invention, the input module includes a first selector 121, a second selector 122 and a third selector 123. The first input terminal of the first selector 121 is connected to the output terminal of the third inverter 133, the second input terminal is connected to the output terminal of the second inverter 132, the output terminal is connected to the second input terminal of the second selector 122, and the signal selection terminal is connected to the output terminal of the judgment module 101, wherein the input terminal of the second inverter 132 is connected to the output terminal of the first inverter 131, and the input terminal of the third inverter 133 is connected to the output terminal of the second inverter 132. The first input terminal of the second selector 122 is connected to the data input signal DATA_I N, and the output terminal is connected to the first input terminal of the third selector 123, and the second selector uses the test enable signal TE as the selection signal. The second input terminal of the third selector 123 is connected to the output terminal of the D flip-flop 141, and the output terminal is connected to the measured address bit of the pipeline memory 001, and the signal selection terminal is connected to the output terminal of the second AND gate 152, wherein the first input terminal of the second AND gate 152 is connected to the test enable signal TE, and the output terminal of the first AND gate 151 is connected to the second input terminal of the second AND gate 152 through the fifth inverter 135. Figure 2 FIG. 1 is a schematic diagram showing the structure of a D flip-flop of a circuit for testing pipeline memory read time according to an embodiment of the present invention. Figure 2 As shown, the D flip-flop 141 includes a set terminal and a reset terminal, and its output terminal is connected to its data input terminal through an inverter, and the clock terminal is connected to the system clock signal SYSTEM_CLK. When the test enable signal TE is 0 and P IPEMODE=1 (odd-numbered pipeline), the output signal state_reg of the D flip-flop is set to 0, and when the test enable signal TE is 0 and P IPEMODE=0 (even-numbered pipeline), state_reg is set to 1. Based on this, during the test process, if the number of stages of the pipeline memory is an odd number, when the test enable signal TE is 0, that is, the memory is in a write state, the output of the input module is DATA_I N, and data is written to the address bit under test at this time. When the test enable signal TE is set to 1, the output of the input module is determined according to the loop switching signal LOOPSW. Specifically, before LOOPSW is set to 1, the output of the input module is state_reg, which will oscillate with the clock, and the output of the memory will be accompanied by a flip. When LOOPSW is set to 1, the output of the input module is loop_an. When the number of pipeline stages is even, the output of the input module is similar to that of the pipeline with odd stages, except that when LOOPSW is set to 1, the output of the input module is loop_a.

[0057] The clock selection module is connected to the clock bit CLK of the pipeline memory 001, and is used to determine the clock signal used by the pipeline memory 001. In one embodiment of the present invention, when the TE signal is low, the clock signal SYSTE_CLK of the memory comes from the system clock, and when the TE signal is high, the oscillation ring signal l oop_c is used as the clock signal of the memory. Figure 1 As shown, in one embodiment of the present invention, the clock signal selection module includes a level trigger 142, a first AND gate 151 and a fourth selector 124. The reset bit of the level trigger 142 is connected to the test enable signal TE, the clock end is connected to the output end of the pipeline memory, and the data input end is connected to the loop switching signal LOOPSW, the two input ends of the first AND gate 151 are respectively connected to the data input end D and the output end Q of the level trigger 142, and the output end is connected to the selection signal end of the fourth selector 124, the first input end of the fourth selector 124 is connected to the system clock signal SYSTE_CLK, the second input end is connected to the output end of the XOR gate 154, that is, the oscillation ring signal loop_c, and the output end is connected to the clock end CLK of the pipeline memory.

[0058] In one embodiment of the present invention, the delay module is a controllable delay module, and 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 delay module includes three controllable delay modules, wherein the output end of the first controllable delay module 161 is provided with a first inverter 131, the output end of the first inverter 131 is connected to the input end of the second controllable delay module 162 via a buffer 107, and the output end of the second controllable delay module 162 is connected to the input end of the third controllable delay module 163.

[0059] Figure 3 FIG. 1 is a schematic diagram showing the structure of a controllable delay module of a circuit for testing pipeline memory read time according to an embodiment of the present invention. 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 161 is MP_SEL_REG, the selection signal of the second controllable delay module 162 is MS_SEL_REG, and the selection signal of the third controllable delay module 163 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.

[0060] 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.

[0061] like Figure 1 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 pipeline memory, 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 1 As shown, the timing module includes a first counter 181, a second counter 182 and a clock synchronization register 183, wherein the first counter 181 is used to count the clock of the oscillation ring, that is, to count the signal to be tested, and the second counter 182 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 183 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.

[0062] like Figure 1As shown, the circuit further includes a fifth selector 125 , a frequency divider 109 , a third AND gate 153 , and an XOR gate 154 . The first input end of the fifth selector 125 is connected to the output end of the pipeline memory 001, the second input end is connected to the clock signal selection module, that is, the output end of the fourth selector 124, and the output end is connected to the input end of the first controllable delay module 161. The fifth selector 124 uses a branch selection signal (MACRO_BYPASS) as a selection signal. The input end of the frequency divider 109 is connected to the output end of the buffer 107, and the output end is connected to the input end of the timing module. The two input ends of the third AND gate 153 are respectively connected to the output end of the fourth inverter 134 and the output end of the third controllable delay module 163, and the output end is connected to the first input end of the XOR gate 154, wherein the input end of the fourth inverter 134 is connected to the branch selection signal, and the second input end of the XOR gate 154 is connected to the output end of the second controllable delay module 162, which outputs an oscillation ring signal l oop_c.

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

[0064] First, in step 401, data is written. During the test, the memory is first switched to a write operation, including controlling the TE signal to be low level, so that the memory uses the system clock SYSTEM_CLK, 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, taking a memory with an odd-numbered pipeline design as an example, if the tested address bit is 0, data 0 is written, and if the tested address bit is 1, data 1 is written;

[0065] Next, in step 402, a self-oscillation test is performed. The memory switches to a read operation, controls the TE signal to be set high, 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. Taking the memory with an odd-level pipeline design as an example, the signal TE is set high. Before LOOPSW is set to 1, state_reg will oscillate with the clock and serve as the input of the memory. The output of the memory will be accompanied by a flip. When LOOPSW is set to 1, loop_an will serve as the input of the memory and enter 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 T1. In one embodiment of the present invention, after the first counter counts 16 periods, an end signal is sent to the second counter 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 T1;

[0066] Next, in step 403, the memory is short-circuited and self-oscillated. The memory in the oscillation ring 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 T2; and

[0067] 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:

[0068] T=(T1-T2)*t / (N*R*2),

[0069] Wherein, t is the moderate high frequency period 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. As in the above-mentioned embodiment, the value of N is 16.

[0070] 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.

[0071] The reading time of the memory with an even-numbered pipeline design can also be implemented using the circuit as described above. The method is basically the same as that of the memory with an odd-numbered pipeline design. The only difference is that the initial state stored in the D flip-flop is different. The odd-numbered pipeline stores 1, the even-numbered pipeline stores 0, and the signal TE is set to a high level. When LOOPSW is set to 1, the input of the memory is loop_a.

[0072] The circuit can also be used to test the search time of a three-state addressable memory with a multi-stage pipeline output. The test method is basically the same as the above, with the only difference being that when testing the search time, the address bit MAC_I N to be tested of the memory is connected to the data bit, and in write mode, the data needs to be written to the corresponding address bit and data bit to be searched and tested.

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

[0074] 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 circuit for testing pipeline memory read time, characterized in that: include: A determination module, configured to determine the type of the pipeline memory; as well as The input module is connected to the address bits to be tested of the pipeline memory and includes a plurality of selectors. The input module is configured to determine the input of the bits to be tested of the pipeline memory based on the type and test stage of the pipeline memory.

2. The circuit according to claim 1, characterized in that Also includes: The first, second and third controllable delay modules are configured 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, 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 buffer, and the output end of the second controllable delay module is connected to the input end of the third controllable delay module; as well as A timing module is configured to determine the total test duration, and further determine the read time of the pipeline memory.

3. The circuit according to claim 2, characterized in that Also includes: a fifth selector, wherein a first input end is connected to the output end of the pipeline stage memory, a second input end is connected to the output end of the clock signal selection module, and an output end is connected to the input end of the first controllable delay module, and the fifth selector adopts a branch selection signal as a selection signal; a frequency divider having an input connected to the output of the buffer and an output connected to the input of the timing module; a third AND gate, two input ends of which are respectively connected to the output end of the fourth 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 fourth 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.

4. The circuit according to claim 3, characterized in that Also included is a clock signal selection module, which is connected to the clock bit of the pipeline memory and is configured to determine the clock signal used by the pipeline memory, and the clock signal selection module includes: A level trigger, whose reset bit is connected to a test enable signal, whose clock terminal is connected to an output terminal of the pipeline memory, and whose data input terminal is connected to a loop switching signal; A first AND gate, two input terminals of which are respectively connected to the data input terminal and the output terminal of the level trigger, and an output terminal of which is connected to the selection signal terminal of the fourth selector; and A fourth selector has a first input terminal connected to a system clock signal, a second input terminal connected to an output terminal of the XOR gate, and an output terminal connected to a clock terminal of the pipeline memory.

5. The circuit according to claim 2, characterized in that The input module comprises: A first selector, wherein a first input terminal is connected to the output terminal of the third inverter, a second input terminal is connected to the output terminal of the second inverter, an output terminal is connected to the second input terminal of the second selector, and a signal selection terminal is connected to the output terminal of the judgment module, wherein the input terminal of the second inverter is connected to the output terminal of the first inverter, and the input terminal of the third inverter is connected to the output terminal of the second inverter; a second selector having a first input terminal connected to the data input signal and an output terminal connected to the first input terminal of the third selector, the second selector using the test enable signal as a selection signal; and A third selector, wherein the second input terminal of the third selector is connected to the output terminal of the D flip-flop, and the output terminal is connected to the measured address bit of the pipeline memory, and the signal selection terminal is connected to the output terminal of the second AND gate, wherein the first input terminal of the second AND gate is connected to the test enable signal TE, the output terminal of the first AND gate is connected to the second input terminal of the second AND gate through a fifth inverter, the D flip-flop includes a set terminal and a reset terminal, and the output terminal of the third selector is connected to the data input terminal of the third selector through an inverter, and the clock terminal is connected to the system clock signal.

6. The circuit according to claim 2, characterized in that The first, second and third controllable delay modules include 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 the 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 test enable signal TE respectively.

7. The circuit according to claim 2, characterized in that The timing module comprises: A first counter, which is a 4-bit binary counter, for counting the clock of the oscillation ring; a second counter, which is a 16-bit binary counter, for counting 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 used to make the first counter and the second counter start counting time consistent.

8. A method for testing pipeline memory read time, characterized in that: A circuit according to any one of claims 1 to 7 is used, and comprises the steps of: Controlling the test enable signal to be at a low level, so that the pipeline 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 address bit under test; Control the test enable signal and the loop switching signal to a high level, and adjust the controllable delay module so that the pulse width, the establishment time of the loop return data and the total delay of the oscillation loop meet the test conditions, enter the self-oscillation test mode, and end the timing after the first counter counts the specified period, and record the output of the timing module as T1; The branch selection signal is set to 1 to short-circuit the pipeline memory in the oscillation ring, restart the timing, and end the timing after the first counter counts the specified period, and record the output of the timing module as T2; and The pipeline memory read time T is determined according to the output of the two timing modules: T=(T1-T2)*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.

9. A method according to claim 8, 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.

10. A chip, characterized in that: The method comprises a circuit as claimed in any one of claims 1 to 7.