Frequency doubling circuit based on digital phase-locked loop
By using a combination of digital phase-locked loops and related modules in the clock multiplier circuit, the problems of high power consumption and unstable performance of the double frequency circuit in the existing technology are solved, and a low power consumption and stable double frequency clock is achieved. Generate, suitable for scenarios that require frequency doubling.
Patent Information
- Application Number
- CN202411160425.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Existing clock frequency doubling circuits have problems such as high power consumption, unstable performance, and vulnerability to process, voltage, and temperature effects when achieving double frequency. In particular, it is difficult to provide low power consumption and stability in scenarios where only double frequency is required. solution.
A double frequency circuit based on a digital phase-locked loop is designed. Through the XOR frequency multiplier, duty cycle correction module, digital phase-locked loop, phase detector and delay calculation module, the DTC code value and template sequence are used to perform logic. Operation and delay adjustment generate a stable double frequency clock to achieve frequency multiplication and duty cycle correction of the clock signal.
A double frequency circuit with low power consumption and stable performance is realized, which avoids the influence of process, voltage and temperature, and improves the performance of the circuit system.
Smart Images

Figure CN118677371B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of clock chips, and in particular to a frequency doubling circuit based on a digital phase-locked loop. Background Art
[0002] A clock multiplier circuit is an electronic circuit used to increase the frequency of an input signal to a multiple of the original frequency. This circuit is particularly important in digital circuit design because it allows designers to optimize circuit performance by adjusting the clock frequency, such as increasing data processing speed or meeting specific communication standards. The core of the frequency multiplier circuit is to use nonlinear elements or devices to generate multiples of the input signal frequency. These nonlinear elements will cause nonlinear distortion, thereby generating new frequency components. These new frequency components can be selected and amplified by filters to obtain the desired frequency-multiplied output.
[0003] Conventional frequency multipliers can be implemented using a phase-locked loop. Since the output clock frequency range needs to be variable and large, multiple frequency multipliers including doubling can be implemented, resulting in a larger chip area and higher power consumption.
[0004] The frequency doubling circuit implemented by analog components is easily affected by temperature, process and voltage, and its performance is unstable. To combat this instability, a large chip area and power consumption are often required for calibration and filtering.
[0005] For scenarios that only require doubling the frequency, if a doubling frequency based on a digital circuit can be provided with low power consumption, stable performance, and not affected by process, voltage, and temperature, the performance improvement for the circuit system will be enormous.
[0006] Based on this, the present invention provides a low-power and stable double frequency circuit based on a digital phase-locked loop. Summary of the invention
[0007] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:
[0008] A double frequency circuit based on a digital phase-locked loop, used for generating a double frequency clock, comprising:
[0009] An XOR frequency multiplier is used to receive and delay a reference clock to obtain a first clock, and obtain a second clock after performing a logic operation on the reference clock and the first clock in an XOR gate; wherein the rising edge in the second clock is divided into a first group rising edge and a second group rising edge, and the rising edge in the first group rising edge and the rising edge in the second group rising edge appear alternately in sequence; a duty cycle correction module is used to receive the second clock and a DTC code value, and output a double-frequency clock; a digital phase-locked loop is used to receive the double-frequency clock and a delay control parameter, and output a phase-locked loop output clock; a phase detector is used to receive the double-frequency clock and the phase-locked loop output clock, and output a phase error signal; in addition, a duty cycle parameter calculation module is used to generate a DTC code value according to the phase error signal, which is used to control the DTC in the duty cycle correction module to adjust the delay between the rising edge in the first group rising edge and the rising edge in the second group rising edge; a delay calculation module is used to generate a delay control parameter according to the phase error signal, which is used to control the delay of the digital phase-locked loop to the double-frequency clock received by the digital phase-locked loop.
[0010] Furthermore, after the DTC code value and the template sequence are multiplied, the product obtained is used as the first input of the DTC; the second clock is used as the second input of the DTC; the DTC outputs the doubled frequency clock; and the template sequence is a numerical sequence obtained by identifying the first group rising edge and the second group rising edge in the second clock.
[0011] Furthermore, the duty cycle parameter calculation module receives a phase error signal output by the phase detector and outputs a DTC code value; after multiplying the template sequence and the phase error signal, the multiplication result is multiplied by a first gain coefficient to obtain a first result; the first result is added to a previous value of the DTC code value to obtain the DTC code value.
[0012] Furthermore, the delay calculation module receives a phase error signal output by the phase detector and outputs a delay control parameter; after multiplying the phase error signal and the second gain coefficient, a second result is obtained; after multiplying the phase error signal and the third gain coefficient, a third result is obtained; the third result and the previous value of the fourth result are added to obtain a fourth result; the fourth result is added to the second result to obtain the delay control parameter.
[0013] Furthermore, the phase detector receives a doubled frequency clock, a phase-locked loop output clock and a template sequence; compares the doubled frequency clock and the phase-locked loop output clock in a delay comparison module in the phase detector, and outputs information indicating an advance relationship or a lag relationship; encodes the information indicating the advance relationship or the lag relationship into encoded information, and multiplies the encoded information and the template sequence to obtain a phase error signal; wherein the encoded information is 1 or -1.
[0014] Furthermore, the digital phase-locked loop is an all digital phase-locked loop (ADPLL).
[0015] The technical solution of the present invention has the following beneficial technical effects:
[0016] The digital phase-locked loop-based frequency doubling circuit of the present invention has the advantages of low power consumption, stable performance, and no influence of process, voltage and temperature.
[0017] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a schematic diagram of generating a second clock in an XOR frequency multiplier by using a reference clock;
[0019] Figure 2 It is a general overview of the technical solution of the present invention;
[0020] Figure 3 It is a waveform diagram of several clock signals of the present invention;
[0021] Figure 4 It is a schematic diagram of the technical solution of the present invention;
[0022] Figure 5 is a schematic diagram of the duty cycle correction module;
[0023] Figure 6 It is a schematic diagram of a phase detector;
[0024] Figure 7 This is a schematic diagram of the duty cycle parameter calculation module;
[0025] Figure 8 It is a schematic diagram of the delay calculation module. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.
[0028] Figure 1 This is a schematic diagram of generating a second clock in an XOR multiplier from a reference clock. The duty cycle of the reference clock is usually not 50%. The reference clock passes through a delay unit to obtain a first clock. The first clock and the reference clock perform a logic operation in an XOR gate to obtain a second clock. The second clock is a preliminary information processing result for generating a double frequency clock.
[0029] Figure 2 The diagram is a general overview of the technical solution of the present invention. After generating a second clock through a reference clock and an XOR frequency multiplier, the second clock is input into a duty cycle correction module to obtain a double frequency clock.
[0030] The duty cycle correction module can correct the duty cycle of the second clock so that the double frequency clock output by the duty cycle correction module is a clock signal that meets the requirements. The specific correction method will be described in detail later.
[0031] Figure 3 The waveform diagram of several clock signals of the present invention is shown in FIG. A reference clock whose duty cycle is not 50% and a first clock obtained after delay are operated in an XOR gate to obtain a second clock.
[0032] Compared with the ideal double frequency clock, the second clock has the following shortcomings: the time intervals between two adjacent rising edges in the second clock are not equal, such as the time interval from the first rising edge to the second rising edge and the time interval from the second rising edge to the third rising edge, and the duty cycle of the second clock needs to be adjusted. Therefore, it is necessary to design a duty cycle correction module to adjust the duty cycle of the second clock to obtain a double frequency clock. The clock frequency of the double frequency clock is twice that of the reference clock, the first rising edge in the double frequency clock remains unchanged, and the second rising edge in the double frequency clock is delayed.
[0033] Further, in the present invention, the template sequence is a numerical sequence obtained by identifying the first group rising edge and the second group rising edge in the second clock. Since the time intervals of two adjacent rising edges of the second clock are inconsistent, one group of rising edges can be defined as the first group rising edge, and the other group can be defined as the second group rising edge. In other words, the odd group rising edge sequence is the first group rising edge, the even group rising edge sequence is the second group rising edge, and the rising edges in the first group rising edge and the rising edges in the second group rising edge appear alternately in sequence.
[0034] For example, Figure 3The first rising edge and the third rising edge in the template sequence can be defined as the first group rising edge, and the second rising edge can be defined as the second group rising edge. When the first group rising edge appears, the value in the template sequence can be defined as -1; when the second group rising edge appears, the value in the template sequence can be defined as 1. The essence of the template sequence is a way of marking two different groups of rising edges in the second clock. There can also be other reasonable ways to define the values in the template sequence, and the present invention is not limited to this and is not limited to this.
[0035] Figure 4 It is a schematic diagram of the technical solution of the present invention. The duty cycle correction module outputs a double frequency clock, and the double frequency clock is used as the input signal of the digital phase-locked loop, and the output signal of the digital phase-locked loop is the phase-locked loop output clock. The double frequency clock and the phase-locked loop output clock are used as two input signals of the phase detector. The phase error signal output by the phase detector is respectively sent to the delay calculation module and the duty cycle parameter calculation module.
[0036] In the present invention, the phase error signal represents an advance relationship or a lag relationship, and can be represented by -1 or 1, for example.
[0037] The delay calculation module outputs the delay control parameter as another input of the digital phase-locked loop, which is used to adjust the delay between the phase-locked loop output clock and the double frequency clock. The digital-to-time converter (DTC) code value output by the duty cycle parameter calculation module is used as the input of the duty cycle correction module. The DTC code value can be a digital value composed of 0 and 1, which is used to control the DTC, and the digital value is converted into a delay of a certain time length by controlling the DTC.
[0038] The goal of a digital phase-locked loop is to obtain a delayed version of the doubled frequency clock, which is the phase-locked loop output clock. The specific delay length is controlled by the input of the digital phase-locked loop, which is the delay control parameter. Figure 3 The output clock of the phase-locked loop after the correction is also shown in the figure. The difference between the output clock of the phase-locked loop after the correction and the double frequency clock is that the output clock of the phase-locked loop after the correction is delayed by one more time d than the double frequency clock. pll Delay d pll It is exactly equal to the length of a clock cycle. The purpose of this is to achieve staggered positioning between rising edges belonging to the same group.
[0039] In the present invention, the digital phase-locked loop is a technical content well known to those skilled in the art, and will not be described in detail herein. The details of the above other modules will be described in detail later.
[0040] Figure 5Schematic diagram of the duty cycle correction module. The template sequence is multiplied by the DTC code value output by the duty cycle parameter calculation module, and the product is used as the first input of the DTC, and the second clock is used as the second input of the DTC. The DTC controls the delay between the two groups of rising edges in the second clock according to the first input of the DTC, and the final output of the DTC is a double frequency clock. For example, the DTC is used to adjust the delay between the first rising edge and the second rising edge.
[0041] Figure 6 The diagram is a schematic diagram of a phase detector. The double frequency clock and the phase-locked loop output clock are two inputs of the phase detector. The comparison is performed in the delay comparison module in the phase detector. The delay comparison module outputs the relative relationship information between the rising edge of the double frequency clock and the rising edge of the phase-locked loop output clock expressed by the value 0 or 1, that is, the leading relationship information or the lagging relationship information.
[0042] Furthermore, the 0 and 1 output by the delay comparison module are encoded as 1 and -1 respectively, and then multiplied by the template sequence to obtain a phase error signal. In other words, the information representing the leading relationship or the lagging relationship is encoded as 1 or -1, and the encoded information is multiplied by the template sequence to obtain a phase error signal.
[0043] Here, the leading relationship information or lagging relationship information is expressed by 0 and 1, and the coding correspondence when 0 and 1 are encoded as 1 and -1 may also be other expressions or correspondences. The present invention is not limited to this and is not limited to this.
[0044] Figure 7 Schematic diagram of a duty cycle parameter calculation module. The duty cycle parameter calculation module is used to calculate the duty cycle parameter, obtain the DTC code value, and adjust the delay of the rising edge in the second clock of the input DTC in the duty cycle correction module. For example, it is specifically used to control the DTC in the duty cycle correction module to adjust the delay between the rising edge in the first group of rising edges and the rising edge in the second group of rising edges.
[0045] The template sequence and the phase error signal are multiplied, and the multiplication result is multiplied by the first gain coefficient to obtain a first result. The first result is added to the previous value of the DTC code value to obtain the DTC code value. The DTC code value output by the duty cycle parameter calculation module is a parameter for adjusting the delay of the rising edge of the second clock.
[0046] Figure 8 is a schematic diagram of a delay calculation module. The phase error signal is multiplied by the second gain coefficient and the third gain coefficient respectively to obtain a second result and a third result respectively.
[0047] The third result is added to the previous value of the fourth result to obtain the fourth result. The fourth result is added to the second result to obtain a delay control parameter, which is used to control the digital phase-locked loop. The delay calculation module is used to calculate the delay control parameter, which is used to control the digital phase-locked loop so that the clock frequency of the digital phase-locked loop output clock and the double frequency clock are the same. When the rising edges of the digital phase-locked loop output clock and the double frequency clock are completely aligned, the duty cycle correction is completed, and a double frequency clock with a duty cycle of 50% is obtained.
[0048] In the present invention, the unit delay is one clock cycle of the double frequency clock. The previous value of the DTC code value is also the DTC code value after the unit delay. The previous value of the fourth result is also the fourth result after the unit delay.
[0049] Preferably, the digital phase-locked loop is a fully digital phase-locked loop.
[0050] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0051] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A frequency doubling circuit based on a digital phase-locked loop, for generating a frequency doubling clock, characterized in that: include: An XOR frequency multiplier is used to receive and delay a reference clock to obtain a first clock, and obtain a second clock after performing a logic operation on the reference clock and the first clock in an XOR gate; wherein the rising edge in the second clock is divided into a first group rising edge and a second group rising edge, and the rising edges in the first group rising edge and the second group rising edge appear alternately in sequence; A duty cycle correction module, used for receiving the second clock and the DTC code value, and outputting a double frequency clock; A digital phase-locked loop, used for receiving a double frequency clock and a delay control parameter, and outputting a phase-locked loop output clock; A phase detector, used for receiving a double frequency clock and a phase-locked loop output clock, and outputting a phase error signal; A duty cycle parameter calculation module, used for generating a DTC code value according to the phase error signal, and used for controlling the DTC in the duty cycle correction module to adjust the delay between the rising edge in the first group of rising edges and the rising edge in the second group of rising edges; The delay calculation module is used to generate a delay control parameter according to the phase error signal, and is used to control the delay of the digital phase-locked loop to the double frequency clock received by the digital phase-locked loop.
2. The frequency doubling circuit based on a digital phase-locked loop according to claim 1, characterized in that: After the DTC code value and the template sequence are multiplied, the product obtained is used as the first input of the DTC; The second clock serves as the second input of the DTC; The DTC outputs the double frequency clock; The template sequence is a sequence of numerical values obtained by identifying a first group rising edge and a second group rising edge in a second clock.
3. The frequency doubling circuit based on a digital phase-locked loop according to claim 2, characterized in that: The duty cycle parameter calculation module receives the phase error signal output by the phase detector and outputs the DTC code value; After the template sequence and the phase error signal are multiplied, the multiplication result is multiplied by the first gain coefficient to obtain a first result; The first result is added to a previous value of the DTC code value to obtain the DTC code value.
4. The frequency doubling circuit based on a digital phase-locked loop according to claim 3, characterized in that: The delay calculation module receives the phase error signal output by the phase detector and outputs a delay control parameter; After the phase error signal is multiplied by the second gain coefficient, a second result is obtained; After multiplying the phase error signal and the third gain coefficient, a third result is obtained; The third result and the previous value of the fourth result are added to obtain the fourth result; The fourth result and the second result are added to obtain a delay control parameter.
5. The frequency doubling circuit based on a digital phase-locked loop according to claim 4, characterized in that: The phase detector receives a double frequency clock, a phase-locked loop output clock and a template sequence; The double frequency clock and the phase-locked loop output clock are compared in a delay comparison module in the phase detector, and the output represents the leading relationship information or the lagging relationship information; The information representing the leading relationship or the lagging relationship is encoded into encoded information, and the encoded information is multiplied with the template sequence to obtain a phase error signal; wherein the encoded information is 1 or -1.
6. The frequency doubling circuit based on a digital phase-locked loop according to claim 5, characterized in that: The digital phase-locked loop is a fully digital phase-locked loop.
