A digitally controlled oscillator based on dynamic phase selection and a clock generation method thereof
Through dynamic phase selection and calibration devices, clock phase adjustment of non-multiphase clock signals is realized, solving the problems of large load and high power consumption of digital control oscillators in the prior art, reducing chip area and cost, and improving calibration efficiency .
Patent Information
- Application Number
- CN202111084728.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-07-29
- Filing Date
- 2021-09-16
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-09-16
AI Technical Summary
Existing digital controlled oscillators require a combination of multi-phase clock generators and phase-locked loops, resulting in large chip loads, high power consumption, large area, and high design and manufacturing costs.
Using a digital controlled oscillator based on dynamic phase selection, by receiving non-multiphase clock signals, using phase adjustment module and dynamic phase calculation and clock edge control module, dynamically adjust the clock phase, and equipped with calibration devices to generate error lookup tables to calibrate the clock in real time Signal.
Clock phase adjustment based on non-multiphase clock signals is realized, reducing chip load and power consumption, reducing chip area and design cost, and improving calibration efficiency.
Smart Images

Figure CN113783553B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oscillators, and in particular to a digitally controlled oscillator based on dynamic phase selection and a clock generation method thereof. Background Art
[0002] Digitally controlled oscillator (NCO) is an important component of software radio, direct data frequency synthesizer (DDS), fast Fourier transform (FFT), etc. It is also one of the main factors that determine its performance. It is used to generate controllable sine or cosine waves. With the improvement of chip integration, it is increasingly widely used in signal processing, digital communication, modulation and demodulation, variable frequency speed regulation, guidance control, power electronics, etc.
[0003] The digital controlled oscillator in the prior art usually needs to use a combination of a multi-phase clock generator and a delay locked loop, a phase locked loop, an oscillator, or other devices that can generate multi-phase clocks to generate multi-phase clocks and input them into a phase selection device to generate a target clock signal. As a result, the chip carrying the digital controlled oscillator has a large workload, high power consumption, a large chip area, and high design and manufacturing costs. Summary of the invention
[0004] In order to overcome the above technical defects, the purpose of the present invention is to provide a digitally controlled oscillator based on dynamic phase selection and a clock generation method thereof. The digitally controlled oscillator provided by the present invention can receive a non-multi-phase clock signal, which can be a differential clock signal. The clock adjustment requirement is allocated to the digitally controlled oscillator through a digital control word, and the digitally controlled oscillator can adjust the phase of the received differential clock signal according to the digital control word to output a target clock signal. In addition, the digitally controlled oscillator of the present invention also includes a calibration device, which can calibrate the clock signal generated by the digitally controlled oscillator in real time, and notify the digitally controlled oscillator to adjust the clock signal with errors, and can also generate an error lookup table and provide it to the digitally controlled oscillator.
[0005] An aspect of the present invention is to provide a digitally controlled oscillator, comprising a first input terminal, a second input terminal and an output terminal, and also comprising a phase adjustment module and a dynamic phase calculation and clock edge control module, wherein the phase adjustment module is connected to the first input terminal and the output terminal, and is used to receive a first clock input from the first input terminal, and is also used to adjust the phase of the first clock according to a control signal generated by the dynamic phase calculation and clock edge control module to obtain a second clock, and output the second clock through the output terminal; the dynamic phase calculation and clock edge control module is connected to the second input terminal and the output terminal, and is used to receive a digital control word input from the second input terminal, and a second clock output from the output terminal, and is also used to generate the control signal according to the digital control word and the second clock and send it to the phase adjustment module.
[0006] In some preferred embodiments, in a digitally controlled oscillator, the dynamic phase calculation and clock edge control module is also used to read the first position information of the most recent clock edge in the second clock, calculate the second position information of the next clock edge based on the first position information and the digital control word, and generate a control signal containing the second position information.
[0007] In some preferred embodiments, in a digitally controlled oscillator, the dynamic phase calculation and clock edge control module is also used to read the rising edge position information of the most recent clock edge in the second clock, and calculate the rising edge position information of the next clock edge based on the rising edge position information and the digital control word, and generate a control signal containing the rising edge position information. The phase adjustment module is also used to adjust the phase of the first clock so that the rising edge of the second clock occurs at the rising edge position corresponding to the rising edge position information, and calculate the falling edge position information based on a preset signal delay strategy and the rising edge position information, and adjust the phase of the first clock so that the falling edge of the second clock occurs at the falling edge position corresponding to the falling edge position information.
[0008] In some preferred embodiments, when the digitally controlled oscillator is in an initial condition, the phase adjustment module is used to generate a clock edge of the second clock at the first clock edge position according to the position information of the preset first clock edge position, and output the second clock through the output end.
[0009] In some preferred embodiments, the digitally controlled oscillator further includes an output stage, which is connected to the output end and is used to perform shaping processing on the second clock output by the output end.
[0010] In some preferred embodiments, in the digitally controlled oscillator, the phase adjustment module includes a current-mode phase adjustment unit or a voltage-mode phase adjustment unit.
[0011] In some preferred embodiments, the digitally controlled oscillator further includes a clock adjustment module, which is connected to the first input terminal and is used to receive and adjust the frequency of the original clock to generate the first clock and input it into the phase adjustment module through the first input terminal.
[0012] In some preferred embodiments, the clock adjustment module in the digital controlled oscillator includes a phase-locked loop, a clock frequency division module or a clock frequency multiplication module.
[0013] In some preferred embodiments, the digitally controlled oscillator further includes a calibration module, which is connected between the output end of the digitally controlled oscillator and the phase adjustment module, and is used to receive a calibration clock and a second clock, and to determine whether there is a phase error in the second clock by comparing the calibration clock and the second clock, and to generate a phase adjustment strategy based on the comparison result to notify the phase adjustment module to adjust the second clock.
[0014] In some preferred embodiments, in a digitally controlled oscillator, the calibration module includes a measuring unit and a calibration unit connected to the measuring unit, wherein the measuring unit is also connected to the output end, for receiving the calibration clock and the second clock, and for comparing the calibration clock and the second clock to determine whether there is a phase error in the second clock, and the calibration unit is also connected to the phase adjustment module, for generating a phase adjustment strategy based on the comparison result of the measuring unit and sending it to the phase adjustment module.
[0015] In some preferred embodiments, in a digitally controlled oscillator, the phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock, and the calibration module also includes a lookup table unit for generating an error lookup table according to the phase adjustment strategy and the clock information of the second clock corresponding to the phase adjustment strategy, and sending it to the phase adjustment module; the phase adjustment module includes a storage unit, a retrieval unit and an adjustment unit, the storage unit is used to store the error lookup table, the retrieval unit is used to retrieve the corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, and the adjustment unit is used to adjust the second clock according to the adjustment strategy.
[0016] In some preferred embodiments, the digital controlled oscillator is applied to a phase-locked loop, the phase-locked loop is connected to the output terminal and the second input terminal, and the phase-locked loop generates the digital control word according to the second clock and a reference clock.
[0017] In some preferred embodiments, the phase-locked loop is a digital phase-locked loop including a digital frequency detector, a digital filter and a digital frequency divider, wherein the digital frequency divider is connected to the digital frequency detector and the output end, and is used to generate a feedback clock according to a second clock output by the output end. The digital frequency detector is also connected to the digital filter, and is used to receive a reference clock and the feedback clock, and calculate the frequency and / or phase difference between the feedback clock and the reference clock, and send them to the digital filter. The digital filter is also connected to the second input end, and is used to generate the digital control word according to the frequency and / or phase difference, and send them to the second input end.
[0018] In some preferred embodiments, the phase-locked loop is a hybrid analog-to-digital phase-locked loop including a phase frequency detector, an analog filter, an analog-to-digital converter and a frequency divider, wherein the frequency divider is connected to the phase frequency detector and the output end, and is used to generate a feedback clock according to a second clock output by the output end, the phase frequency detector is also connected to the analog filter, and is used to receive a reference clock and the feedback clock, and calculate the frequency and / or phase difference between the feedback clock and the reference clock, and send it to the analog filter, the analog filter is also connected to the analog-to-digital converter, and is used to filter the frequency and / or phase difference, and the analog-to-digital converter is also connected to the second input end, and is used to generate a digital control word according to the frequency and / or phase difference, and is sent to the second input end.
[0019] Another aspect of the present invention is to provide a clock generation method based on a digitally controlled oscillator, which includes the following steps: a phase adjustment module receives a first clock from a first input terminal, and adjusts the first clock according to a control signal to obtain a second clock; a dynamic phase calculation and clock edge control module receives a digital control word from a second input terminal; the dynamic phase calculation and clock edge control module receives the second clock from an output terminal; the dynamic phase calculation and clock edge control module generates a control signal according to the digital control word and the second clock, and sends it to the phase adjustment module; the phase adjustment module adjusts the phase of the first clock according to the control signal to obtain a second clock; and the second clock is output through the output terminal.
[0020] In some preferred embodiments, in the clock generation method, the step in which the dynamic phase calculation and clock edge control module generates a control signal based on the digital control word and the second clock includes: the dynamic phase calculation and clock edge control module reads the first position information of the most recent clock edge in the second clock, calculates the second position information of the next clock edge based on the first position information and the digital control word, and generates a control signal containing the second position information.
[0021] In some preferred embodiments, in the clock generation method, the dynamic phase calculation and clock edge control module generates a control signal according to the digital control word and the second clock, and the phase adjustment module adjusts the phase of the first clock according to the control signal to obtain the second clock. The step includes: the dynamic phase calculation and clock edge control module reads the rising edge position information of the most recent clock edge in the second clock, and calculates the rising edge position information of the next clock edge according to the rising edge position information and the digital control word, and generates a control signal containing the rising edge position information; the phase adjustment module adjusts the phase of the first clock according to the control signal so that the rising edge of the second clock occurs at the rising edge position corresponding to the rising edge position information; the phase adjustment module also calculates the falling edge position information according to a preset signal delay strategy and the rising edge position information, and adjusts the phase of the first clock so that the falling edge of the second clock occurs at the falling edge position corresponding to the falling edge position information.
[0022] In some preferred embodiments, in the clock generation method, when the digitally controlled oscillator is in an initial condition, the phase adjustment module generates a clock edge of the second clock at the first clock edge position based on the position information of the preset first clock edge position, and outputs the second clock through the output end.
[0023] In some preferred embodiments, the clock generation method further includes: an output stage receiving a second clock output from the output end, and performing shaping processing on the second clock.
[0024] In some preferred embodiments, the clock generation method further includes that the phase adjustment module includes a current mode phase adjustment unit or a voltage mode phase adjustment unit, and the phase of the clock signal is adjusted by current or voltage adjustment.
[0025] In some preferred embodiments, the clock generation method further includes: a clock adjustment module receiving and adjusting the frequency of the original clock to generate the first clock and inputting the first clock into the phase adjustment module through the first input terminal.
[0026] In some preferred embodiments, in the clock generating method, the clock adjusting module includes a phase-locked loop, a clock frequency dividing module or a clock frequency multiplying module.
[0027] In some preferred embodiments, the clock generation method also includes the following clock calibration step, where the calibration module receives a calibration clock and a second clock, compares the calibration clock and the second clock to determine whether there is a phase error in the second clock, and generates a phase adjustment strategy based on the comparison result to notify the phase adjustment module to adjust the second clock.
[0028] In some preferred embodiments, in the clock generation method, the phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock, the error lookup table is stored in the phase adjustment module, the phase adjustment module retrieves the corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, and the phase adjustment module also adjusts the second clock according to the adjustment strategy.
[0029] In some preferred embodiments, in the clock generation method, the clock calibration method comprises the following steps:
[0030] S001: The calibration module obtains the second clock and the calibration clock.
[0031] S002: Acquire and record the clock information of the second clock, and query whether to traverse all the second clocks to be calibrated.
[0032] S003: When all second clocks to be calibrated have been traversed, an error lookup table is generated;
[0033] When all the second clocks to be calibrated have not been traversed, step S004 is executed.
[0034] S004: Compare the calibration clock with the second clock to determine whether there is a phase error in the second clock.
[0035] S005: When there is no phase error in the second clock, proceed to step S001.
[0036] When the second clock has a phase error, an adjustment strategy is generated and sent to the phase adjustment module, and the adjustment strategy and the second clock information are recorded and associated.
[0037] S006: Obtaining the second clock adjusted by the phase adjustment module according to the adjustment strategy,
[0038] S007: Compare the calibration clock with the adjusted second clock to determine whether the adjusted second clock has a phase error.
[0039] S008: When there is no phase error in the adjusted second clock, store the recorded phase error with the second clock
[0040] The adjustment strategy associated with the information, and executing step S001;
[0041] When the adjusted second clock has a phase error, the adjustment strategy is updated and sent to the phase adjustment module, and the adjustment strategy associated with the second clock information is updated and recorded, and step S006 is executed.
[0042] In some preferred embodiments, the clock calibration method, when there is a phase difference between the second clock or the adjusted second clock and the calibration clock, when the phase difference is not greater than a threshold, it is judged that the second clock or the adjusted second clock has no phase error; when the phase difference is greater than the threshold, it is judged that the second clock or the adjusted second clock has a phase error.
[0043] Compared with the prior art, the above technical solution has the following beneficial effects:
[0044] 1. The digital controlled oscillator and clock generation method of the present invention can dynamically adjust the clock phase based on a non-multi-phase clock signal to meet various application requirements;
[0045] 2. The calibration device and clock calibration method of the present invention can dynamically calibrate the clock signal and generate an error lookup table to improve the calibration efficiency;
[0046] 3. The digital controlled oscillator and calibration device thereof of the present invention reduce chip area and design requirements, lower manufacturing costs, and have excellent market application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 is a structural schematic diagram of a digital controlled oscillator according to a preferred embodiment of the present invention;
[0048] Figure 2 A schematic diagram of the structure of a current mode phase regulation circuit according to a preferred embodiment of the present invention;
[0049] Figure 3 A schematic diagram of the structure of a voltage-mode phase adjustment circuit according to a preferred embodiment of the present invention;
[0050] Figure 4 is a structural schematic diagram of another digital controlled oscillator in accordance with a preferred embodiment of the present invention;
[0051] Figure 5 A schematic diagram of the structure of a digital controlled oscillator including a calibration module according to a preferred embodiment of the present invention;
[0052] Figure 6 A schematic diagram of the structure of a digital controlled oscillator used in a phase-locked loop according to a preferred embodiment of the present invention;
[0053] Figure 7 A schematic diagram of the structure of a digitally controlled oscillator used in a phase-locked loop according to another preferred embodiment of the present invention;
[0054] Figure 81 is a flow chart of a clock generation method of a digital controlled oscillator according to a preferred embodiment of the present invention;
[0055] Fig. 9 A schematic diagram of dynamically selecting a phase to generate a clock signal in accordance with a preferred embodiment of the present invention;
[0056] Fig.10 1 is a flow chart of a clock calibration method for a digitally controlled oscillator according to a preferred embodiment of the present invention;
[0057] Fig.11 FIG. 4 is a flow chart of another clock calibration method for a digitally controlled oscillator according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0058] The advantages of the present invention are further described below in conjunction with the accompanying drawings and specific embodiments.
[0059] However, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0060] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". Other explicit and implicit definitions may also be included below.
[0061] See also Figure 1, which is a structural diagram of a digital controlled oscillator in accordance with a preferred embodiment of the present invention. As can be seen from the figure, the digital controlled oscillator provided in this embodiment mainly includes: a first input end, a phase adjustment module connected to the first input end, the phase adjustment module is also connected to the output end and the dynamic phase calculation and clock edge control module, and the dynamic phase calculation and clock edge control module is also connected to the above-mentioned output end and the second input end. Based on the above structural design, a first clock can be input into the digital controlled oscillator through the first input end, where the first clock is a non-multi-phase clock, which can be preferably a differential clock, which includes a pair of clock signals with opposite phases and has excellent anti-external interference capability; then the phase adjustment module can receive the first clock from the first input end, and in addition, the phase adjustment module can also receive a control signal from the dynamic phase calculation and clock edge control module, so that the phase adjustment module can adjust the phase of the first clock according to the above control signal to obtain a second clock with a target frequency and phase; and in this embodiment, a digital control word containing target frequency and / or phase information can be input into the digital controlled oscillator through the second input end, and the dynamic phase calculation and clock edge control module connected to the second input end can receive the above digital control word from the second input end, and receive the second clock from the above output end, and generate the above control signal according to the digital control word and the second clock to send to the phase adjustment module for adjusting the first clock. Preferably, when the digital controlled oscillator is in the initial condition, that is, when it is powered on, the phase adjustment module adjusts the phase of the received first clock to generate the second clock according to the preset control instruction. Preferably, the first clock and the second clock may have the same or different frequencies.
[0062] It should be understood that the term "first clock" mentioned in this embodiment and other embodiments of the present invention refers to a clock that is not output from the digitally controlled oscillator, and the term "second clock" refers to a clock output from the digitally controlled oscillator. Based on the digitally controlled oscillator provided in this embodiment, the "first clock" can be adjusted repeatedly and superimposedly, and the "second clock" can be any of the clocks obtained by adjusting the "first clock" at any time. In some embodiments of the present invention, there are also cases where the "second clock" is used to represent the "first clock", and those skilled in the art can fully distinguish them according to the description of the specific embodiment.
[0063] Based on the above embodiments, it can be seen that the digital controlled oscillator provided by the invention can realize, based on the controllable digital control word and the feedback second clock, multiple controllable phase adjustments of the non-multi-phase clock to obtain a target clock that meets the requirements. Thus, the computing workload of the chip carrying the digital controlled oscillator is reduced, the power consumption of the chip is reduced, and the area requirement of the chip can be further reduced, thereby reducing the design and manufacturing costs of the chip.
[0064] In some embodiments, the dynamic phase calculation and clock edge control module in the digitally controlled oscillator is also used to read the first position information of the most recent clock edge in the second clock, and calculate the second position information of the next clock edge based on the first position information and the digital control word, and generate a control signal containing the second position information. The most recent clock edge here refers to the clock edge of the second clock generated before the current clock phase adjustment of the digitally controlled oscillator. The clock edge refers to the signal state generated by the level jump of the digital clock signal, including a rising edge, indicating that the clock signal jumps from a low level to a high level; a falling edge, indicating that the clock signal jumps from a high level to a low level, so the most recent clock edge here can be the most recent rising edge or the most recent falling edge. The digital control word can be the clock frequency control word of the required clock, and can be defined as an integer or decimal format according to actual needs.
[0065] In a specific embodiment of the present invention, the precision control parameter of the digital controlled oscillator can also be set to M. The precision control parameter M can be set by a person skilled in the art according to the actual application environment. The minimum period factor of the clock generated by the digital oscillator is the phase step P, which depends on the precision control parameter M and the frequency of the input first clock, that is, P = 1 / (M*Fin). Then the period of the second clock Tout = P*DCW. If the first position information of the most recent clock edge is set to edge(n), and the second position information of the next clock edge is set to edge(n+1), then edge(n+1) = edge(n)+K*P*DCW, where K is Constant, K is a working parameter of the digital controlled oscillator set according to actual needs. When K=1, if edge(n) is the rising edge position information, edge(n+1) is the rising edge position information in the next clock cycle, and if edge(n) is the falling edge position information, edge(n+1) is the falling edge position information in the next clock cycle; when K is equal to a decimal, if edge(n) is the rising edge position information, edge(n+1) is the falling edge position information (edge'(n)) in the same clock cycle, and if edge(n) is the falling edge position information, edge(n+1) is the rising edge position information in the next clock cycle. Based on the above strategy, the dynamic phase calculation and clock edge control module in the digital controlled oscillator of the present invention can calculate the first position information edge(n) of the most recent clock edge from the second clock received at the output end, and receive the digital control word from the second input end, and calculate the position information edge(n+1) of the next clock edge, thereby obtaining a clock signal with the required frequency and phase.
[0066] In order to better understand the implementation method of the above technical solution of the present invention, some more specific embodiments are also provided here. For example, the precision control parameter M=32, the working parameter K=1, and the frequency Fin=1Ghz of the first clock of the digital controlled oscillator can be set. At this time, the phase step P=1 / (M*Fin)=0.03125ns of the clock generated by the digital controlled oscillator. When a digital control word DCW=40 is input, the clock period Tout=1.25ns of the second clock generated by the digital controlled oscillator, the clock frequency Fout=1 / Tout=800Mhz, can be used in any scenario requiring a clock frequency of 800Mhz. It should be understood that those skilled in the art can set the precision control parameter M and the digital control word to any value that meets the actual needs according to actual needs, for example, M=1000, 1000, 80, 40, 32, 30, 20, 10, 1, 0.8, 0.4, 0.2, 0.01, 0.001, etc., DCW=100, 80, 40, 20.5, 9, 3, 1, 0.5, 0.01, etc.
[0067] In some embodiments, the dynamic phase calculation and clock edge control module in the digitally controlled oscillator is also used to read the rising edge position information of the most recent clock edge in the second clock, and calculate the rising edge position information of the next clock edge based on the rising edge position information and the digital control word, and generate a control signal containing the rising edge position information; and the phase adjustment module is also used to adjust the phase of the first clock so that the rising edge of the second clock occurs at the rising edge position corresponding to the above-mentioned rising edge position information, and calculate the falling edge position information based on the preset signal delay strategy and the rising edge position information, and adjust the phase of the first clock so that the falling edge of the second clock occurs at the falling edge position corresponding to the above-mentioned falling edge position information.
[0068] For example, see Fig. 9 , the position information of the rising edge of the most recent clock edge is edge(n), and the received digital control word is DCW, then the position information of the rising edge of the next clock edge can be edge(n+1)=edge(n)+K*DCW*P, at this time K=1, edge(n+1) is always the position information of the rising edge in the next clock cycle, that is, the position information of the falling edge is no longer calculated in this embodiment. In this embodiment, there is no need to calculate the position information of the falling edge, but it can be calculated according to the signal delay strategy, which reduces the workload of the dynamic phase calculation and clock edge control modules, and reduces the design and manufacturing costs.
[0069] In some embodiments, when the digital controlled oscillator is in an initial condition, the phase adjustment module is used to generate a clock edge of the second clock at the first clock edge position according to the preset position information of the first clock edge position, and output the second clock through the output terminal, thereby starting the digital controlled oscillator to enter into dynamic and cyclic phase adjustment to obtain a clock signal that meets the frequency and / or phase requirements.
[0070] In some embodiments, the digital controlled oscillator further includes an output stage, which is connected to the above-mentioned output terminal, and the output stage can perform shaping processing on the second clock outputted by the output terminal to obtain a clock signal having a waveform that meets the application requirements, thereby improving the application field and scope of the generated clock signal. Preferably, the output stage in this embodiment can be any output stage circuit that can realize the above-mentioned function.
[0071] In some embodiments, the phase adjustment module of the digitally controlled oscillator may include a current mode phase adjustment unit or a voltage mode phase adjustment unit. Figure 2 and Figure 3 The current-mode phase adjustment unit or the voltage-mode phase adjustment unit may be a current-mode phase adjustment circuit or a voltage-mode phase adjustment circuit. Based on this, this embodiment may adjust the phase of the clock signal by adjusting the current or voltage.
[0072] See also Figure 4 In some embodiments, the digital controlled oscillator also includes a clock adjustment module. Preferably, the clock adjustment module includes a phase-locked loop, a clock division module or a clock multiplication module. The clock adjustment module is connected to the first input terminal mentioned above, so that before being input to the first input terminal, the original clock generated by the clock generating device is first input into the clock adjustment module. The clock adjustment module obtains a first clock with the required frequency by adjusting the frequency of the original clock. The first clock will be input into the phase adjustment module through the first input terminal to be used for subsequent phase adjustment.
[0073] See also Figure 5In some embodiments, the digital controlled oscillator further includes a calibration module, which is connected between the output end of the digital controlled oscillator and the phase adjustment module, and can receive a calibration clock and a second clock generated by the digital controlled oscillator, and judge whether the second clock generated by the digital controlled oscillator has a phase error by comparing the calibration clock and the second clock, and generate a phase adjustment strategy according to the comparison result to notify the phase adjustment module to adjust the second clock. Preferably, when the comparison result shows that there is a phase difference between the second clock and the calibration clock, and the phase difference is not greater than a threshold, the phase difference can be ignored, and it is considered that there is no phase error in the second clock; when the phase difference between the second clock and the calibration clock is greater than the threshold, it is considered that there is a phase error in the second clock. In this case, the calibration module generates a phase adjustment strategy according to the phase difference between the second clock and the calibration clock, and the phase adjustment strategy can enable the phase adjustment module to adjust the first clock according to the phase adjustment strategy to obtain a second clock with the phase error eliminated.
[0074] In some embodiments, the above-mentioned calibration module includes a measuring unit and a calibration unit connected to the measuring unit, wherein the measuring unit is also connected to the output end of the digitally controlled oscillator, so that the measuring unit can receive a second clock and a calibration clock generated by the digitally controlled oscillator, and the measuring unit can determine whether there is a phase error in the second clock by comparing the calibration clock and the second clock; the calibration unit is also connected to the phase adjustment module of the digitally controlled oscillator, and the calibration unit can generate a phase adjustment strategy based on the comparison result of the measuring unit, and the phase adjustment strategy can enable the phase adjustment module to adjust the first clock according to the phase adjustment strategy to obtain a second clock with the phase error eliminated.
[0075] In some embodiments, the phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock. In this case, the calibration module further includes a lookup table unit, which can generate an error lookup table according to the phase adjustment strategy generated by the phase calibration unit and the clock information of the second clock corresponding to the phase adjustment strategy, and can send the error lookup table to the phase adjustment module. When the phase adjustment module stores the error lookup table, and when the phase adjustment module adjusts the first clock to obtain the second clock, the phase adjustment module will search the error lookup table according to the clock information of the second clock to determine whether the second clock has a phase error, and can adjust the first clock again according to the corresponding adjustment strategy retrieved from the error lookup table to obtain the second clock with the phase error eliminated. Preferably, the phase adjustment module in the digitally controlled oscillator also includes a storage unit, a retrieval unit and an adjustment unit, wherein the storage unit can store the error lookup table, the retrieval unit can retrieve the corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, and the adjustment unit can adjust the second clock according to the adjustment strategy retrieved by the retrieval unit to obtain the second clock with the phase error eliminated.
[0076] In some embodiments, the digital controlled oscillator in the above embodiments can be applied to a phase-locked loop. In this case, the phase-locked loop is connected to the output end and the second input end of the digital controlled oscillator. The phase-locked loop can realize the generation of a corresponding digital control word according to the second clock generated by the digital controlled oscillator and the received reference clock, such as that emitted by a clock source with a fixed frequency and phase. The digital control word reflects the required clock frequency and / or phase, and is input to the digital controlled oscillator. The digital controlled oscillator can be controlled to generate a second clock signal that meets the frequency and / or phase requirements according to the methods in the above embodiments. It can be seen that the digital controlled oscillator provided by the present invention can realize the dynamic generation of a specific clock signal according to a specific application in an application, and the application is flexible and the cost is controllable.
[0077] See also Figure 6In some embodiments, the phase-locked loop may be a digital phase-locked loop including a digital frequency detector, a digital filter and a digital frequency divider, wherein the digital frequency divider is connected to the output ends of the digital frequency detector and the digitally controlled oscillator, and the digital frequency divider generates a feedback clock according to the second clock outputted from the output end; and the digital frequency detector is also connected to the digital filter, the digital frequency detector receives a reference clock and the feedback clock, and calculates the frequency and / or phase difference between the feedback clock and the reference clock, so as to send the calculated frequency and / or phase difference to the digital filter, and the digital filter is also connected to the second input end of the digitally controlled oscillator, so that a digital control word can be generated according to the received frequency and / or phase difference, so as to be sent to the second input end, so as to control the digitally controlled oscillator to generate a second clock signal meeting the frequency and / or phase requirements.
[0078] See also Figure 7 In some embodiments, the phase-locked loop may be a hybrid digital-analog phase-locked loop including a phase frequency detector, an analog filter, a digital-to-analog converter, and a frequency divider, wherein the frequency divider is connected to the output end of the phase frequency detector and the digitally controlled oscillator, and may generate a feedback clock according to a second clock outputted from the output end; the phase frequency detector is also connected to the analog filter, and may receive a reference clock and a feedback clock, and calculate the frequency and / or phase difference between the feedback clock and the reference clock, so as to send the frequency and / or phase difference to the analog filter, and the analog filter is also connected to the analog-to-digital converter, and may filter the frequency and / or phase difference, and the analog-to-digital converter is also connected to the second input end of the digitally controlled oscillator, and may generate a digital control word according to the frequency and / or phase difference after filtering, so as to send the digitally controlled oscillator to generate a second clock signal that meets the frequency and / or phase requirements.
[0079] Another aspect of the present invention further provides a clock generation method based on a digitally controlled oscillator, which can be applied to the digitally controlled oscillator described in the above embodiments. Figure 8 , which is a flow chart of a clock generation method according to a preferred embodiment of the present invention. It can be seen from the figure that the clock generation method of this embodiment includes the following steps:
[0080] - A phase adjustment module receives a first clock from a first input terminal and adjusts the first clock according to a control signal to obtain a second clock;
[0081] -The dynamic phase calculation and clock edge control module receives the digital control word from the second input terminal;
[0082] -the dynamic phase calculation and clock edge control module receives the second clock from the output terminal;
[0083] - the dynamic phase calculation and clock edge control module generates a control signal according to the digital control word and the second clock, and sends it to the phase adjustment module;
[0084] - the phase adjustment module adjusts the phase of the first clock according to the control signal to obtain a second clock;
[0085] - outputting the second clock through the output terminal.
[0086] The first clock is a non-multi-phase clock, and may preferably be a differential clock.
[0087] In some implementations, the step of the dynamic phase calculation and clock edge control module generating a control signal according to the digital control word and the second clock includes:
[0088] - the dynamic phase calculation and clock edge control module reads the first position information of the most recent clock edge in the second clock;
[0089] -The dynamic phase calculation and clock edge control module calculates the second position information of the next clock edge according to the first position information and the digital control word, and generates a control signal containing the second position information.
[0090] The most recent clock edge here refers to the clock edge of the second clock generated before the current clock phase adjustment of the digitally controlled oscillator. The clock edge refers to the signal state caused by the level jump of the digital clock signal, including the rising edge, indicating that the clock signal jumps from a low level to a high level; the falling edge, indicating that the clock signal jumps from a high level to a low level, so the most recent clock edge here can be the most recent rising edge or the most recent falling edge. The digital control word is the clock frequency control word of the required clock, which can be defined as an integer or decimal format according to actual needs. For examples of the specific working principle and specific implementation method of the dynamic phase calculation and clock edge control module in this embodiment, please refer to the detailed description of the digitally controlled oscillator part, which will not be repeated here.
[0091] In some embodiments, the dynamic phase calculation and clock edge control module generates a control signal according to the digital control word and the second clock, and the phase adjustment module adjusts the phase of the first clock according to the control signal to obtain the second clock, comprising:
[0092] - the dynamic phase calculation and clock edge control module reads the rising edge position information of the most recent clock edge in the second clock, calculates the rising edge position information of the next clock edge according to the rising edge position information and the digital control word, and generates a control signal containing the rising edge position information;
[0093] - the phase adjustment module adjusts the phase of the first clock according to the control signal so that a rising edge of the second clock occurs at the rising edge position corresponding to the rising edge position information;
[0094] -The phase adjustment module also calculates the falling edge position information according to the preset signal delay strategy and the rising edge position information, and adjusts the phase of the first clock to cause the falling edge of the second clock to occur at the falling edge position corresponding to the falling edge position information.
[0095] For examples of the specific working principles and specific implementation methods of the dynamic phase calculation and clock edge control modules in this embodiment, please refer to the detailed description of the digital controlled oscillator part, which will not be repeated here.
[0096] In some embodiments, when the digital controlled oscillator is in an initial condition, the phase adjustment module generates a clock edge of the second clock at the first clock edge position according to the preset position information of the first clock edge position, and outputs the second clock through the output terminal, thereby starting the digital controlled oscillator to enter into dynamic and cyclic phase adjustment to obtain a clock signal that meets the frequency and / or phase requirements.
[0097] In some embodiments, the clock generation method also includes the step of using an output stage to receive a second clock output from the output end, and shaping the second clock to obtain a clock signal having a waveform that meets application requirements, thereby improving the application field and scope of the generated clock signal.
[0098] In some embodiments, the phase adjustment module in the applied digital controlled oscillator includes a current mode phase adjustment unit or a voltage mode phase adjustment unit, and the phase of the clock signal can be adjusted by current or voltage adjustment.
[0099] In some embodiments, the clock generation method further includes the step of using a clock adjustment module to receive and adjust the frequency of the original clock to generate the first clock that meets the application requirements and input the first clock into the phase adjustment module through the first input terminal. Preferably, the clock adjustment module may include a phase-locked loop, a clock frequency division module, or a clock frequency multiplication module.
[0100] See also Fig.10In some embodiments, the clock generation method further includes the steps of using a calibration module to receive a calibration clock and a second clock, comparing the calibration clock and the second clock to determine whether the second clock has a phase error, and generating a phase adjustment strategy based on the comparison result to notify the phase adjustment module to adjust the second clock. Preferably, when the comparison result shows that there is a phase difference between the second clock and the calibration clock, and the phase difference is not greater than a threshold, the phase difference can be ignored and it is considered that there is no phase error in the second clock; when the phase difference between the second clock and the calibration clock is greater than the threshold, it is considered that there is a phase error in the second clock. In this case, the calibration module generates a phase adjustment strategy based on the phase difference between the second clock and the calibration clock. The phase adjustment strategy can enable the phase adjustment module to adjust the first clock according to the phase adjustment strategy to obtain a second clock with the phase error eliminated.
[0101] In some embodiments, the phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock. Based on this, if the error lookup table is stored in the phase adjustment module, the phase adjustment module can retrieve the corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, and adjust the second clock again according to the adjustment strategy to obtain a second clock with the phase error eliminated.
[0102] See also Fig.11 , which is a flow chart of a clock calibration method according to a preferred embodiment of the present invention. It can be seen from the figure that in some embodiments, the clock calibration method may further include the following steps:
[0103] S001: The calibration module obtains a second clock and a calibration clock;
[0104] S002: Acquire and record the clock information of the second clock, and query whether to traverse all the second clocks to be calibrated;
[0105] S003: When all second clocks to be calibrated are traversed, an error lookup table is generated;
[0106] When all the second clocks to be calibrated have not been traversed, executing step S004;
[0107] S004: Compare the calibration clock with the second clock to determine whether there is a phase error in the second clock;
[0108] S005: When there is no phase error in the second clock, proceed to step S001;
[0109] When the second clock has a phase error, an adjustment strategy is generated and sent to the phase adjustment module, and the adjustment strategy and the second clock information are recorded and associated.
[0110] S006: Obtaining the second clock adjusted by the phase adjustment module according to the adjustment strategy,
[0111] S007: Compare the calibration clock with the adjusted second clock to determine whether the adjusted second clock has a phase error.
[0112] S008: When there is no phase error in the adjusted second clock, store the recorded adjustment strategy associated with the second clock information, and execute step S001;
[0113] When the adjusted second clock has a phase error, the adjustment strategy is updated and sent to the phase adjustment module, and the adjustment strategy associated with the second clock information is updated and recorded, and step S006 is executed.
[0114] Based on the above embodiments, it can be seen that the calibration method provided in this embodiment can also realize the pre-calibration of all clock signals generated by the digitally controlled oscillator, and generate an error lookup table for storage in the phase adjustment module of the digitally controlled oscillator. Thus, during operation, the phase adjustment module can calibrate and adjust the generated second clock in real time to make the second clock of the digitally controlled oscillator free of phase error, thereby meeting the actual application requirements.
[0115] In some embodiments, when there is a phase difference between the second clock or the adjusted second clock and the calibration clock, when the phase difference is not greater than a threshold, it is determined that there is no phase error in the second clock or the adjusted second clock, and when the phase difference is greater than a threshold, it is determined that there is a phase error in the second clock or the adjusted second clock. The threshold here can be adjusted according to actual application requirements to meet different requirements for clock accuracy in different applications.
[0116] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A digitally controlled oscillator, comprising a first input terminal, a second input terminal and an output terminal, characterized in that: It also includes a phase adjustment module and a dynamic phase calculation and clock edge control module, wherein The phase adjustment module is connected to the first input terminal and the output terminal, and is used to receive the first clock input from the first input terminal, and is also used to adjusting the phase and / or frequency of the first clock according to the control signal generated by the dynamic phase calculation and clock edge control module to obtain a second clock, and outputting the second clock through the output terminal, The dynamic phase calculation and clock edge control module is connected to the second input terminal and the output terminal, and is used to receive the digital control word input from the second input terminal and the second clock output from the output terminal, and is also used to generate the control signal according to the digital control word and the second clock and send it to the phase adjustment module; The dynamic phase calculation and clock edge control module is also used to read the first position information of the most recent clock edge in the second clock, calculate the second position information of the next clock edge based on the first position information and the digital control word, and generate a control signal containing the second position information.
2. The digital controlled oscillator according to claim 1, characterized in that The dynamic phase calculation and clock edge control module is further used to read the rising edge position information of the most recent clock edge in the second clock, calculate the rising edge position information of the next clock edge according to the rising edge position information and the digital control word, and generate a control signal containing the rising edge position information. The phase adjustment module is also used to adjust the phase of the first clock so that the rising edge of the second clock occurs at the rising edge position corresponding to the rising edge position information, and calculate the falling edge position information according to the preset signal delay strategy and the rising edge position information, and adjust the phase of the first clock so that the falling edge of the second clock occurs at the falling edge position corresponding to the falling edge position information.
3. The digital controlled oscillator according to claim 1, characterized in that When the digital controlled oscillator is in the initial condition, The phase adjustment module is used to generate a clock edge of the second clock at the first clock edge position according to the position information of the preset first clock edge position, and output the second clock through the output end.
4. The digital controlled oscillator according to claim 1, characterized in that Also includes An output stage is connected to the output end and is used for shaping a second clock outputted by the output end.
5. The digital controlled oscillator according to claim 1, characterized in that: The phase adjustment module includes a current mode phase adjustment unit or a voltage mode phase adjustment unit.
6. The digital controlled oscillator according to claim 1, characterized in that Also includes A clock adjustment module is connected to the first input end and is used to receive and adjust the frequency of the original clock to generate the first clock and input the first clock into the phase adjustment module through the first input end.
7. The digital controlled oscillator according to claim 6, characterized in that The clock adjustment module includes a phase-locked loop, a clock frequency division module or a clock frequency multiplication module.
8. The digital controlled oscillator according to claim 1, characterized in that Also includes Calibration module, The calibration module is connected between the output end of the digitally controlled oscillator and the phase adjustment module, and is used to receive a calibration clock and a second clock, and to determine whether there is a phase error in the second clock by comparing the calibration clock and the second clock, and to generate a phase adjustment strategy based on the comparison result to notify the phase adjustment module to adjust the second clock.
9. The digital controlled oscillator according to claim 8, characterized in that The calibration module includes a measuring unit and a calibration unit connected to the measuring unit, wherein The measuring unit is also connected to the output end, and is used to receive the calibration clock and the second clock, and to determine whether there is a phase error in the second clock by comparing the calibration clock and the second clock. The calibration unit is also connected to the phase adjustment module, and is used to generate a phase adjustment strategy based on the comparison result of the measuring unit and send it to the phase adjustment module.
10. The digital controlled oscillator according to claim 8, characterized in that The phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock, The calibration module further includes a lookup table unit, which is used to generate an error lookup table according to the phase adjustment strategy and the clock information of the second clock corresponding to the phase adjustment strategy, and send the table to the phase adjustment module, wherein the phase adjustment module includes a storage unit, a retrieval unit and an adjustment unit. The storage unit is used to store the error lookup table. The retrieval unit is used to retrieve the corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, The adjusting unit is used for adjusting the second clock according to the adjusting strategy.
11. The digital controlled oscillator according to any one of claims 1 to 10, characterized in that: The digital controlled oscillator is applied to a phase locked loop, The phase-locked loop is connected to the output end and the second input end, and the phase-locked loop generates the digital control word according to the second clock and a reference clock.
12. The digital controlled oscillator according to claim 11, characterized in that The phase-locked loop is a digital phase-locked loop including a digital phase frequency detector, a digital filter and a digital frequency divider, wherein the digital frequency divider is connected to the digital phase frequency detector and the output end, and is used to generate a feedback clock according to a second clock output by the output end. The digital frequency and phase detector is also connected to the digital filter, and is used to receive the reference clock and the feedback clock, and calculate the frequency and / or phase difference between the feedback clock and the reference clock, and send it to the digital filter. The digital filter is also connected to the second input terminal, and is used to generate the digital control word according to the frequency and / or phase difference, and send it to the second input terminal.
13. The digital controlled oscillator according to claim 11, characterized in that The phase-locked loop is a digital-analog hybrid phase-locked loop including a phase frequency detector, an analog filter, an analog-to-digital converter and a frequency divider, wherein The frequency divider is connected to the frequency detector and the output terminal, and is used to generate a feedback clock according to the second clock output by the output terminal. The frequency detector is also connected to the analog filter, and is used to receive the reference clock and the feedback clock, and calculate the frequency and / or phase difference between the feedback clock and the reference clock, so as to send the frequency and / or phase difference to the analog filter. The analog filter is also connected to the analog-to-digital converter, and is used to filter the frequency and / or phase difference. The analog-to-digital converter is also connected to the second input terminal, and is used to generate a digital control word according to the frequency and / or phase difference, so as to send the digital control word to the second input terminal.
14. A clock generation method based on a digitally controlled oscillator, characterized in that: The following steps are involved: The phase adjustment module receives a first clock from a first input terminal, and adjusts the first clock according to a control signal to obtain a second clock; The dynamic phase calculation and clock edge control module receives the digital control word from the second input terminal; The dynamic phase calculation and clock edge control module receives the second clock from the output terminal; The dynamic phase calculation and clock edge control module generates a control signal according to the digital control word and the second clock, and sends it to the phase adjustment module; The phase adjustment module adjusts the phase and / or frequency of the first clock according to the control signal to obtain a second clock; outputting the second clock via the output terminal; The step of generating a control signal according to the digital control word and the second clock by the dynamic phase calculation and clock edge control module comprises: The dynamic phase calculation and clock edge control module reads the first position information of the most recent clock edge in the second clock, calculates the second position information of the next clock edge according to the first position information and the digital control word, and generates a control signal including the second position information.
15. The clock generation method according to claim 14, characterized in that: The steps of the dynamic phase calculation and clock edge control module generating a control signal according to the digital control word and the second clock, and the phase adjustment module adjusting the phase of the first clock to obtain the second clock according to the control signal include: The dynamic phase calculation and clock edge control module reads the rising edge position information of the most recent clock edge in the second clock, calculates the rising edge position information of the next clock edge according to the rising edge position information and the digital control word, and generates a control signal containing the rising edge position information. The phase adjustment module adjusts the phase of the first clock according to the control signal so that a rising edge of the second clock occurs at the rising edge position corresponding to the rising edge position information. The phase adjustment module also calculates the falling edge position information according to the preset signal delay strategy and the rising edge position information, and adjusts the phase of the first clock to cause the falling edge of the second clock to occur at the falling edge position corresponding to the falling edge position information.
16. The clock generation method according to claim 14, characterized in that: When the digital controlled oscillator is in the initial condition, The phase adjustment module generates a clock edge of the second clock at the first clock edge position according to the position information of the preset first clock edge position, and outputs the second clock through the output end.
17. The clock generation method according to claim 14, characterized in that: Also includes The output stage receives the second clock output from the output terminal and performs shaping processing on the second clock.
18. The clock generation method according to claim 14, characterized in that: Also includes The phase adjustment module includes a current mode phase adjustment unit or a voltage mode phase adjustment unit, and adjusts the phase of the clock signal by adjusting the current or voltage.
19. The clock generation method according to claim 14, wherein: Also includes The clock adjustment module receives and adjusts the frequency of the original clock to generate the first clock and inputs the first clock into the phase adjustment module through the first input terminal.
20. The clock generation method according to claim 19, characterized in that: The clock adjustment module includes a phase-locked loop, a clock frequency division module or a clock frequency multiplication module.
21. The clock generation method according to claim 14, wherein: The following clock calibration steps are also included: The calibration module receives a calibration clock and a second clock, compares the calibration clock and the second clock to determine whether the second clock has a phase error, and generates a phase adjustment strategy according to the comparison result to notify the phase adjustment module to adjust the second clock.
22. The clock generation method according to claim 21, characterized in that: The phase adjustment strategy is an error lookup table including at least one adjustment strategy corresponding to the clock information of the second clock, The error lookup table is stored in the phase adjustment module. The phase adjustment module retrieves a corresponding adjustment strategy from the error lookup table according to the clock information of the second clock, The phase adjustment module further adjusts the second clock according to the adjustment strategy.
23. The clock generation method according to claim 21, characterized in that: The clock calibration comprises the following steps: S001: The calibration module obtains the second clock and the calibration clock. S002: Acquire and record the clock information of the second clock, and query whether to traverse all the second clocks to be calibrated. S003: When all second clocks to be calibrated have been traversed, an error lookup table is generated; When all the second clocks to be calibrated have not been traversed, step S004 is executed. S004: Compare the calibration clock with the second clock to determine whether there is a phase error in the second clock. S005: When there is no phase error in the second clock, proceed to step S001. When the second clock has a phase error, an adjustment strategy is generated and sent to the phase adjustment module, and the adjustment strategy and the second clock information are recorded and associated. S006: Obtaining the second clock adjusted by the phase adjustment module according to the adjustment strategy, S007: Compare the calibration clock with the adjusted second clock to determine whether the adjusted second clock has a phase error. S008: When there is no phase error in the adjusted second clock, store the recorded adjustment strategy associated with the second clock information, and execute step S001; When the adjusted second clock has a phase error, the adjustment strategy is updated and sent to the phase adjustment module, and the adjustment strategy associated with the second clock information is updated and recorded, and steps are executed. S006。 24. The clock generation method according to claim 21, characterized in that: When the second clock or the adjusted second clock has a phase difference with the calibration clock, When the phase difference is not greater than a threshold, it is determined that the second clock or the adjusted second clock has no phase error, When the phase difference is greater than a threshold, it is determined that the second clock or the adjusted second clock has a phase error.
Citation Information
Patent Citations
Numerically controlled oscillator working under near-threshold power voltage
CN105743496A
Digital-controlled oscillator and all-digital frequency-locked loop based on digital-controlled oscillator and phase-locked loop
CN108270437A
Digital controlled oscillator with wide dynamic range
KR1020100047983A
Phase and frequency digital synchronizer
US20190199358A1
Method and apparatus for synchronizing internal state of frequency generators on a communications network
WO2006029511A1
