Same-source, different-phase clock generation device, method and equipment

Through the combination of automatic calibration module, delay configuration module and delay module, the problem of individual differences between homologous and heterogeneous clocks in mass production equipment is solved, and efficient and accurate clock generation is achieved, suitable for mass production, and improving the The stability and efficiency of the system are achieved.

CN113904665BActive Publication Date: 2024-11-01GUANGZHOU INTELLIGENT CITY DEV INST
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111428522.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-11-01
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

The existing homologous and heterophase clocks have individual differences in mass production equipment, which are difficult to accurately control, resulting in system function disorders, traditional manual calibration methods are inefficient, and are suitable for batch research and production unfriendly.

Method used

A homologous and heterogeneous clock generation device is designed, including an automatic calibration module, a delay configuration module and a delay module. The target phase difference information is obtained through the automatic calibration module, and the delay configuration module outputs control signals. The delay module uses the signal and source. The clock turns on the delay unit to generate a homologous and heterogeneous clock with accurate phase difference.

Benefits of technology

It realizes efficient generation of homologous and heterogeneous clocks with accurate phase differences, improves the accuracy and production efficiency of the clock, and is suitable for batch research and production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113904665B_ABST
    Figure CN113904665B_ABST
Patent Text Reader

Abstract

The present invention provides a device, method and equipment for generating homologous and heterogeneous clocks. The device comprises: an automatic calibration module, a delay configuration module and a delay module connected in sequence; wherein the automatic calibration module is used to obtain the first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal; according to the first information, the second information of the delay unit corresponding to the input first phase difference is determined; the delay configuration module is used to output the first control signal according to the second information; the delay module is used to turn on the delay unit in the delay module according to the first control signal and the source clock, and output the homologous and heterogeneous clocks. The present invention can efficiently generate homologous and heterogeneous clocks with precise phase difference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal processing, and in particular to a device, method and equipment for generating same-source but different-phase clocks. Background Art

[0002] The clock is the basis of sequential logic. It determines when the status in the logic unit is updated and is the key to ensuring that electronic components can work in complete synchronization. If the clock is inaccurate, it will cause system function disorder. Therefore, the accuracy of the clock determines whether the system can operate healthily and well.

[0003] The same-source, out-of-phase clocks used in actual scenarios are usually generated by a phase-locked loop or a delay phase-locked loop. The phases do not need to be the same, only fixed. However, due to the influence of process angle, temperature and humidity, voltage, circuit structure, etc., the phase difference of the same-source, out-of-phase clocks of the same batch of mass-produced equipment in various application scenarios often has individual differences and cannot be accurately controlled.

[0004] At present, the usual solution to the problem of clock accuracy is to configure the pins to connect to an oscilloscope and manually compare the waveforms of the oscilloscope to calibrate the clock generation circuit. However, manual calibration is not friendly to mass research, production, and application, and it takes a lot of time and has low efficiency. Summary of the invention

[0005] In view of the problems in the prior art, embodiments of the present invention provide a device, method and apparatus for generating clocks of the same source but different phases.

[0006] Specifically, the embodiment of the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a device for generating clocks of the same source and different phases, including:

[0008] An automatic calibration module, a delay configuration module and a delay module connected in sequence;

[0009] The automatic calibration module is used to obtain the first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal; and determine the second information of the delay unit corresponding to the input first phase difference according to the first information;

[0010] A delay configuration module, configured to output a first control signal according to the second information;

[0011] The delay module is used to start the delay unit in the delay module according to the first control signal and the source clock, and output the same-source but different-phase clocks.

[0012] Furthermore, the automatic calibration module comprises:

[0013] Adaptive control circuit, operation circuit and sampling register;

[0014] Wherein, the input end of the adaptive control circuit is used to receive the input automatic calibration enable signal and the first phase difference; the output end of the adaptive control circuit is connected to the input end of the operation circuit, the output end of the operation circuit is connected to the input end of the delay configuration module, and the output end of the delay configuration module is connected to the input end of the delay module; the input end of the sampling register is connected to the output end of the delay module, and the output end of the sampling register is connected to the adaptive control circuit;

[0015] The adaptive control circuit is specifically used to enable the delay units in the delay module step by step according to the automatic calibration enable signal, and sequentially determine whether a target phase difference is detected according to the sampling results of sampling the out-of-phase clock generated by the delay module according to the sampling register, and if the target phase difference is detected, obtain the first information corresponding to the target phase difference;

[0016] The sampling register is used to sample the out-of-phase clock generated by the delay module to obtain the sampling result;

[0017] The operation circuit is used to determine the second information of the delay unit corresponding to the first phase difference according to the first information corresponding to the target phase difference.

[0018] Furthermore, the adaptive control circuit comprises:

[0019] Automatic calibration start judgment unit, step-by-step start control unit and clock inversion detection unit;

[0020] Wherein, the output end of the automatic calibration start judgment unit is connected to the step-by-step start control unit and the delay configuration module respectively;

[0021] The output end of the step-by-step opening control unit is connected to the delay configuration module and the sampling register respectively; the input end of the clock inversion detection unit is connected to the output end of the sampling register, and the output end of the clock inversion detection unit is connected to the input end of the operation circuit;

[0022] The automatic calibration start judgment unit is used to output a second control signal and the first phase difference according to the automatic calibration enable signal;

[0023] The step-by-step opening control unit is used to open the delay units in the delay module step by step according to the second control signal, and output the target information of the opened delay units to the sampling register;

[0024] The clock inversion detection unit is used to determine whether a target phase difference is detected according to the sampling result of the sampling register; if the target phase difference is detected, the target information is used as the first information corresponding to the target phase difference and output to the operation circuit.

[0025] Furthermore, the operation circuit comprises:

[0026] Phase parameter operation unit and full addition and subtraction circuit;

[0027] Wherein, the first input end of the phase parameter operation unit is connected to the clock inversion detection unit; the first output end of the phase parameter operation unit is connected to the delay configuration module, the second output end of the phase parameter operation unit is connected to the full addition and subtraction circuit, and the output end of the full addition and subtraction circuit is connected to the second input end of the phase parameter operation unit;

[0028] The phase parameter calculation unit is used to determine the third information of the delay unit turned on corresponding to the second phase difference and the fourth information of the delay unit turned on corresponding to the third phase difference according to the first information corresponding to the target phase difference and the first phase difference;

[0029] The full addition and subtraction circuit is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the turned-on delay unit.

[0030] Furthermore, the full adder-subtractor circuit comprises: a two-choice circuit and a full adder;

[0031] The input end of the two-choice circuit is connected to the third output end of the phase parameter operation unit, and the output end of the full adder serves as the output end of the full addition-subtraction circuit;

[0032] The two-choice circuit is used to select a corresponding operation mode according to the third control signal output by the phase parameter operation unit;

[0033] The full adder is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the turned-on delay unit and the operation method.

[0034] Furthermore, the delay module comprises:

[0035] A decoder and multiple delay units;

[0036] The decoder is used to control the corresponding delay unit to start according to the first control signal.

[0037] Further, a gate control module, wherein an output end of the gate control module is connected to an input end of the automatic calibration module;

[0038] The gating module is used to control the automatic calibration module to be synchronously reset and clock-gated after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock.

[0039] Furthermore, the gate control module includes:

[0040] Two stages of synchronous registers and gating units connected in sequence;

[0041] The two-stage synchronization register is used to control the automatic calibration module to be synchronously reset after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock, and output a fourth control signal to the gate control unit;

[0042] The gating unit is used to control the automatic calibration module to perform clock gating according to the fourth control signal output by the synchronization register and the source clock.

[0043] In a second aspect, an embodiment of the present invention further provides a method for generating clocks of the same source and different phases, comprising:

[0044] Get the first phase difference;

[0045] Determine second information of the delay unit corresponding to the first phase difference according to the first phase difference and the first information of the delay unit turned on corresponding to the target phase difference;

[0046] According to the second information of the delay unit corresponding to the first phase difference and the source clock, the delay unit corresponding to the first phase difference is turned on, and the same-source but different-phase clocks are output.

[0047] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising the same-source but different-phase clock generating device as described in the first aspect.

[0048] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for generating same-source but different-phase clocks as described in the second aspect are implemented.

[0049] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for generating same-source but different-phase clocks as described in the second aspect.

[0050] The same-source, different-phase clock generating device provided by the present invention comprises an automatic calibration module, a delay configuration module and a delay module connected in sequence; wherein the automatic calibration module obtains the first information of the delay unit corresponding to the target phase difference, and combines the corresponding relationship between the target phase difference and the first phase difference to be generated, that is, the second information of the delay unit corresponding to the first phase difference can be accurately determined; the delay configuration module and the delay module control the opening of the corresponding delay unit according to the second information, that is, through the automatic calibration module, the delay configuration module and the delay module,

[0051] It can efficiently generate clocks of the same source but different phases with precise phase difference. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0053] Figure 1 The structure of the same source and different phase clock generating device provided by the present invention is shown in FIG. Figure 1 ;

[0054] Figure 2 It is a schematic diagram of an automatic calibration module of a same-source but different-phase clock generating device provided by the present invention;

[0055] Figure 3 It is a schematic diagram of a full addition and subtraction circuit of a same-source but different-phase clock generation device provided by the present invention;

[0056] Figure 4 It is a schematic diagram of a delay unit in a delay module of a homologous but heterogeneous clock generating device provided by the present invention;

[0057] Figure 5 It is a schematic diagram of a gating module of a same-source but different-phase clock generating device provided by the present invention;

[0058] Figure 6 The structure of the same source and different phase clock generating device provided by the present invention is shown in FIG. Figure 2 . DETAILED DESCRIPTION

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

[0060] The device of the embodiment of the present invention can be applied to the scenario of generating same-source but different-phase clocks, and can efficiently generate same-source but different-phase clocks with precise phase difference.

[0061] In related technologies, the same-source, out-of-phase clocks are usually generated by a phase-locked loop or a delay phase-locked loop. The phases do not need to be the same, only fixed. However, due to the influence of process angles, temperature and humidity, voltage, circuit structure, etc., the phase differences of the same-source, out-of-phase clocks of the same batch of mass-produced equipment in various application scenarios often have individual differences and cannot be accurately controlled.

[0062] The usual solution to the problem of clock accuracy is to configure the pins to connect to an oscilloscope and manually compare the waveforms on the oscilloscope to calibrate the clock generation circuit. However, manual calibration is not friendly to mass research, production, and application, and it takes a lot of time and is inefficient.

[0063] The same-source, heterogeneous clock generating device of the embodiment of the present invention comprises an automatic calibration module, a delay configuration module and a delay module which are connected in sequence; the automatic calibration module obtains first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal; determines second information of the delay unit corresponding to the input first phase difference according to the first information; the delay configuration module outputs a first control signal according to the second information; the delay module turns on the delay unit in the delay module according to the first control signal and the source clock, and finally efficiently generates the same-source, heterogeneous clocks with precise phase difference.

[0064] Combine the following Figure 1-Figure 6 The technical solution of the present invention is described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0065] Figure 1 Schematic diagram of an embodiment of a clock generator with the same source and different phases provided by the present invention. Figure 1 As shown, the same-source but different-phase clock generation device provided in this embodiment includes:

[0066] An automatic calibration module 101, a delay configuration module 102 and a delay module 103 connected in sequence;

[0067] The automatic calibration module 101 is used to obtain first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal; and determine second information of the delay unit corresponding to the input first phase difference according to the first information;

[0068] The delay configuration module 102 is used to output a first control signal according to the second information;

[0069] The delay module 103 is used to start the delay unit in the delay module according to the first control signal and the source clock, and output the same-source but different-phase clocks.

[0070] Specifically, the same source and different phase clock generation device includes an automatic calibration module 101, a delay configuration module 102 and a delay module 103, which are connected in sequence. The automatic calibration module 101 obtains the first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal, wherein the target phase difference includes a 180-degree phase difference opposite to the source clock, and the first information includes the number of delay units and the corresponding position information of the delay units; then the automatic calibration module determines the second information of the delay unit corresponding to the input first phase difference according to the first information.

[0071] For example, the automatic calibration module 101 of the same-source but different-phase clocks makes a judgment based on the input automatic calibration enable signal. If the automatic calibration enable signal is turned on, the automatic calibration function is turned on. If the automatic calibration module 101 obtains that the target phase difference is 180 degrees, the first information of the corresponding delayed unit turned on includes 54 delayed units. When the automatic calibration module 101 determines that the output first phase difference is 90 degrees, it can be determined based on the first information that the second information of the delay unit corresponding to the first phase difference of 90 degrees includes the number of delay units that is the binary number corresponding to 54 in the first information shifted right by one bit, which is equivalent to 54 divided by 2, that is, the second information of the 90° phase difference includes 27 delayed units.

[0072] The delay configuration module 102 obtains the second information of the delay unit corresponding to the first phase difference output by the automatic calibration module, and outputs the first control signal to the delay module 103. It is mainly composed of a three-input selector, which selects the input and uses it as an output to control the decoder.

[0073] For example, the delay configuration module 102 obtains the second information of the delay unit corresponding to the first phase difference of 90 degrees through the automatic calibration module 101, and the number of delay units included is 27, and then outputs the corresponding information as the first control signal to the delay module 103;

[0074] The delay module 103 is used to start the delay unit in the delay module 103 according to the first control signal and the source clock, and output the same-source but different-phase clocks.

[0075] The delay module 103 obtains the first control signal and the source clock output by the delay configuration module 102, and controls the decoder according to the first control signal to determine which delay units in the delay module 103 are turned on, that is, the delay units in the delay module 103 are turned on or off according to the first control signal, thereby generating the same-source but different-phase clocks with precise phase difference.

[0076] For example, the delay module 103 obtains the first control signal output by the delay configuration module 102 and the source clock, and turns on 27 delay units to generate the same-source but different-phase clocks with a phase difference of 90 degrees.

[0077] The device of this embodiment, the same-source different-phase clock generation device includes an automatic calibration module, a delay configuration module and a delay module connected in sequence; wherein the automatic calibration module obtains the first information of the delay unit corresponding to the target phase difference, and combines the corresponding relationship between the target phase difference and the first phase difference to be generated, that is, the second information of the delay unit corresponding to the first phase difference can be accurately determined; the delay configuration module and the delay module control the opening of the corresponding delay unit according to the second information, that is, through the automatic calibration module, the delay configuration module and the delay module

[0078] It can efficiently generate clocks of the same source but different phases with precise phase difference.

[0079] In one embodiment, if Figure 2 As shown, the automatic calibration module includes:

[0080] Adaptive control circuit 201, operation circuit 202 and sampling register 205;

[0081] The input end of the adaptive control circuit 201 is used to receive the input automatic calibration enable signal and the first phase difference; the output end of the adaptive control circuit 201 is connected to the input end of the operation circuit 202, the output end of the operation circuit 202 is connected to the input end of the delay configuration module 203, and the output end of the delay configuration module 203 is connected to the input end of the delay module 204; the input end of the sampling register 205 is connected to the output end of the delay module 204, and the output end of the sampling register 205 is connected to the adaptive control circuit 201;

[0082] The adaptive control circuit 201 is specifically used to gradually turn on the delay units in the delay module 204 according to the automatic calibration enable signal, and sequentially sample the out-of-phase clocks generated by the delay module 204 according to the sampling register 205 to determine whether a target phase difference is detected, and if a target phase difference is detected, obtain first information corresponding to the target phase difference;

[0083] The sampling register 205 is used to sample the out-of-phase clock generated by the delay module 204 to obtain a sampling result;

[0084] The operation circuit 202 is used to determine the second information of the delay unit corresponding to the first phase difference according to the first information corresponding to the target phase difference.

[0085] Specifically, the first input of the adaptive control circuit 201 is the automatic calibration enable signal and the first phase difference. If the automatic calibration enable signal is turned on, the adaptive control circuit turns on the delay units in the delay module 204 step by step.

[0086] The output end of the delay module 204 is connected to the input end of the sampling register 205. When the adaptive control circuit 201 gradually turns on the delay unit control to add once, the sampling register 205 samples the clock output of the delay unit in the delay module 204 once.

[0087] The sampling register 205 includes a 64-bit register. When the adaptive control circuit 201 gradually turns on the delay unit control self-addition once, the clock output of the delay module 204 is sampled once until the clock inversion detection unit detects the inversion, and then the sampling is stopped. The output end of the sampling register 205 is connected to the adaptive control circuit 201. The adaptive control circuit 201 determines whether the target phase difference is detected according to the clock output of the delay unit in the delay module 204 sampled by the sampling register 205. If the target phase difference is detected, the first information corresponding to the target phase difference is obtained.

[0088] The output end of the adaptive control circuit 201 is connected to the input end of the operation circuit 202. When the adaptive control circuit 201 obtains the first information corresponding to the target phase difference, the operation circuit 202 determines the second information of the delay unit corresponding to the first phase difference based on the first information corresponding to the target phase difference and the correspondence between the target phase difference and the first phase difference.

[0089] The output end of the operation circuit 202 is connected to the input end of the delay configuration module 203, and the delay configuration module 203 obtains the second information output by the operation circuit 202 and generates a first control signal;

[0090] The output end of the delay configuration module 203 is connected to the input end of the delay module 204. The delay module 204 obtains the first control signal and outputs the same-source but different-phase clocks with a first phase difference.

[0091] For example, when the input automatic calibration of the adaptive control circuit 201 is enabled and the first phase difference is 90 degrees, the adaptive control circuit 201 gradually turns on the delay unit in the delay module 204; when the delay unit is gradually turned on and controls itself once, the sampling register 205 samples the clock output of the delay unit in the delay module 204 once; then the adaptive control circuit 201 determines whether the target phase difference is detected according to the clock output sampled by the sampling register 205, for example, sampling to logic 0 or logic 1, and if the target phase difference is detected, obtains information corresponding to the target phase difference; if the delay unit increases step by step until the 54th stage is turned on, the adaptive control circuit 201 determines that a target phase difference of 180 degrees is detected according to the clock output sampled by the sampling register 205, then the 54 delay units and the position information are the first information corresponding to the target phase difference of 180 degrees.

[0092] Based on the first information and the corresponding relationship between the target phase difference of 180 degrees and the first phase difference of 90 degrees, the operation circuit 202 shifts the binary number 54 in the first information right by one position, which is equivalent to dividing 54 by 2, that is, determining that the corresponding 27 delay units are the second information that generates a phase difference of 90 degrees.

[0093] The delay configuration module 203 generates a first control signal according to the first information, that is, the first control signal is used to indicate which delay units the delay module 204 should turn on. For example, when the first control signal is binary 11011, the delay module 204 obtains the first control signal and turns on the corresponding 27 delay units to generate the same-source but different-phase clocks with a first phase difference of 90 degrees.

[0094] The apparatus of the above embodiment, the automatic calibration module, includes: an adaptive control circuit, an operation circuit and a sampling register; wherein the adaptive control circuit determines whether the target phase difference is detected according to the clock output sampled by the sampling register, and if the target phase difference is detected, obtains the first information corresponding to the target phase difference; the operation circuit determines the second information of the delay unit corresponding to the first phase difference according to the first information and the corresponding relationship between the target phase difference and the first phase difference; that is, the automatic calibration module can accurately determine the information of the delay unit corresponding to the phase difference clock to be output, and provide accurate input information for the delay configuration module and the delay module to efficiently generate the same-source and different-phase clocks with accurate phase difference.

[0095] In one embodiment, if Figure 6 As shown, the adaptive control circuit includes:

[0096] Automatic calibration start judgment unit 601, step-by-step start control unit 602 and clock inversion detection unit 603;

[0097] The output end of the automatic calibration start judgment unit 601 is connected to the step-by-step start control unit 602 and the delay configuration module 607 respectively;

[0098] The output end of the step-by-step start control unit 602 is connected to the delay configuration module 607 and the sampling register 604 respectively; the input end of the clock inversion detection unit 603 is connected to the output end of the sampling register 604, and the output end of the clock inversion detection unit 603 is connected to the input end of the operation circuit;

[0099] The automatic calibration start judgment unit 601 is used to output the second control signal and the first phase difference according to the automatic calibration enable signal;

[0100] A step-by-step start control unit 602, used to start the delay units in the delay module step by step according to the second control signal, and output the target information of the started delay units to the sampling register 604;

[0101] The clock inversion detection unit 603 is used to determine whether the target phase difference is detected according to the sampling result of the sampling register 604; if the target phase difference is detected, the target information is used as the first information corresponding to the target phase difference and output to the operation circuit.

[0102] Specifically, the adaptive control circuit includes: an automatic calibration start judgment unit 601, a step-by-step start control unit 602 and a clock inversion detection unit 603;

[0103] Among them, the output end of the automatic calibration start judgment unit 601 is respectively connected to the step-by-step start control unit 602 and the delay configuration module 607; when the automatic calibration start judgment unit 601 receives the automatic calibration enable signal, it determines that the automatic calibration enable signal is turned on, and then outputs a second control signal to notify the step-by-step start control unit 602 that the automatic calibration work needs to be started; if it is determined that the automatic calibration enable signal is turned off, then the second control signal is output to notify the delay configuration module 607 that automatic calibration is not required.

[0104] The step-by-step start control unit 602 includes a six-bit counter, whose count value corresponds to the input of the line decoder; before the clock inversion detection unit detects the inversion, it adds 1 every four cycles until the clock inversion detection unit detects the inversion and stops the operation; its output end is connected to the delay configuration module 607 and the sampling register 604 respectively; if the step-by-step start control unit 602 receives the second control signal of the automatic calibration start judgment unit 601, it will start the delay unit in the delay module step by step according to the second control signal, and output the target information of the enabled delay unit to the sampling register 604, and the target information includes the number and position of the currently enabled delay unit;

[0105] The clock inversion detection unit 603 mainly performs a reduction or operation on the sampling register 604. If the operation result is a high level or a low level, it is considered that the clock output of the delay unit is inverted with the source clock at this time; its input end is connected to the output end of the sampling register 604, and the output end of the clock inversion detection unit 603 is connected to the input end of the phase parameter operation unit 605; when the delay unit gradually turns on the control unit 602 to add itself once, the sampling register 604 samples the clock output of the delay unit in the delay module once; the clock inversion detection unit 603 determines whether the target phase difference is detected based on the sampling result of the sampling register 604; when the target phase difference is detected, the target information output by the control unit 602 that is gradually turned on at this time is used as the first information corresponding to the target phase difference, and is output to the operation circuit.

[0106] For example, when the automatic calibration start judgment unit 601 receives the automatic calibration enable signal and determines that the automatic calibration enable signal is turned on, it notifies the step-by-step start control unit 602 that it needs to start the automatic calibration work; the step-by-step start control unit 602 turns on the delay unit in the delay module step by step, and outputs the target information of the turned-on delay unit to the sampling register 604; each time the step-by-step start control unit 602 adds itself once, the sampling register 604 samples the clock output of the delay unit in the delay module once; if the clock inversion detection unit 603 determines that a target phase difference of 180 degrees has been detected based on the sampling result of the sampling register 604, and at this time the step-by-step start control unit 602 has turned on 54 delay units, then this information is used as the first information corresponding to the 180 target phase difference and output to the operation circuit.

[0107] In the device of the above embodiment, the adaptive control circuit includes: an automatic calibration start judgment unit, a step-by-step start control unit and a clock inversion detection unit; wherein after the automatic calibration start judgment unit determines that the automatic calibration enable signal is turned on, the step-by-step start control unit turns on the delay units in the delay module step by step, and the clock inversion detection unit determines whether the target phase difference is detected according to the sampling result of the sampling register; if the target phase difference is detected, the number and position of the delay units turned on at this time are used as the first information; that is, the adaptive control circuit can accurately determine the corresponding relationship between the target phase difference and the delay unit, and provide accurate input information for determining the second information and generating the same-source but different-phase clocks with accurate phase difference.

[0108] In one embodiment, the computing circuit includes:

[0109] Phase parameter operation unit and full addition and subtraction circuit;

[0110] Wherein, the first input end of the phase parameter operation unit is connected to the clock inversion detection unit; the first output end of the phase parameter operation unit is connected to the delay configuration module, the second output end of the phase parameter operation unit is connected to the full addition and subtraction circuit, and the output end of the full addition and subtraction circuit is connected to the second input end of the phase parameter operation unit;

[0111] The phase parameter calculation unit is used to determine the third information of the delay unit turned on corresponding to the second phase difference and the fourth information of the delay unit turned on corresponding to the third phase difference according to the first information corresponding to the target phase difference and the first phase difference;

[0112] The full addition and subtraction circuit is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the enabled delay unit; the operation circuit performs operation by calling the full addition and subtraction unit to calculate the phase difference corresponding to the configuration of the delay unit under the influence of the process angle deviation, temperature and humidity, etc.;

[0113] Specifically, the operation circuit includes a phase parameter operation unit and a full addition and subtraction circuit; wherein the first input end of the phase parameter operation unit is connected to the clock inversion detection unit; when the clock inversion detection unit detects the inversion phase difference, the number and position of the delay unit corresponding to the inversion phase difference are output to the phase parameter operation unit; the phase parameter unit determines the third information of the delay unit turned on corresponding to the second phase difference and the fourth information of the delay unit turned on corresponding to the third phase difference according to the received information and the first phase difference; wherein the first phase difference is obtained by operation including the second phase difference and the third phase difference;

[0114] The second output end of the phase parameter operation unit is connected to the full addition and subtraction circuit, and the output end of the full addition and subtraction circuit is connected to the second input end of the phase parameter operation unit; the full addition and subtraction unit determines the second information of the delay unit corresponding to the first phase difference according to the third information and fourth information of the start-up delay unit output by the phase parameter operation unit; and outputs the second information to the phase parameter operation unit.

[0115] The first output end of the phase parameter operation unit is connected to the delay configuration module, and the phase parameter operation unit outputs the number and position of the delay units corresponding to the first phase difference to the delay configuration module.

[0116] For example, the first input end of the phase parameter calculation unit is connected to the clock inversion detection unit. When the clock inversion detection unit detects that the phase difference of 180 degrees corresponds to 54 delay units; the first phase difference is 33.75 degrees, the second phase difference is 45 degrees, and the third phase difference is 11.25 degrees, the second phase difference and the third phase difference can be subtracted to obtain the first phase difference. Among them, the information of the delay unit corresponding to the second phase difference can be obtained by shifting the binary number of the number of delay units 54 corresponding to the 180-degree phase difference. Shifting right by one bit is equivalent to dividing by 2, so it can be known that turning on 27 groups of delay units is the configuration parameter for generating a 90-degree phase difference; and by analogy, shifting right by two bits is the configuration parameter for generating a 45-degree phase difference; shifting right by three bits is the configuration parameter for generating a 22.5-degree phase difference; shifting right by four bits is the configuration parameter for generating a 11.25-degree phase difference; and finally, 13 is the number of enabled delay units corresponding to a 45-degree phase difference, and 3 is the number of enabled delay units corresponding to a 11.25-degree phase difference.

[0117] The second output end of the phase parameter operation unit is connected to the full addition and subtraction circuit, and the output end of the full addition and subtraction circuit is connected to the second input end of the phase parameter operation unit; the phase parameter operation unit outputs 13 and 3 to the full addition and subtraction circuit, determines the delay unit corresponding to the first phase difference of 33.75 degrees, that is, the number of delay units turned on corresponding to the first phase difference is 10, and outputs it to the delay configuration module.

[0118] In the device of the above embodiment, after the operation circuit obtains the first information corresponding to the target phase difference output by the adaptive control circuit, it can accurately determine the second information of the delay unit corresponding to the first phase difference, and provide accurate input information for the delay module to generate the same-source and different-phase clocks with accurate phase difference.

[0119] In one embodiment, a full adder-subtractor circuit includes: a two-choice circuit and a full adder; wherein the input end of the two-choice circuit is connected to the third output end of the phase parameter operation unit, and the output end of the full adder is used as the output end of the module;

[0120] A two-choice circuit, used for selecting a corresponding operation mode according to a third control signal output by the phase parameter operation unit;

[0121] The full adder is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the enabled delay unit and the operation mode.

[0122] Specifically, the full addition and subtraction circuit is as follows Figure 3 As shown, it includes: a two-choice circuit and a full adder; wherein the two-choice circuit is used to select addition or subtraction operation, and the input end is connected to the third output end of the phase parameter operation unit; the two-choice circuit is used to select the corresponding operation mode according to the third control signal output by the phase parameter operation unit; the third control signal includes the operation mode to be adopted, addition operation or subtraction operation; in the figure, CAL_A and CAL_B include the third information and fourth information of the start delay unit output by the phase parameter operation unit, and CAL_SUB includes the enable of the full addition and subtraction circuit.

[0123] The full adder includes six 1-bit full adders connected end to end to form a six-bit full adder for data calculation. ADDER in the figure includes an adder and a subtractor; its output end serves as the output end of the full addition and subtraction circuit. According to the third information and the fourth information of the start-up delay unit output by the phase parameter operation unit, and the operation mode determined by the two-choice module, the third information and the fourth information are operated to determine the second information of the delay unit corresponding to the first difference, and used as the output of the full addition and subtraction circuit.

[0124] For example, the third information and the fourth information output by the phase parameter operation unit to the full addition and subtraction circuit include delay units of 13 and 3, and the operation method adopted by the two-to-one circuit is subtraction, then the number of delay units turned on corresponding to the first phase difference is determined to be 10 and output.

[0125] In the device of the above embodiment, the full addition and subtraction circuit can accurately determine the second information of the delay unit corresponding to the first phase difference by acquiring the third information and the fourth information output by the phase parameter operation unit and the operation method, thereby providing accurate input information for the delay module to generate the same-source and different-phase clocks with accurate phase difference.

[0126] In one embodiment, the delay module includes: a decoder and a plurality of delay units; wherein the decoder is used to control the corresponding delay unit to start according to the first control signal.

[0127] Specifically, the delay module includes a decoder and a plurality of delay units. The delay module includes a plurality of delay units connected end to end to form the entire delay circuit; the decoder selects the corresponding delay unit according to the first control signal of the delay unit corresponding to the second information output by the delay configuration module to form different phase differences; the decoder includes a 6-line-64-line decoder, which controls the opening or closing of 64-level delay units through six inputs; the delay module includes 64-level delay units, and different phase differences of delay are achieved by opening different numbers of delay units; the delay unit structure is as follows Figure 4 As shown in the figure: Each delay unit includes a delay circuit, a three-state gate, and a two-choice circuit; for the delay unit alone, the clock has two directions: one is to enable through decoding control, select the three-state gate and the two-choice circuit input 0 end, the clock is input from the delay unit, and then output to the three-state gate, after passing through the three-state gate, it is output to the two-choice circuit, and then output from the two-choice circuit to the next level of delay unit. The second is to enable through decoding control, close the three-state gate, select the two-choice circuit input 1 end, the clock does not pass through the current level delay circuit, and directly enters the next level delay unit through the two-choice circuit input 1 end.

[0128] For example, the decoder includes a 6-line to 64-line decoder, and the first control signal of the delay unit corresponding to the second information output by the delay configuration module includes turning on 10 delay units. The decoder controls the turning on of the corresponding 10 delay units to generate the same-source but different-phase clocks with precise phase difference.

[0129] In the device of the above embodiment, after the delay module obtains the first control signal of the delay unit corresponding to the second information, it controls the corresponding delay unit to start, thereby generating the same-source but different-phase clocks with precise phase difference.

[0130] In one embodiment, the same-source but different-phase clock generation device further includes:

[0131] A gate control module, wherein an output terminal of the gate control module is connected to an input terminal of the automatic calibration module;

[0132] The gating module is used for controlling the automatic calibration module to be synchronously reset and clock gated after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock.

[0133] Specifically, the output end of the gating module is connected to the input end of the automatic calibration module. According to the input automatic calibration enable signal and source clock, when the automatic calibration function is completed, the automatic calibration module is controlled to reset to a preset state and shut down the automatic calibration module to save power consumption.

[0134] For example, after generating a 33.75 degree same-source out-of-phase clock, when the gating module receives the automatic calibration signal to enable the shutdown and source clock, that is, after the calibration work is completed, the automatic calibration module is controlled to be reset to the preset initial state and the automatic calibration module is turned off to achieve the purpose of saving power consumption.

[0135] In the device of the above embodiment, after the same-source but different-phase clocks with precise phase difference are generated, that is, after the calibration work is completed, the gating module controls the automatic calibration module to reset to a preset state and shut down the automatic calibration module according to the input automatic calibration enable signal and the source clock, thereby achieving the purpose of saving power consumption.

[0136] In one embodiment, the gate control module includes:

[0137] Two stages of synchronous registers and gating units connected in sequence;

[0138] Wherein, the two-stage synchronization register is used to control the automatic calibration module to be synchronously reset after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock, and output a fourth control signal to the gate control unit;

[0139] A gating unit, used for controlling the automatic calibration module to perform clock gating according to a fourth control signal output by the synchronization register and a source clock;

[0140] Optionally, the gating unit is Figure 5 As shown, it includes an XOR gate, a storage device and an AND gate circuit to achieve the purpose of gating.

[0141] Specifically, the gating module is as follows Figure 5 As shown, it mainly includes a two-level synchronization register and a gating unit; the synchronization register is used to delay the enable signal for a certain period of time, such as two clock cycles, so that after the automatic calibration single module is turned off, it is synchronously reset to a preset state; and the fourth control signal for turning off the automatic calibration module is output to the gating unit, and then the gating unit performs clock gating on the automatic calibration module. After the calibration task is completed, the automatic calibration module is turned off to save power consumption.

[0142] For example, after generating a 33.75-degree same-source out-of-phase clock, when the gating module receives the automatic calibration signal to enable shutdown and the source clock, that is, after the calibration work is completed, the two-stage synchronization register will delay the enable signal for a certain period of time, such as two cycles, so that after the automatic calibration module is turned off, it is synchronously reset to a preset state; the gating unit turns off the automatic calibration module to achieve the purpose of saving power consumption.

[0143] In the device of the above embodiment, after the same-source but different-phase clocks with precise phase difference are generated, that is, after the calibration work is completed, the gating module controls the automatic calibration module to be reset to a preset state and shut down the automatic calibration module according to the input automatic calibration enable signal and source clock, the two-stage synchronization register and the gating unit, so as to achieve the purpose of saving power consumption.

[0144] Exemplarily, the schematic diagram of the structure of the same-source but different-phase clock generation device is as follows: Figure 6 As shown:

[0145] The device provided in this embodiment includes:

[0146] Automatic calibration start judgment unit 601, step-by-step start control unit 602, clock inversion detection unit 603, sampling register 604, phase parameter calculation unit 605, full addition and subtraction circuit 606, delay configuration module 607, decoder 608 and multiple delay units 609;

[0147] The automatic calibration module includes: an automatic calibration start judgment unit 601, a step-by-step start control unit 602, a clock inversion detection unit 603, a sampling register 604, a phase parameter calculation unit 605 and a full addition and subtraction circuit 606;

[0148] The delay module includes: a decoder 608 and a plurality of delay units 609;

[0149] The adaptive control circuit includes: an automatic calibration start judgment unit 601, a step-by-step start control unit 602 and a clock inversion detection unit 603;

[0150] The operation circuit includes: a phase parameter operation unit 605 and a full addition and subtraction circuit 606 .

[0151] Among them, the output end of the automatic calibration start judgment unit 601 in the automatic calibration module is connected to the step-by-step start control unit 602 and the delay configuration module 607 respectively; when the automatic calibration start judgment unit 601 receives the automatic calibration enable signal, it determines that the automatic calibration enable signal is turned on, and then outputs a second control signal to notify the step-by-step start control unit 602 that the automatic calibration work needs to be started; if it is determined that the automatic calibration enable signal is turned off, the second control signal is output to notify the delay configuration module 607 that automatic calibration is not required;

[0152] The output end of the step-by-step start control unit 602 is connected to the delay configuration module 607 and the sampling register 604 respectively; if the step-by-step start control unit 602 receives the second control signal of the automatic calibration start judgment unit 601, it will start the delay unit 609 in the delay module step by step according to the second control signal, and output the target information of the started delay unit to the sampling register 604, and the target information includes the number and position of the currently started delay unit;

[0153] The output end of the sampling register 604 is connected to the adaptive control circuit, and the adaptive control circuit determines whether the target phase difference is detected according to the clock output of the delay unit 609 in the delay module sampled by the sampling register 604, and if the target phase difference is detected, obtains the first information corresponding to the target phase difference;

[0154] The input end of the clock inversion detection unit 603 is connected to the output end of the sampling register 604, and the output end of the clock inversion detection unit 603 is connected to the input end of the phase parameter operation unit 605; when the step-by-step opening control unit 602 adds itself once every 4 clock cycles, the sampling register 604 samples the clock output of the delay unit 609 in the delay module once; the clock inversion detection unit 603 determines whether the target phase difference is detected according to the sampling result of the sampling register 604; in the case of detecting the target phase difference, the target information output by the step-by-step opening control unit 602 at this time is used as the first information corresponding to the target phase difference, and outputs it to the operation circuit;

[0155] For example, when the input automatic calibration of the adaptive control circuit is enabled and turned on, and the first phase difference is 90 degrees, the adaptive control circuit turns on the delay unit 609 in the delay module step by step; when the control unit 602 is turned on step by step and adds itself once, the sampling register 604 samples the clock output of the delay unit 609 in the delay module once; then the adaptive control circuit determines whether the target phase difference is detected according to the clock output sampled by the sampling register 604, and if the target phase difference is detected, obtains the information corresponding to the target phase difference; if the control unit 602 is turned on step by step and increases until the 54th level is turned on, the adaptive control circuit determines that a target phase difference of 180 degrees is detected according to the clock output sampled by the sampling register 604, then the 54 delay units and the position information are the first information corresponding to the target phase difference of 180 degrees.

[0156] The first input end of the phase parameter operation unit 605 in the operation circuit is connected to the clock inversion detection unit 603; when the clock inversion detection unit 603 detects the inversion phase difference, the number and position of the delay unit corresponding to the inversion phase difference are output to the phase parameter operation unit 605; the phase parameter operation unit 605 determines the third information of the delay unit turned on corresponding to the second phase difference and the fourth information of the delay unit turned on corresponding to the third phase difference according to the received information and the first phase difference; wherein the first phase difference is obtained by operation including the second phase difference and the third phase difference;

[0157] The second output end of the phase parameter operation unit 605 is connected to the full addition and subtraction circuit 606, and the output end of the full addition and subtraction circuit 606 is connected to the second input end of the phase parameter operation unit 605; the full addition and subtraction circuit 606 determines the second information of the delay unit corresponding to the first phase difference according to the third information and fourth information of the start-up delay unit output by the phase parameter operation unit 605; and outputs the second information to the phase parameter operation unit 605.

[0158] The first output end of the phase parameter calculation unit 605 is connected to the delay configuration module 607 , and the phase parameter calculation unit 605 outputs the number and position of the delay units corresponding to the first phase difference to the delay configuration module 607 .

[0159] For example, the first input end of the phase parameter operation unit 605 is connected to the clock inversion detection unit 603. When the clock inversion detection unit 603 detects that the phase difference of 180 degrees corresponds to 54 delay units; the first phase difference is 33.75 degrees, the second phase difference is 45 degrees, and the third phase difference is 11.25 degrees, the second phase difference and the third phase difference can be subtracted to obtain the first phase difference. Among them, the information of the delay unit corresponding to the second phase difference can be obtained by shifting the binary number of the number of delay units 54 corresponding to the phase difference of 180 degrees. Shifting right by one bit is equivalent to dividing by 2, so it can be known that turning on 27 groups of delay units is to generate the configuration parameter of 90 degrees phase difference; by analogy, shifting right by two bits is to generate the configuration parameter of 45 degrees phase difference; shifting right by three bits is to generate the configuration parameter of 22.5 degrees phase difference; shifting right by four bits is the configuration parameter of 11.25 degrees phase difference; finally, 13 is the number of the open delay units corresponding to the phase difference of 45°, and 3 is the number of the open delay units corresponding to the phase difference of 11.25°.

[0160] The second output end of the phase parameter operation unit 605 is connected to the full addition and subtraction circuit 606, and the output end of the full addition and subtraction circuit 606 is connected to the second input end of the phase parameter operation unit 605; the phase parameter operation unit 605 outputs 13 and 3 to the full addition and subtraction circuit, determines the delay unit corresponding to the first phase difference of 33.75 degrees, that is, the number of delay units turned on corresponding to the first phase difference is 10, and outputs it to the delay configuration module 607.

[0161] The delay configuration module 607 outputs a first control signal to the delay module by acquiring the second information of the delay unit corresponding to the first phase difference output by the automatic calibration module;

[0162] For example, the delay configuration module obtains through the automatic calibration module the second information of the delay unit corresponding to the first phase difference of 33.75 degrees, including the number of delay units being 10, and then outputs the corresponding information as the first control signal to the delay module;

[0163] The delay module includes a decoder 608 and a plurality of delay units 609 , wherein the decoder 608 controls the corresponding delay unit to start according to the first control signal of the delay unit corresponding to the second information output by the delay configuration module 607 .

[0164] The delay module obtains the first control signal and the source clock output by the delay configuration module 607, and controls the line decoder according to the first control signal to determine which delay units 609 in the delay module are turned on, that is, the delay units in the delay module are turned on or off according to the first control signal, thereby generating the same-source but different-phase clocks with precise phase difference.

[0165] For example, the delay module obtains the first control signal and the source clock output by the delay configuration module 607 and turns on 10 delay units to achieve a delay with a phase difference of 33.75 degrees.

[0166] The device of this embodiment, the same-source different-phase clock generation device includes an automatic calibration module, a delay configuration module and a delay module connected in sequence; wherein the automatic calibration module obtains the first information of the delay unit corresponding to the target phase difference, and combines the corresponding relationship between the target phase difference and the first phase difference to be generated, that is, the second information of the delay unit corresponding to the first phase difference can be accurately determined; the delay configuration module and the delay module control the opening of the corresponding delay unit according to the second information, that is, through the automatic calibration module, the delay configuration module and the delay module

[0167] It can efficiently generate clocks of the same source but different phases with precise phase difference.

[0168] The method for generating clocks of the same source but different phases provided in this embodiment includes:

[0169] Get the first phase difference;

[0170] Determine second information of the delay unit corresponding to the first phase difference according to the first phase difference and the first information of the delay unit turned on corresponding to the target phase difference;

[0171] According to the second information of the delay unit corresponding to the first phase difference and the source clock, the delay unit corresponding to the first phase difference is turned on, and the same-source but different-phase clocks are output.

[0172] Specifically, a first phase difference of the in-phase clocks to be generated is obtained, and according to the first information of the delay unit to be turned on corresponding to the target phase difference and the corresponding relationship between the first phase difference and the target phase difference, second information of the first phase difference and the corresponding delay unit is determined, that is, the number and position of the delay units to be turned on to generate the in-phase clocks of the same source with the first phase difference;

[0173] Then, according to the second information of the delay unit corresponding to the first phase difference and the source clock, the delay unit corresponding to the first phase difference is turned on, that is, the corresponding delay unit is turned on according to the determined second information, so as to generate the required same-source but different-phase clocks with the first phase difference.

[0174] For example, the first phase difference obtained is 90 degrees, the target phase difference is the reverse phase difference, that is, 180 degrees, and the delay units turned on by the 180-degree phase difference are 54 corresponding delay units. According to the corresponding relationship between the target phase difference of 180 degrees and the first phase difference of 90 degrees, it is determined that the second information of the delay units turned on by the 90-degree phase difference includes 27 delay units, and then the corresponding 27 delay units are turned on according to the second information and the source clock to generate the same-source but different-phase clocks with a phase difference of 90 degrees.

[0175] The method of this embodiment obtains the first information of the delay unit that is turned on corresponding to the first phase difference and the target phase difference, and then accurately determines the second information of the delay unit corresponding to the first phase difference according to the corresponding relationship between the first phase difference and the target phase difference; and controls the turning on of the corresponding delay unit according to the source clock and the second information, so as to efficiently generate the same-source but different-phase clocks with accurate phase difference.

[0176] An embodiment of the present invention further provides an electronic device, comprising the same-source but different-phase clock generating device.

[0177] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the same-source and different-phase clock generation methods provided by the above-mentioned methods, and the method includes: obtaining a first phase difference; determining second information of the delay unit corresponding to the first phase difference based on the first phase difference and the first information of the delay unit turned on corresponding to the target phase difference; turning on the delay unit corresponding to the first phase difference based on the second information of the delay unit corresponding to the first phase difference and the source clock, and outputting the same-source and different-phase clocks.

[0178] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the above-mentioned method for generating homologous and heterogeneous clocks, the method comprising: obtaining a first phase difference; determining second information of a delay unit corresponding to the first phase difference based on the first phase difference and first information of a delay unit turned on corresponding to a target phase difference; turning on the delay unit corresponding to the first phase difference based on the second information of the delay unit corresponding to the first phase difference and a source clock, and outputting homologous and heterogeneous clocks.

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

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

[0181] 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 device for generating clocks of the same source but different phases, characterized in that: include: An automatic calibration module, a delay configuration module and a delay module connected in sequence; The automatic calibration module is used to obtain first information of the delay unit turned on corresponding to the target phase difference according to the input automatic calibration enable signal; and determine second information of the delay unit corresponding to the input first phase difference according to the first information; The delay configuration module is used to output a first control signal according to the second information; The delay module is used to start the delay unit in the delay module according to the first control signal and the source clock, and output the same-source but different-phase clocks; The automatic calibration module comprises: Adaptive control circuit, operation circuit and sampling register; Wherein, the input end of the adaptive control circuit is used to receive the input automatic calibration enable signal and the first phase difference; the output end of the adaptive control circuit is connected to the input end of the operation circuit, the output end of the operation circuit is connected to the input end of the delay configuration module, and the output end of the delay configuration module is connected to the input end of the delay module; the input end of the sampling register is connected to the output end of the delay module, and the output end of the sampling register is connected to the adaptive control circuit; The adaptive control circuit is specifically used to enable the delay units in the delay module step by step according to the automatic calibration enable signal, and sequentially determine whether a target phase difference is detected according to the sampling results of sampling the out-of-phase clock generated by the delay module according to the sampling register, and if the target phase difference is detected, obtain the first information corresponding to the target phase difference; The sampling register is used to sample the out-of-phase clock generated by the delay module to obtain the sampling result; The operation circuit is used to determine the second information of the delay unit corresponding to the first phase difference according to the first information corresponding to the target phase difference.

2. The same-source but different-phase clock generation device according to claim 1, characterized in that: The adaptive control circuit comprises: Automatic calibration start judgment unit, step-by-step start control unit and clock inversion detection unit; Wherein, the output end of the automatic calibration start judgment unit is connected to the step-by-step start control unit and the delay configuration module respectively; The output end of the step-by-step opening control unit is connected to the delay configuration module and the sampling register respectively; the input end of the clock inversion detection unit is connected to the output end of the sampling register, and the output end of the clock inversion detection unit is connected to the input end of the operation unit; The automatic calibration start judgment unit is used to output a second control signal and the first phase difference according to the automatic calibration enable signal; The step-by-step opening control unit is used to open the delay units in the delay module step by step according to the second control signal, and output the target information of the opened delay units to the sampling register; The clock inversion detection unit is used to determine whether a target phase difference is detected according to the sampling result of the sampling register; if the target phase difference is detected, the target information is used as the first information corresponding to the target phase difference and output to the operation circuit.

3. The same-source but different-phase clock generation device according to claim 1 or 2, characterized in that: The operation circuit comprises: Phase parameter operation unit and full addition and subtraction circuit; Wherein, the first input end of the phase parameter operation unit is connected to the clock inversion detection unit; the first output end of the phase parameter operation unit is connected to the delay configuration module, the second output end of the phase parameter operation unit is connected to the full addition and subtraction circuit, and the output end of the full addition and subtraction circuit is connected to the second input end of the phase parameter operation unit; The phase parameter calculation unit is used to determine the third information of the delay unit turned on corresponding to the second phase difference and the fourth information of the delay unit turned on corresponding to the third phase difference according to the first information corresponding to the target phase difference and the first phase difference; The full addition and subtraction circuit is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the turned-on delay unit.

4. The same-source but different-phase clock generation device according to claim 3, characterized in that: The full addition and subtraction circuit comprises: a two-choice circuit and a full adder; Wherein, the input end of the two-choice circuit is connected to the third output end of the phase parameter operation unit, and the output end of the full adder serves as the output end of the full addition-subtraction circuit; The two-choice circuit is used to select a corresponding operation mode according to the third control signal output by the phase parameter operation unit; The full adder is used to determine the second information of the delay unit corresponding to the first phase difference according to the third information and the fourth information of the turned-on delay unit and the operation method.

5. The same-source but different-phase clock generation device according to claim 1 or 2, characterized in that: The delay module comprises: A decoder and multiple delay units; The decoder is used to control the corresponding delay unit to start according to the first control signal.

6. The same-source but different-phase clock generation device according to claim 1 or 2, characterized in that: Also includes: A gate control module, wherein an output end of the gate control module is connected to an input end of the automatic calibration module; The gating module is used to control the automatic calibration module to be synchronously reset and clock-gated after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock.

7. The same-source but different-phase clock generation device according to claim 6, characterized in that: The gate control module comprises: Two stages of synchronous registers and gating units connected in sequence; The two-stage synchronization register is used to control the automatic calibration module to be synchronously reset after the automatic calibration enable is turned off according to the input automatic calibration enable signal and the source clock, and output a fourth control signal to the gate control unit; The gating unit is used to control the automatic calibration module to perform clock gating according to the fourth control signal output by the synchronization register and the source clock.

8. A method for generating clocks of the same source but different phases, characterized in that: Applied to the same-source but different-phase clock generation device according to any one of claims 1 to 7, the method comprises: Get the first phase difference; Determine second information of the delay unit corresponding to the first phase difference according to the first phase difference and the first information of the delay unit turned on corresponding to the target phase difference; According to the second information of the delay unit corresponding to the first phase difference and the source clock, the delay unit corresponding to the first phase difference is turned on, and the same-source but different-phase clocks are output.

9. An electronic device, characterized in that: include: A device for generating clocks of the same source but different phases as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Sampling clock generation circuit for multichannel time interleaving analog-digital converter

    CN103944568A

  • Modulator and time delay automatic calibration circuit and time delay control module thereof

    CN105763187A

  • Phase adjustment apparatus and method for a memory device signaling system

    EP1865648A2

  • Digital programmable delay scheme with automatic calibration

    US20050068110A1