A digital delay phase-locked loop and locking method thereof

By adopting an open loop structure and a digital delayed phase-locking loop design in the delayed phase-locking loop, loop stability problems and design complexity in the prior art are solved, and a delayed phase-locking loop with high resolution and variable phase is achieved. Suitable for high-precision data transmission.

CN111049518BActive Publication Date: 2024-11-29XIAN INTELLIGENCE SILICON TECH INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201911398718.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-30
Publication Date
2024-11-29
Estimated Expiration
2039-12-30

AI Technical Summary

Technical Problem

The existing delayed phase-locked loops have loop stability problems, are complex in design and are noisy, making it difficult to accurately transmit data at lower clock frequency.

Method used

The digital delay phase-locked loop adopts an open-loop structure, including a ring oscillation module, a frequency division module, a clock synchronization module, a delay chain code generation module and a delay chain unit, and a predetermined phase difference with the reference clock is generated through frequency division and clock synchronization processing. Output clock signal.

Benefits of technology

It realizes rapid improvement of phase difference resolution under open-loop structure, simplifies design, eliminates loop stability issues, and provides variable phase functions for higher-level requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111049518B_ABST
    Figure CN111049518B_ABST
Patent Text Reader

Abstract

This invention discloses a digital delay-locked loop (DLL) and its locking method. The DLL includes a ring oscillation module, a frequency division module, a clock synchronization module, a delay chain code generation module, and a delay chain unit. The ring oscillation module generates a counting clock; the frequency division module divides the input reference clock and the counting clock, outputting a divided counting clock and a divided reference clock; the clock synchronization module synchronizes the divided counting clock and the divided reference clock, outputting a synchronized counting clock and a synchronized reference clock; the delay chain code generation module generates a delay chain control signal; and the delay chain unit generates an output clock signal with a predetermined phase difference from the reference clock based on the delay chain control signal. This digital DLL can rapidly improve the phase difference resolution by increasing the bit width of the control delay chain code to meet higher-level requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of delay phase locked loops, and in particular relates to a digital delay phase locked loop and a locking method thereof. Background Art

[0002] As the amount of data transmission increases, the requirements for synchronous clock frequency are getting higher and higher. In order to transmit more data at a lower clock frequency, the design begins to use the dual edges of the clock (rising edge and falling edge) to collect data. At the same clock frequency, it can transmit twice as much data as using a single edge (rising edge or falling edge). At the receiving end, in order to accurately recover the data, the clock needs to be accurately delayed by a certain value (such as 1 / 4 cycle), and the duty cycle of the clock is basically unchanged.

[0003] The FPGA chip has built-in DDR (Double Data Rate Synchronous Dynamic Random Access Memory) chip support. The DDR protocol requires a clock that is 90° out of phase with the reference clock. A delay locked loop (DLL) circuit is usually used to generate a clock that is 90° out of phase with the reference clock for DDR applications. Figure 1 The structure of a typical delay-locked loop is shown, including a phase detector, a charge pump, a loop filter, a bias generator (Bias Generator) and a voltage-controlled delay line (VCDL). The phase detector determines the phase of the source clock signal SCLK and the delayed clock signal FCLK, and outputs the corresponding control signals UP and DN for the charge pump, which are converted into current by the charge pump. Under the control of the control signals UP and DN, the charge pump charges or discharges the loop filter to obtain the control voltage Vctr of the voltage-controlled delay line, and generates bias voltages VBP and VBN through the bias generator and inputs them into the voltage-controlled delay line. The bias voltages VBP and VBN generated by the bias generator control the voltage-controlled delay line to generate delay, so that the clock duty cycle remains basically unchanged.

[0004] Due to the closed-loop structure, the delay phase-locked loop has loop stability problems and is relatively complex to design. Although the clock can be accurately located, the shift register is always in dynamic adjustment, and the number of delay units in the voltage-controlled delay line is frequently adjusted, which requires a large and complex state machine and also brings a lot of noise. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention provides a digital delay phase-locked loop and a locking method thereof. The technical problem to be solved by the present invention is achieved by the following technical solutions:

[0006] One aspect of the present invention provides a digital delay phase-locked loop, comprising a ring oscillation module, a frequency division module, a clock synchronization module, a delay chain code generation module and a delay chain unit, wherein:

[0007] The ring oscillation module is used to generate a counting clock;

[0008] The frequency division module is connected to the ring oscillation module and inputs a reference clock, and is used to perform frequency division processing on the reference clock and the counting clock respectively, and output a divided counting clock and a divided reference clock;

[0009] The clock synchronization module is connected to the frequency division module, and is used to perform clock synchronization processing on the frequency division counting clock and the frequency division reference clock, and output a synchronous counting clock and a synchronous reference clock;

[0010] The delay chain code generation module is connected to the clock synchronization module, and is used to count the synchronization reference clock through the synchronization counting clock, and generate a delay chain control signal according to the count value;

[0011] The delay chain unit is connected to the delay chain code generation module, and is used to generate an output clock signal having a predetermined phase difference with the reference clock according to the delay chain control signal.

[0012] In one embodiment of the present invention, the frequency division module includes a first frequency divider and a second frequency divider, wherein the first frequency divider is used to divide the reference clock by two n1 The input end of the second frequency divider is connected to the output end of the ring oscillation module, and is used to perform 2-division processing on the counting clock. n2 The frequency division process is performed once, and the divided counting clock is output, and n1>>n2.

[0013] In one embodiment of the present invention, the delay chain code generation module includes a counting unit, an approximate filtering code generation unit, a code generation unit and a control signal generation unit, wherein:

[0014] The counting unit is connected to the clock synchronization module, and is used for counting the synchronous reference clock using the synchronous counting clock when the synchronous reference clock is at a high level, so as to obtain the number of binary cycles of the synchronous reference clock relative to the synchronous counting clock;

[0015] The approximate filtering code generating unit is connected to the counting unit and is used to receive a part of the bit width of the binary period number for processing and generate a binary carry signal;

[0016] The code generating unit is connected to the counting unit and the approximate filtering code generating unit, and is used to generate a binary delay chain code according to the binary cycle number and the binary carry signal;

[0017] The control signal generating unit is connected to the code generating unit and the delay chain unit, and is used for generating a delay chain control signal according to the binary delay chain code.

[0018] In one embodiment of the present invention, the digital delay phase-locked loop also includes a state machine module, which is respectively connected to the counting unit, the approximate filter code generation unit and the code generation unit. The state machine module is used to control the approximate filter code generation unit to generate a carry signal after the counting unit finishes counting, and is used to generate an update signal according to the binary cycle number and the binary carry signal to control the code generation unit to generate and update the binary delay chain code.

[0019] In one embodiment of the present invention, the digital delay phase-locked loop further includes a fine-tuning module, which is connected to the code generating unit and is used to generate a phase fine-tuning signal according to user settings to adjust the accuracy of the generated binary delay chain code.

[0020] Another aspect of the present invention provides a locking method of a digital delay phase-locked loop, comprising:

[0021] A ring oscillator is used to generate a counting clock;

[0022] Performing frequency division processing on the input reference clock and the counting clock respectively, outputting a frequency-divided counting clock and a frequency-divided reference clock, wherein the period of the frequency-divided counting clock is much smaller than the period of the frequency-divided reference clock;

[0023] Performing clock synchronization processing on the frequency-divided counting clock and the frequency-divided reference clock, and outputting a synchronous counting clock and a synchronous reference clock;

[0024] Counting the synchronous reference clock by means of the synchronous counting clock, and generating a delay chain control signal according to the count value;

[0025] An output clock signal having a predetermined phase difference with the reference clock is generated according to the delay chain control signal.

[0026] In one embodiment of the present invention, the input reference clock and the counting clock are frequency-divided respectively, and the divided counting clock and the divided reference clock are output, and the period of the divided counting clock is much smaller than the period of the divided reference clock, including:

[0027] The reference clock is 2 n1 Sub-frequency division processing, outputting the frequency division counting clock;

[0028] The counting clock is respectively performed 2 n2 The frequency division process is performed once to output a frequency division counting clock, wherein n1>>n2, so that the period of the frequency division counting clock is much smaller than the period of the frequency division reference clock.

[0029] In one embodiment of the present invention, counting the synchronous reference clock by the synchronous counting clock and generating a delay chain control signal according to the count value includes:

[0030] When the synchronous reference clock is at a high level, the synchronous reference clock is counted by using the synchronous counting clock to obtain the number of binary cycles of the synchronous reference clock relative to the synchronous counting clock;

[0031] intercepting a portion of the bit width of the binary period number for processing to generate a binary carry signal;

[0032] For generating a binary delay chain code according to the binary cycle number and the binary carry signal;

[0033] A delay chain control signal is generated according to the binary delay chain code.

[0034] In one embodiment of the present invention, intercepting a portion of the bit width of the binary period number for processing to generate a binary carry signal includes:

[0035] intercepting part of the bit width data of the synchronous counting clock cycle number;

[0036] Determine the size of the partial bit width data and a preset threshold;

[0037] According to the judgment result, when the partial bit width data is greater than the preset threshold, the generated carry signal is 1, and when the partial bit width data is not greater than the preset threshold, the generated carry signal is 0.

[0038] In one embodiment of the present invention, the method for generating a binary delay chain code according to the binary cycle number and the binary carry signal includes:

[0039] The binary cycle number is added to the binary carry signal to form a binary delay chain code.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] 1. The digital delay phase-locked loop and locking method of the present invention adopt an open-loop structure, and there is no problem of loop stability. The resolution of the phase difference can be quickly improved by increasing the bit width of the control delay chain code to meet higher-level requirements, and the structure is simple.

[0042] 2. Compared with the traditional 90° delay phase-locked loop circuit, the digital delay phase-locked loop of the present invention can provide a variable phase function, and the variable phase is set by the phase fine tuning register fine_tune.

[0043] 3. In the digital delay locked loop solution of the present invention, because what is needed is the ratio of the number of clock cycles, there is no need to make the delay value of the inverter very precise, thereby effectively eliminating the impact of manufacturing process deviation on the accuracy of the product during large-scale mass production.

[0044] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a typical structural diagram of a delay phase-locked loop in the prior art;

[0046] Figure 2 It is a module diagram of a digital delay phase-locked loop provided by an embodiment of the present invention;

[0047] Figure 3 is a specific structural diagram of a digital delay phase-locked loop provided by an embodiment of the present invention;

[0048] Figure 4 It is a flow chart of a locking method of a digital delay phase-locked loop provided by an embodiment of the present invention;

[0049] Figure 5 It is a schematic diagram of the generation principle of a binary delay chain code provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, a digital delay phase-locked loop and a locking method thereof proposed according to the present invention are described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0051] The above and other technical contents, features and effects of the present invention are clearly presented in the following detailed description of the specific implementation modes in conjunction with the accompanying drawings. Through the description of the specific implementation modes, the technical means and effects adopted by the present invention to achieve the predetermined purpose can be more deeply and specifically understood. However, the attached drawings are only for reference and explanation purposes and are not used to limit the technical solutions of the present invention.

[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants are intended to cover non-exclusive inclusion, so that an article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. In the absence of more restrictions, the elements defined by the statement "including one..." do not exclude the existence of other identical elements in the article or device including the elements.

[0053] Embodiment 1

[0054] See also Figure 2 , Figure 2 It is a module diagram of a digital delay phase-locked loop provided by an embodiment of the present invention. The digital delay phase-locked loop of this embodiment includes a ring oscillation module 101, a frequency division module 102, a clock synchronization module 103, a delay chain code generation module 104 and a delay chain unit 105, wherein the ring oscillation module 101 is used to generate a counting clock; the frequency division module 102 is connected to the ring oscillation module 101 and inputs a reference clock, and is used to perform frequency division processing on the reference clock and the counting clock respectively, and output a divided counting clock and a divided reference clock; the clock synchronization module 103 is connected to the frequency division module 102, and is used to perform clock synchronization processing on the divided counting clock and the divided reference clock, and output a synchronized counting clock and a synchronized reference clock; the delay chain code generation module 104 is connected to the clock synchronization module 103, and is used to count the synchronized reference clock through the synchronized counting clock, and generate a delay chain control signal according to the count value; the delay chain unit 105 is connected to the delay chain code generation module 104, and is used to generate an output clock signal having a predetermined phase difference with the reference clock according to the delay chain control signal.

[0055] The digital delay latch of this embodiment uses an open-loop structure and does not require an analog phase detector circuit. It can achieve a 90° phase difference between the output clock and the input clock. At the same time, the phase difference can be accurate to a step size of 14°. The resolution of the delay latch can be improved by increasing the bit width of the control code, thereby meeting the demand for higher-precision phase difference.

[0056] In this embodiment, the ring oscillator module 101 includes a plurality of inverters connected end to end, and the delay chain unit 105 includes a plurality of inverters connected in sequence. In this embodiment, the number of inverters in the ring oscillator module 101 is greater than the number of inverters in the delay chain unit 105. It should be noted that the specific principle of the ring oscillator module generating a clock signal and the working principle of the delay chain unit generating a clock signal with a specified phase difference are well known in the art and will not be described in detail here.

[0057] For further information, see Figure 3 , Figure 3 1 is a specific structural diagram of a digital delay phase-locked loop provided by an embodiment of the present invention. The frequency division module 102 includes a first frequency divider 1021 and a second frequency divider 1022, wherein the first frequency divider 1021 is used to divide the reference clock by 2 n1 The input end of the second frequency divider 1022 is connected to the output end of the ring oscillation module 101, and is used to perform 2 division on the counting clock. n2 After the frequency division process, the divided counting clock is output, and n1>>n2.

[0058] Furthermore, the delay chain code generation module 104 includes a counting unit 1041, an approximate filtering code generation unit 1042, a code generation unit 1043 and a control signal generation unit 1044, wherein the counting unit 1041 is connected to the clock synchronization module 103, and is used to count the synchronous reference clock using the synchronous counting clock when the synchronous reference clock is at a high level, so as to obtain the binary cycle number of the synchronous reference clock relative to the synchronous counting clock; the approximate filtering code generation unit 1042 is connected to the counting unit 1041, and is used to receive a partial bit width of the binary cycle number for processing, and generate a binary carry signal; the code generation unit 1043 is connected to the counting unit 1041 and the approximate filtering code generation unit 1042, and is used to generate a binary delay chain code according to the binary cycle number and the binary carry signal; the control signal generation unit 1044 is connected to the code generation unit 1043 and the delay chain unit 105, and is used to generate a delay chain control signal according to the binary delay chain code.

[0059] Furthermore, the digital delay phase-locked loop also includes a state machine module 106, which is respectively connected to the counting unit 1041, the approximate filter code generation unit 1042 and the code generation unit 1043. The state machine module 106 is used to control the approximate filter code generation unit 1042 to generate a carry signal after the counting unit 1041 finishes counting, and is used to generate an update signal according to the binary cycle number and the binary carry signal to control the code generation unit 1043 to generate and update the binary delay chain code.

[0060] For details, please refer to Figure 3 In the actual operation process, the reference clock clk_ref and the counting clock clk_osc output by the ring oscillation module 101 are respectively divided by the frequency dividing circuit. Specifically, the reference clock clk_ref is divided by 2 in the first frequency divider 1021. n1 The frequency division process is performed twice to form a divided reference clock, and the counting clock clk_osc is 2 times divided in the second frequency divider 1022. n2The frequency is divided by 2 times to form a divided counting clock, where n1>>n2, so that the period of the divided counting clock is much smaller than the period of the divided reference clock; then, the two clock signals after the frequency division process are processed by clock synchronization to generate a synchronous counting clock ck_osc and a synchronous reference clock ck_ref, where the synchronous counting clock ck_osc and the synchronous reference clock ck_ref are co-edge clocks, that is, they have the same rising edge at the beginning. n1 Much larger than the division factor 2 of the counting clock clk_osc n2 , so the period of the synchronous reference clock ck_ref is much larger than the period of the synchronous counting clock ck_osc. At this time, whenever the synchronous reference clock ck_ref is at a high level, the synchronous counting clock ck_osc is used to count, and the binary period number of half a period of ck_ref relative to ck_osc is obtained, which is recorded as counter[n3:0]; then, the generated binary period number counter[n3:0] intercepts part of the bit width counter[n4:0] (n3>n4) and sends it to the approximate filtering code generation unit 1042, and the approximate filtering code generation unit 1042 processes the intercepted part of the bit width data counter[n4:0], that is, determines the part of the bit width number According to the size of the partial bit width data and the preset threshold, according to the judgment result, when the partial bit width data is greater than the preset threshold, the generated carry signal carry is 1, and when the partial bit width data is not greater than the preset threshold, the generated carry signal carry is 0; then the value of the carry signal carry is added to the value of the binary cycle number counter[n3:0] generated in the counting unit, and the result is processed in the code generating unit to generate a binary delay chain code counter[n5:0] as the final delay chain code, and then a delay chain control signal is generated according to the delay chain code to control the number of inverters connected in series in the delay circuit to generate an output clock signal having a predetermined phase difference with the reference clock.

[0061] Furthermore, in order to ensure that the count value during the counting process does not affect the number of inverters included in the delay chain unit 105, the state machine module 106 controls the approximate filter code generation unit 1042 to generate a carry signal after the counting unit 1041 finishes counting, and is used to generate an update signal based on the binary cycle number and the carry signal to control the code generation unit 1043 to generate and update the binary delay chain code, so as to change the number of inverters added to the delay chain and ultimately generate the desired phase difference.

[0062] In addition, the digital delay phase-locked loop also includes a fine-tuning module (not shown in the drawings), which is connected to the code generation unit 1043 and is used to generate a phase fine-tuning signal according to user settings to adjust the accuracy of the generated binary delay chain code. Preferably, the fine-tuning module is a phase fine-tuning register fine_tune. In actual operation, the digital delay phase-locked loop of this embodiment can provide a variable phase through the phase fine-tuning register fine_tune, and the specific operation process will be described in detail below.

[0063] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the generation principle of a binary delay chain code provided by an embodiment of the present invention. Assume that the bit width of the binary cycle number generated in the calculation unit is 10, recorded as counter[10:0], and it is desired to obtain an output clock that is 90° different from the reference clock. Figure 5 The calculation shown can ultimately generate a delay chain control signal. The more inverters that make up the ring oscillator, the higher the accuracy can be, because what is ultimately needed is the ratio of the number of cycles, not the specific time, so there is no requirement for the specific value of the delay time of a single inverter. The working conditions of the circuit of the present invention need to cover a wider frequency range. In order for the two clocks after frequency division to be able to adjust 90° within the entire frequency range, the frequency division number needs to be selected reasonably, and the counting result cannot exceed the bit width of the counter. The following is a set of reasonable design examples.

[0064] Specifically, the period of the counting clock is: T clk_osc =2 8 ×t dly *2, where t dly is the delay time of an inverter in the ring oscillator module. The period of the synchronous reference clock is: T ck_ref =2 15 ×T clk_ref , the period of the synchronous counting clock is: T ck_osc =2 4 ×T clk_osc ,

[0065] Then the binary cycle number counter[10:0] of ck_ref half cycle relative to ck_osc is:

[0066] counter[10:0]=((T clk_ref ×2 15 ) / 2) / (2 4 ×T clk_osc )

[0067] =((T clk_ref *2 15 ) / 2) / (24 ×2 9 *t dly )

[0068] =2×T clk_ref / t dly (1)

[0069] Next, divide both sides of equation (1) by 8 to obtain:

[0070] counter[10:0] / 8=(1 / 4) ×T clk_ref / t dly (2)

[0071] In this embodiment, the period T of the reference clock is clk_ref Corresponding to 360°, then (1 / 4)×T clk_ref The corresponding angle is 90°, so (1 / 4)×T clk_ref / t dly The corresponding count value (number of cycles) is the count value corresponding to 90°. Further, when the phase difference needs to be accurate to a step size of 11°, the fine-tuning module generates a phase fine-tuning signal fine_tune[2:0] according to the setting. Since counter[10:0] / 8 = (1 / 4) × T clk_ref / t dly is the code value corresponding to 90°. If 90° / 8 is 11°, then divide equation (2) by 8 to get the expression for 11°:

[0072] (counter[10:0] / 8) / 8(3)

[0073] Multiplying formula (3) by the phase fine tuning signal fine_tune[2:0] yields an increase or decrease in integer multiples of 11°, where the increase or decrease depends on the positive or negative value of fine_tune[2:0]:

[0074] ((counter[10:0] / 8) / 8)*fine_tune[2:0](4)

[0075] Next, by adding equations (2), (4) and the carry signal carry, equation (5) is the expression of the binary delay chain code with a phase difference of about 90° and a step size of 11°:

[0076] (counter[10:0]+fine_tune[2:0]*counter[10:0] / 8) / 8+carry(5)

[0077] A delay chain control signal is generated according to the delay chain code to control the number of inverters connected in series in the delay circuit to generate an output clock signal having a predetermined phase difference with the reference clock.

[0078] It should be noted that when fine_tune[2:0] is 0, the phase difference between the output clock of the digital delay locked loop and the reference clock is 90°. When fine_tune[2:0] is not zero, the phase difference between the output clock of the digital delay locked loop and the reference clock is 90°+ / -11×fine_tune[2:0].

[0079] The digital delay phase-locked loop of this embodiment adopts an open-loop structure, and there is no problem of loop stability. The resolution of the phase difference can be quickly improved by increasing the bit width of the control delay chain code to meet higher-level needs, and the structure is simple. Compared with the traditional 90° delay phase-locked loop circuit, the digital delay phase-locked loop of the present invention can provide a variable phase function, and the variable phase is set by the phase fine tuning register fine_tune. In addition, because the digital delay phase-locked loop of the present invention requires the ratio of the number of clock cycles, it is not necessary to make the delay value of the inverter very accurate, thereby effectively eliminating the impact of the manufacturing process deviation on the accuracy of the product during large-scale mass production.

[0080] Embodiment 2

[0081] Based on the above embodiment, this embodiment provides a locking method for a digital delay phase-locked loop. Figure 4 , Figure 4 1 is a flow chart of a locking method of a digital delay phase-locked loop provided by an embodiment of the present invention. The locking method comprises:

[0082] S1: Generate counting clock using ring oscillator;

[0083] The ring oscillator module 101 in this embodiment includes a plurality of inverters connected end to end.

[0084] S2: performing frequency division processing on the input reference clock and the counting clock respectively, and outputting the divided counting clock and the divided reference clock;

[0085] Specifically, the S2 includes:

[0086] The reference clock is 2 n1 The counting clock is processed by 2 frequency division respectively, and the frequency division counting clock is output; n2 After the frequency division process, the divided counting clock is output, wherein n1>>n2.

[0087] Please continue to see Figure 2The reference clock clk_ref and the counting clock clk_osc output by the ring oscillator are respectively divided by the frequency dividing circuit. Specifically, the reference clock clk_ref is divided 2n1 times in the first frequency divider 1021 to form a divided reference clock, and the counting clock clk_osc is divided 2n2 times in the second frequency divider 1022 to form a divided counting clock, wherein n1>>n2, so that the period of the divided counting clock is much smaller than the period of the divided reference clock.

[0088] S3: Perform clock synchronization processing on the frequency-divided counting clock and the frequency-divided reference clock, and output a synchronous counting clock and a synchronous reference clock;

[0089] Specifically, the two clock signals after the frequency division process are subjected to clock synchronization process to generate a synchronous counting clock ck_osc and a synchronous reference clock ck_ref, wherein the synchronous counting clock ck_osc and the synchronous reference clock ck_ref are co-edge clocks, that is, they have rising edges at the same time at the beginning.

[0090] S4: Counting the synchronous reference clock by the synchronous counting clock, and generating a delay chain control signal according to the count value;

[0091] Further, the S4 includes:

[0092] S41: Counting the synchronous reference clock using the synchronous counting clock when the synchronous reference clock is at a high level, so as to obtain the number of binary cycles of the synchronous reference clock relative to the synchronous counting clock;

[0093] S42: intercepting a part of the bit width of the binary period number for processing to generate a binary carry signal;

[0094] Intercepting part of the bit width data of the synchronous counting clock cycle number; judging the size of the part of the bit width data and a preset threshold; according to the judgment result, when the part of the bit width data is greater than the preset threshold, the carry signal generated is 1, and when the part of the bit width data is not greater than the preset threshold, the carry signal generated is 0.

[0095] S43: generating a binary delay chain code according to the binary cycle number and the binary carry signal;

[0096] S44: Generate a delay chain control signal according to the binary delay chain code.

[0097] Specifically, since the reference clock clk_ref has a frequency division factor of 2 n1 Much larger than the division factor 2 of the counting clock clk_osc n2, so the period of the obtained synchronous reference clock ck_ref is much larger than the period of the synchronous counting clock ck_osc. At this time, whenever the synchronous reference clock ck_ref appears at a high level, the synchronous counting clock ck_osc is used to count, and the binary period number of half a period of ck_ref relative to ck_osc is obtained, which is recorded as counter[n3:0]; then, the generated binary period number counter[n3:0] is intercepted with a partial bit width counter[n4:0] (n3>n4) for processing, that is, the size of the partial bit width data and the preset threshold is judged. According to the judgment result, when the partial bit width data is greater than the preset threshold, the generated carry signal carry is 1, and when the partial bit width data is not greater than the preset threshold, the generated carry signal carry is 0; then the value of the carry signal carry is added to the value of the binary period number counter[n3:0] generated in the counting unit, and the result is processed in the code generation unit to generate a binary delay chain code counter[n5:0] as the final delay chain code.

[0098] S5: Generate an output clock signal having a predetermined phase difference with the reference clock according to the delay chain control signal.

[0099] A delay chain control signal is generated according to the delay chain code to control the number of inverters connected in series in the delay circuit to generate an output clock signal having a predetermined phase difference with the reference clock.

[0100] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A digital delay-locked loop, characterized in that: It comprises a ring oscillation module (101), a frequency division module (102), a clock synchronization module (103), a delay chain code generation module (104) and a delay chain unit (105), wherein: The ring oscillation module (101) is used to generate a counting clock; The frequency division module (102) is connected to the ring oscillation module (101) and inputs a reference clock, and is used to perform frequency division processing on the reference clock and the counting clock respectively, and output a frequency-divided counting clock and a frequency-divided reference clock; The clock synchronization module (103) is connected to the frequency division module (102), and is used to perform clock synchronization processing on the frequency division counting clock and the frequency division reference clock, and output a synchronous counting clock and a synchronous reference clock; The delay chain code generation module (104) is connected to the clock synchronization module (103), and is used to count the synchronization reference clock through the synchronization counting clock, and generate a delay chain control signal according to the count value; The delay chain unit (105) is connected to the delay chain code generation module (104) and is used to generate an output clock signal having a predetermined phase difference with the reference clock according to the delay chain control signal; The frequency division module (102) comprises a first frequency divider (1021) and a second frequency divider (1022), wherein the first frequency divider (1021) is used to divide the reference clock by n1 The input end of the second frequency divider (1022) is connected to the output end of the ring oscillation module (101), and is used to perform 2-division processing on the counting clock. n2 The frequency division processing is performed once, and the frequency division counting clock is output, and n1>>n2; The delay chain code generation module (104) comprises a counting unit (1041), an approximate filter code generation unit (1042), a code generation unit (1043) and a control signal generation unit (1044), wherein: The counting unit (1041) is connected to the clock synchronization module (103) and is used to count the synchronization reference clock using the synchronization counting clock when the synchronization reference clock is at a high level, so as to obtain the number of binary cycles of the synchronization reference clock relative to the synchronization counting clock; The approximate filtering code generating unit (1042) is connected to the counting unit (1041) and is used to receive a part of the bit width of the binary period number for processing and generate a binary carry signal; The code generating unit (1043) is connected to the counting unit (1041) and the approximate filtering code generating unit (1042), and is used to generate a binary delay chain code according to the binary cycle number and the binary carry signal; The control signal generating unit (1044) is connected to the code generating unit (1043) and the delay chain unit (105), and is used to generate a delay chain control signal according to the binary delay chain code.

2. The digital delay locked loop according to claim 1, characterized in that: It also includes a state machine module (106) which is respectively connected to the counting unit (1041), the approximate filter code generation unit (1042) and the code generation unit (1043), wherein the state machine module (106) is used to control the approximate filter code generation unit (1042) to generate a carry signal after the counting unit (1041) finishes counting, and is used to generate an update signal according to the binary cycle number and the binary carry signal, so as to control the code generation unit (1043) to generate and update the binary delay chain code.

3. The digital delay locked loop according to claim 2, characterized in that: It also includes a fine-tuning module, which is connected to the code generating unit (1043) and is used to generate a phase fine-tuning signal according to user settings to adjust the accuracy of the generated binary delay chain code.

4. A locking method for a digital delay-locked loop, characterized in that: include: A ring oscillator is used to generate a counting clock; Performing frequency division processing on the input reference clock and the counting clock respectively, outputting a frequency-divided counting clock and a frequency-divided reference clock, wherein the period of the frequency-divided counting clock is much smaller than the period of the frequency-divided reference clock; Performing clock synchronization processing on the frequency-divided counting clock and the frequency-divided reference clock, and outputting a synchronous counting clock and a synchronous reference clock; Counting the synchronous reference clock by means of the synchronous counting clock, and generating a delay chain control signal according to the count value; generating an output clock signal having a predetermined phase difference with the reference clock according to the delay chain control signal, Specifically, counting the synchronous reference clock by the synchronous counting clock and generating a delay chain control signal according to the count value includes: When the synchronous reference clock is at a high level, the synchronous reference clock is counted by using the synchronous counting clock to obtain the number of binary cycles of the synchronous reference clock relative to the synchronous counting clock; intercepting a portion of the bit width of the binary period number for processing to generate a binary carry signal; For generating a binary delay chain code according to the binary cycle number and the binary carry signal; A delay chain control signal is generated according to the binary delay chain code.

5. The locking method of a digital delay phase-locked loop according to claim 4, characterized in that: Performing frequency division processing on the input reference clock and the counting clock respectively, outputting the divided counting clock and the divided reference clock, wherein the period of the divided counting clock is much smaller than the period of the divided reference clock, comprising: The reference clock is 2 n1 Sub-frequency division processing, outputting the frequency division counting clock; The counting clock is respectively performed 2 n2 The frequency division process is performed once to output a frequency division counting clock, wherein n1>>n2, so that the period of the frequency division counting clock is much smaller than the period of the frequency division reference clock.

6. The locking method of a digital delay phase-locked loop according to claim 5, characterized in that: Cutting off part of the bit width of the binary period number for processing to generate a binary carry signal includes: intercepting part of the bit width data of the synchronous counting clock cycle number; Determine the size of the partial bit width data and a preset threshold; According to the judgment result, when the partial bit width data is greater than the preset threshold, the generated carry signal is 1, and when the partial bit width data is not greater than the preset threshold, the generated carry signal is 0.

7. The locking method of a digital delay phase-locked loop according to claim 5, characterized in that: The method is used to generate a binary delay chain code according to the binary cycle number and the binary carry signal, comprising: The binary cycle number is added to the binary carry signal to form a binary delay chain code.

Citation Information

Patent Citations

  • Digital delay phase-locked loop

    CN101789783A

  • Digital delay-locked loop and locking method thereof

    CN106549664A

  • Digital delay phase-locked loop

    CN211046906U