A clock synchronization system and method for converter chip

By using technologies such as frequency divider, synchronization signal phase detection module and mismatch self-correction algorithm logic module in the converter chip, high-precision clock synchronization is achieved, solving the problem of low clock synchronization accuracy of high-speed and high-precision chips, and improving the Synchronization efficiency and consistency of multi-chip systems.

CN117492514BActive Publication Date: 2024-11-19CHENGDU MINXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311512910.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2024-11-19
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

The prior art has low clock synchronization accuracy in the field of high-speed and high-precision chips, making it difficult to achieve efficient synchronization in multi-chip systems, especially in large chip array systems, which lead to difficulty in converging synchronization timing.

Method used

The clock synchronization system is adopted, including a frequency divider, a synchronization signal phase detection module, a bandgap voltage self-test signal module, a mismatch self-correction algorithm logic module, a synchronization phase adjustment module and a delay mismatch correction module, and the frequency division is carried out through external clocks. Synchronize reference pulse signal sampling, delay correction and temperature adjustment to realize self-correction and synchronization of the internal clock path of the chip.

Benefits of technology

The synchronization accuracy of a single chip is improved, the convergence time of multi-chip synchronization is shortened, the period and phase errors between chips are reduced, and the clock synchronization effect of high-speed communication systems is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117492514B_ABST
    Figure CN117492514B_ABST
Patent Text Reader

Abstract

The invention belongs to the field of electronic devices, and discloses a clock synchronization system and method applied to a converter chip, including a frequency divider, a synchronization signal phase detection module, a bandgap voltage self-test signal module, a mismatch self-correction algorithm logic module, a plurality of synchronization phase adjustment modules, and a plurality of delay mismatch correction modules; the synchronization signal phase detection module is connected to the frequency divider and the plurality of synchronization phase adjustment modules, one end of the plurality of delay mismatch correction modules is connected to each synchronization phase adjustment module in a one-to-one correspondence, and the other end is connected to each analog-to-digital converter of the converter chip in a one-to-one correspondence; the mismatch self-correction algorithm logic module is connected to the plurality of delay mismatch correction modules and each analog-to-digital converter; the bandgap voltage self-test signal module is connected to each analog-to-digital converter. The multi-chip synchronization convergence speed is greatly improved, the consistency of multi-chip synchronization is enhanced, and the difficulty of multi-chip synchronization is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of electronic devices and relates to a clock synchronization system and method applied to a converter chip. Background Art

[0002] With the rapid development of communication technology, a large number of high-speed and high-precision chips are used in modern electronic communication systems. It is necessary to process massive data signals. Different high-speed chips correspond to different clock frequencies. The coordinated work control of multiple chips requires extremely high clock synchronization accuracy. Especially in the whole system composed of large chip arrays, the frequency, period and phase of the working clock of each chip may be different. Therefore, high-speed and high-precision clock synchronization has become a problem that needs to be solved urgently in recent years.

[0003] At present, the synchronization of multiple chips is only carried out through external reference pulse signals. Although it can solve the problem of different internal clock frequency phases of most medium and low-speed chips, the synchronization time is long and the synchronization accuracy is low. It is not ideal for the application in the field of high-speed and high-precision conversion chips. Even for the same multi-chip array system, if high-speed synchronization is required, the difficulty is also affected by the process angle deviation and the local ambient temperature of the board-level system, resulting in differences in the internal delay paths and delay times of multiple identical chips, which ultimately increases the difficulty of multi-chip synchronization timing convergence and greatly prolongs the time required to achieve synchronization, which is not conducive to efficient synchronization response at the system level of the entire machine. Summary of the invention

[0004] The object of the present invention is to overcome the above-mentioned shortcomings of the prior art and to provide a clock synchronization system and method for a converter chip.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, the present invention provides a clock synchronization system for a converter chip, comprising a frequency divider, a synchronization signal phase detection module, a bandgap voltage self-test signal module, a mismatch self-correction algorithm logic module, a plurality of synchronization phase adjustment modules, and a plurality of delay mismatch correction modules;

[0007] The synchronization signal phase detection module is connected to the frequency divider and several synchronization phase adjustment modules; one end of several delay mismatch correction modules is connected to each synchronization phase adjustment module one by one, and the other end is connected to each analog-to-digital converter of the converter chip one by one; the mismatch self-correction algorithm logic module is connected to several delay mismatch correction modules and each analog-to-digital converter; the bandgap voltage self-test signal module is connected to each analog-to-digital converter;

[0008] The frequency divider is used to receive an external clock and divide the frequency to obtain an even-numbered divided clock;

[0009] The synchronization signal phase detection module is used to receive the synchronization reference pulse signal and sample the synchronization reference pulse signal through the even-numbered frequency-divided clock to obtain synchronization phase adjustment information;

[0010] The synchronous phase adjustment module is used to adjust the working clock of the converter chip according to the synchronous phase adjustment information;

[0011] The bandgap voltage self-test signal module is used to send a bandgap voltage self-test signal to each analog-to-digital converter;

[0012] The mismatch self-correction algorithm logic module is used to receive the conversion results of each channel of each analog-to-digital converter, and obtain the time delay of each channel of each analog-to-digital converter according to the conversion results of each channel of each analog-to-digital converter;

[0013] The delay mismatch correction module is used to synchronize the working clocks of each channel of the analog-to-digital converter according to the delay of each channel of the analog-to-digital converter.

[0014] Optionally, a temperature sensor is also included;

[0015] The temperature sensor is used to detect the operating temperature of the converter chip and send it to the mismatch self-correction algorithm logic module;

[0016] The mismatch self-correction algorithm logic module is also used to obtain the temperature adjustment delay of the converter chip through a preset temperature delay deviation value lookup table according to the operating temperature of the converter chip;

[0017] The delay mismatch correction module is also used to adjust the working clock of the delay adjustment converter chip according to the temperature.

[0018] Optionally, it also includes a synchronization reference pulse receiving module; the synchronization reference pulse receiving module is used to receive a synchronization reference pulse signal, and convert the type of the synchronization signal phase detection module into a single pulse signal, a discontinuous pulse signal or a periodic pulse signal, and then send it to the synchronization signal phase detection module.

[0019] Optionally, sampling the synchronization reference pulse signal through an even-numbered frequency-divided clock to obtain synchronization phase adjustment information includes:

[0020] The synchronization reference pulse signal is sampled through an even-numbered divided clock to obtain a set of binary digital codes as the synchronization phase binary code; the code value 1 in the synchronization phase binary code indicates that the synchronization reference pulse signal is at the high level of the divided clock, and the code value 0 indicates that the synchronization reference pulse signal is at the low level of the divided clock; and according to the synchronization phase binary code, the phase deviation information of the effective edge alignment of the working clock of the converter chip and the synchronization reference pulse signal is decoded as the synchronization phase adjustment information.

[0021] Optionally, the bandgap voltage self-test signal module adopts a bandgap reference voltage circuit that is the same source as the reference voltage of each analog-to-digital converter of the converter chip, and uses the reverse clock of the two-divided clock of the external clock as a periodic switching signal to send a bandgap voltage self-test signal to each analog-to-digital converter; the bandgap voltage self-test signal uses the analog-to-digital converter reference voltage / 4 as a step to generate four voltage values: analog-to-digital converter reference voltage / 4, analog-to-digital converter reference voltage / 2, 3 times the analog-to-digital converter reference voltage / 4 and 0V voltage.

[0022] Optionally, obtaining the time delay of each channel of each analog-to-digital converter according to the conversion result of each channel of each analog-to-digital converter includes:

[0023] Taking the rising edge of a self-correction cycle as the sampling edge, generating a plurality of phase clocks through an external clock, and using the plurality of phase clocks to synchronize the sampling edges respectively to obtain a plurality of phase clock edges delayed by a plurality of clock cycles;

[0024] The conversion result of each channel of the analog-to-digital converter is subtracted from the ideal conversion value. If the difference is less than ±E, the highest two bits of the conversion result of each channel are intercepted to obtain the automatic adjustment data code of each channel; wherein E is the maximum error threshold of the analog-to-digital converter; and the automatic adjustment data code of each channel is sampled with several phase clock edges to obtain the offset between the automatic adjustment data codes of each channel, and according to the offset between the automatic adjustment data codes of each channel, one channel is used as a reference reference channel to obtain the delay of the clock of the remaining channels.

[0025] Optionally, according to the offset between the automatically adjusted data codes of each channel, one channel is used as a reference channel to obtain the delay of the clocks of the remaining channels, and the delay of the clocks of the remaining channels is obtained by binary successive approximation logic until the automatically adjusted data codes of each channel are the same.

[0026] Optionally, the even-numbered divided-frequency clocks include an external clock and a 2-divided-frequency clock, a 4-divided-frequency clock and an 8-divided-frequency clock of the external clock.

[0027] Optionally, when the working clock of the converter chip is the N-frequency division of the external clock frequency Fin, the delay adjustment range of the working clock of the converter chip adjusted by the synchronous phase adjustment module covers 1 / (Fin / N).

[0028] A second aspect of the present invention provides a clock synchronization method applied to a converter chip, comprising:

[0029] sending a bandgap voltage self-test signal to each analog-to-digital converter;

[0030] Receiving the conversion results of each channel of each analog-to-digital converter, and obtaining the time delay of each channel of each analog-to-digital converter according to the conversion results of each channel of each analog-to-digital converter;

[0031] Synchronize the working clocks of each channel of the analog-to-digital converter according to the time delay of each channel of the analog-to-digital converter;

[0032] Receive an external clock and divide it to obtain an even-numbered divided clock;

[0033] Receive a synchronous reference pulse signal, and sample the synchronous reference pulse signal through an even-numbered frequency-divided clock to obtain synchronous phase adjustment information;

[0034] The operating clock of the converter chip is adjusted according to the synchronous phase adjustment information.

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

[0036] The present invention is applied to the clock synchronization system of the converter chip. Through the bandgap voltage self-test signal module, the mismatch self-correction algorithm logic module and the delay mismatch correction module, the clock path mismatch self-correction between the channels inside the converter chip can be realized, ensuring that the timing error of each conversion of the multi-channel signal conversion data results at the same time is greatly reduced. Through the frequency divider, the synchronization signal phase detection module and the synchronization phase adjustment module, the clock synchronization of the working clock of the converter chip with the synchronization reference pulse signal as the reference can be realized. Specifically, when the synchronization reference pulse signal outside the converter chip arrives, the working clock phase of the converter chip is turned on and synchronized with the synchronization reference pulse signal, and the multiplied clock of the working clock of the converter chip is used as the phase detection clock for sampling the synchronization reference pulse signal, thereby improving the synchronization accuracy of a single converter chip. In the environment where multiple converter chips are integrated in the printed circuit board level system, the improvement of synchronization accuracy is conducive to the convergence speed of synchronizing multiple converter chips. After the high-precision synchronization system is synchronized, the period and phase errors between the converter chips are greatly reduced, and the clock synchronization of the high-speed communication system has a better synchronization effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 FIG. 4 is a structural block diagram of a clock synchronization system applied to a converter chip according to an embodiment of the present invention.

[0038] Figure 2 Schematic diagram of the clock synchronization process of the converter chip according to an embodiment of the present invention.

[0039] Figure 3 1 is a waveform diagram of an example of self-correction of inter-channel clock mismatch according to an embodiment of the present invention.

[0040] Figure 4 The figure is a schematic diagram of a circuit for realizing a synchronization signal phase detection module according to an embodiment of the present invention.

[0041] Figure 5 This is a waveform diagram of the phase detection principle of the synchronous reference pulse signal according to an embodiment of the present invention.

[0042] Figure 6 This is a timing waveform diagram of synchronization between a 4-frequency-divided clock and a synchronous reference pulse signal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0045] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0046] See also Figure 1 In one embodiment of the present invention, a clock synchronization system for a converter chip is provided, which mainly includes the mismatch of the clock paths of each channel inside the converter chip. On the basis of the internal correction of the converter chip, the working clocks of multiple converter chips are synchronized with high precision through the existing conventional external synchronization reference pulse signal synchronization method, which greatly improves the synchronization convergence speed of multiple converter chips, enhances the consistency of synchronization of multiple converter chips, and reduces the difficulty of synchronization of multiple converter chips.

[0047] Specifically, the clock synchronization system applied to the converter chip includes a frequency divider, a synchronization signal phase detection module, a bandgap voltage self-test signal module, a mismatch self-correction algorithm logic module, several synchronization phase adjustment modules and several delay mismatch correction modules.

[0048] The synchronous signal phase detection module is connected to the frequency divider and several synchronous phase adjustment modules; one end of several delay mismatch correction modules is connected to each synchronous phase adjustment module one by one, and the other end is connected to each analog-to-digital converter of the converter chip one by one; the mismatch self-correction algorithm logic module is connected to several delay mismatch correction modules and each analog-to-digital converter; and the bandgap voltage self-test signal module is connected to each analog-to-digital converter.

[0049] Among them, the frequency divider is used to receive the external clock and divide the frequency to obtain the even-numbered divided clock; the synchronization signal phase detection module is used to receive the synchronization reference pulse signal, and sample the synchronization reference pulse signal through the even-numbered divided clock to obtain the synchronization phase adjustment information; the synchronization phase adjustment module is used to adjust the working clock of the converter chip according to the synchronization phase adjustment information; the bandgap voltage self-test signal module is used to send the bandgap voltage self-test signal to each analog-to-digital converter; the mismatch self-correction algorithm logic module is used to receive the conversion results of each channel of each analog-to-digital converter, and obtain the delay of each channel of each analog-to-digital converter according to the conversion results of each channel of each analog-to-digital converter; the delay mismatch correction module is used to synchronize the working clock of each channel of the analog-to-digital converter according to the delay of each channel of the analog-to-digital converter.

[0050] The present invention is applied to the clock synchronization system of the converter chip. Through the bandgap voltage self-test signal module, the mismatch self-correction algorithm logic module and the delay mismatch correction module, the clock path mismatch self-correction between the channels inside the converter chip can be realized, ensuring that the timing error of each conversion of the multi-channel signal conversion data results at the same time is greatly reduced. Through the frequency divider, the synchronization signal phase detection module and the synchronization phase adjustment module, the clock synchronization of the working clock of the converter chip with the synchronization reference pulse signal as the reference can be realized. Specifically, when the synchronization reference pulse signal outside the converter chip arrives, the working clock phase of the converter chip is turned on and synchronized with the synchronization reference pulse signal, and the multiplied clock of the working clock of the converter chip is used as the phase detection clock for sampling the synchronization reference pulse signal, thereby improving the synchronization accuracy of a single converter chip. In the environment where multiple converter chips are integrated in the printed circuit board level system, the improvement of synchronization accuracy is conducive to the convergence speed of synchronizing multiple converter chips. After the high-precision synchronization system is synchronized, the period and phase errors between the converter chips are greatly reduced, and the clock synchronization of the high-speed communication system has a better synchronization effect.

[0051] In a possible implementation, the clock synchronization system applied to the converter chip also includes a temperature sensor; the temperature sensor is used to detect the operating temperature of the converter chip and send it to the mismatch self-correction algorithm logic module; the mismatch self-correction algorithm logic module is also used to obtain the temperature adjustment delay of the converter chip according to the operating temperature of the converter chip through a preset temperature delay deviation value lookup table; the delay mismatch correction module is also used to adjust the working clock of the converter chip according to the temperature adjustment delay.

[0052] Specifically, consider the impact of high and low temperatures on converter chip synchronization. Changes in high and low temperature zones have a greater impact on devices composed of CMOS devices. The buffers in the clock distribution drive path are also easily affected by high and low temperatures, reducing the consistency of delays; the reference voltage of the high-precision analog-to-digital converter also needs to have an indication signal of temperature changes if necessary. Therefore, the temperature sensor mainly roughly distinguishes between temperatures, and uses the built-in high temperature range and low temperature range deviation delay relative to the temperature delay deviation value lookup table of the normal temperature zone to uniformly correct the converter chip delay in high and low temperature zones.

[0053] In a possible embodiment, the clock synchronization system applied to the converter chip also includes a synchronization reference pulse receiving module; the synchronization reference pulse receiving module is used to receive a synchronization reference pulse signal, and convert the type of the synchronization signal phase detection module into a single pulse signal, a discontinuous pulse signal or a periodic pulse signal, and then send it to the synchronization signal phase detection module.

[0054] Specifically, it mainly receives the synchronization reference pulse signal outside the converter chip, and then converts it into a single pulse signal, a discontinuous pulse signal or a periodic pulse signal form that can be recognized by the synchronization signal phase detection module.

[0055] In a possible implementation manner, the frequency divider receives an external clock through an external clock receiving module.

[0056] Specifically, in high-speed and high-precision circuits, high-frequency bandpass characteristics are required to suppress out-of-band noise as much as possible and reduce its impact on converter performance. The role of the external clock receiving module is mainly because the high-speed clock is usually a single sinusoidal input signal, which needs to be converted into a square wave signal; secondly, after receiving from the outside, the on-chip clock distribution load is considered to be heavy, and the clock distribution driving capability of the converter chip is improved; in addition, in system-level applications, the on-chip clocks of multiple chips have a large randomness in the relative relationship of frequency and phase, which is not conducive to the synchronization of multiple converter chips. Through the external clock receiving module, in the system-level multi-converter chip synchronization, a unified clock signal source is used as much as possible to provide multiple converter chips with the same source and relative phase relationship clock signals, and at the same time, the delay effect of the multi-core clock is considered from the board-level system layout and wiring, and the board-level error is minimized. Ensuring that clocks with different frequencies and phase relationships have a controllable relative phase frequency difference can improve the efficiency of clock synchronization. The clock cycle received by the external clock receiving module is the basis of the system clock synchronization accuracy in the converter chip.

[0057] In a possible implementation, the frequency divider mainly generates an even-numbered divided clock, which is then used as the input clock signal of the synchronization signal phase detection module. For example, if the operating frequency of the converter chip is the received external clock frequency Fin divided by 4, that is, it works at a 4-divided frequency, then the frequency divider needs to generate divided-by-4 and divided-by-2 signals, and synchronize them with the 1-divided clock, and input the generated multiple even-numbered divided clocks, namely 4-divided, 2-divided, and the 1-divided clock synchronized therewith, to the synchronization signal phase detection module. The synchronization accuracy depends on the period of the highest frequency clock output by the external clock receiving module.

[0058] In one possible implementation, the bandgap voltage self-test signal module uses a bandgap reference voltage circuit that is the same source as the reference voltage of each analog-to-digital converter of the converter chip, and uses the reverse clock of the two-divided clock of the external clock as a periodic switching signal to send a bandgap voltage self-test signal to each analog-to-digital converter; the bandgap voltage self-test signal uses the analog-to-digital converter reference voltage / 4 as a step, and generates four voltage values: analog-to-digital converter reference voltage / 4, analog-to-digital converter reference voltage / 2, 3 times the analog-to-digital converter reference voltage / 4, and 0V voltage.

[0059] Specifically, the bandgap voltage self-test signal module is mainly used to generate a specific converter input signal. It uses a bandgap reference voltage circuit that is the same source as the analog-to-digital converter reference voltage (VREF), and generates four voltage values ​​of VREF / 4, VREF / 2, 3*VREF / 4 and 0V with a step of VREF / 4. It uses the reverse clock of the sampling clock as the periodic switching signal sequence to generate four analog level inputs to ensure that the sampling clock edge is aligned with the middle time of the four analog signal quantities.

[0060] In a possible implementation, the method of obtaining the time delay of each channel of each analog-to-digital converter according to the conversion result of each channel of each analog-to-digital converter includes: taking the rising edge of a self-correction cycle as the sampling edge, generating a plurality of phase clocks through an external clock, and using the plurality of phase clocks to synchronize the sampling edges to obtain a plurality of phase clock edges delayed by a plurality of clock cycles; subtracting the conversion result of each channel of the analog-to-digital converter from the ideal conversion value, and if the difference is less than ±E, intercepting the highest two bits of the conversion result of each channel to obtain the automatic adjustment data code of each channel; wherein E is the maximum error threshold of the analog-to-digital converter; and sampling the automatic adjustment data code of each channel with a plurality of phase clock edges to obtain the offset between the automatic adjustment data codes of each channel, and according to the offset between the automatic adjustment data codes of each channel, taking one channel as the reference reference channel, obtaining the time delay of the clocks of the remaining channels.

[0061] Specifically, the mismatch self-correction algorithm logic module generates four sequential voltage values ​​(VREF / 4, VREF / 2, 3*VREF / 4 and 0) through the bandgap voltage self-test signal module to the analog-to-digital converter, and determines the inter-channel delay error based on whether the digital code values ​​simultaneously output by multiple channels of the converter are the same or based on the offset of the code values ​​of adjacent channels, thereby controlling the delay mismatch correction module of each channel and adjusting the clock of each channel to achieve the purpose of automatic correction of the conversion delay between channels.

[0062] Optionally, according to the offset between the automatically adjusted data codes of each channel, one channel is used as a reference channel to obtain the delay of the clocks of the remaining channels, and the delay of the clocks of the remaining channels is obtained by binary successive approximation logic until the automatically adjusted data codes of each channel are the same.

[0063] In one possible implementation, the sampling of the synchronization reference pulse signal through an even-numbered divided clock to obtain the synchronization phase adjustment information includes: sampling the synchronization reference pulse signal through an even-numbered divided clock to obtain a set of binary digital codes as synchronization phase binary codes; the code value 1 in the synchronization phase binary code indicates that the synchronization reference pulse signal is at a high level of the divided clock, and the code value 0 indicates that the synchronization reference pulse signal is at a low level of the divided clock; and according to the synchronization phase binary code, decoding the phase deviation information of the effective edge alignment of the working clock of the converter chip and the synchronization reference pulse signal as synchronization phase adjustment information.

[0064] Specifically, the synchronization signal phase detection module mainly uses the clock divided by the divider (such as 4, 2, 1 divided clock) to sample the synchronization reference pulse signal generated by the synchronization reference pulse receiving module, and determines the relative phase relationship of the synchronization reference pulse in the 4 divided clocks. Since the even-numbered divided signals are synchronized with the 1-numbered signal, the even-numbered divided signals are used as reference clocks. The synchronization reference pulse input from outside the chip is used for sampling to obtain a set of binary digital codes. The value of each bit of the code represents the high level (code value is 1) or low level (code value is 0) of the reference clock, that is, the relative phase relationship of the synchronization reference pulse with respect to the multi-channel divided clocks, that is, the synchronization phase error that the converter chip will process. Therefore, the main function of the synchronization signal phase detection module is to detect the phase difference between the synchronization reference pulse signal and the on-chip clock after division, and provide information for the adjustment of the synchronization phase adjustment module.

[0065] In a possible implementation, when the working clock of the converter chip is the N-frequency division of the external clock frequency Fin, the delay adjustment range of the working clock of the converter chip adjusted by the synchronous phase adjustment module covers 1 / (Fin / N).

[0066] Specifically, the synchronization phase adjustment module mainly responds to the external synchronization reference pulse signal. The synchronization phase binary code obtained by the synchronization signal phase detection module controls the synchronization phase adjustment module to perform delay adjustment. The delay adjustment range is determined according to the division frequency of the converter chip. The operating frequency of the converter chip is N divided by the external clock frequency Fin. The delay adjustment range of the synchronization phase adjustment module needs to cover 1 / (Fin / N). After the adjustment is completed, the synchronization of the internal working clock phase of the converter chip and the synchronization reference pulse signal input externally to the converter chip is achieved, and the error is half of the period of the external clock with an external input frequency of Fin.

[0067] The synchronization process of the clock synchronization system of the converter chip according to the present invention is described in detail below.

[0068] In a possible implementation, the synchronization process is mainly divided into self-correction of clock mismatch between channels inside the converter chip and clock synchronization process of the converter chip working clock inside the converter chip after being triggered by an effective synchronization reference pulse signal outside the converter chip with the synchronization reference pulse signal as reference.

[0069] See also Figure 2First, after the power-on reset POR signal of the converter chip appears, the converter chip is defaulted to work in the normal temperature zone, and the clock mismatch correction is enabled to automatically correct the internal channel clock mismatch of the converter chip. Then, if the external input synchronization reference pulse signal of the converter chip is detected, the input synchronization reference pulse signal is detected through the synchronization signal phase detection module, and the phase deviation information between the synchronization reference pulse signal and the working clock of the converter chip is analyzed. Then, the phase of the working clock of the converter chip is adjusted through the synchronization phase adjustment module to synchronize it with the external synchronization reference pulse signal of the converter chip, that is, the entire clock synchronization process is completed.

[0070] The above process is the case where the converter chip starts the clock synchronization process. There are two other situations for triggering the clock synchronization process. When the converter chip is working normally, the converter chip will actively send a self-correction request after the temperature range changes, and send a request to the processor on the bus. The converter chip will stop working for self-correction only after the self-correction request is agreed. When the converter chip is working normally, when a valid synchronization reference pulse signal is detected from the external input of the converter chip, a clock synchronization request will be sent to the processor on the bus. When the feedback signal agrees to perform clock synchronization, the converter chip conversion process stops and enters the clock synchronization process. After the synchronization is completed, a synchronization completion indication signal is sent to the bus, and the converter chip continues to work.

[0071] The following is a detailed description of the clock mismatch synchronization process between channels within the converter chip.

[0072] 1. When the POR signal in the converter chip detects that the chip power-on reset is completed, a self-calibration request is sent to the processor. After receiving a response, if the self-calibration enable is configured to be valid, self-calibration is performed.

[0073] 2. After power-on and normal operation, when the temperature sensor monitors that the temperature of the converter chip changes dramatically, the converter chip operating temperature range is divided into 3 sections with the middle section temperature as the benchmark. When the converter chip operating temperature changes to the high temperature or low temperature judgment zone, a correction request signal is issued. Through high and low temperature tests, the channel clock delay mismatch error values ​​of the high temperature interval / low temperature interval and the normal temperature working interval are obtained respectively, and the values ​​are written in batches to the reserved address bits as a lookup table for the temperature delay deviation value when the temperature zone changes. When the operating temperature zone of the converter chip changes, the channel clock phase is corrected according to the lookup table value, thereby reducing the multi-channel timing differences in the converter chip and reducing the difficulty of synchronization.

[0074] 3. If the processor monitors the data output and finds that the data frame is misaligned, it can actively request self-correction.

[0075] 4. See Figure 3, using the bandgap reference voltage that is the same source as the converter chip reference voltage as the reference voltage VREF, and the four voltage values ​​of VREF / 4, VREF / 2, 3*VREF / 4 and 0V generated by the bandgap voltage self-test signal module, Figure 3 In the waveform example, the half-frequency clock of the clock frequency Fin received by the external clock receiving module is used as the reverse clock CLK1B of the sampling clock CLK1 as the periodic switching signal, and the above four voltage values ​​are sequentially input to the analog-to-digital converter, namely the signal waveform Diff_in; the rising edge POSedge with a self-correction period is used as the sampling edge of the self-correction function, and the clock of the external clock receiving module generates four-phase clocks, namely CLK_phase0, CLK_phase1, CLK_phase2 and CLK_phase3. The four-phase clocks are used to synchronize POSedge respectively to obtain four clock cycle delays of the frequency Fin, namely Phase0_edge, Phase1_edge, Phase2_edge and Phase3_edge. These four-phase clock edges are used to sample the conversion results of the four channels ABCD of the analog-to-digital converter, namely CHA_DATA, CHB_DATA, CHC_DATA and CHD_DATA.

[0076] In this implementation, the middle channel B or C is selected as the reference reference channel in consideration of the layout. For example, the B channel is used as the reference reference channel to correct the clock path delay mismatch of the remaining channels. The error value threshold for normal conversion of the actual converter chip is marked with ±E LSB (minimum resolution unit). LSB is the minimum resolution unit, which is the universal unit of static error of converter chip indicators. If the deviation between the actual value converted by the four channels and the ideal value is less than ±E, the actual converted value is truncated to the highest two bits, generally 00, 01, 10 and 11, and used as the automatic adjustment data code. Taking a 12-bit ideal converter as an example, the ideal conversion value of the reference voltage / 4 is 0100_0000_0000. If the binary code value converted by the actual analog-to-digital converter chip is 0100_0000_0000±E, the conversion result is a valid value, and the highest two bits of code value 01 are intercepted. In this way, the code values ​​of the four voltage accurate and normal conversion results are: 00, 01, 10 and 11, that is, Figure 3 Data in CHA_DATA, CHB_DATA, CHC_DATA, and CHD_DATA in the waveform.

[0077] by Figure 3The sampled B channel data is the reference code. The received frequency is the clock frequency division M=2 of Fin. With the B channel as the reference, the four-phase clock edge samples 4 01s. The mismatch self-correction algorithm logic module uses the binary successive approximation logic to adjust the delay of the delay mismatch correction module. After multiple correction cycles, the convergence is that the automatic adjustment data code sampled by the four-phase clock edge of the A / C / D channel and the reference channel (B channel) is the same, that is, 3 or 4 01 code values, then the inter-channel mismatch correction is completed.

[0078] The following describes in detail the clock synchronization process of the converter chip working clock inside the converter chip after the converter chip is triggered by the effective synchronization reference pulse signal outside the converter chip, using the synchronization reference pulse signal as a reference.

[0079] Through the external input frequency Fin, the external clock with a period of T, a multi-channel divided clock is generated through the frequency divider. In this embodiment, the highest frequency division bit M (M is an even number) is the working clock frequency of the converter, such as the frequency division number of 1, 2, 4 and 8 four-channel clock, that is, M=8. The divided clock is input to the synchronization signal phase detection module, in which the pulse reference signal (the pulse signal width is greater than 8*T) is sampled by the 4-channel divided clock to obtain the 4-bit encoding of the position information of the effective edge of the reference pulse relative to the four-channel clock, representing the position information sysref_info<3:0> of 16 T / 2 in the 8-frequency division. According to sysref_info<3:0>, the relative position information of the effective edge of the 8-frequency divided clock and the synchronization reference pulse signal is decoded, such as m T / 2, and the multi-channel synchronization is configured with m delay phases, the delay phase is an integer T / 2 time, and the adjusted clock edge is aligned with the effective edge of the synchronization reference pulse signal to achieve the function of synchronization sampling edge, and the synchronization accuracy is T / 2.

[0080] See also Figure 4 It is a circuit for realizing the phase detection module of the phase synchronization signal, which is composed of a trigger and an inverter. Its actual implementation is to use the reference pulse edge as the trigger clock edge to encode the synchronization information of the multi-channel divided clock sampling.

[0081] See also Figure 5 , where CLK_DIV1 is the external clock, CLKDIV2_D, CLKDIV4_D and CLKDIV8_D are the 2-, 4- and 8-division clocks after CLK_DIV1 is divided. SYSREF is the synchronous reference pulse signal generated by the synchronous reference pulse receiving module through the external input of the converter chip. The internal working clock of the converter chip, that is, the clock with the same frequency as the highest 8-division, is obtained through the detection circuit. The phase deviation information that needs to be synchronized with the synchronous reference pulse is shown in the figure. The four divided clocks of 8, 4, 2, and 1 can obtain the 4-bit synchronous phase deviation information code SYSREF_INFO<3:0>.

[0082] See also Figure 6 , by decoding SYSREF_INFO<3:0>, the number of phases to adjust the delay is obtained and input to the synchronous phase adjustment module, so that the error between the falling edge of the 4-divided clock CLK_CHA / B (taking one channel of the converter chip as an example) and the rising edge of the synchronous reference pulse signal SYSREF after adjustment is less than T / 2, so as to achieve the purpose of synchronization with the synchronous reference pulse signal edge. The figure shows that when the rising edge of SYSREF that needs to be synchronized arrives, it is located near the low level of the divided clock CLK_DIV4, the high level falling edge of CLK_DIV2, and the low level of CLK_DIV1 is close to its rising edge. After the synchronous phase adjustment module delays the CLK_CHA / B clock, the falling edge of the CLK_CHA / B clock is located at the low level of CLK_DIV4, the high level falling edge of CLK_DIV2, and the low level rising edge of CLK_DIV1, that is, the position of SYSREF relative to the CLK_DIV4 / 2 / 1 clock before synchronization is reached.

[0083] In another embodiment of the present invention, a clock synchronization method applied to a converter chip is provided, which can be implemented based on the above-mentioned clock synchronization system applied to the converter chip, and includes the following steps:

[0084] Send a bandgap voltage self-test signal to each analog-to-digital converter; receive the conversion result of each channel of each analog-to-digital converter, and obtain the time delay of each channel of each analog-to-digital converter according to the conversion result of each channel of each analog-to-digital converter; synchronize the working clock of each channel of the analog-to-digital converter according to the time delay of each channel of the analog-to-digital converter; receive an external clock and divide it to obtain an even-numbered divided clock; receive a synchronous reference pulse signal, and sample the synchronous reference pulse signal through the even-numbered divided clock to obtain synchronous phase adjustment information; adjust the working clock of the converter chip according to the synchronous phase adjustment information.

[0085] The present invention is a clock synchronization method applied to a converter chip. First, the clock path mismatch between channels inside the converter chip is self-corrected to ensure that the timing error of each conversion of the multi-channel signal conversion data result at the same time is greatly reduced. When the synchronization reference pulse signal outside the converter chip arrives, the working clock phase of the converter inside the converter chip is turned on and synchronized with the synchronization reference pulse signal, and the multiplied clock of the working clock is used as the phase detection clock for sampling the synchronization reference pulse signal, thereby improving the synchronization accuracy of a single converter chip. Therefore, in an environment where a plurality of chips are integrated in a PCB (printed circuit board) level system, the improvement of synchronization accuracy is justified to synchronize the convergence speed of the plurality of chips. After the high-precision synchronization system is synchronized, the period and phase errors between the chips are greatly reduced, and the clock synchronization of the high-speed communication system has a better synchronization effect.

[0086] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A clock synchronization system applied to a converter chip, characterized in that: It includes a frequency divider, a synchronization signal phase detection module, a bandgap voltage self-test signal module, a mismatch self-correction algorithm logic module, several synchronization phase adjustment modules and several delay mismatch correction modules; The synchronization signal phase detection module is connected to the frequency divider and several synchronization phase adjustment modules; one end of several delay mismatch correction modules is connected to each synchronization phase adjustment module one by one, and the other end is connected to each analog-to-digital converter of the converter chip one by one; the mismatch self-correction algorithm logic module is connected to several delay mismatch correction modules and each analog-to-digital converter; the bandgap voltage self-test signal module is connected to each analog-to-digital converter; The frequency divider is used to receive an external clock and divide the frequency to obtain an even-numbered divided clock; The synchronization signal phase detection module is used to receive the synchronization reference pulse signal and sample the synchronization reference pulse signal through the even-numbered frequency-divided clock to obtain synchronization phase adjustment information; The synchronous phase adjustment module is used to adjust the working clock of the converter chip according to the synchronous phase adjustment information; The bandgap voltage self-test signal module is used to send a bandgap voltage self-test signal to each analog-to-digital converter; The mismatch self-correction algorithm logic module is used to receive the conversion results of each channel of each analog-to-digital converter, and obtain the time delay of each channel of each analog-to-digital converter according to the conversion results of each channel of each analog-to-digital converter; The delay mismatch correction module is used to synchronize the working clocks of each channel of the analog-to-digital converter according to the delay of each channel of the analog-to-digital converter.

2. The clock synchronization system for a converter chip according to claim 1, characterized in that: Also includes a temperature sensor; The temperature sensor is used to detect the operating temperature of the converter chip and send it to the mismatch self-correction algorithm logic module; The mismatch self-correction algorithm logic module is also used to obtain the temperature adjustment delay of the converter chip through a preset temperature delay deviation value lookup table according to the operating temperature of the converter chip; The delay mismatch correction module is also used to adjust the working clock of the delay adjustment converter chip according to the temperature.

3. The clock synchronization system for a converter chip according to claim 1, characterized in that: Also included is a synchronous reference pulse receiving module; The synchronization reference pulse receiving module is used to receive the synchronization reference pulse signal, and after converting the type of the synchronization signal phase detection module into a single pulse signal, a discontinuous pulse signal or a periodic pulse signal, it is sent to the synchronization signal phase detection module.

4. The clock synchronization system for a converter chip according to claim 1, characterized in that: The step of sampling the synchronous reference pulse signal by using the even-numbered frequency-divided clock to obtain the synchronous phase adjustment information comprises: The synchronization reference pulse signal is sampled through an even-numbered divided clock to obtain a set of binary digital codes as the synchronization phase binary code; the code value 1 in the synchronization phase binary code indicates that the synchronization reference pulse signal is at the high level of the divided clock, and the code value 0 indicates that the synchronization reference pulse signal is at the low level of the divided clock; and according to the synchronization phase binary code, the phase deviation information of the effective edge alignment of the working clock of the converter chip and the synchronization reference pulse signal is decoded as the synchronization phase adjustment information.

5. The clock synchronization system for a converter chip according to claim 1, characterized in that: The bandgap voltage self-test signal module adopts a bandgap reference voltage circuit which is the same source as the reference voltage of each analog-to-digital converter of the converter chip, and uses the reverse clock of the two-frequency clock of the external clock as a periodic switching signal to send a bandgap voltage self-test signal to each analog-to-digital converter; the bandgap voltage self-test signal uses the analog-to-digital converter reference voltage / 4 as a step, and generates four voltage values ​​of analog-to-digital converter reference voltage / 4, analog-to-digital converter reference voltage / 2, 3 times the analog-to-digital converter reference voltage / 4 and 0V voltage.

6. The clock synchronization system for a converter chip according to claim 5, characterized in that: The step of obtaining the time delay of each channel of each analog-to-digital converter according to the conversion result of each channel of each analog-to-digital converter comprises: Taking the rising edge of a self-correction cycle as the sampling edge, generating a plurality of phase clocks through an external clock, and using the plurality of phase clocks to synchronize the sampling edges respectively to obtain a plurality of phase clock edges delayed by a plurality of clock cycles; The conversion result of each channel of the analog-to-digital converter is subtracted from the ideal conversion value. If the difference is less than ±E, the highest two bits of the conversion result of each channel are intercepted to obtain the automatic adjustment data code of each channel; wherein E is the maximum error threshold of the analog-to-digital converter; and the automatic adjustment data code of each channel is sampled with several phase clock edges to obtain the offset between the automatic adjustment data codes of each channel, and according to the offset between the automatic adjustment data codes of each channel, one channel is used as a reference reference channel to obtain the delay of the clock of the remaining channels.

7. The clock synchronization system for a converter chip according to claim 6, characterized in that: According to the offset between the automatically adjusted data codes of each channel, one channel is used as a reference channel to obtain the delay of the clocks of the remaining channels, and the delay of the clocks of the remaining channels is obtained by binary successive approximation logic until the automatically adjusted data codes of each channel are the same.

8. The clock synchronization system for a converter chip according to claim 1, characterized in that: The even-numbered frequency-divided clocks include an external clock and a 2-divided clock, a 4-divided clock and an 8-divided clock of the external clock.

9. The clock synchronization system for a converter chip according to claim 1, characterized in that: When the working clock of the converter chip is the N-frequency division of the external clock frequency Fin, the delay adjustment range of the working clock of the converter chip adjusted by the synchronous phase adjustment module covers 1 / (Fin / N).

10. A clock synchronization method applied to a converter chip based on the clock synchronization system applied to a converter chip according to any one of claims 1 to 9, characterized in that: include: sending a bandgap voltage self-test signal to each analog-to-digital converter; Receiving the conversion results of each channel of each analog-to-digital converter, and obtaining the time delay of each channel of each analog-to-digital converter according to the conversion results of each channel of each analog-to-digital converter; Synchronize the working clocks of each channel of the analog-to-digital converter according to the time delay of each channel of the analog-to-digital converter; Receive an external clock and divide it to obtain an even-numbered divided clock; Receive a synchronous reference pulse signal, and sample the synchronous reference pulse signal through an even-numbered frequency-divided clock to obtain synchronous phase adjustment information; The operating clock of the converter chip is adjusted according to the synchronous phase adjustment information.