Output circuit and output method of main frequency clock

By designing the main frequency clock output circuit and using the feedback parameter adjustment of the phase-locked loop module and the voltage-controlled oscillator, the clock signal adjustment at any frequency point is realized, which solves the problem of insufficient frequency point configuration in the existing technology and improves flexibility. sex and stability.

CN118677445APending Publication Date: 2024-09-20SHANGHAI BIREN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010775.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, only large-granularity clock frequency conversion can be achieved, and many frequency points cannot be configured, resulting in unsatisfactory clock frequency modulation results.

Method used

A main frequency clock output circuit is designed, including a first phase-locked loop module, a second phase-locked loop module and a control module. By adjusting the feedback parameters of the voltage-controlled oscillator in the second phase-locked loop module, the target The selector realizes clock signal adjustment at any frequency point and is used by switching two phase-locked loop modules to avoid output clock oscillation.

Benefits of technology

It achieves small-grained main frequency clock adjustment, which greatly improves flexibility. It can set the frequency according to the hierarchical positioning of the product, avoids large-scale frequency conversion due to changes in frequency conversion requirements, and maintains the stability and performance of the circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677445A
    Figure CN118677445A
Patent Text Reader

Abstract

The invention relates to the technical field of digital integrated circuits, and provides an output circuit and an output method of a main frequency clock, the output circuit comprises two phase-locked loop modules, a target selector and a control module; the control module controls the target selector to output a first clock signal of the first phase-locked loop module or a second clock signal of the second phase-locked loop module as a main frequency clock; under the condition that the current main frequency clock is output by the first phase-locked loop module and a frequency adjusting instruction is received, the control module controls the second phase-locked loop module and the target selector to output a second clock signal meeting the target frequency as the main frequency clock; and the frequency adjustment of the second phase-locked loop module is obtained by adjusting feedback parameters of the voltage-controlled oscillator. Clock signals of any frequency point are obtained by adjusting feedback parameters of the voltage-controlled oscillator, the two phase-locked loop modules are configured to be switched for use, output clock oscillation is avoided, small-granularity main frequency clock adjustment is achieved, and flexibility is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital integrated circuits, and in particular to an output circuit and an output method for a main frequency clock. Background Art

[0002] In digital integrated circuits, it is often necessary to adjust the power of the output clock signal according to the current situation. Clock frequency modulation can ensure the normal operation of the circuit while reducing power consumption and noise, which helps to improve the integrity of the output clock signal and circuit reliability.

[0003] However, in the prior art, the clock frequency modulation scheme is not perfect, resulting in only large-granularity clock frequency conversion, and many frequency points cannot be configured, resulting in unsatisfactory clock frequency modulation results. Summary of the invention

[0004] The present invention provides an output circuit and an output method for a main frequency clock, so as to solve the technical problem that only large-granularity clock frequency conversion can be realized in the prior art, and many frequency points cannot be configured.

[0005] The present invention provides an output circuit of a main frequency clock, comprising a first phase-locked loop module, a second phase-locked loop module, a target selector and a control module; the control module is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector, the first phase-locked loop module is connected to the first input end of the target selector, and the second phase-locked loop module is connected to the second input end of the target selector; the control module is used to control the target selector to output a first clock signal of the first phase-locked loop module or a second clock signal of the second phase-locked loop module as the main frequency clock; when the current main frequency clock is output by the first phase-locked loop module and a frequency adjustment instruction including a target frequency is received, the control module controls the second phase-locked loop module to output a second clock signal that meets the target frequency, and controls the target selector to output the second clock signal as the main frequency clock; wherein the frequency adjustment of the second phase-locked loop module is obtained by adjusting the feedback parameters of a voltage-controlled oscillator in the second phase-locked loop module.

[0006] According to an output circuit of a main frequency clock provided by the present invention, a first phase-locked loop module includes a first phase-locked loop and a first selector; a second phase-locked loop module includes a second phase-locked loop and a second selector; a control module is respectively connected to the first phase-locked loop, the first selector, the second phase-locked loop and the second selector; the first phase-locked loop includes at least two output pins, and the signal frequencies of at least two output pins are different; each output pin is connected to a different input end of the first selector, and the output end of the first selector is connected to the first input end of the target selector; the second phase-locked loop includes at least two output pins, and the signal frequencies of at least two output pins are different; each output pin is connected to a different input end of the second selector, and the output end of the second selector is connected to the second input end of the target selector; the first selector is used to select a signal of one of the output pins of the first phase-locked loop as a first clock signal according to an instruction of the control module; the first selector is used to select a signal of one of the output pins of the second phase-locked loop as a second clock signal according to an instruction of the control module.

[0007] According to an output circuit of a main frequency clock provided by the present invention, a control module includes a register unit and a clock step control unit, the register unit is respectively connected to a communication bus and a clock step control unit; the clock step control unit is respectively connected to a first phase-locked loop module, a second phase-locked loop module and a target selector; the register unit is used to receive a frequency adjustment instruction through the communication bus; the clock step control unit is used to obtain a target frequency according to the frequency adjustment instruction, generate an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and send a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy.

[0008] The present invention also provides a method for outputting a main frequency clock, which is applied to the above-mentioned output circuit of the main frequency clock. The method for outputting the main frequency clock includes: when the current main frequency clock is output by the first phase-locked loop module, the control module receives a frequency adjustment instruction; wherein the frequency adjustment instruction includes a target frequency; the control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy; the second phase-locked loop module outputs a second clock signal that meets the target frequency to the target selector according to the control instruction; the target selector switches to output the second clock signal as the main frequency clock according to the control instruction.

[0009] According to a main frequency clock output method provided by the present invention, a control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends control instructions to the second phase-locked loop module and the target selector according to the adjustment strategy, including: the control module determines the frequency modulation parameters of the second phase-locked loop module; the control module determines the adjustment strategy of the voltage-controlled oscillator of the second phase-locked loop according to the frequency modulation parameters and the difference between the target frequency and the current main frequency clock; the control module sends a first control instruction to the second phase-locked loop module according to the adjustment strategy; the control module sends a second control instruction to the target selector according to the adjustment strategy.

[0010] According to a main frequency clock output method provided by the present invention, the second phase-locked loop module outputs a second clock signal that meets the target frequency to a target selector according to a control instruction, including: the second phase-locked loop module adjusts a voltage-controlled oscillator according to a first control instruction to output a signal that meets the target frequency, and inputs the signal that meets the target frequency as the second clock signal to the target selector.

[0011] According to a method for outputting a main frequency clock provided by the present invention, a first phase-locked loop module includes a first phase-locked loop and a first selector; the second phase-locked loop module outputs a signal that meets the target frequency by adjusting a voltage-controlled oscillator according to a first control instruction, and inputs the signal that meets the target frequency as a second clock signal before being input to a target selector, including: a control unit sends a third control instruction to the first phase-locked loop module; the first phase-locked loop processes the current main frequency clock through a post-divider according to the third control instruction, and outputs signals with different frequencies through multiple output pins; the first selector selects signals that are gradually close to the target frequency from the signals output from the multiple output pins according to the third control instruction in turn as the first clock signal, and inputs the first clock signal to the target selector, so that the target selector sequentially outputs main frequency clocks that are gradually close to the target frequency.

[0012] According to a main frequency clock output method provided by the present invention, a target selector switches to output a second clock signal as the main frequency clock according to a control instruction, including: the target selector switches to output the second clock signal as the main frequency clock when receiving a second clock signal that meets the target frequency output by a second phase-locked loop module according to a second control instruction.

[0013] According to a method for outputting a main frequency clock provided by the present invention, a target selector switches to output the second clock signal as the main frequency clock when receiving a second clock signal that meets the target frequency output by a second phase-locked loop module according to a second control instruction, comprising: the target selector receives the second clock signal that meets the target frequency output by the second phase-locked loop module; the target selector switches to output the second clock signal as the main frequency clock after a first preset time interval according to the second control instruction.

[0014] According to a main frequency clock output method provided by the present invention, it also includes: when the current main frequency clock is output by the second phase-locked loop module, the control module receives a second frequency adjustment instruction; wherein the second frequency adjustment instruction includes a second target frequency; the control module generates a second adjustment strategy according to the difference between the second target frequency and the current main frequency clock, and sends a control instruction to the first phase-locked loop module and the target selector according to the second adjustment strategy; the first phase-locked loop module outputs a first clock signal that meets the second target frequency to the target selector according to the second control instruction; the target selector switches to output the first clock signal as the main frequency clock according to the second control instruction.

[0015] The output circuit and output method of the main frequency clock provided by the present invention, the output circuit of the main frequency clock includes a first phase-locked loop module, a second phase-locked loop module, a target selector and a control module; the control module is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector, the first phase-locked loop module is connected to the first input end of the target selector, and the second phase-locked loop module is connected to the second input end of the target selector; the control module is used to control the target selector to output the first clock signal of the first phase-locked loop module or the second clock signal of the second phase-locked loop module as the main frequency clock; when the current main frequency clock is output by the first phase-locked loop module and a frequency adjustment instruction including a target frequency is received, the control module controls the second phase-locked loop module to output a second clock signal that meets the target frequency, and controls the target selector to output the second clock signal as the main frequency clock; wherein the frequency adjustment of the second phase-locked loop module is obtained by adjusting the feedback parameters of the voltage-controlled oscillator in the second phase-locked loop module. Through the above manner, the present invention obtains a clock signal at any frequency point by adjusting the feedback parameters of the voltage-controlled oscillator, and configures two phase-locked loop modules for switching, which can avoid output clock oscillation, thereby realizing small-granularity main frequency clock adjustment, greatly improving flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 This is one of the structural schematic diagrams of the output circuit of the main frequency clock provided by the embodiment of the present invention.

[0018] Figure 2 This is the second structural schematic diagram of the output circuit of the main frequency clock provided by the embodiment of the present invention.

[0019] Figure 3This is one of the flow charts of the main frequency clock output method provided by the embodiment of the present invention.

[0020] Figure 4 This is the second flow chart of the method for outputting the main frequency clock provided by the embodiment of the present invention. DETAILED DESCRIPTION

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

[0022] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0023] The embodiment of the present invention provides a main frequency clock output circuit, see Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a main frequency clock output circuit according to an embodiment of the present invention. In this embodiment, the main frequency clock output circuit may include a first phase-locked loop module 110 , a second phase-locked loop module 120 , a target selector 130 and a control module 140 .

[0024] The control module 140 is respectively connected to the first phase-locked loop module 110, the second phase-locked loop module 120 and the target selector 130. The first phase-locked loop module 110 is connected to the first input end of the target selector 130, and the second phase-locked loop module 120 is connected to the second input end of the target selector 130; the control module 140 is used to control the target selector 130 to output the first clock signal of the first phase-locked loop module 110 or the second clock signal of the second phase-locked loop module 120 as the main frequency clock.

[0025] When the current main frequency clock is output by the first phase-locked loop module 110 and a frequency adjustment instruction including a target frequency is received, the control module 140 controls the second phase-locked loop module 120 to output a second clock signal that meets the target frequency, and controls the target selector 130 to output the second clock signal as the main frequency clock. The frequency adjustment of the second phase-locked loop module 120 is obtained by adjusting the feedback parameters of the voltage-controlled oscillator in the second phase-locked loop module 120.

[0026] When the current main frequency clock is output by the second phase-locked loop module 120 and a frequency adjustment instruction including a target frequency is received, the control module 140 controls the first phase-locked loop module 110 to output a first clock signal that meets the target frequency, and controls the target selector 130 to output the first clock signal as the main frequency clock. The frequency adjustment of the first phase-locked loop module 110 is obtained by adjusting the feedback parameters of the voltage-controlled oscillator in the first phase-locked loop module 110.

[0027] In this embodiment, when the control module 140 receives the frequency adjustment instruction, the output frequency of the voltage-controlled oscillator in the phase-locked loop module can be re-locked, thereby achieving adjustment of the output frequency.

[0028] It should be noted that this embodiment changes the frequency of the output clock of the voltage-controlled oscillator, which will cause the phase-locked loop to need to be re-phase-locked. During this period, the clock has a duty cycle, and the output frequency is unstable, that is, when the phase-locked loop module is re-locked, it will cause the output clock to oscillate. Therefore, in this embodiment, two phase-locked loop modules need to be set to facilitate switching and ensure the stability of the output clock.

[0029] For the main frequency clock, a first phase-locked loop module and a second phase-locked loop module are provided in this embodiment, and the control module controls the target selector to select the first clock signal output by the first phase-locked loop module as the main frequency clock or the second clock signal output by the second phase-locked loop module as the main frequency clock.

[0030] In some embodiments, the first phase-locked loop module may include a first phase-locked loop, and the second phase-locked loop module may include a second phase-locked loop. A phase-locked loop (PLL) is a circuit or system that is used to maintain a negative feedback control system that stabilizes the phase of its output signal with the phase of an input reference signal. It is usually composed of a phase comparator, a loop filter, and a voltage-controlled oscillator (VCO).

[0031] A voltage-controlled oscillator is an electronic device or circuit whose output signal frequency can be controlled by adjusting the input voltage, that is, the output frequency of the voltage-controlled oscillator can be determined by its input control voltage.

[0032] In this embodiment, the frequency adjustment of the first phase-locked loop module 110 and the second phase-locked loop module 120 is achieved by adjusting the feedback parameters of the voltage-controlled oscillators therein.

[0033] In some embodiments, the first phase-locked loop module may include a first phase-locked loop and a first selector; the second phase-locked loop module may include a second phase-locked loop and a second selector. The control module is respectively connected to the first phase-locked loop, the first selector, the second phase-locked loop and the second selector.

[0034] The first phase-locked loop includes at least two output pins, and the signal frequencies of the at least two output pins are different; each output pin is connected to a different input end of the first selector, and the output end of the first selector is connected to the first input end of the target selector.

[0035] The second phase-locked loop includes at least two output pins, and the signal frequencies of at least two output pins are different; each output pin is connected to a different input end of the second selector, and the output end of the second selector is connected to the second input end of the target selector; the first selector is used to select the signal of one of the output pins of the first phase-locked loop as the first clock signal according to the instruction of the control module; the first selector is used to select the signal of one of the output pins of the second phase-locked loop as the second clock signal according to the instruction of the control module.

[0036] In this embodiment, not only can the output frequency of the VCO of the PLL be re-locked, but also any frequency point can be obtained in conjunction with a post-divider. The post-divider can divide the output frequency of the VCO and output it to the selector through different output pins to output a signal matching the target frequency, thereby realizing the functions of frequency locking and phase synchronization.

[0037] In some embodiments, the control module may further include a register unit and a clock step control unit, the register unit is respectively connected to the communication bus and the clock step control unit; the clock step control unit is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector.

[0038] The register unit and the clock step control unit can communicate and interact with each other. The register unit can send an Activate signal to the clock step control unit, and the Activate signal determines the execution action of the clock step control unit; the clock step control unit can send a status signal to the register unit, and the status signal indicates the state of the clock step control unit after the action is completed.

[0039] The register unit is used to receive frequency adjustment instructions through the communication bus; the clock step control unit is used to obtain the target frequency according to the frequency adjustment instruction, generate an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and send control instructions to the second phase-locked loop module and the target selector according to the adjustment strategy.

[0040] The clock step control unit can analyze the gap between the target frequency and the currently running frequency according to the frequency adjustment instruction.

[0041] The frequency modulation interval (step) is configurable. For example, the step requirement is 200MHz, the current output main frequency clock is 800MHz, and the target frequency is 1300MHz. Therefore, the frequency modulation process can include two steps, and the two steps can be executed simultaneously.

[0042] The first step is to change the target frequency by relocking the VCO frequency on another PLL; the other step is to achieve different frequencies on this PLL by configuring the post-divider. The frequency switching is to first switch on different output pins on this PLL to output signals gradually approaching the target frequency, and then switch to another PLL to output a signal that meets the target frequency.

[0043] Exemplarily, the second phase-locked loop module outputs a second clock signal of 1300MHz by relocking the VCO, and the first phase-locked loop outputs signals of 1000MHz and 1150MHz respectively through the post-frequency divider; therefore, through the control of the target selector of the first selector, the main frequency clock output circuit can gradually output clock signals of 800MHz, 1000MHz, 1150MHz and 1300MHz after receiving the frequency adjustment instruction, thereby realizing a frequency conversion mechanism with fine granularity, which greatly improves the flexibility of the chip when configuring the frequency application, and can make corresponding frequency settings according to the hierarchical positioning of the product. In addition, when the change in frequency conversion demand is very small, the frequency can be changed in a very small amplitude, and there is no need to be forced to change the frequency amplitude to a large extent because there are only a few frequency conversion points, which affects the performance.

[0044] In some embodiments, switching may also be performed on different output pins on another PLL, and the specific adjustment may be made according to actual conditions.

[0045] It should be noted that there is no need to wait for changing the post-divider, so only one PLL switch occurs during the process. In this embodiment, the clock step control unit is used to perform frequency modulation control to achieve the output of the main frequency clock, which can accurately control the frequency change size, thereby controlling the voltage noise caused by DIDT (Difference in Duty Time, the speed of current change in time), and a smaller overshoot or undershoot (voltage overshot / undershot) is beneficial to voltage stability.

[0046] See also Figure 2 , Figure 2 FIG2 is a second structural diagram of the output circuit of the main frequency clock provided by an embodiment of the present invention. In this embodiment, the output circuit of the main frequency clock may include a first phase-locked loop module 210 , a second phase-locked loop module 220 , a target selector 230 and a control module 240 .

[0047] The first phase-locked loop module 210 includes a first phase-locked loop 211 and a first selector 212 ; the second phase-locked loop module 220 includes a second phase-locked loop 221 and a second selector 222 ; and the control module 240 includes a register unit 241 and a clock step control unit 242 .

[0048] The clock step control unit 242 is connected to the register unit 241 , the first phase-locked loop 211 , the first selector 212 , the second phase-locked loop 221 and the second selector 222 , respectively.

[0049] The first phase-locked loop 211 and the second phase-locked loop 221 each include three output pins FOUT0, FOUT1 and FOUT2. The three output pins of the first phase-locked loop 211 and the second phase-locked loop 221 are connected to different input terminals of the first selector and the second selector respectively.

[0050] In this embodiment, two PLLs are used to re-lock the VCO frequency for more frequency setting points, and re-locking the VCO will cause the clock to oscillate for about 50us. In this embodiment, the clocks are all high frequency (GHz), and the clock disorder during this oscillation time is unacceptable, so two PLLs are required. After the frequency is locked and the oscillation time has passed, the clock is switched.

[0051] The following table is an example of a configuration where frequency changes every 6.25MHz can be achieved by changing the VCO frequency.

[0052]

[0053] For example, if the current main frequency clock is output by the first phase-locked loop module, when the control module receives a frequency adjustment instruction, the feedback regulator (Feedback Devider, FBDIV) and the post-divider of the VCO of the first phase-locked loop can be changed so that the second clock signal meets the target frequency, and then the target selector switches the clock source to complete the frequency modulation.

[0054] Optionally, the output frequency of the VCO is proportional to a feedback parameter: VCO frequency=REF_CLK* FBDIV / POSTDIV.

[0055] Among them, VCO frequency is the output frequency of VCO, FBDIV refers to the parameters of the feedback regulator (feedback parameters); REF_CLK is the reference clock; POSTDIV refers to the parameters of the post divider; FOUT is the output frequency of PLL.

[0056] In summary, the embodiment of the present invention provides an output circuit of a main frequency clock, including a first phase-locked loop module, a second phase-locked loop module, a target selector and a control module; the control module is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector, the first phase-locked loop module is connected to the first input end of the target selector, and the second phase-locked loop module is connected to the second input end of the target selector; the control module is used to control the target selector to output the first clock signal of the first phase-locked loop module or the second clock signal of the second phase-locked loop module as the main frequency clock; when the current main frequency clock is output by the first phase-locked loop module and a frequency adjustment instruction including a target frequency is received, the control module controls the second phase-locked loop module to output a second clock signal that meets the target frequency, and controls the target selector to output the second clock signal as the main frequency clock; wherein the frequency adjustment of the second phase-locked loop module is obtained by adjusting the feedback parameters of the voltage-controlled oscillator in the second phase-locked loop module. Through the above method, the embodiment of the present invention obtains a clock signal at any frequency point by adjusting the feedback parameters of the voltage-controlled oscillator, and configures two phase-locked loop modules for switching, which can avoid output clock oscillation, thereby realizing small-granularity main frequency clock adjustment, greatly improving flexibility.

[0057] The embodiment of the present invention further provides a method for outputting a main frequency clock, which is applied to the above-mentioned main frequency clock output circuit. The main frequency clock output method provided by the present invention is described below, and the main frequency clock output method described below and the main frequency clock output circuit described above can be referred to each other.

[0058] See also Figure 3 , Figure 3This is one of the flow charts of the method for outputting the main frequency clock provided by an embodiment of the present invention. In this embodiment, the method for outputting the main frequency clock may include steps S310 to S340, and each step is specifically as follows: S310: When the current main frequency clock is output by the first phase-locked loop module, the control module receives a frequency adjustment instruction; wherein the frequency adjustment instruction includes a target frequency.

[0059] S320: The control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy.

[0060] S330: The second phase-locked loop module outputs a second clock signal meeting the target frequency to the target selector according to the control instruction.

[0061] S340: The target selector switches to output the second clock signal as the main frequency clock according to the control instruction.

[0062] In this embodiment, the output circuit of the above-mentioned main frequency clock is applied, and two phase-locked loop modules and a target selector are provided in the output circuit. When the control module receives the frequency adjustment instruction, the target frequency can be obtained by parsing, an adjustment strategy can be generated, and a control instruction can be issued to the second phase-locked loop module and the target selector according to the adjustment strategy, thereby realizing frequency switching.

[0063] Optionally, the phase-locked loop module can achieve frequency switching by adjusting its own voltage-controlled oscillator and / or post-frequency divider. For example, the second phase-locked loop module can output a second clock signal that meets the target frequency by adjusting its own voltage-controlled oscillator.

[0064] In some embodiments, the second phase-locked loop module may also implement frequency switching by using a voltage-controlled oscillator in conjunction with a post-frequency divider.

[0065] Based on the above embodiment, the control module generates an adjustment strategy according to the gap between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy, which may specifically include: The control module determines the frequency modulation parameters of the second phase-locked loop module; the control module determines the adjustment strategy of the voltage-controlled oscillator of the second phase-locked loop according to the frequency modulation parameters and the gap between the target frequency and the current main frequency clock; the control module sends a first control instruction to the second phase-locked loop module according to the adjustment strategy; the control module sends a second control instruction to the target selector according to the adjustment strategy.

[0066] In this embodiment, the control module can generate control instructions according to the adjustment strategy and send them to different control objects, such as sending a first control instruction to the second phase-locked loop module and a second control instruction to the target selector, thereby realizing overall control of the entire main frequency clock output circuit.

[0067] In some embodiments, the step of the second phase-locked loop module outputting a second clock signal meeting the target frequency to the target selector according to the control instruction may specifically include: The second phase-locked loop module adjusts the voltage-controlled oscillator to output a signal that meets the target frequency according to the first control instruction, and inputs the signal that meets the target frequency into the target selector as a second clock signal.

[0068] In this embodiment, the second phase-locked loop module may respond to the first control instruction and output a signal that meets the target frequency through adjustment of the voltage-controlled oscillator.

[0069] In some embodiments, the first phase-locked loop module includes a first phase-locked loop and a first selector; the second phase-locked loop module adjusts the voltage-controlled oscillator to output a signal that meets the target frequency according to the first control instruction, and inputs the signal that meets the target frequency as the second clock signal to the target selector before the step may specifically include: The control unit sends a third control instruction to the first phase-locked loop module; the first phase-locked loop processes the current main frequency clock through a post-divider according to the third control instruction, and outputs signals with different frequencies through multiple output pins; the first selector selects signals that are gradually close to the target frequency from the signals output by the multiple output pins in turn as the first clock signal according to the third control instruction, and inputs the first clock signal to the target selector, so that the target selector outputs the main frequency clock that is gradually close to the target frequency in turn.

[0070] In this embodiment, the control unit can also issue a third control instruction to the first phase-locked loop module. In response to the third control instruction, the first phase-locked loop in the first phase-locked loop module can process the current main frequency clock through a post-divider, output signals with different frequencies through multiple output pins, and cooperate with the first selector to select signals that are gradually close to the target frequency as the first clock signal in turn, and input the first clock signal to the target selector for output, thereby achieving fine-grained frequency adjustment.

[0071] In some embodiments, the second phase-locked loop module includes a second phase-locked loop and a second selector; the second phase-locked loop module adjusts the voltage-controlled oscillator to output a signal that meets the target frequency according to the first control instruction, and inputs the signal that meets the target frequency as the second clock signal to the target selector, which may specifically include: The second phase-locked loop adjusts the voltage-controlled oscillator to output a signal of the first intermediate frequency according to the first control instruction, processes the signal of the first intermediate frequency through a post-divider, and outputs signals of different frequencies through multiple output pins; the second selector selects a signal that meets the target frequency from the signals output by the multiple output pins as the second clock signal according to the first control instruction, and inputs the second clock signal to the target selector.

[0072] In this embodiment, the second phase-locked loop module outputs a second clock signal that meets the target frequency by means of a voltage-controlled oscillator in conjunction with a post-frequency divider, which can further reduce the granularity of frequency modulation and achieve fine-grained frequency regulation.

[0073] In some embodiments, the step of the target selector switching to output the second clock signal as the main frequency clock according to the control instruction may specifically include: The target selector switches to output the second clock signal as the main frequency clock when receiving the second clock signal conforming to the target frequency output by the second phase-locked loop module according to the second control instruction.

[0074] In this embodiment, the target selector can switch the clock source signal in response to the second control instruction: when the second control instruction is received while the first clock signal is currently output as the main frequency clock, the second clock signal is switched to be output as the main frequency clock signal; when the second control instruction is received while the second clock signal is currently output as the main frequency clock, the first clock signal is switched to be output as the main frequency clock signal.

[0075] In some embodiments, the target selector switches to output the second clock signal as the main frequency clock when receiving the second clock signal output by the second phase-locked loop module that meets the target frequency according to the second control instruction, which may specifically include: The target selector receives a second clock signal conforming to the target frequency output by the second phase-locked loop module; the target selector switches to output the second clock signal as the main frequency clock after a first preset time interval according to the second control instruction.

[0076] In this embodiment, since the relocking of the VCO of the PLL will cause clock oscillation, in this embodiment, after a first preset time interval, the output signal of the second phase-locked loop module can be waited to be stable, and then the second clock signal can be switched to be output as the main frequency clock.

[0077] Optionally, the first preset time may be a preset fixed time, or may be a waiting time when the output of the second phase-locked loop module is detected to be stable in real time.

[0078] In some embodiments, the method for outputting the main frequency clock further includes: When the current main frequency clock is output by the second phase-locked loop module, the control module receives a second frequency adjustment instruction; wherein the second frequency adjustment instruction includes a second target frequency; the control module generates a second adjustment strategy according to the difference between the second target frequency and the current main frequency clock, and sends a control instruction to the first phase-locked loop module and the target selector according to the second adjustment strategy; the first phase-locked loop module outputs a first clock signal that meets the second target frequency to the target selector according to the second control instruction; the target selector switches to output the first clock signal as the main frequency clock according to the second control instruction.

[0079] In this embodiment, after completing the switch from the first clock signal to the second clock signal, if a frequency adjustment instruction is received, in the same manner as described above, a control instruction is issued to the first phase-locked loop module and the target selector to adjust the new target frequency, and finally the first clock signal that meets the new target frequency is switched and output as the main frequency clock. The specific adjustment method can refer to the above-mentioned adjustment method for the second clock signal.

[0080] See also Figure 4 , Figure 4 This is the second flow chart of the method for outputting the main frequency clock provided by the embodiment of the present invention. In this embodiment, the method for outputting the main frequency clock may include steps S310 to S340, and each step is specifically as follows: S410: When the current main frequency clock is output by the first phase-locked loop module, the control module receives a frequency adjustment instruction; wherein the frequency adjustment instruction includes a target frequency.

[0081] S420: The control module determines the frequency modulation parameters of the second phase-locked loop module, and determines the adjustment strategy according to the frequency modulation parameters and the difference between the target frequency and the current main frequency clock.

[0082] S430: The control module sends a first control instruction to the second phase-locked loop module according to the adjustment strategy, sends a second control instruction to the target selector, and sends a third control instruction to the first phase-locked loop module.

[0083] S440: The first phase-locked loop processes the current main frequency clock through a post-frequency divider according to the third control instruction, and outputs signals with different frequencies through a plurality of output pins.

[0084] S450: The first selector selects signals gradually approaching the target frequency from the signals output from the plurality of output pins in sequence as the first clock signal according to the first control instruction, and inputs the first clock signal to the target selector for output.

[0085] S460: The second phase-locked loop module adjusts the voltage-controlled oscillator to output a second clock signal that meets the target frequency according to the first control instruction, and inputs the second clock signal to the target selector.

[0086] S470: The target selector switches to output the second clock signal as the main frequency clock after a first preset time interval according to the second control instruction.

[0087] In this embodiment, through the adjustment of the voltage-controlled oscillator of the second phase-locked loop module and the cooperation of the post-divider of the first phase-locked loop module, the configurable points of the frequency can be greatly increased, and a frequency conversion mechanism with fine granularity can be realized, which significantly improves the flexibility of the chip in frequency application configuration, and can flexibly set the corresponding frequency according to its own hierarchical positioning. In addition, when the frequency conversion demand changes slightly, the method of this embodiment also allows the chip to adjust the frequency conversion with a very small amplitude, thereby avoiding the situation where a large frequency conversion is forced due to the limited number of frequency conversion points, which in turn has an adverse effect on product performance. This design ensures that the chip can maintain excellent performance and stability when responding to different frequency conversion requirements.

[0088] Furthermore, this embodiment can analyze the difference between the target frequency and the currently running frequency. During the adjustment process of the two phase-locked loop modules, only one switching occurs, thereby reducing the noise caused by current changes, maintaining voltage stability, and improving the stability of the chip system.

[0089] In summary, an embodiment of the present invention provides an output method of a main frequency clock, using the above-mentioned output circuit of the main frequency clock, and the output method includes: when the current main frequency clock is output by the first phase-locked loop module, the control module receives a frequency adjustment instruction; wherein the frequency adjustment instruction includes a target frequency; the control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy; the second phase-locked loop module outputs a second clock signal that meets the target frequency to the target selector according to the control instruction; the target selector switches to output the second clock signal as the main frequency clock according to the control instruction. Through the above method, the embodiment of the present invention obtains a clock signal at any frequency point by adjusting the feedback parameters of the voltage-controlled oscillator, and configures two phase-locked loop modules for switching, which can avoid output clock oscillation, thereby realizing small-granularity main frequency clock adjustment and greatly improving flexibility.

[0090] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A main frequency clock output circuit, characterized in that: It includes a first phase-locked loop module, a second phase-locked loop module, a target selector and a control module; The control module is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector, the first phase-locked loop module is connected to the first input end of the target selector, and the second phase-locked loop module is connected to the second input end of the target selector; The control module is used to control the target selector to output the first clock signal of the first phase-locked loop module or the second clock signal of the second phase-locked loop module as the main frequency clock; When the current main frequency clock is output by the first phase-locked loop module and a frequency adjustment instruction including a target frequency is received, the control module controls the second phase-locked loop module to output a second clock signal that meets the target frequency, and controls the target selector to output the second clock signal as the main frequency clock; wherein the frequency adjustment of the second phase-locked loop module is obtained by adjusting the feedback parameters of the voltage-controlled oscillator in the second phase-locked loop module.

2. The main frequency clock output circuit according to claim 1, characterized in that: The first phase-locked loop module includes a first phase-locked loop and a first selector; the second phase-locked loop module includes a second phase-locked loop and a second selector; The control module is respectively connected to the first phase-locked loop, the first selector, the second phase-locked loop and the second selector; The first phase-locked loop comprises at least two output pins, and the signal frequencies of the at least two output pins are different; each output pin is connected to a different input end of the first selector, and the output end of the first selector is connected to the first input end of the target selector; The second phase-locked loop comprises at least two output pins, and the signal frequencies of the at least two output pins are different; each output pin is connected to a different input end of the second selector, and the output end of the second selector is connected to the second input end of the target selector; The first selector is used for selecting a signal of one of the output pins of the first phase-locked loop as the first clock signal according to an instruction of the control module; The first selector is used to select a signal of one of the output pins of the second phase-locked loop as the second clock signal according to an instruction of the control module.

3. The main frequency clock output circuit according to claim 1 or 2, characterized in that: The control module includes a register unit and a clock step control unit, the register unit is respectively connected to the communication bus and the clock step control unit; the clock step control unit is respectively connected to the first phase-locked loop module, the second phase-locked loop module and the target selector; The register unit is used to receive the frequency adjustment instruction through the communication bus; the clock step control unit is used to obtain the target frequency according to the frequency adjustment instruction, generate an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and issue control instructions to the second phase-locked loop module and the target selector according to the adjustment strategy.

4. A method for outputting a main frequency clock, characterized in that: The output circuit of the main frequency clock according to any one of claims 1 to 3, wherein the output method of the main frequency clock comprises: When the current main frequency clock is output by the first phase-locked loop module, the control module receives a frequency adjustment instruction, wherein the frequency adjustment instruction includes a target frequency; The control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy; The second phase-locked loop module outputs a second clock signal meeting the target frequency to the target selector according to the control instruction; The target selector switches and outputs the second clock signal as the main frequency clock according to the control instruction.

5. The method for outputting the main frequency clock according to claim 4, characterized in that: The control module generates an adjustment strategy according to the difference between the target frequency and the current main frequency clock, and sends a control instruction to the second phase-locked loop module and the target selector according to the adjustment strategy, including: The control module determines the frequency modulation parameters of the second phase-locked loop module; The control module determines a regulation strategy of the voltage-controlled oscillator of the second phase-locked loop according to the frequency modulation parameter and the gap between the target frequency and the current main frequency clock; The control module sends a first control instruction to the second phase-locked loop module according to the adjustment strategy; The control module sends a second control instruction to the target selector according to the adjustment strategy.

6. The method for outputting the main frequency clock according to claim 5, characterized in that: The second phase-locked loop module outputs a second clock signal meeting the target frequency to the target selector according to the control instruction, including: The second phase-locked loop module adjusts the voltage-controlled oscillator to output a signal that meets the target frequency according to the first control instruction, and inputs the signal that meets the target frequency into the target selector as the second clock signal.

7. The method for outputting the main frequency clock according to claim 6, characterized in that: The first phase-locked loop module includes a first phase-locked loop and a first selector; the second phase-locked loop module adjusts the voltage-controlled oscillator to output a signal that meets the target frequency according to the first control instruction, and inputs the signal that meets the target frequency as the second clock signal before being input to the target selector, including: The control unit sends a third control instruction to the first phase-locked loop module; The first phase-locked loop processes the current main frequency clock through a post-frequency divider according to the third control instruction, and outputs signals with different frequencies through a plurality of output pins; The first selector selects signals gradually approaching the target frequency from signals output from multiple output pins as the first clock signal in turn according to the third control instruction, and inputs the first clock signal to the target selector so that the target selector outputs a main frequency clock gradually approaching the target frequency in turn.

8. The method for outputting the main frequency clock according to claim 7, characterized in that: The target selector switches and outputs the second clock signal as the main frequency clock according to the control instruction, including: The target selector switches to output the second clock signal as the main frequency clock when receiving the second clock signal output by the second phase-locked loop module that meets the target frequency according to the second control instruction.

9. The method for outputting the main frequency clock according to claim 8, characterized in that: The target selector switches to output the second clock signal as the main frequency clock when receiving the second clock signal output by the second phase-locked loop module and meeting the target frequency according to the second control instruction, including: The target selector receives a second clock signal output by the second phase-locked loop module that meets the target frequency; The target selector switches to output the second clock signal as the main frequency clock after a first preset time interval according to the second control instruction.

10. The method for outputting a main frequency clock according to any one of claims 4 to 9, characterized in that: Also includes: When the current main frequency clock is output by the second phase-locked loop module, the control module receives a second frequency adjustment instruction; wherein the second frequency adjustment instruction includes a second target frequency; The control module generates a second adjustment strategy according to the difference between the second target frequency and the current main frequency clock, and sends a control instruction to the first phase-locked loop module and the target selector according to the second adjustment strategy; The first phase-locked loop module outputs a first clock signal satisfying the second target frequency to the target selector according to the second control instruction; The target selector switches and outputs the first clock signal as the main frequency clock according to the second control instruction.