A daisy chain-based clock skew calibration system, method, device and computer storage medium
By adjusting the controllable delay chain through the phase detector and state machine between clock channels, the problem of delay differences between multiple sub-clock signals of the clock source is solved, high-precision clock skew calibration is achieved, and the synchronization of the system is ensured. and performance.
Patent Information
- Application Number
- CN202011517775.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-21
AI Technical Summary
Delay differences between multiple sub-clock signals generated by the same clock source cause clock skew, affecting circuit synchronization and system performance.
A daisy chain-based clock skew calibration system is adopted by placing a phase detector between each two adjacent clock channels and using a state machine to adjust the controllable delay chain according to the output of the phase detector until the output skew between channels Until the slope is small enough, calibrate all channels in sequence.
It effectively controls the clock skew between different channels and has high calibration accuracy. The skew of adjacent channels can be calibrated to 1ps in the 65nm CMOS process and to 2ps in the 180nm CMOS process. The cumulative worst output skew is controlled within the 6ps range.
Smart Images

Figure CN112737573B
Abstract
Description
Technical Field
[0001] The invention relates to a daisy chain-based clock skew calibration system, method, equipment and computer storage medium, and relates to the technical field of clock skew calibration. Background Art
[0002] Clock skew refers to the phenomenon that the clock phases of multiple sub-clock signals generated by the same clock source are inconsistent when they arrive at each clock end. Clock skew usually refers to the uncertainty in the clock phase and is one of the main factors affecting the stability of the clock signal.
[0003] If the clock skew exceeds the maximum allowed, circuit synchronization may fail.
[0004] Skew is mainly caused by two factors: one is the deviation of the clock source driving device, such as the skew between different clock signals output by the same PLL; the other is the skew of the clock distribution network. Since a large number of components in the clock signal driving system must receive the clock signal at the same time in order to achieve synchronization, any time difference between them will directly affect the system performance.
[0005] Use clock distribution techniques to reduce clock skew. Including buffers in the clock distribution path is the simplest way to control clock skew.
[0006] Clock skew always exists, and to a certain extent it will seriously affect the timing of the circuit; clock skew is one of the main factors affecting the stability of the clock signal, so it is necessary to control the clock skew to maintain the stable operation of the system.
[0007] There is often clock skew between different channels of clock source distribution, and the clock skew between channels can reach tens of picoseconds. In order to meet the higher requirements of some systems, it is necessary to further reduce the output deviation between clock channels and eliminate the influence of different clock channels on clock skew. Summary of the invention
[0008] Purpose of the invention: One purpose is to provide a daisy-chain based clock skew calibration system to solve the delay difference problem between multiple sub-clock signals generated by the same clock source. A further purpose is to provide a calibration method, device and computer storage medium based on the above system.
[0009] Technical solution: A daisy chain-based clock skew calibration system, comprising at least two independent clock channel units, at least one phase detector, and at least one state machine; the clock unit comprises a controllable delay chain unit and a driving unit.
[0010] In a further embodiment, the phase detector is connected to the output of the driving unit of the adjacent clock channel, and is used to obtain and compare the clock phases of the output signals of the driving units of the adjacent clock channels;
[0011] The state machine is respectively connected to the phase detector output, the controllable delay chain of the first clock channel, and the controllable delay chain of the second clock channel, and is used to determine the delay amount of adjacent clock channels according to the comparison result of the phase detector.
[0012] In a further embodiment, the controllable delay chain unit of the first clock channel unit is connected to the state machine and the driving unit of the first clock channel unit respectively, and is used to adjust the clock signal of the first clock channel unit according to the delay amount determined by the state machine;
[0013] The controllable delay chain unit of the second clock channel unit is respectively connected to the state machine and the driving unit of the second clock channel unit, and is used to adjust the clock signal of the second clock channel unit according to the delay amount determined by the state machine;
[0014] The driving unit is connected to the controllable delay chain and is used to output the clock signal adjusted by the controllable delay chain as a synchronous clock signal.
[0015] In a further embodiment, the phase detector unit is also used to determine the sequence of clock signals of adjacent clock channels; the state machine unit is connected to the phase detector unit, and is used to determine the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the sequence of clock signals of adjacent channels and a preset clock phase.
[0016] In a further embodiment, the phase detector unit is also used to determine the phase difference between clock signals of adjacent clock channels; the state machine unit is connected to the phase detector unit, and is used to determine the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference between the clock signals of adjacent channels and a preset clock phase.
[0017] In a further embodiment, the controllable delay chain unit of the first clock channel is connected to the output of the state machine unit, and is used to adjust the clock signal of the first channel unit according to the delay amount output by the state machine; the controllable delay chain unit of the second clock channel is connected to the output of the state machine unit, and is used to adjust the clock signal of the second channel unit according to the delay amount output by the state machine.
[0018] A clock skew calibration method based on a daisy chain comprises the following steps:
[0019] Step 1: Obtain and compare the phase difference between the first channel clock signal and the second channel clock signal through a phase detector unit;
[0020] Step 2: Obtain the delay amount of the controllable delay unit of the first channel clock signal through the state machine unit;
[0021] Step 3, obtaining the delay amount of the controllable delay unit of the second channel clock signal through the state machine unit;
[0022] Step 4: adjusting the phase of the clock signal of the first channel according to the delay amount by the controllable delay unit of the first channel unit;
[0023] Step 5: adjusting the phase of the clock signal of the second channel according to the delay amount by the controllable delay unit of the second channel unit;
[0024] Step 6: Repeat steps 1 to 5 to calibrate the phase difference between the second channel clock and the third clock channel in sequence.
[0025] In a further embodiment, the phase detector acquires and compares the clock phases of the output signals of the adjacent clock channel driving units;
[0026] The state machine determines the delay amount of adjacent clock channels according to the comparison result of the phase detector;
[0027] The controllable delay chain unit of the first clock channel unit adjusts the clock signal of the first clock channel unit according to the delay amount determined by the state machine;
[0028] The controllable delay chain unit of the second clock channel unit adjusts the clock signal of the second clock channel unit according to the delay amount determined by the state machine;
[0029] The driving unit outputs the clock signal adjusted by the controllable delay chain as a synchronous clock signal;
[0030] The phase detector unit further determines the sequence of clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the sequence of clock signals of adjacent channels and the preset clock phase;
[0031] The phase detector unit further determines the phase difference value of the clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference value of the clock signals of adjacent channels and the preset clock phase;
[0032] The controllable delay chain unit of the first clock channel adjusts the clock signal of the first channel unit according to the delay amount output by the state machine;
[0033] The controllable delay chain unit of the second clock channel adjusts the clock signal of the second channel unit according to the delay amount output by the state machine.
[0034] In a further embodiment, a daisy chain-based clock skew calibration device is provided, the device comprising: a processor and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the above-mentioned clock skew calibration method.
[0035] In a further embodiment, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned clock skew calibration method is implemented.
[0036] Beneficial effects: The present invention relates to a daisy-chain-based clock skew calibration system and calibration method thereof. A phase detector is placed between every two adjacent channels, and then a calibration state machine adjusts the controllable delay chain on each clock channel according to the output of the phase detector until the output skew of the two channels is small enough; all channels are calibrated in this way: channel 0 + channel 1, channel 1 + channel 2, channel 2 + channel 3, etc. Control experiments show that this method can calibrate the skew of adjacent channels to within 1ps under the 65nm CMOS process and within 2ps under the 180nm CMOS process; the cumulative worst output skew of a chip with 10 channel outputs can be controlled within 6ps. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Schematic diagram (1) of clock skew proposed in the background technology of the present invention.
[0038] Figure 2 This is a schematic diagram of clock skew mentioned in the background technology of the present invention (2).
[0039] Figure 3 It is a schematic diagram of the workflow of the present invention. DETAILED DESCRIPTION
[0040] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.
[0041] The applicant believes that there is often clock skew between different channels of clock source distribution, and the clock skew between channels can reach tens of picoseconds. In order to meet the higher requirements of certain systems, it is necessary to further reduce the output deviation between clock channels and eliminate the impact of different clock channels on clock skew.
[0042] In order to solve the delay difference problem between multiple sub-clock signals generated by the same clock source, the present invention discloses a clock skew or clock deviation (Clock The invention discloses a skew calibration method, which belongs to the field of clock integrated circuits and is applied to skew calibration of i (i=1, 2, 3, ..., N) clock signal paths, and comprises: a channel 1 subcircuit, a channel 2 subcircuit, ..., a channel N subcircuit, a phase detector 1 subcircuit, a phase detector 2 subcircuit, a phase detector N-1 subcircuit, a state machine 1 subcircuit, a state machine 2 subcircuit, and a state machine N-1 subcircuit; the channel i subcircuit comprises a controllable delay chain i subcircuit and a driver i subcircuit; the input of the phase detector i subcircuit is the output end of the driver i subcircuit and the output end of the driver i+1 subcircuit, the output end of the phase detector i subcircuit is electrically connected to the input end of the state machine i subcircuit, the output end of the state machine i is electrically connected to the input end of the controllable delay chain i subcircuit and the input end of the controllable delay chain i+1 subcircuit, and the output end of the controllable delay chain i is electrically connected to the input end of the driver i subcircuit. The calibration state machine adjusts the controllable delay chain on each clock channel according to the output of the phase detector until the output skew between the two channels is small enough.
[0043] Specifically, the clock skew calibration system includes: at least two mutually independent clock channel units, at least one phase detector, and at least one state machine; the clock unit includes a controllable delay chain unit and a driving unit.
[0044] The phase detector is used to obtain and compare the clock phases of the output signals of the adjacent clock channel drive units, and the phase detector is connected to the output of the drive units of the adjacent clock channels. The phase detector unit is also used to determine the phase difference of the clock signals of the adjacent clock channels.
[0045] The state machine is used to determine the delay amount of adjacent clock channels according to the comparison result of the phase detector, and the state machine is respectively connected to the phase detector output, the controllable delay chain of the first clock channel, and the controllable delay chain of the second clock channel. The state machine unit is connected to the phase detector unit, and is used to determine the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference value of the adjacent channel clock signals and the preset clock phase.
[0046] The controllable delay chain unit of the first clock channel unit is used to adjust the clock signal of the first clock channel unit according to the delay amount determined by the state machine, and is connected to the state machine and the driving unit of the first clock channel unit respectively. The first clock channel controllable delay chain unit is connected to the output of the state machine unit, and is used to adjust the clock signal of the first channel unit according to the delay amount output by the state machine.
[0047] The controllable delay chain unit of the second clock channel unit is used to adjust the clock signal of the second clock channel unit according to the delay amount determined by the state machine, and is connected to the state machine and the driving unit of the second clock channel unit respectively. The second clock channel controllable delay chain unit is connected to the output of the state machine unit, and is used to adjust the clock signal of the second channel unit according to the delay amount output by the state machine.
[0048] The driving unit is used to output the clock signal adjusted by the controllable delay chain as a synchronous clock signal, and is connected to the controllable delay chain.
[0049] In summary, the present invention can calibrate all channels in sequence, can effectively control the clock skew between different channels, and has high calibration accuracy. A phase detector is placed between every two adjacent channels, and then the calibration state machine adjusts the controllable delay chain on each clock channel according to the output of the phase detector until the output skew of the two channels is small enough; all channels are calibrated in this way in sequence: channel 0 + channel 1, channel 1 + channel 2, channel 2 + channel 3... According to our project experience, this method can calibrate the skew of adjacent channels to within 1ps under the 65nm CMOS process, and can be calibrated to within 2ps under the 180nm CMOS process; for a chip with 10 channel outputs, the cumulative worst output skew can be controlled within within the range.
[0050] The embodiment of the present invention further provides a computer storage medium, on which computer program instructions are stored; when the program instructions are executed by a processor, the following steps are implemented:
[0051] The phase detector is controlled to obtain and compare the clock phases of the output signals of the adjacent clock channel driving units; the state machine determines the delay amount of the adjacent clock channels according to the comparison result of the phase detector; the controllable delay chain unit of the first clock channel unit adjusts the clock signal of the first clock channel unit according to the delay amount determined by the state machine;
[0052] The controllable delay chain unit of the second clock channel unit adjusts the clock signal of the second clock channel unit according to the delay amount determined by the state machine; the driving unit outputs the clock signal adjusted by the controllable delay chain as a synchronous clock signal; the phase detector unit further determines the sequence of clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the sequence of clock signals of adjacent channels and a preset clock phase; the phase detector unit further determines the phase difference value of the clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference value of the clock signals of adjacent channels and a preset clock phase; the controllable delay chain unit of the first clock channel adjusts the clock signal of the first channel unit according to the delay amount output by the state machine; the controllable delay chain unit of the second clock channel adjusts the clock signal of the second channel unit according to the delay amount output by the state machine.
[0053] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0054] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0055] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A clock skew calibration method for a daisy chain-based clock skew calibration system, characterized in that: The calibration method is implemented based on a clock skew calibration system, wherein the clock skew calibration system comprises at least two mutually independent clock channel units, at least one phase detector, and at least one state machine; the clock channel unit comprises a controllable delay chain unit and a driving unit; The phase detector is connected to the output of the driving unit of the adjacent clock channel, and is used to obtain and compare the clock phases of the output signals of the driving units of the adjacent clock channels; The state machine is respectively connected to the phase detector output, the controllable delay chain of the first clock channel, and the controllable delay chain of the second clock channel, and is used to determine the delay amount of adjacent clock channels according to the comparison result of the phase detector; The controllable delay chain unit of the first clock channel unit is connected to the state machine and the driving unit of the first clock channel unit respectively, and is used to adjust the clock signal of the first clock channel unit according to the delay amount determined by the state machine; The controllable delay chain unit of the second clock channel unit is respectively connected to the state machine and the driving unit of the second clock channel unit, and is used to adjust the clock signal of the second clock channel unit according to the delay amount determined by the state machine; The driving unit is connected to the controllable delay chain and is used to output the clock signal adjusted by the controllable delay chain as a synchronous clock signal; The phase detector is used to determine the sequence of clock signals of adjacent clock channels; the state machine is connected to the phase detector and is used to determine the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the sequence of clock signals of adjacent channels and a preset clock phase; The phase detector is also used to determine the phase difference between the clock signals of adjacent clock channels; the state machine is connected to the phase detector and is used to determine the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference between the clock signals of adjacent channels and the preset clock phase; The controllable delay chain unit of the first clock channel is connected to the output of the state machine unit, and is used to adjust the clock signal of the first channel unit according to the delay amount output by the state machine; The controllable delay chain unit of the second clock channel is connected to the output of the state machine unit, and is used to adjust the clock signal of the second channel unit according to the delay amount output by the state machine; The clock skew calibration method is to place a phase detector on every two adjacent channels, and then the calibration state machine adjusts the controllable delay chain on each clock channel according to the output of the phase detector until the output skew of the two channels is less than a predetermined value; Specifically, the clock skew calibration method comprises the following steps: Step 1: Obtain and compare the phase difference between the first channel clock signal and the second channel clock signal through a phase detector unit; Step 2: Obtain the delay amount of the controllable delay unit of the first channel clock signal through the state machine unit; Step 3, obtaining the delay amount of the controllable delay unit of the second channel clock signal through the state machine unit; Step 4: adjusting the phase of the clock signal of the first channel according to the delay amount by the controllable delay unit of the first channel unit; Step 5: adjusting the phase of the clock signal of the second channel according to the delay amount by the controllable delay unit of the second channel unit; Step 6, repeat step 1 to step 5, and calibrate the phase difference between the second channel clock and the third clock channel in sequence; The phase detector acquires and compares the clock phases of the output signals of the adjacent clock channel driving units; The state machine determines the delay amount of adjacent clock channels according to the comparison result of the phase detector; The controllable delay chain unit of the first clock channel unit adjusts the clock signal of the first clock channel unit according to the delay amount determined by the state machine; The controllable delay chain unit of the second clock channel unit adjusts the clock signal of the second clock channel unit according to the delay amount determined by the state machine; The driving unit outputs the clock signal adjusted by the controllable delay chain as a synchronous clock signal; The phase detector unit further determines the sequence of clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the sequence of clock signals of adjacent channels and the preset clock phase; The phase detector unit further determines the phase difference value of the clock signals of adjacent clock channels; the state machine unit determines the delay amount of the controllable delay chain of the first clock channel and the controllable delay chain of the second clock channel according to the phase difference value of the clock signals of adjacent channels and the preset clock phase; The controllable delay chain unit of the first clock channel adjusts the clock signal of the first channel unit according to the delay amount output by the state machine; The controllable delay chain unit of the second clock channel adjusts the clock signal of the second channel unit according to the delay amount output by the state machine.
2. A daisy chain based clock skew calibration device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the clock skew calibration method according to claim 1.
3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the clock skew calibration method according to claim 1 is implemented.
Citation Information
Patent Citations
Semiconductor memory device and method for operating the same
CN101154434A
Intersystem global clock determination method and structure
CN104317354A
Multi-channel DAC (Digital-to-Analog Converter) phase error calibration circuit based on charge domain signal processing
CN107070450A
Clock distribution system and method
CN108988858A
Skew correction apparatus
US20020009169A1
