Random access memory and testing device

By designing clock transmission links and high -precision duty detection circuits in random memory, the frequency performance detection and duty self -calibration of random memory is achieved, solving existing technologies medium and high -frequency time detection and self -calibration problems, and improved to increase Testing accuracy and performance.

CN119380790AActive Publication Date: 2025-01-28XC MEMORY CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202310898622.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2025-01-28
Estimated Expiration
2043-07-20

AI Technical Summary

Technical Problem

The prior art is difficult to effectively detect the frequency performance of a random memory at high frequency moments, and the duty cycle self-calibration of the random memory cannot be achieved during high frequency periods.

Method used

A random memory contains clock transmission links and two duty -duty -ratio detection circuits. The clock transmission link includes the cycle -occupied ratio adjustment circuit and the first vacant ratio detection circuit. The detection accuracy of the second duty cycle detection circuit is higher than that of the first vacant ratio detection circuit. Essence

Benefits of technology

By using the two duty cycle ratio detection circuits in random memory, the duty duty occupation ratio calibration detection and self -calibration of the clock transmission link solves the problem of frequency performance detection and self -calibration of random memory, and can be calibrated. The detection of high -frequency performance has overcome the limitations of the hardware of the test device's probe cannot provide the limit of high -frequency clock signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119380790A_ABST
    Figure CN119380790A_ABST
Patent Text Reader

Abstract

The invention discloses a random access memory and a test device. The random access memory comprises a clock transmission link and a second duty ratio detection circuit, the clock transmission link comprises a duty ratio adjustment circuit and a first duty ratio detection circuit; wherein the duty ratio adjustment circuit is used for performing duty ratio adjustment on an input first clock signal to obtain a second clock signal; the first duty ratio detection circuit is used for carrying out first duty ratio detection on the second clock signal and feeding back a detection result to the duty ratio adjustment circuit; the second duty ratio detection circuit is coupled to the output end of the clock transmission link, performs second duty ratio detection on the second clock signal and outputs a detection mark signal, and the detection precision of the second duty ratio detection circuit is higher than that of the first duty ratio detection circuit. Through the mode, the detection problem of the frequency performance of the random access memory is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a random access memory and a testing device. Background Art

[0002] With the miniaturization of electronic systems, multi-die stacking technology has been widely used in production to reduce the chip packaging volume. Multi-die stacking technology is to package different types of unpackaged chip particles that meet product performance in the same package to achieve space compression.

[0003] Since the development of random access memory, it is usually necessary to perform corresponding performance tests on random access memory, such as the high-frequency performance of random access memory. After the chip particles are packaged into chips, high-speed machines can be used to complete high-frequency testing of the chips and screening after testing; however, if they are shipped in the form of chip particles rather than chips, high-frequency testing is required during the wafer-level testing stage (also known as chip probe testing, CP testing) of chip particle manufacturing to screen out chip particles that meet high-frequency performance. Such chip particles screened out during the CP testing stage are called KGD (Know Good Die). However, CP testing is limited by the requirements of the test device. The operating frequency of a single probe is generally only at the 100MHz level, which cannot meet the conditions of high-frequency testing. Therefore, how to detect the frequency performance of random access memory at high frequencies is a problem that needs to be solved. In addition, the duty cycle adjustment and calibration in random access memory is usually completed by external devices, and at high frequencies, external devices cannot meet this requirement. Summary of the invention

[0004] The present application provides a random access memory and a testing device to solve the problem of detecting the frequency performance of the random access memory and the problem of duty cycle self-calibration.

[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a random access memory, which includes: a clock transmission link, the clock transmission link includes a duty cycle adjustment circuit and a first duty cycle detection circuit; wherein the duty cycle adjustment circuit is used to adjust the duty cycle of the input first clock signal to obtain a second clock signal; the first duty cycle detection circuit is used to perform a first duty cycle detection on the second clock signal, and feed back the detection result to the duty cycle adjustment circuit; the second duty cycle detection circuit is coupled to the output end of the clock transmission link, performs a second duty cycle detection on the second clock signal, and outputs a detection flag signal, wherein the detection accuracy of the second duty cycle detection circuit is higher than the detection accuracy of the first duty cycle detection circuit, and the detection flag signal indicates whether the duty cycle of the second clock signal is detected when the first clock signal is used as the input clock of the duty cycle adjustment circuit, and obtains the first duty cycle adjustment code of the first duty cycle detection circuit when the detection is passed.

[0006] Before performing a second duty cycle detection on the second clock signal, the second duty cycle detection circuit first adjusts and detects the duty cycle of the first clock signal, and saves the second duty cycle adjustment code of the second duty cycle detection circuit when the detection passes, so as to complete the self-calibration of the second duty cycle detection circuit.

[0007] The first duty cycle adjustment code of the first duty cycle detection circuit is burned into the electronic fuse of the random access memory to complete the frequency performance detection of the random access memory, or serves as the initial value of the duty cycle adjustment when the duty cycle adjustment circuit works normally to complete the duty cycle self-calibration of the duty cycle adjustment circuit.

[0008] Among them, the random access memory further includes: a clock generating unit; a first selection circuit, a first input end of the first selection circuit is coupled to an external clock input end, a second input end of the first selection circuit is coupled to the clock generating unit, and an output end of the first selection circuit is coupled to an input end of a clock transmission link; a logic control circuit, coupled to a control end of the first selection circuit, in response to a first control instruction, controls the output end of the first selection circuit to output an external clock signal as a first clock signal; or in response to a second control instruction, controls the output end of the first selection circuit to output a first internal clock signal generated by the clock generating unit as a first clock signal.

[0009] Among them, the random access memory further includes: a second selection circuit, a first input end of the second selection circuit is coupled to the output end of the clock transmission link, a second input end of the second selection circuit is coupled to the clock generation unit, and an output end of the second selection circuit is coupled to a second duty cycle detection circuit; a logic control circuit is coupled to the control end of the second selection circuit, and in response to a third control instruction, controls the output end of the second selection circuit to output the second clock signal; or in response to a fourth control instruction, controls the output end of the second selection circuit to output the first internal clock signal, so that the second duty cycle detection circuit can self-calibrate.

[0010] Wherein, the second duty cycle detection circuit includes: a first adjustment unit, a second adjustment unit and a detection unit; wherein, the first adjustment unit is used to perform a second duty cycle adjustment on the first internal clock signal to obtain a second internal clock signal; the second adjustment unit is used to perform a third duty cycle adjustment on the second internal clock signal to obtain a third internal clock signal; wherein, the adjustment step of the second duty cycle adjustment is greater than the adjustment step of the third duty cycle adjustment; the detection unit is used to start the third duty cycle adjustment when it is detected that the third internal clock signal meets the first preset requirement, and when it is detected that the third internal clock signal meets the second preset requirement, save the current adjustment codes of the first adjustment unit and the second adjustment unit as the second duty cycle adjustment code.

[0011] The starting duty cycle adjustment code of the second adjustment unit is determined according to the duty cycle adjustment code of the first adjustment unit when the third internal clock signal meets the first preset requirement.

[0012] Among them, in response to the third control instruction, the logic control circuit loads the second duty cycle adjustment code into the second duty cycle detection circuit; in response to the fifth control instruction, the logic control circuit controls the second duty cycle detection circuit to perform a second duty cycle detection on the second clock signal and record the detection flag signal; in response to the sixth control instruction, the logic control circuit controls the step adjustment of the first duty cycle adjustment code; in response to the seventh control instruction, the logic control circuit controls the second duty cycle detection circuit to perform a second duty cycle detection on the second clock signal again and record the detection flag signal. If the detection flag signal is flipped, the first duty cycle adjustment code at this time is obtained and burned into the electronic fuse of the random access memory to complete the frequency performance detection of the random access memory, or used as the initial value of the duty cycle adjustment circuit to complete the duty cycle self-calibration of the duty cycle adjustment circuit.

[0013] The adjustment step size of the step-by-step adjustment of the first duty cycle adjustment code is greater than the adjustment step size of the second duty cycle detection circuit.

[0014] Among them, when the random access memory is subjected to frequency performance testing, the first to seventh control instructions are sent by a test device coupled to the random access memory; or when the duty cycle adjustment circuit is subjected to duty cycle self-calibration, the first to seventh control instructions are sent by a logic control circuit.

[0015] Among them, the clock transmission link further includes: a delay circuit, coupled to the duty cycle adjustment circuit, used to delay the second clock signal and output it; a phase detection circuit, coupled to the duty cycle adjustment circuit and the delay circuit, used to compare the first clock signal with the delayed second clock signal; a controller, the controller is respectively coupled to the duty cycle adjustment circuit, the delay circuit, the phase detection circuit and the first duty cycle detection circuit, and is used to adjust the first duty cycle adjustment code of the first duty cycle detection circuit and the delay of the delay circuit according to the detection result of the first duty cycle detection circuit and the detection result of the phase detection circuit.

[0016] The clock transmission link further includes: a clock buffer circuit coupled to the delay circuit and outputting the delayed second clock signal to the first duty cycle detection circuit.

[0017] The clock transmission link further includes: an output buffer coupled to the clock buffer circuit, buffering the delayed second clock signal input by the clock buffer circuit, and outputting the buffered delayed second clock signal to the second duty cycle detection circuit.

[0018] To solve the above technical problems, another technical solution adopted in the present application is: to provide a testing device, including a random access memory and a testing device coupled to the random access memory as provided in the above technical solution; wherein the testing device sends a detection instruction to the random access memory so that the random access memory outputs a corresponding detection flag signal.

[0019] The beneficial effects of the embodiments of the present application are as follows: Different from the prior art, the present application provides a random access memory, which includes: a clock transmission link, the clock transmission link includes a duty cycle adjustment circuit and a first duty cycle detection circuit; wherein the duty cycle adjustment circuit is used to perform duty cycle adjustment on the input first clock signal to obtain a second clock signal; the first duty cycle detection circuit is used to perform a first duty cycle detection on the second clock signal, and feed back the detection result to the duty cycle adjustment circuit; the second duty cycle detection circuit is coupled to the output end of the clock transmission link, performs a second duty cycle detection on the second clock signal, and outputs a detection flag signal, wherein the detection accuracy of the second duty cycle detection circuit is higher than the detection accuracy of the first duty cycle detection circuit, and the detection flag signal indicates whether the duty cycle of the second clock signal is detected when the first clock signal is used as the input clock of the duty cycle adjustment circuit, and obtains the first duty cycle adjustment code of the first duty cycle detection circuit when the detection is passed. In the above manner, the two duty cycle detection circuits in the random access memory are used to complete the duty cycle calibration detection of the clock transmission link in the random access memory, thereby solving the problem of detecting the frequency performance of the random access memory and / or the problem of self-calibration of the duty cycle of the random access memory. Furthermore, the high-frequency clock signal is provided by the clock unit, thereby detecting the high-frequency performance of the random access memory, solving the problem of the probe hardware limitation of the test device and being unable to provide a high-frequency clock signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] in:

[0022] Figure 1 is a schematic structural diagram of a first embodiment of a random access memory provided by the present application;

[0023] Figure 2 is a schematic structural diagram of a second embodiment of a random access memory provided by the present application;

[0024] Figure 3 is a schematic structural diagram of a third embodiment of a random access memory provided by the present application;

[0025] Figure 4 It is a flowchart of a random access memory application scenario provided by this application;

[0026] Figure 5 is a structural schematic diagram of an embodiment of a second duty cycle detection circuit provided by the present application;

[0027] Figure 6 It is a schematic diagram of the process of duty cycle calibration of random access memory provided by the present application;

[0028] Figure 7 It is a structural diagram of an embodiment of a clock transmission link provided by the present application;

[0029] Figure 8 is a structural diagram of another embodiment of a clock transmission link provided by the present application;

[0030] Fig. 9 It is a structural schematic diagram of an embodiment of a testing device provided by the present application;

[0031] Fig.10 It is a schematic diagram of a scenario in which the test device provided in the present application detects random access memory. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0034] The inventor of the present application has found through long-term research that the development of random access memory has reached a point where it is usually necessary to perform corresponding tests on the random access memory before the random access memory chip is shipped (e.g., CP test at the wafer level or FT test at the chip level). If the high-frequency performance of the random access memory is tested under a high-frequency clock, the test device needs to input a high-frequency clock from the outside of the random access memory, which may not be possible with the current test device. Therefore, how to detect the frequency performance of the random access memory is a problem that needs to be solved. Based on this, the present application proposes any of the following technical solutions to solve any of the above problems. It is worth noting that the following embodiments of the present invention can be used to implement frequency performance detection of the random access memory, and can also be used to implement duty cycle self-calibration in the random access memory when the random access memory is working normally.

[0035] See also Figure 1 , Figure 1 1 is a schematic diagram of the structure of the first embodiment of the random access memory provided by the present application. The random access memory 100 comprises: a clock transmission link 10 and a second duty cycle detection circuit 20 .

[0036] Among them, the clock transmission link 10 includes a duty cycle adjustment circuit 11 and a first duty cycle detection circuit 12. The duty cycle adjustment circuit 11 is used to adjust the duty cycle of the input first clock signal CLK1 to obtain the second clock signal CLK2. It can be understood that the clock signal is periodically composed of a logic high level and a logic low level. Therefore, the time proportion of the logic high level or the logic low level in a time period is the duty cycle. For example, the duty cycle corresponding to the logic high level is 70%, 60%, 40% or 35%. Therefore, in order to meet different performance requirements, the duty cycle of the clock signal can be adjusted. For example, the duty cycle is adjusted from 70% to 50%, the duty cycle is adjusted from 70% to 60%, the duty cycle is adjusted from 60% to 50%, and the duty cycle is adjusted from 40% to 50%. That is, the duty cycle can be adjusted to the target duty cycle according to the actual situation, so as to use the clock signal of the target duty cycle to realize the corresponding function. In a further embodiment, if the second clock signal CLK2 is used as the working clock of the internal circuit of the random access memory, the target duty cycle is usually 50%.

[0037] The first duty cycle detection circuit 12 is used for performing a first duty cycle detection on the second clock signal CLK2 and feeding back the detection result to the duty cycle adjustment circuit 11 .

[0038] In a further embodiment, the first duty cycle detection circuit 12 can perform a first duty cycle detection on the second clock signal CLK2. After the detection is passed, the clock transmission link 10 outputs the second clock signal CLK2. When the detection fails, the duty cycle adjustment circuit 11 continues to adjust the corresponding duty cycle adjustment code, and uses the adjusted duty cycle adjustment code to adjust the duty cycle of the first clock signal CLK1 to generate the second clock signal CLK2. Further, the condition for passing the detection can be that the first duty cycle detection circuit 12 detects that the duty cycle of CLK2 reaches the target duty cycle (for example, 50%), or the number of times the target duty cycle crosses back and forth reaches a certain threshold.

[0039] The second duty cycle detection circuit 20 is coupled to the output end of the clock transmission link 10, performs a second duty cycle detection on the second clock signal CLK2, and outputs a detection flag signal F, wherein the detection accuracy of the second duty cycle detection circuit 20 is greater than the detection accuracy of the first duty cycle detection circuit 12, and the detection flag signal F indicates whether the duty cycle of the second clock signal CLK2 has passed the detection (for example, whether it has reached the target duty cycle) when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11, and obtains the first duty cycle adjustment code (DCD trim code) of the first duty cycle detection circuit 12 when the detection passes. Further, using the first duty cycle adjustment code of the first duty cycle detection circuit 12 obtained at this time, in an embodiment of frequency performance detection of the random access memory 100, the first duty cycle adjustment code is burned into the electronic fuse (efuse) of the random access memory 100 (for example, as a duty cycle adjustment code corresponding to the frequency value of the first clock signal CLK1); in an embodiment of duty cycle self-calibration of the duty cycle adjustment circuit 11, the first duty cycle adjustment code is used as the initial value of the duty cycle adjustment when the first duty cycle detection circuit 12 works normally. It is worth noting that the embodiment of frequency performance detection of the random access memory 100 requires the test device outside the random access memory 100 to send instructions for control, the purpose of which is to screen out the random access memory 100 that passes the frequency performance test in the test phase, and record the first duty cycle adjustment code when the test passes. The frequency test can correspond to different frequency values ​​of the first clock signal CLK1, for example, it can be a high frequency of up to 1600MHz. The implementation scheme for realizing self-calibration of the duty cycle of the duty cycle adjustment circuit 11 requires the built-in logic control circuit of the random access memory 100 to send instructions for control, so as to perform self-calibration of the duty cycle of the duty cycle adjustment circuit 11 each time the random access memory 100 is powered on when working normally, and use the obtained first duty cycle adjustment code as the initial value of the duty cycle adjustment when working normally. This implementation scheme can obtain the corresponding initial value of the duty cycle adjustment code according to the first clock signal CLK1 of different frequencies in real time, so as to realize real-time self-calibration of the duty cycle of the duty cycle adjustment circuit 11.

[0040] Among them, the detection accuracy of the second duty cycle detection circuit 20 is higher than the detection accuracy of the first duty cycle detection circuit 12. Furthermore, the duty cycle adjustment step of the second duty cycle detection circuit 20 is smaller than the duty cycle adjustment step of the duty cycle adjustment circuit 11. The second duty cycle detection circuit 20 with higher detection accuracy can be used to perform duty cycle detection and adjustment on the clock transmission link 10 again, thereby improving the detection accuracy and / or the accuracy of the duty cycle adjustment.

[0041] In some embodiments, the second duty cycle detection circuit 20 performs a second duty cycle detection on the second clock signal CLK2 and outputs a detection flag signal F. The detection flag signal F can be represented by 0 or 1. When the detection flag signal F is 0, it indicates that the duty cycle detection of the second clock signal CLK2 fails, and the clock transmission link 10 can adjust the corresponding duty cycle adjustment code again according to the detection flag signal F, and continue to adjust the first clock signal CLK1 using the adjusted duty cycle adjustment code.

[0042] When the detection flag signal F is 1, it indicates that the duty cycle detection of the second clock signal CLK2 has passed.

[0043] In an application scenario, a random access memory 100 is coupled to a test device. The test device inputs a first clock signal CLK1 to the random access memory 100. The duty cycle adjustment circuit 11 in the clock transmission link 10 adjusts the duty cycle of the input first clock signal CLK1 to obtain a second clock signal CLK2. The first duty cycle detection circuit 12 in the clock transmission link 10 performs a first duty cycle detection on the second clock signal CLK2, and feeds back the detection result to the duty cycle adjustment circuit 11. The second duty cycle detection circuit 20 is coupled to the output end of the clock transmission link 10, performs a second duty cycle detection on the second clock signal CLK2, and outputs a detection flag signal F. The detection flag signal F can be output to the test device, so that the test device determines whether the duty cycle of the second clock signal CLK2 is detected when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11 according to the detection flag signal F. When the detection is passed, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is obtained.

[0044] In an application scenario, a random access memory 100 is coupled to a test device. The test device inputs a first clock signal CLK1 to the random access memory 100. The duty cycle adjustment circuit 11 in the clock transmission link 10 adjusts the duty cycle of the input first clock signal CLK1 to obtain a second clock signal CLK2. The first duty cycle detection circuit 12 in the clock transmission link 10 performs a first duty cycle detection on the second clock signal CLK2, and feeds back the detection result to the duty cycle adjustment circuit 11. The second duty cycle detection circuit 20 is coupled to the output end of the clock transmission link 10, performs a second duty cycle detection on the second clock signal CLK2, and outputs a detection flag signal F. The detection flag signal F is output to the inside of the random access memory 100, so that the random access memory 100 determines whether the duty cycle of the second clock signal CLK2 is detected when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11 according to the detection flag signal F. When the detection is passed, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is obtained.

[0045] Thus, after the preset time, the test device sends a corresponding instruction to the random access memory 100 to obtain the detection flag signal F. The random access memory 100 can adjust the duty cycle within the preset time to obtain the final detection flag signal F.

[0046] In an application scenario, after the random access memory 100 is powered on, a first clock signal CLK1 is generated inside the random access memory 100. The duty cycle adjustment circuit 11 in the clock transmission link 10 adjusts the duty cycle of the first clock signal CLK1 input inside the random access memory 100 to obtain a second clock signal CLK2. The first duty cycle detection circuit 12 in the clock transmission link 10 performs a first duty cycle detection on the second clock signal CLK2, and feeds the detection result back to the duty cycle adjustment circuit 11. The second duty cycle detection circuit 20 is coupled to the output end of the clock transmission link 10, performs a second duty cycle detection on the second clock signal CLK2, and outputs a detection flag signal F. The detection flag signal F is output inside the random access memory 100, so that the random access memory 100 determines whether the duty cycle of the second clock signal CLK2 is detected when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11 according to the detection flag signal F. When the detection is passed, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is obtained. Specifically, a corresponding state machine may be provided inside the random access memory 100 , and corresponding instruction control may be performed inside the random access memory 100 through the state machine.

[0047] Thus, after a preset time, the test device is coupled to the random access memory 100, and sends a corresponding instruction to the random access memory 100 to obtain a detection flag signal F. The random access memory 100 can adjust the duty cycle within a preset time to obtain a final detection flag signal F. When the detection device performs a performance test on a large number of random access memories 100, a corresponding control instruction can be sent to each random access memory 100, so that the random access memory 100 completes the duty cycle adjustment internally within a preset time. The detection device can uniformly send a corresponding acquisition instruction to the random access memory 100 after a preset time, and obtain the detection flag signal F fed back by the random access memory 100, so as to determine the frequency performance of each random access memory 100.

[0048] In a further embodiment, before performing a second duty cycle detection on the second clock signal CLK2, the second duty cycle detection circuit 20 first adjusts and detects the duty cycle of the first clock signal CLK1, and saves the second duty cycle adjustment code of the second duty cycle detection circuit 20 when the detection passes to complete self-calibration of the second duty cycle detection circuit 20.

[0049] It can be understood that before using the second duty cycle detection circuit 20 to detect the duty cycles of the remaining clock signals, it is necessary to ensure the detection accuracy of the second duty cycle detection circuit 20 itself. Therefore, the second duty cycle detection circuit 20 first adjusts and detects the duty cycle of the first clock signal CLK1, and saves the second duty cycle adjustment code of the second duty cycle detection circuit 20 when the detection passes, so as to complete the self-calibration of the second duty cycle detection circuit 20. For the specific self-calibration method of the second duty cycle detection circuit 20, please refer to the following embodiment, which will not be described in detail here.

[0050] In a further embodiment, after obtaining the first duty cycle adjustment code of the first duty cycle detection circuit 12 when the detection passes, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is burned into the electronic fuse of the random access memory 100 to complete the frequency performance detection of the random access memory 100.

[0051] In a further embodiment, after obtaining the first duty cycle adjustment code of the first duty cycle detection circuit 12 when the detection is passed, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is used as the initial value of the duty cycle adjustment when the duty cycle adjustment circuit 11 works normally, so as to complete the duty cycle self-calibration of the duty cycle adjustment circuit 11. For the specific self-calibration method of the second duty cycle detection circuit 20, please refer to the following embodiment, which will not be described in detail here.

[0052] In this embodiment, two duty cycle detection circuits in the random access memory 100 are used to complete the duty cycle calibration detection of the clock transmission link 10 in the random access memory 100, solve the problem of detecting the frequency performance of the random access memory 100, and / or the problem of self-calibration of the duty cycle of the random access memory 100.

[0053] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of the second embodiment of the random access memory provided by the present application. The random access memory 100 comprises: a clock transmission link 10, a second duty cycle detection circuit 20, a clock generation unit 40, a first selection circuit 30 and a logic control circuit 50.

[0054] Among them, the first input end of the first selection circuit 30 is coupled to the external clock input end, and can receive the clock signal PAD_CLK. The second input end of the first selection circuit 30 is coupled to the clock generation unit 40, and can receive the clock signal CLK0. The output end of the first selection circuit 30 is coupled to the input end of the clock transmission link 10.

[0055] The logic control circuit 50 is coupled to the control terminal of the first selection circuit 30 .

[0056] In one application scenario, the logic control circuit 50 controls the output end of the first selection circuit 30 to output the external clock signal as the first clock signal CLK1 in response to the first control instruction.

[0057] In one application scenario, the logic control circuit 50 controls the output end of the first selection circuit 30 to output the first internal clock signal generated by the clock generation unit 40 as the first clock signal CLK1 in response to the second control instruction.

[0058] The clock generating unit 40 can generate a high frequency clock signal, such as a high frequency clock signal of 3200 MHz, 3300 MHz, 3400 MHz or 3500 MHz.

[0059] In this embodiment, taking into account the hardware limitations of the test device, the operating frequency of a single probe of the test device is generally at the 100 MHz level, which cannot meet the high-frequency clock frequency requirements. Therefore, a clock generating unit 40 is set in the random access memory 100 to generate a high-frequency clock signal to complete the detection of the high-frequency performance of the random access memory 100.

[0060] Based on this, when performing low-frequency performance detection, the logic control circuit 50 responds to the first control instruction and controls the output end of the first selection circuit 30 to output the external clock signal as the first clock signal CLK1.

[0061] When performing high frequency performance detection, the logic control circuit 50 responds to the second control instruction and controls the output end of the first selection circuit 30 to output the first internal clock signal generated by the clock generation unit 40 as the first clock signal CLK1.

[0062] Based on this, the duty cycle adjustment circuit 11 in the clock transmission link 10 adjusts the duty cycle of the input first clock signal CLK1 to obtain the second clock signal CLK2. The first duty cycle detection circuit 12 in the clock transmission link 10 performs a first duty cycle detection on the second clock signal CLK2, and feeds back the detection result to the duty cycle adjustment circuit 11. The second duty cycle detection circuit 20 is coupled to the output end of the clock transmission link 10, performs a second duty cycle detection on the second clock signal CLK2, and outputs a detection flag signal F. Among them, the detection accuracy of the second duty cycle detection circuit 20 is higher than the detection accuracy of the first duty cycle detection circuit 12. The detection flag signal indicates whether the duty cycle of the second clock signal CLK2 is detected when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11, and obtains the first duty cycle adjustment code of the first duty cycle detection circuit 12 when the detection is passed.

[0063] In this embodiment, two duty cycle detection circuits in the random access memory 100 are used to complete the duty cycle calibration detection of the clock transmission link 10 in the random access memory 100, thereby solving the problem of detecting the frequency performance of the random access memory 100 and / or the problem of self-calibration of the duty cycle of the random access memory 100. Furthermore, the clock unit is used to provide a high-frequency clock signal, thereby detecting the high-frequency performance of the random access memory 100, solving the problem of the probe hardware limitation of the test device and being unable to provide a high-frequency clock signal.

[0064] See also Figure 3 , Figure 3 The random access memory 100 includes: a clock transmission link 10, a second duty cycle detection circuit 20, a clock generation unit 40, a first selection circuit 30, a logic control circuit 50 and a second selection circuit 60.

[0065] Among them, the first input end of the second selection circuit 60 is coupled to the output end of the clock transmission link 10, the second input end of the second selection circuit 60 is coupled to the clock generation unit 40, and the output end of the second selection circuit 60 is coupled to the second duty cycle detection circuit 20; the logic control circuit 50 is coupled to the control end of the second selection circuit 60.

[0066] Since the second selection circuit 60 is provided, the second selection circuit 60 can be used to select different input terminals to input corresponding clock signals and output them to the second duty cycle detection circuit 20 to achieve corresponding functions.

[0067] In one application scenario, the logic control circuit 50 responds to the third control instruction and controls the output end of the second selection circuit 60 to output the second clock signal CLK2 to the second duty cycle detection circuit 20. The second duty cycle detection circuit 20 can perform a second duty cycle detection on the second clock signal CLK2 and output a detection flag signal F. The detection flag signal indicates whether the duty cycle of the second clock signal CLK2 has passed the detection when the first clock signal CLK1 is used as the input clock of the duty cycle adjustment circuit 11. When the detection passes, the first duty cycle adjustment code of the first duty cycle detection circuit 12 is obtained. At the same time, the detection flag signal F can be used to determine whether the clock transmission link 10 adjusts the duty cycle of the second clock signal CLK2 to the target duty cycle.

[0068] In one application scenario, the logic control circuit 50 controls the output end of the second selection circuit 60 to output the first internal clock signal in response to the fourth control instruction, so that the second duty cycle detection circuit 20 is self-calibrated. It can be understood that before the second duty cycle detection circuit 20 performs detection, the second duty cycle detection circuit 20 needs to be self-calibrated to ensure the accuracy of subsequent detection.

[0069] In one application scenario, combined with Figure 4 To explain:

[0070] Step 102: In response to the third control instruction, the logic control circuit loads the second duty cycle adjustment code into the second duty cycle detection circuit.

[0071] When the logic control circuit 50 receives the third control instruction, it indicates that the second duty cycle detection circuit 20 needs to be used to perform the second duty cycle detection on the second clock signal CLK2. Therefore, the logic control circuit 50 loads the second duty cycle adjustment code into the second duty cycle detection circuit 20, so that the second duty cycle detection circuit 20 uses the second duty cycle adjustment code to perform the second duty cycle detection on the second clock signal CLK2.

[0072] Step 103: In response to the fifth control instruction, the logic control circuit controls the second duty cycle detection circuit to perform a second duty cycle detection on the second clock signal and record a detection flag signal.

[0073] After the logic control circuit 50 loads the second duty cycle adjustment code into the second duty cycle detection circuit 20 , in response to the fifth control instruction, the logic control circuit 50 controls the second duty cycle detection circuit 20 to perform a second duty cycle detection on the second clock signal CLK2 and records the detection flag signal F.

[0074] Step 104: In response to the sixth control instruction, the logic control circuit controls the step adjustment of the first duty cycle adjustment code.

[0075] In some embodiments, when the duty cycle adjustment circuit 11 adjusts the duty cycle of the input first clock signal CLK1, it is not adjusted directly to the right position every time. Therefore, the logic control circuit 50 will correspondingly control the step adjustment of the first duty cycle adjustment code so that the duty cycle adjustment circuit 11 uses the adjusted first duty cycle adjustment code to adjust the duty cycle of the input first clock signal CLK1.

[0076] For example, the duty cycle adjustment circuit 11 uses the first duty cycle adjustment code to adjust the duty cycle of the input first clock signal CLK1 to obtain the second clock signal CLK2. The logic control circuit 50 controls the second duty cycle detection circuit 20 to perform a second duty cycle detection on the second clock signal CLK2, and records the detection flag signal F. If the detection flag signal F does not flip, the first duty cycle adjustment code needs to be adjusted. Therefore, step 104 is executed at this time.

[0077] Step 105: In response to the seventh control instruction, the logic control circuit controls the second duty cycle detection circuit to perform a second duty cycle detection on the second clock signal again, and records the detection flag signal.

[0078] After executing step 104, the first duty cycle adjustment code is adjusted, and the duty cycle adjustment circuit 11 uses the first duty cycle adjustment code after step adjustment to adjust the duty cycle of the input first clock signal CLK1 to obtain the second clock signal CLK2. At this time, step 105 is executed again, so that the logic control circuit 50 controls the second duty cycle detection circuit 20 to perform the second duty cycle detection on the second clock signal CLK2 again, and record the detection flag signal F.

[0079] Step 106: If the detection flag signal is flipped, the first duty cycle adjustment code is obtained and burned into the electronic fuse of the random access memory to complete the frequency performance detection of the random access memory, or used as the initial value of the first duty cycle detection circuit to complete the duty cycle self-calibration of the duty cycle adjustment circuit.

[0080] If the detection flag signal is flipped, it means that the duty cycle of the second clock signal CLK2 adjusted by the duty cycle adjustment circuit 11 using the first duty cycle adjustment code at this time satisfies the frequency performance detection or completes the duty cycle self-calibration of the duty cycle adjustment circuit 11. Therefore, the first duty cycle adjustment code at this time can be obtained and burned into the electronic fuse of the random access memory 100 or the first duty cycle adjustment code at this time is used as the initial value of the first duty cycle detection circuit 12.

[0081] If the detection flag signal does not flip, step 104 is executed.

[0082] The adjustment step of the step-by-step adjustment of the first duty cycle adjustment code is greater than the adjustment step of the second duty cycle detection circuit 20. It can be understood that the larger the adjustment step, the worse the accuracy of the duty cycle adjustment code.

[0083] In some embodiments, when the frequency performance test is performed on the random access memory 100 , the first control instruction to the seventh control instruction are sent by a test device coupled to the random access memory 100 .

[0084] In some embodiments, when the duty cycle self-calibration is performed on the duty cycle adjustment circuit 11 , the first control instruction to the seventh control instruction are sent by the logic control circuit 50 .

[0085] For further information, see Figure 5 , Figure 5 2 is a schematic diagram of the structure of an embodiment of a second duty cycle detection circuit provided by the present application. The second duty cycle detection circuit 20 includes: a first adjustment unit 21, a second adjustment unit 22 and a detection unit 23.

[0086] The first adjustment unit 21 is used for adjusting the second duty cycle of the first internal clock signal CLK0 to obtain the second internal clock signal CLK0 ′.

[0087] The detection unit 23 is used for controlling the first adjustment unit 21 to output the second internal clock signal CLK0 ′ to the second adjustment unit 22 when detecting that the second internal clock signal CLK0 ′ meets a preset requirement.

[0088] The second adjustment unit 22 is used for adjusting the second internal clock signal CLK0' to a third duty cycle to obtain a third internal clock signal CLK0".

[0089] Among them, the adjustment step size of the second duty cycle adjustment is greater than the adjustment step size of the third duty cycle adjustment; the detection unit 23 is used to start the third duty cycle adjustment when it is detected that the third internal clock signal CLK0" meets the first preset requirement, and when it is detected that the third internal clock signal CLK0" meets the second preset requirement, save the current adjustment code of the first adjustment unit 21 and the second adjustment unit 22 as the second duty cycle adjustment code. In some embodiments, the frequency of the first internal clock signal CLK0 can be greater than or equal to the above-mentioned first clock signal CLK1.

[0090] Among them, the starting duty cycle adjustment code of the second adjustment unit 22 is determined according to the duty cycle adjustment code of the first adjustment unit 21 when the third internal clock signal CLK0" meets the first preset requirement. When the detection unit 23 detects that the third internal clock signal CLK0" meets the first preset requirement, it starts the third duty cycle adjustment and uses the previous duty cycle adjustment code corresponding to the current duty cycle adjustment code of the first adjustment unit 21 as the starting duty cycle adjustment code of the second adjustment unit 22. Because the adjustment step of the second duty cycle adjustment is greater than the adjustment step of the third duty cycle adjustment, when the third internal clock signal CLK0" meets the first preset requirement, it has crossed from not meeting the preset requirement to meeting the preset requirement. Therefore, the duty cycle adjustment code corresponding to the optimal duty cycle should be within the range between the current duty cycle adjustment code and the previous duty cycle adjustment code. Then, the previous duty cycle adjustment code corresponding to the current duty cycle adjustment code of the first adjustment unit 21 can be further used as the starting duty cycle adjustment code of the second adjustment unit 22.

[0091] Combination Figure 6 To explain:

[0092] Step 51: Clock generation is enabled.

[0093] Step 52: Initialize the duty cycle adjustment code.

[0094] In some embodiments, the duty cycle adjustment code is initialized to ensure that the initial state of the detection flag signal F output by the detection unit 23 for the first time is 0. When the second duty cycle detection circuit 20 is self-calibrated, 0 indicates that the self-calibration is not completed, and 1 indicates that the self-calibration is completed.

[0095] Step 53: The detection unit outputs the first 0-to-1 transition.

[0096] The duty cycle of the clock signal is adjusted by the first adjustment unit 21, and the adjusted clock signal is detected by the detection unit 23 to output a detection flag signal F. Usually, the detection flag signal F outputted in the first few times is 0. When the output detection flag signal F is 1, it indicates that the first adjustment unit 21 has completed the preliminary calibration of the clock signal.

[0097] Therefore, it is necessary to determine in step 53 whether the detection unit 23 outputs 1 for the first time. If yes, step 54 is executed, and if no, step 55 is executed.

[0098] Step 54: The duty cycle adjustment code of the first adjustment unit is reduced to serve as the initial duty cycle adjustment code of the second adjustment unit.

[0099] It can be understood that, because the adjustment steps of the first adjustment unit 21 and the second adjustment unit 22 are different, the adjustment step of the first adjustment unit 21 is larger than the adjustment step of the second adjustment unit 22. For example, the first adjustment unit 21 only needs one time to adjust the duty cycle of the clock signal from 45% to 55%, while the second adjustment unit 22 only needs 10 times to adjust the duty cycle of the clock signal from 45% to 55%. That is, the first adjustment unit 21 is a coarse adjustment, and the second adjustment unit 22 is a fine adjustment.

[0100] After the first adjustment unit 21 is adjusted, the detection flag signal F corresponding to the current duty cycle adjustment code is 1, indicating that the detection flag signal F corresponding to the previous duty cycle adjustment code is 0, so the current duty cycle adjustment code of the first adjustment unit 21 is reduced to determine the previous duty cycle adjustment code. The previous duty cycle adjustment code of the first adjustment unit 21 is used as the initial duty cycle adjustment code of the second adjustment unit 22. The specific increase or decrease amplitude is determined according to the adjustment step size of the corresponding adjustment unit, such as increasing by 1 each time and decreasing by 1 each time.

[0101] Step 55: The duty cycle adjustment code of the first adjustment unit is increased.

[0102] If it is determined that the detection unit 23 does not output 1, the duty cycle adjustment code of the first adjustment unit continues to be adjusted, and the duty cycle of the clock signal is adjusted using the adjusted duty cycle adjustment code.

[0103] Step 56: The duty cycle adjustment code of the second adjustment unit is increased.

[0104] After the initial duty cycle adjustment code of the second adjustment unit 22 is determined, the initial duty cycle adjustment code is adjusted according to the adjustment step of the second adjustment unit 22, and then the duty cycle of the clock signal is adjusted using the adjusted duty cycle adjustment code.

[0105] Step 57: The detection unit outputs the second 0-to-1 transition.

[0106] After the second adjustment unit 22 adjusts the duty cycle of the clock signal, the detection unit 23 detects the adjusted clock signal and outputs a detection flag signal F. Usually, the detection flag signal F outputted in the first few times is 0. When the output detection flag signal F is 1, it indicates that the second adjustment unit 22 has finally completed the calibration of the clock signal.

[0107] Therefore, it is necessary to determine in step 57 whether the detection unit 23 outputs 1 for the second time. If yes, execute step 59, if not, execute step 56 to continue adjusting the duty cycle adjustment code of the second adjustment unit 22 and adjust the duty cycle of the clock signal.

[0108] Step 58: Detection unit detection.

[0109] The detection unit 23 detects the clock signal after the duty cycle is adjusted, and makes a corresponding judgment according to the output detection flag signal F.

[0110] For example, when the first adjustment unit 21 performs duty cycle adjustment, the detection unit 23 outputs the detection flag signal F and then executes step 53 ; when the second adjustment unit 22 performs duty cycle adjustment, the detection unit 23 outputs the detection flag signal F and then executes step 57 .

[0111] Step 59: Save the current duty cycle adjustment code.

[0112] When the detection unit 23 outputs the second output 1, it indicates that the second adjustment unit 22 has adjusted the duty cycle of the clock signal to the target state.

[0113] In an application scenario, the initialization duty cycle adjustment code is set to ensure that the initial output state of the detection unit 23 is determined to be 0. Among them, the output of 0 represents that the duty cycle is less than 50%, and the output of 1 represents that the duty cycle is greater than 50%.

[0114] Since the second adjustment unit 22 is fine-tuned, when the clock signal adjusted by the second adjustment unit 22 is detected by the detection unit 23, it outputs 1, which means that the current duty cycle adjustment code can better identify the clock signal with a duty cycle of 50%. If the duty cycle is 50%, then after the adjustment of the current duty cycle adjustment code, the detection unit 23 will definitely output 1 after detection.

[0115] In some embodiments, when the frequency performance test is performed on the random access memory 100 , the first control instruction to the seventh control instruction are sent by a test device coupled to the random access memory 100 .

[0116] In some embodiments, when the duty cycle self-calibration is performed on the duty cycle adjustment circuit 11 , the first control instruction to the seventh control instruction are sent by the logic control circuit 50 .

[0117] See also Figure 7 , Figure 7 The clock transmission link 10 includes a duty cycle adjustment circuit 11 , a delay circuit 13 , a phase detection circuit 14 , a controller 15 and a first duty cycle detection circuit 12 .

[0118] The duty cycle adjustment circuit 11 receives the first clock signal CLK1 and performs a first duty cycle adjustment on the first clock signal CLK1 to obtain the second clock signal CLK2 .

[0119] The delay circuit 13 is coupled to the duty cycle adjustment circuit 11 and is used for delaying the second clock signal CLK2 and then outputting the delayed signal.

[0120] The phase detector circuit 14 is coupled to the duty cycle adjustment circuit 11 and the delay circuit 13 , and is used for comparing the first clock signal CLK1 with the delayed second clock signal CLK2 ′.

[0121] The controller 15 is respectively coupled to the duty cycle adjustment circuit 11, the delay circuit 13, the phase detector circuit 14 and the first duty cycle detection circuit 12, and is used to adjust the first duty cycle adjustment code of the duty cycle adjustment circuit 11 and the delay of the delay circuit 13 according to the detection result of the first duty cycle detection circuit 12 and the detection result of the phase detector circuit 14. Specifically, the controller 15 receives an external signal sent by the random access memory 100 coupled to the test device and completes the decoding of the instruction, and controls the state switching of the circuit inside the random access memory 100. Alternatively, the controller 15 receives an internal signal sent by the state machine in the random access memory 100 and completes the decoding of the instruction, and controls the state switching of the circuit inside the random access memory 100.

[0122] The duty cycle adjustment circuit 11, the delay circuit 13, the phase detection circuit 14, the controller 15 and the first duty cycle detection circuit 12 cooperate to complete the duty cycle adjustment of the clock signal.

[0123] In some embodiments, when the random access memory 100 performs duty cycle self-calibration, it is implemented by setting a state machine in the random access memory 100. The state machine is coupled to the output end of the second duty cycle detection circuit 20 and the controller 15. After the random access memory 100 is powered on, the state machine sends a first duty cycle adjustment code to the controller 15 as the initial value of the duty cycle adjustment when the first duty cycle detection circuit 12 works normally. Further, the state machine determines whether to send a corresponding control instruction to the controller 15 according to the detection flag signal F output by the output end of the second duty cycle detection circuit 20. For example, the initial detection flag signal F is 0. When the state machine receives the detection flag signal F of 0, the corresponding control instruction is sent to the controller 15 so that the controller 15 adjusts the first duty cycle adjustment code and uses the adjusted first duty cycle adjustment code to adjust the duty cycle again. When the state machine receives the detection flag signal F of 1, it means that the random access memory 100 has completed the duty cycle self-calibration. Among them, the duty cycle self-calibration can be the duty cycle self-calibration of the duty cycle adjustment circuit 11.

[0124] For further information, see Figure 8 , Figure 8 The clock transmission link 10 includes: a duty cycle adjustment circuit 11, a delay circuit 13, a phase detection circuit 14, a controller 15, a first duty cycle detection circuit 12, a clock buffer circuit 16 and an output buffer 17.

[0125] The duty cycle adjustment circuit 11 receives the first clock signal CLK1 and performs a first duty cycle adjustment on the first clock signal CLK1 to obtain the second clock signal CLK2 .

[0126] The delay circuit 13 is used for delaying the second clock signal CLK2 and then outputting it.

[0127] The phase detector circuit 14 is used for comparing the first clock signal CLK1 with the delayed second clock signal CLK2 ′.

[0128] The clock buffer circuit 16 is coupled to the delay circuit 13 , and outputs the delayed second clock signal CLK2 ′ to the first duty cycle detection circuit 12 .

[0129] The output buffer 17 is coupled to the clock buffer circuit 16, caches the delayed second clock signal CLK2′ input by the clock buffer circuit 16, and outputs the cached delayed second clock signal CLK2′ to the second duty cycle detection circuit 20, and the second duty cycle detection circuit 20 is used to perform detection to determine whether the clock transmission link 10 adjusts the clock signal to the target duty cycle.

[0130] The duty cycle adjustment of the clock signal is completed through the cooperation of the duty cycle adjustment circuit 11, the delay circuit 13, the phase detection circuit 14, the controller 15, the first duty cycle detection circuit 12, the clock buffer circuit 16 and the output buffer 17.

[0131] See also Fig. 9 , Fig. 9 2 is a schematic diagram of a structure of an embodiment of a test device provided by the present application. The test device 200 is coupled to a random access memory 100, and the random access memory 100 is the random access memory 100 provided by the above technical solution.

[0132] The test device 200 sends a control instruction to the random access memory 100 so that the random access memory 100 outputs a corresponding detection flag signal F. The test device 200 can determine whether the random access memory 100 meets the frequency performance requirement according to the detection flag signal F.

[0133] Combination Fig.10 To explain:

[0134] After the test device 200 and the random access memory 100 are coupled, the corresponding PAD_CMD instruction and PAD_AD instruction are first sent to perform self-calibration on the second duty cycle detection circuit 20. For specific self-calibration, please refer to the corresponding implementation manner above, which will not be described in detail here.

[0135] After the test device 200 detects that the self-calibration of the second duty cycle detection circuit 20 is completed, the input clock of the second duty cycle detection circuit 20 is switched to the clock signal (ie, DQS / DQS#) output by the output buffer 17 .

[0136] The input clock signal of the clock transmission link 10 is the clock signal generated by the clock generation unit 40. The first selection circuit 30 here switches through the control instruction sent by the test device 200, and then selects the clock signal generated by the clock generation unit 40 to be input to the clock transmission link 10.

[0137] The second duty cycle detection circuit 20 is enabled and the duty cycle adjustment code after self-calibration of the second duty cycle detection circuit 20 is sent to the first duty cycle detection circuit 12, so that the first duty cycle detection circuit 12 performs duty cycle detection using the duty cycle adjustment code.

[0138] The test device 200 sends a PAD_CMD instruction to enable the clock transmission link 10 .

[0139] After waiting for a preset time period, the output state of the second duty cycle detection circuit 20 is read through the pin PAD_DQ, and the current state is recorded. The PAD_DQ signal output by the pin PAD_DQ can be used as the detection flag signal F mentioned above.

[0140] The clock transmission link 10 is reset, and the test device 200 sends a new PAD_CMD instruction to change the duty cycle adjustment code of the first duty cycle detection circuit 12 in the clock transmission link 10. Since the initial state is assumed to be 0, the duty cycle adjustment code of the first duty cycle detection circuit 12 here increases. If the initial state is 1, the duty cycle adjustment code of the first duty cycle detection circuit 12 here decreases. Among them, the duty cycle adjustment code increases in order to widen the duty cycle in the clock transmission link 10, and the initial state of 0 is only for example. On the contrary, if the initial state is 1, the duty cycle adjustment code decreases in order to narrow the duty cycle in the clock transmission link 10.

[0141] The test device 200 sends a new PAD_CMD instruction to enable the clock transmission link 10 .

[0142] Wait for a preset time period, read the detection flag signal F output by the second duty cycle detection circuit 20 through the pin PAD_DQ, and record the current state. The purpose of waiting for the preset time period is to stabilize the output of the clock transmission link 10.

[0143] For example, if the initial state is 0 and the current state is also 0, the above process is repeated to adjust the duty cycle adjustment code of the first duty cycle detection circuit 12; if the current state is 1, the current state is recorded as the final duty cycle adjustment result. When the current state is 1, it means that the duty cycle of the clock signal output by the pin DQS / DQS# has reached the target duty cycle. For example, the target duty cycle is 50%.

[0144] For example, if the initial state is 1 and the current state is also 1, the above process is repeated to adjust the duty cycle adjustment code of the first duty cycle detection circuit 12; if the current state is 0, the current state is recorded as the final duty cycle adjustment result. When the current state is 0, it means that the duty cycle of the clock signal output by the pin DQS / DQS# has reached the target duty cycle. For example, the target duty cycle is 50%.

[0145] The final duty cycle adjustment result, that is, the duty cycle adjustment code of the first duty cycle detection circuit 12 when the first clock signal CLK1 is adjusted to a clock signal with a duty cycle of 50%, is written into the electronic fuse efuse.

[0146] It can be understood that when the clock transmission link 10 is actually working, the frequency of the external input PAD_clk may be lower than 3233, but the duty cycle error is tolerable at a low frequency.

[0147] If the final duty cycle adjustment result indicates that the random access memory 100 does not meet the frequency performance requirement, the random access memory 100 may be marked as being unable to implement the corresponding frequency function.

[0148] The above process may be performed when the random access memory 100 is still a wafer or a packaged wafer, such as a CP test or a FT test.

[0149] Furthermore, the clock transmission link 10 may be a series of links such as DLL that can perform clock adjustment.

[0150] In combination with the beneficial effects of the above embodiments, the two duty cycle detection circuits in the random access memory 100 are used to complete the duty cycle calibration detection of the clock transmission link 10 in the random access memory 100, thereby solving the problem of detecting the frequency performance of the random access memory 100 and / or the problem of self-calibration of the duty cycle in the random access memory 100. Furthermore, the clock unit is used to provide a high-frequency clock signal, thereby detecting the high-frequency performance of the random access memory 100, solving the problem of the probe hardware limitation of the test device 200 and the inability to provide a high-frequency clock signal.

[0151] When the embodiments of the present application are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0152] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made according to the description and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A random access memory, characterized in that: The random access memory comprises: A clock transmission link, the clock transmission link comprising a duty cycle adjustment circuit and a first duty cycle detection circuit; wherein the duty cycle adjustment circuit is used to perform duty cycle adjustment on an input first clock signal to obtain a second clock signal; the first duty cycle detection circuit is used to perform a first duty cycle detection on the second clock signal and feed back the detection result to the duty cycle adjustment circuit; A second duty cycle detection circuit is coupled to the output end of the clock transmission link, performs a second duty cycle detection on the second clock signal, and outputs a detection flag signal, wherein the detection accuracy of the second duty cycle detection circuit is higher than the detection accuracy of the first duty cycle detection circuit, and the detection flag signal indicates whether the duty cycle of the second clock signal passes the detection when the first clock signal is used as the input clock of the duty cycle adjustment circuit, and obtains the first duty cycle adjustment code of the first duty cycle detection circuit when the detection passes.

2. The random access memory according to claim 1, characterized in that: Before performing the second duty cycle detection on the second clock signal, the second duty cycle detection circuit first adjusts and detects the duty cycle of the first clock signal, and saves the second duty cycle adjustment code of the second duty cycle detection circuit when the detection passes, so as to complete the self-calibration of the second duty cycle detection circuit.

3. The random access memory according to claim 1, characterized in that: The first duty cycle adjustment code of the first duty cycle detection circuit is burned into the electronic fuse of the random access memory to complete the frequency performance detection of the random access memory, or serves as the initial value of the duty cycle adjustment when the duty cycle adjustment circuit works normally to complete the duty cycle self-calibration of the duty cycle of the duty cycle adjustment circuit.

4. The random access memory according to claim 1, characterized in that: The random access memory further comprises: Clock generation unit; a first selection circuit, wherein a first input terminal of the first selection circuit is coupled to an external clock input terminal, a second input terminal of the first selection circuit is coupled to the clock generation unit, and an output terminal of the first selection circuit is coupled to an input terminal of the clock transmission link; A logic control circuit is coupled to the control end of the first selection circuit, and in response to a first control instruction, controls the output end of the first selection circuit to output an external clock signal as the first clock signal; or in response to a second control instruction, controls the output end of the first selection circuit to output a first internal clock signal generated by the clock generation unit as the first clock signal.

5. The random access memory according to claim 2, characterized in that: The random access memory further comprises: a second selection circuit, wherein a first input terminal of the second selection circuit is coupled to an output terminal of the clock transmission link, a second input terminal of the second selection circuit is coupled to the clock generation unit, and an output terminal of the second selection circuit is coupled to the second duty cycle detection circuit; The logic control circuit is coupled to the control end of the second selection circuit, and in response to a third control instruction, controls the output end of the second selection circuit to output the second clock signal; or in response to a fourth control instruction, controls the output end of the second selection circuit to output the first internal clock signal, so that the second duty cycle detection circuit can self-calibrate.

6. The random access memory according to claim 5, characterized in that: The second duty cycle detection circuit comprises: a first adjustment unit, a second adjustment unit and a detection unit; The first adjustment unit is used to adjust the first internal clock signal to a second duty cycle to obtain a second internal clock signal; The second adjustment unit is used to adjust the second internal clock signal to a third duty cycle to obtain a third internal clock signal; wherein an adjustment step length of the second duty cycle adjustment is greater than an adjustment step length of the third duty cycle adjustment; The detection unit is used to start the third duty cycle adjustment when it is detected that the third internal clock signal meets the first preset requirement, and to save the current adjustment codes of the first adjustment unit and the second adjustment unit as the second duty cycle adjustment code when it is detected that the third internal clock signal meets the second preset requirement.

7. The random access memory according to claim 6, characterized in that: The starting duty cycle adjustment code of the second adjustment unit is determined according to the duty cycle adjustment code of the first adjustment unit when the third internal clock signal meets the first preset requirement.

8. The random access memory according to claim 5, characterized in that: In response to the third control instruction, the logic control circuit loads the second duty cycle adjustment code into the second duty cycle detection circuit; In response to a fifth control instruction, the logic control circuit controls the second duty cycle detection circuit to perform the second duty cycle detection on the second clock signal and record the detection flag signal; in response to a sixth control instruction, the logic control circuit controls the step adjustment of the first duty cycle adjustment code; In response to the seventh control instruction, the logic control circuit controls the second duty cycle detection circuit to perform the second duty cycle detection on the second clock signal again, and records the detection flag signal. If the detection flag signal is flipped, the first duty cycle adjustment code at this time is obtained and burned into the electronic fuse of the random access memory to complete the frequency performance detection of the random access memory, or used as the initial value of the duty cycle adjustment circuit to complete the duty cycle self-calibration of the duty cycle adjustment circuit.

9. The random access memory according to claim 8, characterized in that: The adjustment step size of the step-by-step adjustment of the first duty cycle adjustment code is greater than the adjustment step size of the second duty cycle detection circuit.

10. The random access memory according to claim 8, characterized in that: When the frequency performance test is performed on the random access memory, the first control instruction to the seventh control instruction are sent by a test device coupled to the random access memory; or When the duty cycle self-calibration is performed on the duty cycle adjustment circuit, the first control instruction to the seventh control instruction are sent by the logic control circuit.

11. The random access memory according to claim 1, characterized in that: The clock transmission link further comprises: A delay circuit, coupled to the duty cycle adjustment circuit, configured to delay the second clock signal and then output it; a phase detector circuit, coupled to the duty cycle adjustment circuit and the delay circuit, and configured to compare the first clock signal with the delayed second clock signal; A controller, wherein the controller is respectively coupled to the duty cycle adjustment circuit, the delay circuit, the phase detection circuit and the first duty cycle detection circuit, and is used to adjust the first duty cycle adjustment code of the first duty cycle detection circuit and the delay of the delay circuit according to the detection result of the first duty cycle detection circuit and the detection result of the phase detection circuit.

12. The random access memory according to claim 11, characterized in that: The clock transmission link further comprises: The clock buffer circuit is coupled to the delay circuit and outputs the delayed second clock signal to the first duty cycle detection circuit.

13. The random access memory according to claim 12, characterized in that: The clock transmission link further comprises: An output buffer is coupled to the clock buffer circuit, caches the delayed second clock signal input from the clock buffer circuit, and outputs the cached delayed second clock signal to the second duty cycle detection circuit.

14. A testing device, characterized in that: A random access memory as claimed in any one of claims 1 to 13 and a testing device coupled to the random access memory; Wherein, the testing device sends a detection instruction to the random access memory so that the random access memory outputs a corresponding detection flag signal.

Citation Information

Patent Citations

  • Apparatus and method for correcting duty cycle of clock signal

    CN102055436A

  • Delay-locked loop circuits, semiconductor memory devices and methods of operating delay-locked loop circuits

    CN110827872A

  • High-frequency clock duty ratio calibration circuit, calibration method and memory

    CN111161771A

  • Duty cycle detector self-testing

    CN113810027A

  • Single-ended clock to differential circuit with adjustable duty ratio

    CN115576884A