Method for providing clock signal in data link, and apparatus

By generating a reset pulse signal based on the input signal and synchronously outputting the signal in each clock domain of the data link, the problem of delay uncertainty and metastability between multiple clock domains is solved, and high-precision delay transmission is achieved.

WO2024198645A1PCT designated stage expired Publication Date: 2024-10-03SANECHIPS TECH CO LTD

Patent Information

Application Number
PCT/CN2024/072373
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-01-15
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In a multi-clock domain data link, there are delay uncertainties and metastability problems in the transmission of reset signals, resulting in low delay accuracy and affecting system performance.

Method used

By generating a reset pulse signal based on the input synchronization reference signal and clock signal in each clock domain, and synchronously generating the output synchronization reference signal and clock signal after the end of the reset pulse, they are transmitted to the next clock domain after the same time delay, ensuring The phase information is clear and the probability of metastable state is reduced.

Benefits of technology

It effectively solves the problem of large reset signal load and wrong timing, improves the certainty of delay between different clock domains, and ensures the high-precision delay characteristics of the data link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024072373_03102024_PF_FP_ABST
    Figure CN2024072373_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a method for providing a clock signal in a data link, and an apparatus. The method comprises: in each clock domain among a plurality of clock domains of a data link, generating a reset pulse signal on the basis of an input synchronization reference signal and an input clock signal, generating an output synchronization reference signal on the basis of the input synchronization reference signal and the input clock signal, and generating an output clock signal on the basis of the input clock signal; and, by means of the reset pulse signal, resetting the output synchronization reference signal and the output clock signal, such that after the end of the reset pulse signal, a reset output synchronization reference signal and a reset output clock signal are synchronously generated at the next rising edge of the input clock signal, and are transmitted to the next clock domain via the same time delay, so as to serve as an input synchronization reference signal and an input clock signal of the next clock domain. The present disclosure decreases loads on synchronization reference signals, so as to reduce the uncertainty of time delay between different clock domains, and avoids problems such as being out of beat and metastable states.
Need to check novelty before this filing date? Find Prior Art

Description

A method and device for providing a clock signal in a data link

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] The present disclosure is based on Chinese patent application CN2023103636520 filed on March 31, 2023, entitled “A method and device for providing a clock signal in a data link”, and claims the priority of the patent application, and all the contents disclosed therein are incorporated into the present disclosure by reference. Technical Field

[0003] The embodiments of the present disclosure relate to the field of communications, and in particular, to a method and apparatus for providing a clock signal in a data link. Background Art

[0004] In recent years, 5G communications have rapidly developed. Technologies such as massive antenna technology and Global Positioning System Pulse Per Second (GPS 1PPS) timing have increased system capacity and clock accuracy. This has also led to higher requirements for the accuracy of data link delays in baseband and RF transceiver systems. This patent uses high speed and high precision as an example to illustrate this. As a key component of the RF transceiver system, the delay accuracy of high speed and high precision is crucial to the delay accuracy of the entire system.

[0005] The traditional method of clock phase initialization in multiple clock domains uses asynchronous reset and synchronous release to ensure that the reset signal has a clear release sequence. This can reduce the metastable problem caused by the reset signal release and effectively capture the reset. Even if the reset pulse is narrow, the reset function will not be lost. However, there are the following problems: First, if the circuit scale is large and the distance between different clock domains is relatively long, the reset signal will be heavily loaded. To ensure signal quality, more buffer circuits are required. As a result, the delay of the reset signal to different clock domains will vary significantly with the process voltage temperature (PVT), thus affecting the delay accuracy of the reset signal reaching each clock domain. Second, the delay of the reset signal between different clock domains is uncertain. Third, the metastable problem still exists when the reset is released, which can seriously affect the delay accuracy of the reset signal, thereby affecting the delay accuracy of the reset signal.

[0006] There is no solution yet to the problem of uncertainty in the delay between different clock domains in related technologies.

[0007] Summary of the Invention

[0008] The embodiments of the present disclosure provide a method and apparatus for providing a clock signal in a data link, so as to at least solve the problem in the related art that the uncertainty of the delay between different clock domains causes a large load and misbeat of the reset signal, and metastable state still exists when the reset is released.

[0009] According to one embodiment of the present disclosure, a method for providing a clock signal in a data link is provided, the method comprising:

[0010] In each of the multiple clock domains of the data link, generating a reset pulse signal based on an input synchronization reference signal and an input clock signal, generating an output synchronization reference signal based on the input synchronization reference signal and the input clock signal, and generating an output clock signal based on the input clock signal;

[0011] The output synchronization reference signal and the output clock signal are reset by the reset pulse signal, and after the reset pulse signal ends, the next rising edge of the input clock signal is synchronized to generate the reset output synchronization reference signal and the reset output clock signal, wherein the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link after the same time delay, as the input synchronization reference signal and input clock signal of the next clock domain.

[0012] According to another embodiment of the present disclosure, there is also provided a device for providing a clock signal in a data link, the device comprising: a reset pulse signal generating circuit, an output synchronization reference signal generating circuit, and an output clock signal generating circuit, wherein:

[0013] The reset pulse signal generating circuit is configured to generate a reset pulse signal based on an input synchronization reference signal and an input clock signal in each of a plurality of clock domains of the data link, generate an output synchronization reference signal based on the input synchronization reference signal and the input clock signal, and generate an output clock signal based on the input clock signal; and input the reset pulse signal into the output synchronization reference signal generating circuit and the output clock signal generating circuit to reset the output synchronization reference signal and the output clock signal;

[0014] The output synchronization reference signal generating circuit is used to synchronously generate a reset output synchronization reference signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0015] The output clock signal generating circuit is used to synchronously generate a reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, wherein the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link after the same second time delay, as the input synchronization reference signal and input clock signal of the next clock domain.

[0016] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.

[0017] According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] FIG1 is a system block diagram of a digital-to-analog converter in the related art;

[0019] 2 is a flowchart of a method for providing a clock signal in a data link according to an embodiment of the present disclosure;

[0020] FIG3 is a timing diagram of high-precision time delay according to this embodiment;

[0021] FIG4 is a circuit structure diagram 1 of a high-precision time delay according to this embodiment;

[0022] FIG5 is a first schematic diagram of clock frequency deviation compensation according to this embodiment;

[0023] FIG6 is a circuit structure diagram of a buffer according to this embodiment;

[0024] FIG7 is a circuit structure diagram 1 of a multi-phase clock generation according to this embodiment;

[0025] FIG8 is a second circuit structure diagram of a multi-phase clock generator according to this embodiment;

[0026] FIG9 is a circuit structure diagram 1 showing a reset pulse generation circuit according to the present embodiment;

[0027] FIG10 is a second circuit structure diagram of a reset pulse generator according to the present embodiment;

[0028] FIG11 is a second schematic diagram of clock frequency deviation compensation according to this embodiment;

[0029] FIG12 is a second circuit structure diagram of a high-precision time delay according to this embodiment;

[0030] FIG13 is a third circuit structure diagram of a high-precision time delay according to this embodiment;

[0031] FIG14 is a block diagram of an apparatus for providing a clock signal in a data link according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0032] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0034] Figure 1 is a system block diagram of a digital-to-analog converter (DAC) in the related art. As shown in Figure 1, the DAC includes a data path, a clock path, and a DAC core circuit. The data path includes an interface circuit, a digital data path, a decoder, a serializer, and a switch driver. The clock path includes a synchronous pulse circuit (Clock Receiver), a clock divider, and a driver. The DAC core circuit includes multiple DAC core slices. In the interface circuit, 16 channels of low-speed data are transmitted in parallel at a frequency of Fs / 16 to the digital data link. The digital data link primarily consists of four random access memories (RAMs). The 16 channels of data are written into the four RAMs in four groups using a clock frequency of Fs / 16. Four channels of data are read from the four RAMs using a clock frequency of Fs / 4, each with four phases. The data is then input into the decoder. After the decoder completes the code conversion, the serializer uses double-edge sampling to merge the four-phase data into two-phase data. The switch actuator then merges the two-phase data into one-phase data. During the parallel-to-serial conversion process, different modules in the data link operate at different clock frequencies, and the clock phases of multiple channels within the same module also differ. Ultimately, data transmission and transmission are achieved under the control of multiple clock frequency domains. Therefore, the accuracy of the clock frequency and phase in different clock domains determines the latency accuracy of the data link.

[0035] In this embodiment, a method for providing a clock signal in a data link is provided. FIG2 is a flow chart of the method for providing a clock signal in a data link according to an embodiment of the present disclosure. As shown in FIG2 , the flow chart includes the following steps:

[0036] Step S202, in each of the multiple clock domains of the data link, generating a reset pulse signal based on an input synchronization reference signal and an input clock signal, generating an output synchronization reference signal based on the input synchronization reference signal and the input clock signal, and generating an output clock signal based on the input clock signal;

[0037] The reset pulse signal in this embodiment is a pulse signal with a preset width, and the preset width can be flexibly set according to actual needs.

[0038] Step S204, reset the output synchronization reference signal and the output clock signal through the reset pulse signal, and after the reset pulse signal ends, the next rising edge of the input clock signal synchronously generates the reset output synchronization reference signal and the reset output clock signal, and the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link after the same time delay, as the input synchronization reference signal and input clock signal of the next clock domain.

[0039] Through steps S202 to S204, the problems of delay uncertainty between different clock domains caused by the heavy load of the reset signal and inconsistent transmission paths in the related art, which in turn lead to misbeats and metastability, can be solved. Since each clock domain is synchronized sequentially, each clock domain has clear phase information, reducing the load of the synchronization reference signal and thus the uncertainty of delay between different clock domains. Since the clock signal and the synchronization reference signal are transmitted together, misbeats are avoided and the probability of metastability is reduced.

[0040] In this embodiment, the above step S202 may specifically include: generating a reset pulse signal when a rising edge of the input synchronization reference signal is detected at a rising edge of the input clock signal.

[0041] In one embodiment, the above-mentioned step S204 may specifically include: converting the output synchronization reference signal from a high level to a low level based on the reset pulse signal, and converting the output clock signal from a high level to a low level based on the reset pulse signal, so as to reset the output synchronization reference signal and the output clock signal; when the next rising edge of the input clock signal arrives, synchronously generating the reset output synchronization reference signal and the reset output clock signal. This implementation is only a preferred embodiment, and it can also be reset from a low level to a high level.

[0042] In another embodiment, in the above step S204, generating the reset output clock signal may specifically include: generating a single-phase reset output clock signal according to the reset pulse signal and the input clock signal; or generating a multi-phase reset output clock signal according to the reset pulse signal and the input clock signal.

[0043] The above-mentioned step S204 can be specifically performed by the output synchronization reference signal generating circuit and the output clock signal generating circuit. When the output synchronization reference signal generating circuit includes a first trigger (D type Flip Flop, abbreviated as DFF), through the first DFF, at the next rising edge of the input clock signal after the reset pulse signal ends, the reset output synchronization reference signal is generated synchronously according to the reset pulse signal, the input synchronization reference signal and the input clock signal. When the rising edge of the clock signal in the first DFF arrives, the output synchronization reference signal becomes the input synchronization reference signal, and when the low level of the clock signal arrives, the output synchronization reference signal remains unchanged.

[0044] The above-mentioned output clock signal generating circuit can be a single-phase clock generating circuit or a multi-phase clock generating circuit. If the output clock signal is a single-phase clock generating circuit, the single-phase clock generating circuit generates a single-phase reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, synchronously according to the reset pulse signal and the input clock signal; further, in the case where the single-phase clock generating circuit includes a third DFF, the third DFF generates a single-phase reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, synchronously according to the reset pulse signal and the input clock signal.

[0045] If the output clock signal is a multi-phase clock generation circuit, the multi-phase clock generation circuit generates a multi-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends. Furthermore, if the multi-phase clock generation circuit includes a divider and a shift register, the divider generates a single-phase divided clock based on the input clock signal and the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends; the shift register generates a multi-phase reset output clock signal based on the single-phase divided clock generated by the divider under the control of the input clock signal; if the multi-phase clock generation circuit includes a state machine and a synchronization circuit, the state machine generates a multi-phase divided clock based on the input clock signal and the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends; the synchronization circuit synchronizes the multi-phase divided clock and outputs the multi-phase reset output clock signal.

[0046] In an optional embodiment, after the above-mentioned step S204, the method further includes: synchronizing the reset output synchronization reference signal according to the reset output clock signal to obtain a new reset output synchronization reference signal. At this time, the above-mentioned output synchronization reference signal generating circuit also includes a second DFF, and the second DFF is connected to the above-mentioned first DFF. Through the second DFF, the reset output synchronization reference signal is synchronized according to the reset output clock signal to obtain a new reset output synchronization reference signal.

[0047] In the embodiment of the present disclosure, the above-mentioned step S202 may specifically include: using a reset pulse generation method of a delayed signal to generate a reset pulse signal based on the input synchronization reference signal and the input clock signal; or using a reset pulse generation method of a two-phase non-overlapping signal to generate a reset pulse signal based on the input synchronization reference signal and the input clock signal.

[0048] In another optional embodiment, the method further includes: when the reset pulse enable signal is enabled and the new air interface signal is enabled, generating the reset pulse signal according to the input synchronization reference signal and the input clock signal, and when the reset pulse enable signal is enabled and the new air interface enable signal is enabled, synchronously resetting the output synchronization reference signal and the output clock signal through the reset pulse signal; further, when the reset pulse enable signal is enabled and the new air interface signal is not enabled, not resetting the output synchronization reference signal and the output clock signal; when the reset pulse enable signal is not enabled and the new air interface signal is enabled, not resetting the output synchronization reference signal and the output clock signal, and generating the output synchronization reference signal and the output clock signal when the rising edge of the input clock signal comes.

[0049] In this embodiment, the input synchronization reference signal enters the reset pulse signal generating circuit and the output synchronization reference signal generating circuit respectively through the first buffer, and the input clock signal enters the reset pulse signal generating circuit, the output synchronization reference signal generating circuit and the output clock signal generating circuit respectively through the second buffer. The first buffer and the second buffer are an inverter chain structure, or the first buffer and the second buffer are integrated with a delay adjustment circuit, or the first buffer and the second buffer are integrated with a duty cycle adjustment circuit.

[0050] The embodiments of the present disclosure can also compensate for the time delay of the data link in the following two ways: Method 1: within the period of the input synchronization reference signal of multiple clock domains, count the input clock signal to obtain a counting result; compare the counting result with the preset counting result to obtain a first comparison result; determine the first clock frequency deviation of the target time delay based on the first comparison result; adjust the time delay of the data link by adjusting the address of the read data to compensate for the first clock frequency deviation of the target time delay, thereby achieving compensation for the time delay of the data link. Method 2: Obtain the current address when the rising edge of the input synchronization reference signal arrives; compare the current address with the initialization address to obtain a second comparison result; determine the second clock frequency error of the target time delay based on the second comparison result; adjust the time delay of the data link by adjusting the position of the read address in the random access memory to compensate for the second clock frequency deviation of the target time delay. The storage depth of the random access memory is the product of the ratio of the period of the input synchronization reference signal to the period of the read signal and the inverse of N, so as to compensate for the first clock frequency deviation of the target time delay. By adjusting the position of the read address in the random access memory, the time delay of the data link is compensated. The above-mentioned target time delay is the time from resetting the output synchronization reference signal and the output clock signal to synchronously generating the reset output synchronization reference signal and the reset output clock signal.

[0051] The disclosed embodiments introduce an input synchronization reference signal, which can be either a periodic or step signal. Using the input synchronization reference signal and the input clock signal, synchronous sequential logic is employed to generate a reset pulse signal, ensuring that the reset pulse signal has a clear delay characteristic. The multi-phase output clock signal generating cable and the output synchronization reference signal generating cable are then reset and synchronized, ensuring that the phase information of the multi-phase output clock signals is clear. Both are then transferred to the next clock domain and repeated. By synchronizing each clock domain sequentially, the load on the synchronization reference signal is reduced, thereby minimizing the uncertainty of the delay between different clock domains. By transferring the clock signal and the synchronization reference signal together, the problem of mismatching is avoided and the probability of metastability is reduced. This ensures that each clock domain has clear phase information. When the synchronization reference signal is periodic, its period is an integer multiple of the ideal clock frequency. Within the period of the synchronization reference signal, clock signals are counted and compared with the ideal count result to determine the clock frequency deviation. The data link delay is adjusted by adjusting the read data address to compensate for the delay deviation. The above method ensures that the entire data transmission link has stable clock phase information, and by timely compensating for the delay error caused by the clock frequency, accurate delay characteristics are obtained.

[0052] Figure 3 is a timing diagram of high-precision time delay according to this embodiment. As shown in Figure 3, the top five signals are in clock domain 1 (clk domain1), and the bottom five signals are in clock domain 2 (clk domain2). This diagram describes the process of using the synchronization reference signal (syncin1 / 2) and the local clock (Clk in1 / 2) to locally generate reset pulses (sync pulse1 / 2), multi-phase frequency-divided clocks (Clk out1 / 2), and output synchronization reference signals (Sync out1 / 2), as well as the transmission process of synchronization reference signals and clock signals between different clock domains (Clk out1 is delayed and becomes Clk in2, and Sync out1 is delayed and becomes sync in2). The reset pulse signal, multi-phase frequency-divided clock, and output synchronization reference signal are all generated synchronously under the control of the local clock signal, with clear and stable timing and precise delay information. As shown in Figure 3, after clk1 captures sync in1, it generates the rising edge of sync pulse1, which then resets Sync out1 and Clk out1. After two clk1 cycles, it generates the falling edge of sync pulse1. On the next rising edge of clk1, reset Clk out1 and Sync out1 are generated. Three clk1 cycles (Td1) after clk1 captures sync in1, new clock signals and synchronization signals Clk out1 and Sync out1 are generated. Because the synchronization reference signal (Sync out1) is transmitted to the next clock domain together with the output clock (Clk out1), by matching the same transmission path between the two, it is ensured that when the synchronization reference signal and clock signal are transmitted to the next clock domain (clk domain2), they (sync in2 and Clk in2) still have a clear phase relationship and delay information Td2. Clock domain 2 also resets the multi-phase clock (Clk out2) and transfers the clock and synchronization reference signal (Sync out2) using the same method as clock domain 1. After Clk in2 samples Sync in2 for three Clk in2 cycles (Td3), reset Clk out2 and Sync out2 are generated. Once the synchronization reference signal has been transferred to all clock domains, all clocks are reset, ensuring that the clock signals in each clock domain have a defined delay relative to the synchronization reference signal, and thus, that the clock signals have defined delays with each other. As shown in Figure 3, if two clock domains are considered, then clk1out is delayed by three Clk in1 cycles relative to Sync in1, and clk2out is delayed by three Clk in2 cycles relative to Sync in1 plus the signal transfer delay Td2 between clock domains 12.Since the delay of the Td2 signal in the wiring is relatively stable and can be considered as a relatively fixed delay, Clk out2 also has fixed delay information relative to sync in1.

[0053] FIG4 is a circuit structure diagram of a high-precision time delay according to this embodiment. As shown in FIG4 , the input synchronization reference signal (Sync in) and the local input clock signal (Clk in) pass through the buffer circuit (Buffer) to reach the local clock domain, generate a reset pulse signal (sync pulse), and output a synchronization reference signal (Sync out).<x:0> ) and output clock signal (Clk out<x:0> ) circuit. All of the above signals are generated under the synchronous timing logic of the local clock signal (Clk in). The reset pulse signal (sync pulse) is generated using the synchronous reference signal (Sync out) and the input clock signal (Clk in). It has a pulse width adjustment function, and the output pulse width is an integer multiple of the input clock signal (Clk in) period. The reset pulse signal acts on the output synchronous reference signal generating circuit and the output clock signal generating circuit. The output clock signal generating circuit specifically includes DFF41 (corresponding to the above-mentioned first DFF) and DFF42 (corresponding to the above-mentioned second DFF) to reset the output synchronous reference signal and the output pulse signal to obtain the reset output synchronous reference signal and the reset output pulse signal. When the reset pulse signal ends, the next local clock rising edge arrives, and a new output clock signal and output synchronous reference signal with a clear phase relationship are generated. The output multi-phase clock signal can be generated in a variety of ways. Figure 4 shows that a single-phase divided clock is first generated by a divider (Divider), and then a multi-phase clock (Clk out) is generated by a shift register (Shift register).<x:0> ) solution. In order to ensure the phase relationship between the output multi-phase clock signal and the output synchronization reference signal, the output synchronization reference signal is synchronized with the output multi-phase clock (DFF<x:0> ), output multi-phase synchronization reference signal (Sync out<x:0> ). In addition, the circuit also integrates a reset pulse enable signal (sync pulse en, abbreviated as Spen) and a new radio enable signal (new radio en, abbreviated as Nren). When the reset pulse signal is enabled, the reset pulse signal is generated normally to reset the output synchronization reference signal and the output clock signal; when the reset pulse enable signal is not enabled and the new radio signal is enabled, the output synchronization reference signal and the output clock signal are not reset, and the synchronization reference signal is synchronized and transmitted to the next clock domain through the local clock.

[0054] The synchronization reference signal can be a single rising-edge step signal or a periodic signal. When the synchronization reference signal is a step signal, it is often used to reset the clock phase and initialize the read address in the random access memory. When the synchronization reference signal is a periodic signal, it can also be used to correct the delay error caused by the frequency error of the divided clock signal on the basis of reset and initialization. When the synchronization reference signal is a periodic signal, it is necessary to ensure that the period of the synchronization reference signal is an integer multiple of the ideal clock frequency. Figure 5 is a schematic diagram of clock frequency deviation compensation according to this embodiment. As shown in Figure 5, to correct the delay deviation, a data buffer is introduced into the digital data link of the data link. By periodically counting the divided clock signal and comparing the count result with the ideal count result, the accuracy of the divided clock frequency is determined, and the clock frequency deviation is corrected by adjusting the data delay. To avoid frequent updates of the read address position, a threshold is also configured. When the deviation is within the threshold range, the read address is not updated. When the deviation is greater than the threshold, the read address is updated to the expected position, thereby ensuring that the delay deviation is within the required range.

[0055] In this embodiment, the buffer for synchronizing the reference signal and the local clock signal has multiple variations. FIG6 is a circuit structure diagram of the buffer according to this embodiment. As shown in FIG6 , the buffer can be a simple inverter chain ( FIG6 a ) to increase the driving capability. The buffer can also integrate a delay adjustment function ( FIG6 b , selecting different delay paths through a multiplexer to adjust the input-to-output delay) to obtain a relatively stable timing relationship between data and clock, and integrate a duty cycle adjustment function ( FIG6 c , inserting a bidirectional inverter between the differential signal transmission paths to form positive feedback and optimize the duty cycle) to ensure that the signal has accurate duty cycle information.

[0056] Various variations of the multi-phase clock generation circuit may adopt the frequency divider and shift register shown in FIG. 4 . FIG7 is a circuit structure diagram of a multi-phase clock generated according to the present embodiment. As shown in FIG7 , when rst_n is low, DFF71-72 is reset, and clk_div outputs a low level. After rest_n is released, the first rising edge of clk outputs DFF1 from a low level to a high level, and the output of DFF72 maintains a low level. The second rising edge of clk outputs DFF1 and maintains a high level. The output of DFF72, i.e., clk_div, changes from a low level to a high level. According to this rule, a 4-frequency division signal clk_div of clk is generated. Then, clk_div generates a 4-phase 4-frequency division signal clk_div<3:0> through DFF73-DFF76. FIG8 is a circuit structure diagram of a multi-phase clock generated according to the present embodiment. As shown in FIG8 , the state machine plus output synchronization method is used for generation. When rest_n is low, DFF81-82 is reset, and div<3:0> outputs a low level. After rest_n is released, the first rising edge of clk outputs div1. <3> From low level to high level, its reverse signal div <1> From high level to low level, DFF82 output maintains low level, the second Clk rising edge DFF1 output maintains high level, DFF82 output is div <2> From low level to high level, its reverse signal div <1> From high level to low level, the output clk_div<3:0> is generated by the generated multi-phase frequency division signal div<3:0> after being synchronized by clk through DFF83-86.

[0057] The reset pulse signal generation circuit can have multiple variations. In order to shield the falling edge of the synchronization reference signal, the present disclosure integrates a rising edge trigger circuit in the solution. Figure 9 is a circuit structure diagram of the reset pulse generation according to this embodiment. Figure 10 is a circuit structure diagram of the reset pulse generation according to this embodiment. As shown in Figures 9 and 10, DFF91 is rising edge triggered. Therefore, the output of DFF91 will only change when the rising edge of Sync in arrives. If dual edge triggering is required, the rising edge trigger circuit can be deleted. In Figure 9, the output signal of DFF91 passes through DFF92-94 under the control of clk to generate signals with different delays (each DFF passing through is delayed by one clk clock cycle). When s1 is high and s1n is low, the output of DFF92 and DFF93 passes through the XOR gate to generate a pulse signal with a period of one clk. When s1 is low and s1n is high, a pulse signal with two clk periods is generated. When the number of DFFs is increased, a signal with a larger pulse width can also be generated. In Figure 10, the principle of two-phase non-overlapping signal generation is used to generate signals with different pulse widths by adjusting the non-overlap time through DFF. When s1 is high and s1n is low, DFF102 and DFF103 are connected to the input of the XOR gate. Since the DFF103 signal is generated by the DFF102 signal through one NOR gate and one DFF, a pulse signal delayed by one DFF and one NOR gate is generated. When s1 is high and s1n is low, DFF104 and DFF105 are connected to the input of the XOR gate. Since the DFF105 signal is generated by the DFF104 signal through one NOR gate and two DFFs, a pulse signal delayed by two DFFs and one NOR gate is generated. When DFF is increased, a signal with a larger pulse width can also be generated.

[0058] As shown in Figure 3, after the system is powered on, a synchronization reference signal (Sync in1) is generated. When the synchronization reference signal passes through different clock domains (Clk domain1 / 2), it sequentially triggers the generation of local reset pulse signals (Sync pulse1 / 2), synchronously resetting the clock signals (Clk out1 / 2) and the output synchronization reference signal (Sync out1 / 2) of each clock domain, so that each clock signal (Clk out1 / 2) has clear phase information. Figure 11 is a second schematic diagram of clock frequency deviation compensation according to this embodiment. As shown in Figure 11, after the clock domain where the random access memory is located generates the clock signal (data_rd_clk) and the synchronization reset signal (Sync pulse), the read address (data_rd_addr) of the random access memory is initialized and periodically checked. If the read address deviation exceeds the set threshold, the read address is reset to the initialization address (rd_addr_init); otherwise, the read address remains unchanged. Through the above process, accurate time delay of the data link is obtained.

[0059] Clock frequency error correction methods can be implemented in a variety of ways, as shown in Figure 11. To simplify the clock frequency detection method, the memory depth must ensure that the number of data reads within the synchronization reference period is an integer multiple of the memory depth. Ideally, when the rising edge of the synchronization reference signal (Sync pulse) arrives, the read data address (data_rd_addr) should always be the initialized address (rd_addr_init). The clock frequency error is determined by comparing the current address at the rising edge of the synchronization reference signal with the initialized address. The effect of the clock frequency error on delay accuracy is then compensated by adjusting the position of the read address in the data buffer.

[0060] Regarding the synchronization method of the output clock signal and the output synchronization reference signal (Sync out and Clk out), the output synchronization reference signal can be output as shown in FIG4 , and the multi-phase clock synchronization generates a multi-phase synchronization reference signal; FIG12 is a second circuit structure diagram of a high-precision time delay according to this embodiment. As shown in FIG12 , the output synchronization reference signal generating circuit is DFF121 (corresponding to the above-mentioned DFF41), and the output clock signal generating circuit includes a divider and a shift register (similar to the above-mentioned FIG4 ), and the output is directly output without synchronization; FIG13 is a third circuit structure diagram of a high-precision time delay according to this embodiment. As shown in FIG13 , the output synchronization reference signal generating circuit is DFF131 (corresponding to the above-mentioned DFF41). If the output clock frequency is consistent with the input clock frequency, the multi-phase clock generating circuit is replaced with a single-phase clock generating circuit, and the single-phase clock generating circuit includes DFF132 (corresponding to the above-mentioned third DFF).

[0061] The present disclosure introduces a synchronous reference signal and adopts synchronous sequential logic to sequentially transmit it and the clock signal to different clock domains, thereby generating a reset pulse locally in the clock domain to reset the clock, thereby reducing the uncertainty of the reset signal delay; by adopting synchronous sequential logic, each synchronized signal has clear delay information, thereby avoiding misbeat or metastable problems; through the above method, the stability and accuracy of the clock phase are achieved.

[0062] Using the synchronization reference signal period as a reference, the clock frequency accuracy is detected. By adjusting the random access memory read address position, the delay is adjusted to compensate for the delay variation introduced by clock frequency deviation. This method is not available in traditional solutions.

[0063] According to another embodiment of the present disclosure, a device for providing a clock signal in a data link is further provided. FIG14 is a block diagram of the device for providing a clock signal in a data link according to an embodiment of the present disclosure. As shown in FIG14 , the device includes: a reset pulse signal generating circuit 142, an output synchronization reference signal generating circuit 144, and an output clock signal generating circuit 146, wherein:

[0064] The reset pulse signal generating circuit 142 is configured to generate a reset pulse signal in each of the multiple clock domains of the data link based on the input synchronization reference signal and the input clock signal, generate an output synchronization reference signal based on the input synchronization reference signal and the input clock signal, and generate an output clock signal based on the input clock signal; and input the reset pulse signal to the output synchronization reference signal generating circuit 144 and the output clock signal generating circuit 146 to reset the output synchronization reference signal and the output clock signal.

[0065] An output synchronization reference signal generating circuit 144 is configured to generate a reset output synchronization reference signal synchronously with the next rising edge of the input clock signal after the reset pulse signal ends;

[0066] The output clock signal generating circuit 146 is used to synchronously generate a reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, wherein the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link after the same second time delay, as the input synchronization reference signal and input clock signal of the next clock domain.

[0067] In one embodiment, the reset pulse signal generating circuit 142 is further configured to generate the reset pulse signal when the rising edge of the input synchronization reference signal is detected at the rising edge of the input clock signal.

[0068] In one embodiment, the output synchronization reference signal generating circuit 144 is further used to convert the output synchronization reference signal from a high level to a low level based on the reset pulse signal, and to convert the output clock signal from a high level to a low level based on the reset pulse signal, so as to reset the output synchronization reference signal and the output clock signal.

[0069] In one embodiment, the output synchronization reference signal generating circuit 144 includes a first flip-flop DFF, the output clock signal generating circuit 146 is a single-phase clock generating circuit or a multi-phase clock generating circuit, the reset pulse signal generating circuit 142 is connected to the first DFF, and the reset pulse signal generating circuit 142 is connected to the single-phase clock generating circuit, or the reset pulse signal generating circuit 142 is connected to the multi-phase clock generating circuit.

[0070] a reset pulse signal generating circuit 142, configured to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal, and input the reset pulse signal to the first DFF and the single-phase clock generating circuit, or input the reset pulse signal to the first DFF and the multi-phase clock generating circuit;

[0071] The first DFF is configured to synchronously generate the reset output synchronization reference signal based on the reset pulse signal, the input synchronization reference signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0072] The single-phase clock generating circuit is configured to generate a single-phase reset output clock signal synchronously with the input clock signal based on the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends; or

[0073] The multi-phase clock generating circuit is used to generate the multi-phase reset output clock signal synchronously with the input clock signal based on the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends.

[0074] In one embodiment, the output synchronization reference signal generating circuit 144 includes a first flip-flop DFF and a second DFF, the first DFF is connected to the second DFF, the output clock signal generating circuit 146 is a multi-phase clock generating circuit or a single-phase clock generating circuit, the reset pulse signal generating circuit 142 is connected to the first DFF, the reset pulse signal generating circuit 142 is connected to the single-phase clock generating circuit, or the reset pulse signal generating circuit 142 is connected to the multi-phase clock generating circuit, wherein,

[0075] a reset pulse signal generating circuit 142, configured to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal, and input the reset pulse signal to the first DFF and the single-phase clock generating circuit, or input the reset pulse signal to the first DFF and the multi-phase clock generating circuit;

[0076] The first DFF is configured to generate the reset output synchronization reference signal based on the reset pulse signal, the input synchronization reference signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, and input the reset output synchronization reference signal into the second DFF;

[0077] The second DFF is configured to synchronize the reset output synchronization reference signal according to the reset output clock signal to obtain a new reset output synchronization reference signal;

[0078] The single-phase clock generating circuit is configured to synchronously generate a single-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; or

[0079] The multi-phase clock generating circuit is used to synchronously generate the multi-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends.

[0080] In one embodiment, the single-phase clock generation circuit includes a third DFF, wherein the third DFF is configured to generate the single-phase reset output clock signal in synchronization with the input clock signal based on the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0081] The multi-phase clock generating circuit includes a frequency divider and a shift register. The reset pulse signal generating circuit 142 is connected to the divider, and the divider is connected to the shift register.

[0082] The Divider is configured to generate a single-phase divided clock based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0083] The shift register is used to generate the reset output clock signal of multiple phases according to the input clock signal under the control of the single-phase frequency-divided clock.

[0084] In one embodiment, the single-phase clock generation circuit includes a third DFF, wherein the third DFF is configured to synchronously generate the single-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0085] The multi-phase clock generating circuit includes a state machine and a synchronization circuit, the reset pulse signal generating circuit 142 is connected to the state machine, and the state machine is connected to the synchronization circuit, wherein:

[0086] The state machine is configured to generate a multi-phase frequency-divided clock according to the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends;

[0087] The synchronization circuit is used to synchronize the multi-phase frequency-divided clocks and output the multi-phase reset output clock signals.

[0088] In one embodiment, the device further includes a first buffer and a second buffer, wherein the first buffer is connected to the reset pulse signal generating circuit 142 and the output synchronization reference signal generating circuit 144, respectively, and the second buffer is connected to the reset pulse signal generating circuit 142, the output synchronization reference signal generating circuit 144, and the output clock signal generating circuit 146, respectively.

[0089] The input synchronization reference signal enters the reset pulse signal generating circuit 142 and the output synchronization reference signal generating circuit 144 respectively through the first buffer;

[0090] The input clock signal enters the reset pulse signal generating circuit 142 , the output synchronization reference signal generating circuit 144 , and the output clock signal generating circuit 146 respectively through the second buffer.

[0091] In one embodiment, the first buffer and the second buffer are in an inverter chain structure, or the first buffer and the second buffer are integrated with a delay adjustment circuit, or the first buffer and the second buffer are integrated with a duty cycle adjustment circuit.

[0092] In one embodiment, the reset pulse generating circuit is further used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal when the reset pulse enable signal is enabled and the new air interface signal is enabled, reset the output synchronization reference signal and the output clock signal through the reset pulse signal when the reset pulse enable signal is enabled and the new air interface enable signal is enabled, and synchronously generate the reset output synchronization reference signal and the reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends.

[0093] In one embodiment, the reset pulse generating circuit is further used to not reset the output synchronization reference signal and the output clock signal when the reset pulse enable signal is enabled and the new air interface signal is not enabled; and not reset the output synchronization reference signal and the output clock signal when the reset pulse enable signal is not enabled and the new air interface signal is enabled.

[0094] In one embodiment, the reset pulse signal generating circuit 142 is also used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal by adopting a reset pulse generating method of a delayed signal; or to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal by adopting a reset pulse generating method of a two-phase non-overlapping signal.

[0095] In one embodiment, the device further comprises: a compensation circuit, wherein:

[0096] The compensation circuit is configured to count the input clock signal within the period of the input synchronization reference signal of the multiple clock domains to obtain a counting result; compare the counting result with a preset counting result to obtain a first comparison result; determine a first clock frequency deviation of a target time delay based on the first comparison result; adjust the time delay of the data link by adjusting the address of the read data to compensate for the first clock frequency deviation of the target time delay; or obtain a current address when the rising edge of the input synchronization reference signal arrives; compare the current address with the initialization address to obtain a second comparison result; determine a second clock frequency error of the target time delay based on the second comparison result; adjust the time delay of the data link by adjusting the position of the read address in the random access memory to compensate for the second clock frequency deviation of the target time delay, wherein the target time delay is the time from resetting the output synchronization reference signal and the output clock signal to synchronously generating the reset output synchronization reference signal and the reset output clock signal, and the storage depth of the random access memory is the product of the ratio of the period of the input synchronization reference signal to the period of the read signal and the inverse of N.

[0097] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.

[0098] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0099] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

[0100] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0101] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0102] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0103] The above description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that the present disclosure is susceptible to various modifications and variations. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be within the scope of protection of the present disclosure.

Claims

1. A method for providing a clock signal in a data link, the method comprising: In each of the multiple clock domains of the data link, a reset pulse signal is generated based on an input synchronization reference signal and an input clock signal, an output synchronization reference signal is generated based on the input synchronization reference signal and the input clock signal, and an output clock signal is generated based on the input clock signal; The output synchronization reference signal and the output clock signal are reset by the reset pulse signal, and after the reset pulse signal ends, the next rising edge of the input clock signal is synchronized to generate the reset output synchronization reference signal and the reset output clock signal, wherein the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link after the same time delay, as the input synchronization reference signal and input clock signal of the next clock domain.

2. The method according to claim 1, wherein: Generating the reset pulse signal based on the input synchronization reference signal and the input clock signal comprises: The reset pulse signal is generated when a rising edge of the input synchronization reference signal is detected at a rising edge of the input clock signal.

3. The method according to claim 1, wherein: Resetting the output synchronization reference signal and the output clock signal by the reset pulse signal, and synchronously generating the reset output synchronization reference signal and the reset output clock signal by the next rising edge of the input clock signal after the reset pulse signal ends, comprises: Based on the reset pulse signal, convert the output synchronization reference signal from a high level to a low level, and based on the reset pulse signal, convert the output clock signal from a high level to a low level, so as to reset the output synchronization reference signal and the output clock signal; When the next rising edge of the input clock signal arrives after the reset pulse signal ends, the reset output synchronization reference signal and the reset output clock signal are synchronously generated.

4. The method according to claim 1, wherein: Generating the reset output clock signal comprises: Generate the reset output clock signal of a single phase according to the reset pulse signal and the input clock signal; or The reset output clock signal of multiple phases is generated according to the reset pulse signal and the input clock signal.

5. The method according to claim 4, wherein: After generating the reset output synchronization reference signal and the reset output clock signal, the method further includes: The reset output synchronization reference signal is synchronized according to the reset output clock signal to obtain a new reset output synchronization reference signal.

6. The method according to claim 4, wherein: Generating the reset output clock signal with multiple phases according to the reset pulse signal and the input clock signal includes: Generate a single-phase frequency-divided clock according to the input clock signal and the reset pulse signal, and generate a multi-phase reset output clock signal according to the single-phase frequency-divided clock under the control of the input clock signal; A multi-phase frequency-divided clock is generated according to the input clock signal and the reset pulse signal, the multi-phase frequency-divided clock is synchronized, and a multi-phase output clock signal after the reset is output.

7. The method according to claim 1, wherein: Generating the reset pulse signal based on the input synchronization reference signal and the input clock signal comprises: A reset pulse generation method using a delayed signal is used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal; or A reset pulse generation method of two-phase non-overlapping signals is adopted to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal.

8. The method according to any one of claims 1 to 7, wherein: Generating the reset pulse signal based on the input synchronization reference signal and the input clock signal comprises: generating the reset pulse signal based on the input synchronization reference signal and the input clock signal when a reset pulse enable signal is enabled and a new air interface signal is enabled; The output synchronization reference signal and the output clock signal are reset by the reset pulse signal, and the reset output synchronization reference signal and the reset output clock signal are synchronously generated with the next rising edge of the input clock signal after the reset pulse signal ends, including: when the reset pulse enable signal is enabled and the new air interface enable signal is enabled, the output synchronization reference signal and the output clock signal are reset by the reset pulse signal, and the reset output synchronization reference signal and the reset output clock signal are synchronously generated with the next rising edge of the input clock signal after the reset pulse signal ends.

9. The method according to claim 8, wherein: The method further comprises: When the reset pulse enable signal is enabled and the new air interface signal is disabled, the output synchronization reference signal and the output clock signal are not reset; When the reset pulse enable signal is disabled and the new air interface signal is enabled, the reset output synchronization reference signal and the reset output clock signal are not reset.

10. The method according to any one of claims 1 to 7 and 9, wherein: The method further comprises: Counting the input clock signals within the cycles of the input synchronization reference signals of the multiple clock domains to obtain counting results; Comparing the counting result with a preset counting result to obtain a first comparison result; Determine a first clock frequency deviation of a target time delay according to the first comparison result, wherein the target time delay is the time from when the output synchronization reference signal and the output clock signal are reset to when the reset output synchronization reference signal and the reset output clock signal are synchronously generated; The time delay of the data link is adjusted by adjusting the address of the read data to compensate for the first clock frequency deviation of the target time delay.

11. The method according to any one of claims 1 to 7 and 9, wherein: The method further comprises: Acquire the current address when the rising edge of the input synchronization reference signal arrives; Comparing the current address with the initialization address to obtain a second comparison result; Determine a second clock frequency error of a target time delay according to the second comparison result, wherein the target time delay is the time from when the output synchronization reference signal and the output clock signal are reset to when the reset output synchronization reference signal and the reset output clock signal are synchronously generated; The time delay of the data link is adjusted by adjusting the position of the read address in the random access memory to compensate for the second clock frequency deviation of the target time delay, wherein the storage depth of the random access memory is the product of the ratio of the period of the input synchronization reference signal to the period of the read signal and the inverse of N.

12. A device for providing a clock signal in a data link, the device comprising: A reset pulse signal generating circuit, an output synchronization reference signal generating circuit and an output clock signal generating circuit, wherein: The reset pulse signal generating circuit is used to generate a reset pulse signal based on an input synchronization reference signal and an input clock signal in each clock domain of a plurality of clock domains of a data link, generate an output synchronization reference signal based on the input synchronization reference signal and the input clock signal, and generate an output clock signal based on the input clock signal; and input the reset pulse signal into the output synchronization reference signal generating circuit and the output clock signal generating circuit to reset the output synchronization reference signal and the output clock signal; The output synchronization reference signal generating circuit is used to synchronously generate a reset output synchronization reference signal at the next rising edge of the input clock signal after the reset pulse signal ends; The output clock signal generating circuit is used to synchronously generate a reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, wherein the reset output synchronization reference signal and the reset output clock signal are transmitted to the next clock domain of the data link through the same second time delay as the input synchronization reference signal and input clock signal of the next clock domain.

13. The device according to claim 12, wherein: The reset pulse signal generating circuit is further configured to generate the reset pulse signal when the rising edge of the input synchronization reference signal is detected at the rising edge of the input clock signal.

14. The device according to claim 12, wherein: The output synchronization reference signal generating circuit is also used to convert the output synchronization reference signal from a high level to a low level based on the reset pulse signal, and to convert the output clock signal from a high level to a low level based on the reset pulse signal, so as to reset the output synchronization reference signal and the output clock signal.

15. The device according to claim 12, wherein: The output synchronization reference signal generating circuit includes a first trigger DFF, the output clock signal generating circuit is a single-phase clock generating circuit or a multi-phase clock generating circuit, the reset pulse signal generating circuit is connected to the first DFF, the reset pulse signal generating circuit is connected to the single-phase clock generating circuit, or the reset pulse signal generating circuit is connected to the multi-phase clock generating circuit. The reset pulse signal generating circuit is used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal, and input the reset pulse signal to the first DFF and the single-phase clock generating circuit, or input the reset pulse signal to the first DFF and the multi-phase clock generating circuit; The first DFF is used to synchronously generate the reset output synchronization reference signal based on the reset pulse signal, the input synchronization reference signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; The single-phase clock generating circuit is used to generate a single-phase reset output clock signal synchronously with the input clock signal based on the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends; or The multi-phase clock generating circuit is used to generate the reset output clock signal of multiple phases synchronously with the input clock signal based on the reset pulse signal at the next rising edge of the input clock signal after the reset pulse signal ends.

16. The device according to claim 12, wherein: The output synchronization reference signal generating circuit includes a first trigger DFF and a second DFF, the first DFF is connected to the second DFF, the output clock signal generating circuit is a multi-phase clock generating circuit or a single-phase clock generating circuit, the reset pulse signal generating circuit is connected to the first DFF, the reset pulse signal generating circuit is connected to the single-phase clock generating circuit, or the reset pulse signal generating circuit is connected to the multi-phase clock generating circuit, wherein, The reset pulse signal generating circuit is used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal, and input the reset pulse signal to the first DFF and the single-phase clock generating circuit, or input the reset pulse signal to the first DFF and the multi-phase clock generating circuit; The first DFF is used to generate the reset output synchronization reference signal based on the reset pulse signal, the input synchronization reference signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends, and input the reset output synchronization reference signal into the second DFF; The second DFF is used to synchronize the reset output synchronization reference signal according to the reset output clock signal to obtain a new reset output synchronization reference signal; The single-phase clock generating circuit is used to synchronously generate the single-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; or The multi-phase clock generating circuit is used to synchronously generate the reset output clock signal of multiple phases based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends.

17. The device according to claim 15 or 16, wherein: The single-phase clock generating circuit comprises a third DFF, wherein the third DFF is used to generate a single-phase reset output clock signal based on the reset pulse signal and the input clock signal in synchronization with the next rising edge of the input clock signal after the reset pulse signal ends; The multi-phase clock generating circuit includes a frequency divider Divider and a shift register Shift register, the reset pulse signal generating circuit is connected to the Divider, and the Divider is connected to the Shift register, wherein: The Divider is used to generate a single-phase divided clock based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; The shift register is used to generate the reset output clock signal of multiple phases according to the input clock signal under the control of the single-phase divided clock.

18. The device according to claim 15 or 16, wherein: The single-phase clock generating circuit includes a third DFF, wherein the third DFF is used to synchronously generate a single-phase reset output clock signal based on the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; The multi-phase clock generating circuit includes a state machine and a synchronization circuit, the reset pulse signal generating circuit is connected to the state machine, and the state machine is connected to the synchronization circuit, wherein: The state machine is used to generate a multi-phase frequency-divided clock according to the reset pulse signal and the input clock signal at the next rising edge of the input clock signal after the reset pulse signal ends; The synchronization circuit is used to synchronize the multi-phase divided clocks and output the reset output clock signals of the multi-phases.

19. The device according to any one of claims 12 to 16, wherein: The device further includes a first buffer and a second buffer, wherein the first buffer is connected to the reset pulse signal generating circuit and the output synchronization reference signal generating circuit respectively, and the second buffer is connected to the reset pulse signal generating circuit, the output synchronization reference signal generating circuit and the output clock signal generating circuit respectively, wherein: The input synchronization reference signal enters the reset pulse signal generating circuit and the reset pulse signal generating circuit through the first buffer. Output synchronization reference signal generating circuit; The input clock signal enters the reset pulse signal generating circuit, the output synchronization reference signal generating circuit and the output clock signal generating circuit respectively through the second buffer.

20. The device according to claim 19, wherein The first buffer and the second buffer are in an inverter chain structure, or the first buffer and the second buffer are integrated with a delay adjustment circuit, or the first buffer and the second buffer are integrated with a duty cycle adjustment circuit.

21. The device according to any one of claims 12 to 16, wherein: The reset pulse generating circuit is also used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal when the reset pulse enable signal is enabled and the new air interface signal is enabled, reset the output synchronization reference signal and the output clock signal through the reset pulse signal when the reset pulse enable signal is enabled and the new air interface enable signal is enabled, and synchronously generate the reset output synchronization reference signal and the reset output clock signal at the next rising edge of the input clock signal after the reset pulse signal ends.

22. The device according to claim 21, wherein The reset pulse generating circuit is also used for not resetting the output synchronization reference signal and the output clock signal when the reset pulse enable signal is enabled and the new air interface signal is not enabled; and for not resetting the output synchronization reference signal and the output clock signal when the reset pulse enable signal is not enabled and the new air interface signal is enabled.

23. The device according to any one of claims 12 to 16, wherein: The reset pulse signal generating circuit is further used to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal by adopting a reset pulse generating method of a delayed signal; Alternatively, a reset pulse generation method of two-phase non-overlapping signals is adopted to generate the reset pulse signal based on the input synchronization reference signal and the input clock signal.

24. The device according to any one of claims 12 to 16, wherein: The device further comprises: a compensation circuit, wherein: The compensation circuit is used to count the input clock signal within the period of the input synchronization reference signal of the multiple clock domains to obtain a counting result; compare the counting result with the preset counting result to obtain a first comparison result; determine the first clock frequency deviation of the target time delay according to the first comparison result; adjust the time delay of the data link by adjusting the address of the read data to compensate for the first clock frequency deviation of the target time delay; or obtain the current address when the rising edge of the input synchronization reference signal arrives; compare the current address with the initialization address to obtain a second comparison result; determine the second clock frequency error of the target time delay according to the second comparison result; adjust the time delay of the data link by adjusting the position of the read address in the random access memory to compensate for the second clock frequency deviation of the target time delay, wherein the target time delay is the time from resetting the output synchronization reference signal and the output clock signal to synchronously generating the reset output synchronization reference signal and the reset output clock signal, and the storage depth of the random access memory is the product of the ratio of the period of the input synchronization reference signal to the period of the read signal and the inverse of N.

25. A computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein: The computer program is configured to execute the method according to any one of claims 1 to 11 when executed.

26. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Automatic resetting method and device based on system synchronization and system clock

    CN103218024A

  • Single-pulse low-level signal synchronization circuit

    CN114499494A

  • Reset signal generating device

    JP1990001008A

  • Method and apparatus for using a synchronous reset pulse to reset circuitry in multiple clock domains

    US8912829B1

Cited By

  • Camera external triggering system and method with high-precision triggering delay

    CN119854622A