Clock transmission method, clock reception method, and computer-readable storage medium
By transmitting and receiving clocks with frequency control words, the method addresses the complexity of clock wiring in communication equipment, reducing the need for multiple lines and lowering manufacturing costs.
Patent Information
- Application Number
- JP2022550187
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-24
- Filing Date
- 2021-06-23
- Publication Date
- 2024-09-11
- Estimated Expiration
- 2041-06-23
AI Technical Summary
The complexity and difficulty of arranging clock wiring in communication equipment due to limited space and the need to manage multiple frequency sources, leading to increased wiring and connector requirements, are unresolved in existing technologies.
A method and device for transmitting and receiving clocks with different frequency sources over the same line using frequency control words to indicate relationships between sampling clocks, allowing simultaneous transmission and restoration of asynchronous clocks.
This approach reduces the number of required clock lines, minimizes backplane space usage, and lowers manufacturing costs by enabling efficient clock distribution without additional wiring or layer expansion.
Smart Images

Figure 0007549667000019 
Figure 0007549667000031 
Figure 0007549667000023
Abstract
Description
[Technical field]
[0001] This application is based on and claims priority to a Chinese patent application bearing application number 202010591351.X and filing date on June 24, 2020, the entire contents of which are incorporated herein by reference.
[0002] The embodiments of the present application relate to the technical field of communications, and more particularly to a clock transmission device and method, and a clock reception device and method. [Background technology]
[0003] With the continuous improvement of network throughput, the types of business cards and rack slots of communication equipment such as large-capacity switches and routers are becoming more and more. Clock distribution corresponding to various business is an essential function of communication equipment, and generally, communication equipment needs to receive various frequency source clocks from external lines from 1 to infinity. For example, in the case of a 20-slot system, a total of 40 lines must be arranged for the uplink and downlink clock wiring. If the system has two types of clocks with different frequency sources for distribution and return, a total of 80 lines must be arranged. Furthermore, if a differential wiring method is adopted, a total of 160 lines must be arranged. As the number of clocks with different frequency sources in each slot increases, the number of lines corresponding to the above clocks doubles.
[0004] Furthermore, in communications equipment, the above wiring is usually arranged continuously for several tens of centimeters, and in some large communications equipment, it is necessary to arrange it continuously for more than 1 meter in order to connect it. Along with the design concept of miniaturization, integration, and cost reduction of communications equipment, the space on the backplane in which wiring can be carried out inside the communications equipment is very limited, and the above clock wiring, which requires a large number of wiring over long distances, is difficult to arrange on a backplane, which has very limited space itself.
[0005] In some cases in the above fields, the problem that the layout of clock wiring during clock distribution in communication equipment is too complicated and difficult to realize has not yet been effectively solved in the field. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a clock transmitting device and a clock receiving method. [Means for solving the problem]
[0007] According to one embodiment of the present application, Provided is a clock transmission device including: an input unit configured to input a first input clock and a second input clock; a sampling unit configured to obtain a first sampling clock determined from the first input clock in accordance with a predetermined rule and a second sampling clock determined from the second input clock in accordance with a predetermined rule, and to determine a first frequency control word for indicating a relationship between the first sampling clock and the second sampling clock based on the first sampling clock and the second sampling clock; and a transmission unit configured to generate a clock signal to which at least the first frequency control word is attached from the first input clock, and to transmit the clock signal to a receiving side.
[0008] According to another embodiment of the present application, further comprising: Provided is a clock receiving device comprising: a receiving unit configured to receive a clock signal transmitted from a transmitting side, the clock signal being generated from a first input clock of the transmitting side and having at least a first frequency control word attached thereto for indicating a relationship between a first sampling clock determined from the first input clock in accordance with a predetermined rule and a second sampling clock determined from a second input clock of the transmitting side in accordance with a predetermined rule, the receiving unit further comprising: a receiving unit that determines the first input clock and the first frequency control word from the clock signal; and a recovery unit configured to determine the second input clock from the first input clock and the first frequency control word.
[0009] According to another embodiment of the present application, Provided is a clock transmission system including: an input unit configured to input a first input clock and a second input clock; a sampling unit configured to obtain a first sampling clock determined from the first input clock in accordance with a predetermined rule and a second sampling clock determined from the second input clock in accordance with a predetermined rule, and to determine a first frequency control word for indicating a relationship between the first sampling clock and the second sampling clock based on the first sampling clock and the second sampling clock; a transmitting unit configured to generate a clock signal having at least the first frequency control word attached thereto from the first input clock and to transmit the clock signal to a receiving side; a receiving unit configured to receive the clock signal and determine the first input clock and the first frequency control word from the clock signal; and a recovery unit configured to determine the second input clock from the first input clock and the first frequency control word.
[0010] According to another embodiment of the present application, there is further provided a clock transmission method applicable to a transmitting side, the clock transmission method including the steps of inputting a first input clock and a second input clock, obtaining a first sampling clock from the first input clock, obtaining a second sampling clock from the second input clock, and determining a first frequency control word from the first sampling clock and the second sampling clock to indicate a relationship between the first sampling clock and the second sampling clock, and generating a clock signal having at least the first frequency control word attached thereto from the first input clock, and transmitting the clock signal to a receiving side.
[0011] According to another embodiment of the present application, there is further provided a clock receiving method applied to a receiving side, the clock receiving method including the steps of: receiving a clock signal transmitted from a transmitting side, the clock signal being generated from a first input clock of the transmitting side and having at least a first frequency control word attached thereto for indicating a relationship between a first sampling clock determined from the first input clock in accordance with a predetermined rule and a second sampling clock determined from a second input clock of the transmitting side in accordance with a predetermined rule; determining the first input clock and the first frequency control word from the clock signal; and determining the second input clock from the first input clock and the first frequency control word.
[0012] According to another embodiment of the present application, there is further provided a computer readable storage medium having stored thereon a computer program configured, when executed, to implement the steps of any of the method embodiments described above.
[0013] According to another embodiment of the present application, there is further provided an electronic device comprising a memory and a processor, the memory storing a computer program, the processor being configured to execute the computer program to implement the steps of any of the method embodiments described above. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a schematic diagram of clock distribution connections according to some aspects of the present invention. [Diagram 2] 1 is a first functional schematic diagram of a clock transmission device according to an embodiment of the present application; [Diagram 3] FIG. 2 is a second functional schematic diagram of a clock transmission device according to an embodiment of the present application. [Figure 4] FIG. 3 is a third functional schematic diagram of a clock transmission device according to an embodiment of the present application. [Diagram 5] FIG. 4 is a fourth functional schematic diagram of a clock transmission device according to an embodiment of the present application. [Figure 6] FIG. 5 is a schematic functional diagram of a clock transmission device according to an embodiment of the present application. [Figure 7] FIG. 6 is a schematic diagram of a sixth function of a clock transmission device according to an embodiment of the present application. [Figure 8] 1 is a first functional schematic diagram of a clock receiving device according to an embodiment of the present application; [Figure 9] FIG. 2 is a second functional schematic diagram of a clock receiving device according to an embodiment of the present application. [Figure 10] FIG. 3 is a third functional schematic diagram of a clock receiving device according to an embodiment of the present application. [Figure 11] FIG. 4 is a fourth functional schematic diagram of a clock receiving device according to an embodiment of the present application. [Figure 12] FIG. 2 is a topology diagram of clock networking according to an exemplary embodiment of the present application. [Figure 13] FIG. 2 is a first internal implementation topology diagram of clock networking according to an embodiment of the present application. [Figure 14] FIG. 2 is a framing schematic diagram according to an exemplary embodiment of the present application; [Figure 15] FIG. 2 is a schematic diagram of PWM encoding based on duty ratio modulation according to an exemplary embodiment of the present application; [Figure 16] FIG. 2 is a schematic diagram of PWM encoding based on Manchester encoding according to an exemplary embodiment of the present application; [Figure 17]FIG. 2 is a second internal implementation topology diagram of clock networking according to an embodiment of the present application. [Figure 18] 1 is a functional schematic diagram of a clock distribution system according to an embodiment of the present application. [Figure 19] 2 is a flowchart of a clock transmission method according to an embodiment of the present application; [Figure 20] 1 is a flowchart of a clock distribution system according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] Hereinafter, the present invention will be described in detail in conjunction with the embodiments with reference to the drawings. In addition, the terms "first", "second", etc. in the specification, claims, and drawings of this application are intended to distinguish between similar objects and do not necessarily describe a particular order or priority.
[0016] In order to further explain the clock transmission device and method, and the clock receiving device and method according to the embodiments of the present application, application scenarios of the clock transmission device and method, and the clock receiving device according to the embodiments of the present application will be described below.
[0017] Fig. 1 is a schematic diagram of clock distribution connection according to some aspects of the present invention. As shown in Fig. 1, in some aspects of the present invention, the clock lines corresponding to asynchronous clocks need to be connected and transmitted in a point-to-point manner, that is, each asynchronous clock occupies a specific clock line, and the transmitting module transmits the clock to the receiving module of the clock board or business board in the manner of uplink or downlink, so that the receiving module respectively locks and restores the corresponding asynchronous clock.
[0018] In the above line arrangement, the clock signals of different frequency sources each occupy a certain point-to-point physical transmission medium, while the clock signals of different frequency sources are transmitted on the same physical link, that is, when two or more clock lines are combined, the receiving module cannot lock any of the frequency sources, so that in some situations in the field, asynchronous clocks cannot be transmitted through the same line. Therefore, in some situations in the field, asynchronous clocks additionally occupy the wiring space of the printed circuit board (PCB) in the backplane of the communication device, the arrangement space of connector pins, etc., so that the arrangement of clock lines of two or more frequency sources requires an increase in wiring, an increase in PCB layers, and an increase in the number of connectors, so that it is difficult to arrange the above clock lines in the existing space of the miniaturized backplane.
[0019] In contrast, the embodiments of the present application provide a clock transmission device and method, and a clock receiving device and method, which enable clocks with different frequency sources to be transmitted between a transmitting side and a receiving side via the same clock line. The clock transmission device and clock receiving device according to the embodiments of the present application are configured as the transmitting side and the receiving side of clock distribution in a communication device, respectively. The clock transmission device and method, and the clock receiving device and method according to the embodiments of the present application are described below.
[0020] An embodiment of the present application provides a clock transmission device, and FIG. 2 is a first functional schematic diagram of the clock transmission device according to the embodiment of the present application. As shown in FIG. 2, the device according to the embodiment of the present application includes: an input unit 102 configured to receive a first input clock and a second input clock; a sampling unit 104 configured to obtain a first sampling clock determined from a first input clock according to a predetermined rule and a second sampling clock determined from a second input clock according to a predetermined rule, and to determine a first frequency control word from the first sampling clock and the second sampling clock to indicate a relationship between the first sampling clock and the second sampling clock; a transmitting unit 106 configured to generate a clock signal having at least the first frequency control word attached thereto from a first input clock, and to transmit the clock signal to a receiving end.
[0021] In the embodiment of the present application, the input unit may be realized by an input port, and the first input clock and the second input clock input by the input unit may be synchronous or asynchronous. In one example, the first input clock and the second input clock are asynchronous clocks, and the first input clock and the second input clock in this example will be described below.
[0022] After the first input clock and the second input clock are simultaneously input to the input unit of the clock transmission unit, the first sampling clock and the second sampling clock may be determined from the first input clock and the second input clock according to a predetermined rule. The predetermined rule for the first input clock and the predetermined rule for the second input clock may be the same or different. In one example, the first input clock may be frequency multiplied to obtain the first sampling clock and transmitted to the sampling unit, and the second input clock may be transmitted to the sampling unit as the second sampling clock without being processed, or the first input clock and the second input clock may be frequency multiplied by different multiples to obtain the first sampling clock and the second sampling clock. FIG. 3 is a second functional schematic diagram of the clock transmission device according to the embodiment of the present application. As shown in FIG. 3, the clock transmission device according to the embodiment of the present application includes:
[0023] The system may further include a frequency multiplication unit 108 configured to frequency multiply the first input clock by a first predetermined multiple to obtain a first sampling clock having a ratio with respect to a clock frequency of the second sampling clock within a predetermined range.
[0024] In addition, the frequency multiplication unit can multiply the frequency of the first input clock, i.e., the ratio of the clock frequency between the frequency-multiplied first input clock, the first sampling clock, and the second sampling clock, within a predetermined range, so that the sampling and checking time of the sampling unit can be controlled in the process of checking the first frequency control word, thereby improving the processing efficiency of the clock transmission device according to the embodiment of the present application.Those skilled in the art may select the frequency multiplication multiple of the frequency multiplication unit according to the actual clock frequencies of the first input clock and the second input clock, for example, the above first multiple, but the present application is not limited thereto.
[0025] In one embodiment, the frequency multiplication unit 108 comprises: a first frequency multiplication sub-unit 1082 configured to frequency multiply the first input clock by a second predetermined multiple to obtain a first transmit clock for the transmit unit to generate a clock signal; and a second frequency multiplying sub-unit 1084 configured to frequency multiply the first transmit clock by a predetermined third multiple to obtain the first sampling clock.
[0026] Through the above-mentioned first frequency multiplying subunit and second frequency multiplying subunit, the first input clock is frequency multiplied by one step by the first frequency multiplying subunit to obtain a first transmitting clock, which is then sent to the transmitting unit to generate a clock signal, and the first transmitting clock is further frequency multiplied by two steps by the second frequency multiplying subunit to obtain a first sampling clock.
[0027] Meanwhile, regarding the second input clock, if the second input clock is a low-frequency clock, such as 1001Hz, 4002Hz, 8003Hz, etc., if the low-frequency second input clock is directly used as the second sampling clock, the sampling unit cannot effectively determine or count the low-frequency clock during sampling or checking, which will cause a certain error. Therefore, the frequency multiplication unit according to the embodiment of the present application may further include a third frequency multiplication unit 1086 configured to frequency-multiply the second input clock by a predetermined fourth multiple to obtain the second sampling clock.
[0028] The frequency multiplication unit according to the embodiment of the present application, or the first frequency multiplication subunit, the second frequency multiplication subunit, and the third frequency multiplication subunit included therein, may be realized by a frequency multiplication device or a frequency multiplication method such as a pulse add / delete gate, a phase-locked loop circuit, or a lock frequency division using a voltage-controlled oscillator (VCO), but the present application is not limited thereto. Methods for frequency multiplying a clock with a fixed frequency are well known to those skilled in the art, and the embodiments of the present application will not be described here repeatedly.
[0029] In the embodiment of the present application, the first frequency control word may indicate the relationship between the first sampling clock and the second sampling clock in multiple ways. In one example, the first frequency control word may indicate the ratio of the clock frequencies of the first sampling clock and the second sampling clock, or the difference between the clock frequencies of the first sampling clock and the second sampling clock. Note that the ratio or difference is merely for clearly explaining the relationship between the first sampling clock and the second sampling clock indicated by the first frequency control word, and any parameter or mathematical relationship that can indicate the relationship between the first sampling clock and the second sampling clock can be the first frequency control word according to the embodiment of the present application.
[0030] In the process of determining the first frequency control word, the sampling unit according to the embodiment of the present application may determine the first frequency control word by sampling with respect to the clock frequency of the first sampling clock and the clock frequency of the second sampling clock.
[0031] In one example, the sampling unit according to the embodiment of the present application may be realized by a counter, i.e., the counter counts clock edges to sample the clock frequency of the first sampling clock and the clock frequency of the second sampling clock. In another example, the sampling unit according to the embodiment of the present application may be realized by a frequency meter, i.e., the frequency meter directly measures the first sampling clock and the second sampling clock sampling frequencies to sample the clock frequency of the first sampling clock and the clock frequency of the second sampling clock. Hereinafter, a description will be given of the above example in which the counter counts clock edges to sample the clock frequency of the first sampling clock and the clock frequency of the second sampling clock.
[0032] 4 is a third functional schematic diagram of a clock transmission device according to an embodiment of the present application. As shown in FIG. 4, in one embodiment, the sampling unit 104 includes: a transmit accumulate subunit 1042 configured to accumulate clock edges of a first sampling clock; a transmission determination subunit 1044 configured to determine a clock edge of the second sampling clock; and a counting subunit 1046 configured to count the clock edges of the second sampling clock based on the determination result of the transmission determination subunit, and when the clock edges of the first sampling clock are accumulated to a predetermined number, determine the count value of the clock edges of the second sampling clock to obtain a first frequency control word.
[0033] 4, the sampling unit may send a first sampling clock to the transmission accumulation subunit to accumulate the clock edges and normal rising edges of the first sampling clock, and send a second sampling clock to the transmission judgment subunit to judge the clock edges and normal rising edges of the second sampling clock, and the counting subunit may count the clock edges of the second sampling clock according to the judgment result. When the accumulation result of the transmission accumulation subunit for the clock edges of the first sampling clock reaches a predetermined threshold, the counting subunit is latched and cleared, and in the latched state, the current count value of the clock edges of the second sampling clock becomes the first frequency control word according to the embodiment of the present application, and the cleared counter newly counts the clock edges of the second sampling clock.
[0034] In the above sampling unit, the sending accumulation sub-unit is an accumulator, e.g., 2 N The transmission decision subunit may be composed of a decider, and the counting subunit may be composed of a counter. N Take the example of an accumulator. The first sampling clock is set as 1000000080hz, the second sampling clock is set as 10000004hz, and N When the value of N of the accumulator is set as 32, the operation process of the above sampling unit is as follows:
[0035] 2 N The accumulator accumulates the number of rising edges of the 1000000080Hz clock to which the first sampling clock corresponds, while the determiner determines the rising edges of the 10000004Hz clock to which the second sampling clock corresponds, and the counter counts the rising edges of the second sampling clock based on the result of the determination. NWhen the accumulator accumulates up to a power of 2^32 rising edges, the counter latches the number of rising edges of the current second sampling clock. For example, 2 N Once the accumulator has accumulated 4294967296 (2^32) rising edges of the first sampling clock, the counter latches the number of rising edges of the second sampling clock as 42949687, which becomes the first frequency control word for the second sampling clock.
[0036] However, since the counter can only record integers, that is, the obtained first frequency control word is an integer value, there will be a certain error. Figure 5 is a fourth functional schematic diagram of the clock transmission device according to the embodiment of the present application. As shown in Figure 5, for the error that may exist in the first frequency control word, the clock transmission unit according to the embodiment of the present application: It may further include a filtering unit 110 for filtering the first frequency control word according to a predetermined filtering manner and sending the filtered first frequency control word to a transmitting unit, so that the transmitting unit attaches the filtered first frequency control word to a clock signal.
[0037] It should be noted that the above-mentioned filtering unit may have multiple predetermined filtering methods. In one example, the filtering unit may adopt average filtering as the filtering method, and in another example, the filtering unit may adopt moving average filtering as the filtering method. In any filtering method, the sampling unit needs to provide multiple sets of data, i.e., multiple first frequency control words. The following describes the process of filtering the first frequency control word by the average filtering method.
[0038] The sampling unit repeatedly determines the first frequency control word from the first sampling clock and the second sampling clock, thereby obtaining a plurality of first frequency control words. NThe present invention illustrates an accumulator and counter sampling unit. N The accumulator counts the number of rising edges of the first sampling clock by 2. N When the counter accumulates to 100, it is latched and cleared, and the first frequency control word (K1) is output. After the counter is cleared, N The accumulator further accumulates the number of rising edges of the first sampling clock, and the counter again counts the rising edges of the second sampling clock. N The accumulator again counts the number of rising edges of the first sampling clock by 2. N When the counter accumulates to 1, it is latched and cleared, and the first frequency control word (call it K2) is output. By repeating this process, N The accumulator counts the number of rising edges of the first sampling clock by 2. N Each time the counter accumulates to a frequency control word (K1, K2...K M where M is a positive integer greater than 1).
[0039] The counters are K1, K2...K M When the output is K1, K2...K M The average value of the filtered first frequency control word (K) may be used, where K is (K1, K2...K M ) / M is satisfied.
[0040] The filtered first frequency control word output by the filtering unit may be a non-integer, while the jitter phenomenon that may exist in a certain first frequency control word output by the sampling unit can be converged and stabilized, so that the filtered first frequency control word can effectively reduce the error.
[0041] After completing the output of the first frequency control word, the transmitting unit according to the embodiment of the present application may attach the first frequency control word to a clock signal generated from the first input clock and transmit it to the receiving side through the clock line. The transmitting unit may include a transmitting port configured to be connected to the clock line, and FIG. 6 is a fifth functional schematic diagram of the clock transmitting device according to the embodiment of the present application. As shown in FIG. 6, the transmitting unit 106 according to the embodiment of the present application: The system may further include a pulse width modulation (PWM) encoding subunit 1062 configured to encode the first input clock to generate a clock signal whose clock frequency is the clock frequency of the first input clock, and to envelope the first frequency control word into the clock signal.
[0042] The PWM encoding unit according to the embodiment of the present application may modulate the first frequency control word into a clock signal of PWM wave according to the first input clock and transmit it to the receiving side. The modulation of the PWM wave may be a duty ratio modulation method, a Manchester encoding method, an 8B / 10B encoding method, a 64B / 66B encoding method, etc., and the present application is not limited thereto.
[0043] The PWM encoding subunit may be a Direct Digital Synthesis (DDS) signal generator, a Digitally Controlled Oscillator (DCO), a Digital Phase Locked Loop (DPLL), a single chip microcomputer, a field programmable gate array processor, etc., having encoding capabilities, or may be an Application Specific Integrated Circuit (IC), a System-on-a-Chip (SOC), etc. The PWM encoding subunit may be composed of one or more of the above devices, i.e., any device capable of synthesizing a first input clock encoding into a PWM wave with a first frequency control word attached thereto may be the PWM encoding subunit according to the embodiments of the present application.
[0044] In the above example, when the clock transmission device according to the embodiment of the present application includes a frequency multiplication unit and a filtering unit, the clock signal also needs to be given a multiple of the frequency multiplication of the frequency multiplication unit, for example, a first multiple, a second multiple, a third multiple, a fourth multiple, etc., and the first frequency control word given to the clock signal is a filtered frequency control word.
[0045] According to the clock transmission device of the embodiment of the present application, when the transmitting side transmits a clock, the sampling unit obtains a first sampling clock determined from the first input clock according to a predetermined rule and a second sampling clock determined from the second input clock according to a predetermined rule for the first input clock and the second input clock to be transmitted, and determines a first frequency control word from the first sampling clock and the second sampling clock to indicate the relationship between the first sampling clock and the second sampling clock, and the transmitting unit generates a clock signal to which the first frequency control word is attached from the first input clock, and transmits the clock signal to the receiving side. As a result, the clock transmission device of the embodiment of the present application can transmit the first input clock and the second input clock simultaneously, and does not limit whether the first input clock and the second input clock are synchronous. Therefore, the embodiment of the present application solves the problem that the arrangement of the clock line is very complicated and difficult to realize in clock distribution of communication equipment in some situations in this field, and can significantly simplify the arrangement of the clock line in clock distribution, thereby reducing the manufacturing cost of the backplane.
[0046] In addition, according to the clock transmission device of the embodiment of the present application, the asynchronous clock can be transmitted through the same clock line, so that when there are multiple asynchronous clocks to be transmitted in the clock distribution of a communication device, the clock transmission is performed through only one clock line, and there is no need to arrange a clock line for each asynchronous clock, so that the number of clock lines in the clock distribution is significantly reduced and the utilization of the wiring space of the backplane is greatly improved. In addition, according to the clock transmission device of the embodiment of the present application, there is no need to wire many lines or expand the PCB layer or connectors in the manufacture of the backplane, so the manufacturing cost of the backplane is significantly reduced.
[0047] It should be noted that the second input clock according to the embodiment of the present application may be multiple, that is, the clock transmission device according to the embodiment of the present application may transmit any number of asynchronous clocks simultaneously. Figure 7 is a sixth functional schematic diagram of the clock transmission device according to the embodiment of the present application. In the example shown in Figure 7, the clock transmission device according to the embodiment of the present application may transmit three asynchronous clocks to the receiving side simultaneously, and this example will be described below.
[0048] In one embodiment, a clock transmission device according to an embodiment of the present application includes: an input unit 102 configured to receive a first input clock, a second input clock and a third input clock; A first sampling subunit 1104 and a second sampling subunit 2104 are included. the first sampling sub-unit 1104 is configured to determine a first frequency control word from the first sampling clock and the second sampling clock; Second Sampling Subunit 2104 a sampling unit 104 configured to determine, from the first sampling clock and a third sampling clock, a second frequency control word for indicating a relationship between the first sampling clock and the third sampling clock, the third sampling clock being determined according to a predetermined rule from the first sampling clock and a third input clock; a transmitting unit 106 configured to generate, from a first input clock, a clock signal to which at least the first and second frequency control words are attached, and to transmit the clock signal to a receiving side.
[0049] For the operation procedures of the first and second sampling sub-units, please refer to the description of the operation procedures of the sampling unit, and the description will not be repeated here.
[0050] Therefore, in the process of transmitting multiple asynchronous clocks, the clock transmission device of the embodiment of the present application can set up a corresponding sampling module for each asynchronous clock, and determine the frequency control word corresponding to the asynchronous clock based on the first input clock.
[0051] In addition, the first input clock in an embodiment of the present application may be any one of multiple asynchronous clocks to be transmitted from the transmitting side to the receiving side, or may be a reference clock of the transmitting side. In one example, the first input clock may be a local clock of the transmitting side, and in another example, the first input clock may be an external reference clock introduced from the transmitting side.
[0052] The embodiment of the present application further provides a clock receiving device, and FIG. 8 is a first functional schematic diagram of the clock receiving device according to the embodiment of the present application. As shown in FIG. 8, the device according to the embodiment of the present application includes: A receiving unit 202 configured to receive a clock signal transmitted from a transmitting side, the clock signal being generated from a first input clock of the transmitting side and having at least a first frequency control word attached thereto for indicating a relationship between a first sampling clock determined from the first input clock according to a predetermined rule and a second sampling clock determined from a second input clock of the transmitting side according to a predetermined rule, the receiving unit 202 further determining the first input clock and the first frequency control word from the clock signal; and a recovery unit 204 configured to determine a second input clock from the first input clock and the first frequency control word.
[0053] In addition, since the clock signal received by the clock receiving device of the embodiment of the present application is the clock signal transmitted by the clock transmitting device of the embodiment of the present application described above, the generation or pre-processing process of the clock signal by the clock transmitting device corresponds to the explanation of the clock transmitting device described above, and will not be explained repeatedly here.
[0054] The receiving unit according to the embodiment of the present application is configured to receive the clock signal transmitted by the transmitting side through the clock line, and the receiving unit may include a receiving port configured to be connected to the clock line. Figure 9 is a second functional schematic diagram of the receiving unit according to the embodiment of the present application. As shown in Figure 9, the receiving unit may further include a PWM decode subunit 2022 configured to decode the clock signal to recover the first input clock and extract the first frequency control word attached to the clock signal.
[0055] In addition, when the clock signal in the embodiment of the present application is a PWM wave encoded and synthesized by a PWM encoding sub-unit at the transmitting side, the receiving unit may decode and restore the received PWM wave by the PWM decoding unit, thereby obtaining the corresponding first input clock and first frequency control word in the PWM wave.
[0056] Similar to the PWM encoding unit, the PWM decoding subunit may adopt a DDS signal generator, a DCO, a DPLL, a single-chip microcomputer, a field programmable gate array processor, etc. with decoding capability, or may adopt an application specific integrated circuit IC, SOC, etc. The PWM decoding subunit may be composed of one or more of the above devices, that is, any device that can decode a clock signal to obtain a first input clock and a first frequency control word may be the PWM decoding subunit according to the embodiment of the present application.
[0057] In the embodiment of the present application, the first input signal and the first frequency control word obtained by the receiving unit may be sent to a restoration unit to perform restoration of the second input signal. The restoration unit 204 further includes: deriving a first sampling clock from a first input clock, and determining a plurality of first phase addresses indicating phases of a second sampling clock from the first sampling clock and a first frequency control word; The input clock may be configured to determine a second sampling clock based on a plurality of first phase addresses, and to determine the second input clock from the second sampling clock.
[0058] In addition, when the clock transmitting device for transmitting the clock signal includes the above-mentioned frequency multiplication unit, that is, the above-mentioned first sampling clock or the second sampling clock is obtained by frequency multiplying the first input clock or the second input clock by a certain frequency multiplication factor, the receiving unit can obtain the first input clock and the first frequency control word, and can also obtain the frequency multiplication factor attached to the clock signal, such as the first, second, third, fourth, etc., multiple of the above-mentioned frequency multiplication unit. After the receiving unit obtains the first input clock, the clock receiving device according to the embodiment of the present application also needs to adopt the same frequency multiplication factor as the clock transmitting device, so that the first input clock is frequency multiplied, and then the second input clock is restored by the restoration unit. In one example, in a clock transmitting device, the first input clock is frequency-multiplied by 40 times by the frequency multiplication unit to obtain the first sampling clock, and the second input clock is not processed to become the second sampling clock. In the above case, after the receiving unit obtains the first input clock, the first frequency control word and the frequency multiplication multiple, the clock receiving device of the embodiment of the present application needs to frequency-multiply the first input clock by 40 times, and transmit the frequency-multiplied first input clock to the restoration unit to be restored.In another example, in a clock transmission device, a first frequency multiplying subunit of the frequency multiplying unit performs one-stage frequency multiplication on a first input clock by 40 times to obtain a first transmission clock, and a second frequency multiplying subunit performs two-stage frequency multiplication on the first transmission clock by 20 times to obtain a first sampling clock, and further, a third frequency multiplying subunit performs frequency multiplication on a second input clock by 20 times to obtain a second sampling clock. In the above case, the receiving unit receives the first, second and third frequency control words of the first transmission signal and the first frequency control word. The frequency multiplication multiple corresponding to the 3 frequency multiplication subunit is directly obtained from the clock signal, and the clock receiving device according to the embodiment of the present application needs to perform a 20-fold frequency multiplication process on the first transmission signal, transmit the frequency-multiplied first transmission clock to the restoration unit for restoration, and perform a 1 / 40-fold frequency division process on the first transmission clock to restore it to obtain the first input clock, and perform a 1 / 20-fold frequency division process on the clock directly output by the restoration unit to restore it to obtain the second input clock. In the processing method of the above clock transmitting device, the process of frequency multiplication of the first input clock is a process of obtaining the first sampling clock from the first input clock in the restoration unit.
[0059] It should be noted that the first phase address indicates a phase address to which the second sampling clock adopts a corresponding waveform, and in one example, the second sampling clock is a square wave or a sine wave.
[0060] After the second sampling clock is determined, the second input clock can be restored from the second sampling clock according to the above-mentioned rule for determining the second sampling clock from the second input clock.
[0061] The process of determining the first phase address will be described below by way of a preferred example. FIG. 10 is a third functional schematic diagram of a clock receiving device according to an embodiment of the present application. As shown in FIG. 10, the recovery unit 204: A receiving and accumulating subunit 2042 configured to accumulate a first frequency control word at a clock edge of a first sampling clock, and obtain a plurality of first phase addresses according to each accumulation result of the first frequency control word; and an interrogation subunit 2044 configured to obtain a waveform of the second sampling clock based on a plurality of first phase addresses and a predetermined mapping relationship to indicate a mapping relationship between the first phase addresses and a predetermined waveform parameter of the second sampling clock, wherein the interrogation subunit is further configured to determine a clock frequency of the second sampling clock from the waveform of the second sampling clock.
[0062] In the restoration unit shown in Figure 10, after the first sampling clock is sent to the receiving accumulation sub-unit, the receiving accumulation sub-unit may accumulate the first frequency control word by the clock edge of the first sampling clock to obtain a first phase address. In the accumulation process, the receiving accumulation sub-unit accumulates the first frequency control word once by the clock edge of the first sampling clock at this time every time the first sampling clock reaches its clock frequency, and the accumulation result every time is one first phase address, so that the receiving accumulation sub-unit obtains multiple first phase addresses.
[0063] In the above recovery unit, the receiving accumulation sub-unit is an accumulator, e.g., 2 N In one example, the receiving accumulation subunit may be composed of two N Take the accumulator as an example, if the first sampling clock is set as 1GHz and the first frequency control word is set as 42949672, the operation process of the restoration unit is as follows:
[0064] 2 N The accumulator accumulates the rising edges of the first sampling clock according to the clock frequency of the first sampling clock, i.e., every time it reaches a rising edge of 1 GHz, it accumulates 2 NThe accumulator automatically accumulates the first frequency control word once, and when one accumulation is completed, one first phase address is obtained, and the first phase address becomes the current accumulation result. When the accumulation result is larger than a predetermined threshold, for example, a power of 2^32, the accumulator automatically accumulates the first frequency control word once. N The accumulator clears the accumulated result and restarts accumulation, and the accumulation process is as follows:
[0065] The first time it reaches 1Ghz, it will N The accumulated result of the accumulator is 42949672*1=42949672, and the corresponding first phase address is 42949672. The second time it reaches 1Ghz, it will go to 2 N The accumulated result of the accumulator is 42949672*2=85899344, and the corresponding first phase address is 85899344. The third time it reaches 1Ghz, 2 N The accumulated result of the accumulator is 42949672*3=128849016, and the corresponding first phase address is 128849016. …… When it reaches 1Ghz for the 100th time, it will go to 2 N The accumulated result of the accumulator is 42949672*100=4294967200, and the corresponding first phase address is 4294967200. When it reaches 1Ghz on the 101st time, it will be 42949672*101=4337916872, which is greater than a power of 2^32, so 2 N The accumulator is cleared and restarts accumulating, 2 N The accumulated result of the accumulator is 42949672*1=42949672, and the corresponding first phase address is 42949672. When it reaches 1Ghz on the 102nd try, 2 N The accumulated result of the accumulator is 42949672*2=85899344, and the corresponding first phase address is 85899344.
[0066] For the first phase address obtained by accumulating each time as above, the inquiry subunit may inquire about the waveform parameters of the second sampling clock corresponding to the current first phase address. The waveform parameters indicate parameters of a periodic waveform, where the waveform parameters include at least one of a square wave output level value, a sine wave output level value, a triangular wave output level value, a sawtooth wave output level value, and a pulse output level value (i.e., an output level value corresponding to a waveform whose duty ratio is not 50%). In one example, the waveform parameters of the second sampling clock may be a sine wave output level value, and in another example, the waveform parameters of the second sampling clock may be a square wave output level value. The following description will be given with reference to the waveform parameters of the second sampling clock.
[0067] In the above example, the waveform parameter is a square wave output level value, and the inquiry subunit 2044 is further configured to determine a plurality of first phase addresses based on the mapping relationship, and obtain the waveform of the second sampling clock based on the determination result.
[0068] In the above example, since the waveform parameter is a square wave output level value, the interrogation subunit may be directly composed of a judger, that is, judge the first phase address corresponding to the accumulation result of the receiving accumulation subunit according to a predetermined rule, and decide to output a high level / low level. The mapping relationship may be predetermined, for example, when the first phase address is less than or equal to the power of 2^31, output a low level, and when the first phase address is greater than the power of 2^31, that is, a power of 2^32, output a high level. By repeating in this manner, square wave output level values corresponding to a plurality of first phase addresses can be output according to the judgment of the interrogation subunit, and the waveform of the second sampling clock can be obtained. The clock frequency of the second sampling clock can be determined from the waveform of the square wave of the second sampling clock.
[0069] In the above example, the waveform parameter is a sine wave output level value. Fig. 11 is a fourth functional schematic diagram of the clock receiving device according to the embodiment of the present application. As shown in Fig. 11, the inquiry subunit 2044 is further configured to obtain a plurality of sine wave output level values respectively corresponding to the plurality of first phase addresses according to a predetermined mapping relationship between the plurality of first phase addresses; The restoration unit 204 further includes a Digital to Analog Converter (DAC) subunit 2046, which is configured to obtain a waveform of the second sampling clock by digital-to-analog converting the multiple sine wave output level values.
[0070] In the above example, since the waveform parameter is a sine wave output level value, the inquiry subunit needs a certain local read-only memory (ROM) table, and the local ROM table records the mapping relationship, i.e., the mapping relationship between the first phase address and the corresponding sine wave output level value. The first phase address is 0, 1, 2, 3 as an example, and the local ROM table stores the mapping relationship between the first phase address 0, 1, 2, 3 and the sine wave output level value, and the mapping relationship may be as follows: 0~0V; 1~1.65V; 2~3.3V; 3~1.65V
[0071] Therefore, when the first phase address corresponding to the accumulation result of the receiving accumulation subunit is 0, the inquiry subunit may determine the sine wave output level value corresponding to the first phase address as 0V based on the mapping relationship recorded in the local ROM table, and the DAC subunit may output a level of 0V through digital / analog conversion. By repeating this, the inquiry subunit and the DAC subunit continuously output sine wave output level values corresponding to a plurality of first phase addresses, and the waveform of the second sampling clock is obtained. The clock frequency of the second sampling clock can be determined from the waveform of the sine wave of the second sampling clock.
[0072] If the clock transmitting device has more than two input clocks, the clock receiving device according to the embodiment of the present application may recover the input clocks one by one. In one embodiment, the clock signal is further provided with a second frequency control word, which indicates the relationship between the first sampling clock and the third sampling clock, and the third sampling clock is determined from the third input clock of the transmitting side according to a predetermined rule. In the clock receiving device according to the embodiment of the present application, the receiving unit may determine the first input clock and the first frequency control word, and determine the second frequency control word from the clock signal, and further determine the third input clock from the first input clock and the second frequency control word by referring to the recovery method of the second input clock.
[0073] In order to further describe the clock transmitting device, the clock receiving device, and the clock distribution system according to the embodiments of the present application, a number of exemplary embodiments are described below, in which the transmitting module is configured to represent the clock transmitting device according to the embodiments of the present application, the receiving module is configured to represent the clock receiving module according to the embodiments of the present application, and both the transmitting module and the receiving module constitute the clock distribution system according to the embodiments of the present application.
[0074] Illustrative Example 1 Fig. 12 is a topology diagram of clock networking according to an exemplary embodiment of the present application, in which the networking structure used for clock distribution is shown in Fig. 12. Fig. 13 is a first internal implementation topology diagram of clock networking according to an embodiment of the present application, in which the internal implementation of the transmitting module and the receiving module in clock distribution is shown in Fig. 13. As shown in Fig. 13, in this exemplary embodiment, the clock to be transmitted input by the transmitting module includes four asynchronous clocks with different frequencies, and the four asynchronous clocks are sequentially converted into a base frequency clock F clk = 25000002hz, asynchronous clock A = 33000018hz, asynchronous clock B = 10000004hz, asynchronous clock C = 19440009hz.
[0075] Fundamental frequency clock F clk =25000002hz is sent to the transmitting module, and then one of them is sent to the frequency multiplication unit for frequency multiplication. In this exemplary embodiment, the frequency multiplication unit uses 40 times frequency multiplication to convert the basic frequency clock to 40*F clk = 1000000080hz, and the frequency-multiplied fundamental frequency clock is supplied to sampling unit A, sampling unit B, and sampling unit C, and edge judgment and 2 N Provides the base clock for the accumulator. Another base frequency clock, F clk =25000002hz is sent to the PWM encoding unit without frequency multiplication to provide the basic clock for the PWM encoding unit.
[0076] Asynchronous clock A=33000018hz is sent to sampling unit A, and then the frequency multiplier multiplies the fundamental frequency clock by 40 to perform edge sampling judgment on asynchronous clock A, and the result is transmitted to the counter for self-increment. clk=1000000080hz is sent to the accumulator and accumulated one by one, so that the accumulated number is 2 N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2 N Each time the counter accumulates, the value latched by the counter is the frequency control word K of asynchronous clock A at the current time. A and the calculation formula is as follows:
[0077]
number
[0078] In the formula, C freqA denotes the clock frequency of asynchronous clock A, and C x*fclk indicates the clock frequency of the fundamental frequency clock multiplied in frequency.
[0079] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K A |≈141733987 is latched and transmitted to the computation filtering unit.
[0080] Similarly, asynchronous clock B=10000004hz is sent to sampling unit B, and the fundamental frequency clock multiplied by 40 by the frequency multiplier performs edge sampling judgment on asynchronous clock B, and the result is transmitted to the counter for self-increment. clk =1000000080hz is 2 N The accumulation is done by sending them to the accumulator and accumulating them one by one, and the accumulated number becomes 2 N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2 NEach time the counter accumulates, the value latched by the counter is the frequency control word K of asynchronous clock B at the current time. B and the calculation formula is as follows:
[0081]
number
[0082] In the formula, C freqB denotes the clock frequency of asynchronous clock B, and C x*fclk indicates the clock frequency of the fundamental frequency clock multiplied in frequency.
[0083] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K B |≈42949687 is latched and transmitted to the computation filtering unit.
[0084] Similarly, the asynchronous clock C=19440009hz is sent to the sampling unit C, and the fundamental frequency clock multiplied by 40 by the frequency multiplier performs edge sampling judgment on the asynchronous clock C, and the result is transmitted to the counter for self-increment. clk =1000000080hz is 2 N The accumulation is done by sending them to the accumulator and accumulating them one by one, and the accumulated number becomes 2 N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2 N Each time the counter accumulates, the value latched by the counter is the frequency control word K of the asynchronous clock C at the current time. C and the calculation formula is as follows:
[0085]
number
[0086] In the formula, C freqC denotes the clock frequency of asynchronous clock C, and C x*fclk indicates the clock frequency of the fundamental frequency clock multiplied in frequency.
[0087] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K C |≈83494196 is latched and transmitted to the computation filtering unit.
[0088] In this exemplary embodiment, N The accumulator N=32 is taken as an example only to better explain the frequency synthesis method, and N can be any number such as 8, 16, 32, 48, 64, etc. It is determined that within a certain threshold range, the larger the value of N, the longer the time and higher the accuracy of the frequency control word. Those skilled in the art can adjust the value of N according to the error accuracy of the system, and the embodiment of the present application does not limit the value of N.
[0089] Above K A , K B , K C are the real-time frequency control words obtained by sampling unit A, sampling unit B, and sampling unit C, respectively, and are integer frequency control words with the decimal part removed. Therefore, when they are directly transmitted to restoration unit A, restoration unit B, and restoration unit C of the receiving module, the clocks obtained by restoration are 33000018.0608hz, 10000004.0689hz, and 19440008.9512hz, respectively, and the frequency errors with the original asynchronous clock A, asynchronous clock B, and asynchronous clock C are +1.8ppb, +6.9ppb, and -2.5ppb.
[0090] In order to further reduce the error and jitter, the real-time frequency control word K obtained by sampling unit A, sampling unit B, and sampling unit C is A , K B , K Cis sent to the calculation filtering unit. The calculation filtering unit calculates the real-time frequency control word K A , K B , K C Filter.
[0091] This exemplary embodiment adopts average filtering as the filtering scheme, and its algorithm is as follows:
[0092]
number
[0093] The above algorithm shows that the sampling unit accumulates and counts the frequency control word M times, and performs filtering processing with the average value of the M frequency control words. The filtering accuracy is determined by the value of M.
[0094] According to the above average value algorithm, the asynchronous frequency control word with one decimal place after filtering is, in order, K A ’ =141733986.7, K B ’ =42949686.7, K C ’ =83494196.2.
[0095] It should be noted that in this exemplary embodiment, filtering by the average filtering algorithm is merely an example, and those skilled in the art may filter by other filtering methods, and the embodiment of the present application is not limited thereto.
[0096] Filtered frequency control word K A ’ , K B ’ , K C ’ is sent to the PWM encoding unit, which receives the base frequency clock F clkBased on the framing scheme, three frequency control words K A ’ , K B ’ , K C ’ and respectively envelope the PWM carrier wave synthesized by encoding. Figure 14 is a framing schematic diagram according to an exemplary embodiment of the present application, as shown in Figure 14, in the framing method, 0001 represents the frame header of frequency control word A, and the frame header is followed by frequency control word A, 0010 represents the frame header of frequency control word B, and the frame header is followed by frequency control word B, 0011 represents the frame header of frequency control word C, and the frame header is followed by frequency control word C, and 1111 represents the frame header D of configuration information, and the frame header is followed by basic information associated with the frame, such as the multiple information of frequency multiplication unit, the sampling number information of sampling unit, etc., and the CRC check frame is at the end.
[0097] In addition, the frame header may be set before the frequency control word or after the frequency control word. Similarly, the frame headers 0001 to 1111 illustrated in this exemplary embodiment are for better explaining the framing method, and do not indicate specific contents, nor frame header capacity and whether or not encryption is performed. Those skilled in the art can modify and encrypt the frame header according to the implementation method of business needs, and the embodiment of the present application does not limit the position, form, or content of the frame header.
[0098] The encoding synthesis method by the PWM encoding unit may be based on duty ratio modulation. FIG. 15 is a schematic diagram of PWM encoding based on duty ratio modulation in an exemplary embodiment of the present application. As shown in FIG. 15, an 80% duty ratio may represent 0, a 20% duty ratio may represent 1, a 30% duty ratio may represent 0, and a 70% duty ratio may represent 1, and the embodiment of the present application is not limited thereto.
[0099] It should be noted that in this exemplary embodiment, the use of duty ratio modulation is for better illustrating the frequency synthesis method, and those skilled in the art may use other encoding forms. Figure 16 is a schematic diagram of PWM encoding based on Manchester encoding according to an exemplary embodiment of the present application, that is, in this exemplary embodiment, PWM encoding may be performed using the Manchester encoding shown in Figure 16, and the PWM wave may be encoded by sampling 8B / 10B encoding, etc., and the present application is not limited thereto.
[0100] After completing the encoding synthesis, the PWM encoding unit finally encodes the frequency control word A, the frequency control word B, and the frequency control word C into a PWM carrier wave. The synthesized PWM carrier wave transmits the signal to the receiving module through a single transmission link. Note that the single transmission link may be a PCB wiring, a connector, an optical fiber, a differential wiring, a link using a combination of multiple physical media, etc., and the present application is not limited thereto.
[0101] The receiving module receives the PWM carrier transmitted through the single transmission link, sends it to the PWM decoding unit for decoding, and identifies the frame header to obtain the frequency control word K A ’ , K B ’ , K C ’ and the multiple of the frequency multiplication unit are decoded, and K is input to the restoration unit A, the restoration unit B, and the restoration unit C. A ’ , K B ’ , K C ’ and send the frequency multiplication multiple to the frequency multiplication unit of the receiving module, and the PWM decoding unit generates the PWM carrier basic frequency clock F clk =25000002hz is physically restored and output to the receiving module as the receiving clock of the first branch, and the fundamental frequency clock is also routed to a frequency multiplication unit in the receiving module.
[0102] The frequency multiplier unit of the receiving module is set to the same multiplication factor as the frequency multiplier unit of the transmitting module, and then multiplied by the input base frequency clock F clk Multiply that by 40 to get 40*F clk =1000000080hz. Send 40 times the base clock frequency to restoration unit A, restoration unit B, and restoration unit C as the reference clock for each restoration unit.
[0103] Filtered asynchronous clock frequency control word K A ’ is sent to the recovery unit A, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K A ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0104]
number
[0105] In this exemplary embodiment, N=32 is calculated and continuously accumulated to obtain the local ROM table address. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required as 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the second half of the address is "0".
[0106] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqA =33000017.990991225466132164001465hz, which is 0.272ppb different from the 33000018hz corresponding to the original asynchronous clock A.
[0107] Similarly, the filtered asynchronous clock frequency control word K B ’is sent to the recovery unit B, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K B ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0108]
number
[0109] In this exemplary embodiment, N=32 is calculated and continuously accumulated to obtain the local ROM table address. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required as 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the latter half of the address is "0".
[0110] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqB =10000003.999093299731612205505371hz, which differs from the original asynchronous clock B's corresponding 10000004hz by 0.09ppb.
[0111] Similarly, the filtered asynchronous clock frequency control word K C ’ is sent to the recovery unit B, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K C ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0112]
number
[0113] In this exemplary embodiment, N=32 is calculated and continuously accumulated to obtain the local ROM table address. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required as 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the latter half of the address is "0".
[0114] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqC =19440008.99780907109379768371582hz, which is 0.11ppb different from the 19440009hz corresponding to the original asynchronous clock C.
[0115] It should be noted that the above 50% duty ratio is used to better explain the process of determining the local ROM table address, and those skilled in the art may adjust the ratio and order of "1" and "0" corresponding to the address according to the actual required duty ratio, and the present application is not limited thereto. Similarly, the above error is merely the error between the asynchronous clock restored in this exemplary embodiment and the original asynchronous clock of the transmitting module, and in actual implementation, the above error depends on factors such as the magnitude of the value of N of the accumulator, the filtering ability of the calculation filter, and the depth of the local ROM table, for example, the error may decrease with the increase of the value of N, or may decrease with the improvement of the filtering ability of the calculation filter, and those skilled in the art may control or adjust the error according to actual needs.
[0116] Illustrative Example 2 FIG. 17 is a second internal implementation topology diagram of the clock networking according to an embodiment of the present application. As shown in FIG. 17, in this exemplary embodiment, the clock to be transmitted input by the transmitting module includes four asynchronous clocks with different frequencies, and the four asynchronous clocks are sequentially converted into a base frequency clock F clk= 10000.0008hz, asynchronous clock A = 8001hz, asynchronous clock B = 10000004hz, asynchronous clock C = 6480003hz.
[0117] Fundamental frequency clock F clk After being sent to the transmitting module, =10000.0008hz is first sent to the first stage frequency multiplication unit D and undergoes frequency multiplication. After being multiplied by 2500, it becomes d*F clk =25000002hz is obtained. After one frequency multiplication, d*F clk is sent to the second stage frequency multiplication unit for frequency multiplication. In this exemplary embodiment, as an example, the fundamental frequency clock is multiplied by 40 to 40*d*F clk = 1000000080hz, and send it to sampling unit A, sampling unit B, and sampling unit C for edge judgment and 2 N Provides the base clock for the accumulator. Another base frequency clock after one-stage frequency multiplication, d*F clk =25000002hz is sent to the PWM encoding unit without frequency multiplication, providing the basic clock for the PWM encoding unit.
[0118] After the asynchronous clock A=8001hz is sent to the transmitting module, it is first sent to the frequency multiplier unit A to be multiplied by 2000 times, and the clock frequency is improved to 16002000hz, and then sent to the sampling unit A. In the sampling unit A, the fundamental frequency clock multiplied by 40 by the frequency multiplier performs edge sampling judgment, and the result is transmitted to the counter for self-addition. The fundamental frequency clock multiplied by 40 by the frequency multiplier 40*d*F clk =1000000080hz is 2 N The accumulation is done by sending them to the accumulator and accumulating them one by one, until the accumulated number is 2 N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2N Each time the counter accumulates, the value latched by the counter is the frequency control word K of asynchronous clock A at the current time. A and the calculation formula is as follows:
[0119]
number
[0120] In the formula, C freqA represents the clock frequency of asynchronous clock A, and C x*fclk represents the clock frequency of the fundamental frequency clock multiplied in frequency.
[0121] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K A |≈68728061 is latched and transmitted to the computation filtering unit.
[0122] Similarly, the asynchronous clock B=10000004hz is sent to the frequency multiplier unit B and is multiplied by 1, i.e., the clock frequency is maintained at 10000004hz and sent to the sampling unit B. In the sampling unit B, the fundamental frequency clock multiplied by 40 by the frequency multiplier performs edge sampling judgment, and the result is transmitted to the counter for self-increment. The fundamental frequency clock multiplied by 40 by the frequency multiplier 40*d*F clk =1000000080hz is 2 N The accumulation is done by sending them to the accumulator and accumulating them one by one, until the accumulated number is 2 N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2 N Each time the counter accumulates, the value latched by the counter is the frequency control word K of asynchronous clock B at the current time. B and the calculation formula is as follows:
[0123]
number
[0124] In the formula, C freqB represents the clock frequency of asynchronous clock B, and C x*fclk represents the clock frequency of the fundamental frequency clock multiplied in frequency.
[0125] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K B |≈42949687 is latched and transmitted to the computation filtering unit.
[0126] Similarly, the asynchronous clock C=6480003hz is sent to the frequency multiplier unit C, where it is multiplied by 3, i.e., the clock frequency C=19440009hz, and then sent to the sampling unit C. In the sampling unit C, the fundamental frequency clock multiplied by 40 by the frequency multiplier performs edge sampling judgment, and the result is transmitted to the counter for self-increment. The fundamental frequency clock multiplied by 40 by the frequency multiplier 40*d*F clk =1000000080hz is 2 N The accumulated number is sent to the accumulator and is accumulated. N When the counter is equal to 2, the downstream counter is latched and cleared. N The accumulator is also cleared and begins accumulating again. N Accumulator is 2 N Each time the counter accumulates, the value latched by the counter is the frequency control word K of the asynchronous clock C at the current time. C and the calculation formula is as follows:
[0127]
number
[0128] In the formula, C freqC represents the clock frequency of the asynchronous clock C, and C x*fclkrepresents the clock frequency of the fundamental frequency clock multiplied in frequency.
[0129] For example, for N=32, when the accumulator accumulates to 4294967296 40x fundamental frequency clocks, the counter is equal to the frequency control word |K C |≈83494196 is latched and transmitted to the computation filtering unit.
[0130] In this exemplary embodiment, N The accumulator N=32 is taken as an example only to better explain the frequency synthesis method, and N can be any number such as 8, 16, 32, 48, 64, etc. It is determined that within a certain threshold range, the larger the value of N, the longer the time and higher the accuracy of the frequency control word. Those skilled in the art can adjust the value of N according to the error accuracy of the system, and the embodiment of the present application does not limit the value of N.
[0131] Above K A , K B , K C is a real-time frequency control word obtained by each of the sampling units A, B, and C, and is an integer frequency control word with the decimal part removed. In order to further reduce the error and jitter, the real-time frequency control word K obtained by the sampling units A, B, and C is A , K B , K C is sent to the calculation filtering unit. The calculation filtering unit calculates the real-time frequency control word K A , K B , K C Filter.
[0132] This exemplary embodiment operates on average filtering as the filtering scheme, and the algorithm is as follows:
[0133]
number
[0134] The above algorithm indicates that the frequency control word is accumulated and counted M times in the sampling unit, and the filtering process is performed by the average value of M frequency control words. The filtering accuracy is determined by the value of M.
[0135] According to the above average value algorithm, the three types of asynchronous frequency control words with one decimal place after filtering are sequentially: K A ’ =68728061.2, K B ’ =42949686.7, K C ’ =83494196.2.
[0136] Filtered frequency control word K A ’ , K B ’ , K C ’ is sent to the PWM encoding unit, which receives the base frequency clock F clk Based on the framing scheme, three frequency control words K A ’ , K B ’ , K C ’are respectively enveloped in the PWM carrier wave synthesized by encoding. The framing method can be referred to in Figure 14, in which 0001 represents the frame header of frequency control word A, and the frame header is followed by frequency control word A; 0010 represents the frame header of frequency control word B, and the frame header is followed by frequency control word B; 0011 represents the frame header of frequency control word C, and the frame header is followed by frequency control word C; 1111 represents the frame header D of configuration information; the frame header is followed by basic information associated with the frame, such as the multiple information of frequency multiplication unit, the sampling number information of sampling unit, etc.; and the CRC check frame is at the end.
[0137] In addition, the frame header may be set before the frequency control word or after the frequency control word. Similarly, the frame headers 0001 to 1111 illustrated in this exemplary embodiment are for better explaining the framing method, and do not indicate specific contents, nor frame header capacity and whether or not encryption is performed. Those skilled in the art can modify and encrypt the frame header according to the implementation method of business needs, and the embodiment of the present application does not limit the position, form, or content of the frame header.
[0138] The encoding synthesis method by the PWM encoding unit may be a duty ratio modulation as shown in FIG. 5, in which an 80% duty ratio may represent 0, a 20% duty ratio may represent 1, a 30% duty ratio may represent 0, and a 70% duty ratio may represent 1, and the embodiments of the present application are not limited thereto.
[0139] It should be noted that in this exemplary embodiment, the use of duty cycle modulation is for better illustrating the frequency synthesis method, and those skilled in the art may encode the PWM wave using other encoding formats, such as Manchester encoding, 8B / 10B encoding, etc., and the present application is not limited thereto.
[0140] After completing the encoding synthesis, the PWM encoding unit finally encodes the frequency control word A, the frequency control word B, and the frequency control word C into a PWM carrier wave. The synthesized PWM carrier wave transmits the signal to the receiving module through a single transmission link. Note that the single transmission link may be a PCB wiring, a connector, an optical fiber, a differential wiring, a link using a combination of multiple physical media, etc., and the present application is not limited thereto.
[0141] The receiving module receives the PWM carrier transmitted through the single transmission link, sends it to the PWM decoding unit for decoding, and identifies the frame header to obtain the frequency control word K A ’ , K B ’ , K C ’ And decode the multiples of each frequency multiplication unit, and assign K to restoration unit A, restoration unit B, and restoration unit C. A ’ , K B ’ , K C ’ Each frequency multiplication factor is written to the frequency division unit in the rear stage of the restoration unit, and d*F is written to the frequency multiplication unit in the receiving module. clk The PWM decode unit transmits a multiple of the frequency of the PWM carrier fundamental frequency clock d*F clk =25000002hz is physically restored, and the frequency division D unit divides this by 2500 to get F clk =10000.0008hz is obtained and output to the receiving module as the first branch receiving clock, and d*F clk The base frequency clock is routed to a frequency multiplication unit in the receiving module.
[0142] The frequency multiplication unit of the receiving module sets the same multiplication factor as the frequency multiplication unit of the transmitting module, and then multiplies the input base frequency clock d*F clk Multiply that by 40 to get 40*d*F. clk=1000000080hz. Send 40 times the base clock frequency to restoration unit A, restoration unit B, and restoration unit C as the reference clock for each restoration unit.
[0143] Filtered asynchronous clock frequency control word K A ’ is sent to the recovery unit A, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K A ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0144]
number
[0145] In this embodiment, calculation is performed with N=32, and the local ROM table address is obtained by continuously accumulating. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required to be 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the latter half of the address is "0".
[0146] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqA =16002000.006438441574573516845703hz, and the post-stage frequency divider is assigned the frequency multiplication factor of 2000 of the original transmitting module, and after 2000 times frequency division, the frequency is obtained as 8001.0000032192207872867584228515hz, which has a difference of 0.402ppb from 8001hz corresponding to the original asynchronous clock A.
[0147] Similarly, the filtered asynchronous clock frequency control word K B ’is sent to the recovery unit B, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K B ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0148]
number
[0149] In this embodiment, N=32 is used for calculation, and the local ROM table address is obtained by continuously accumulating. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required to be 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the latter half of the address is "0".
[0150] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqB =10000003.999093299731612205505371hz, and since the frequency multiplication factor in the original transmitting module is 1x frequency multiplication, no adjustment is made in the post-stage frequency divider, and the resulting asynchronous frequency has a difference of 0.09ppb from 10000004hz corresponding to the original asynchronous clock B.
[0151] Similarly, the filtered asynchronous clock frequency control word K C ’ is sent to the recovery unit B, the base frequency clock multiplied by 40 by the frequency multiplier provides the reference clock, and the accumulation is K C ’ The maximum value of the accumulator is 2 N and follows the following algorithm:
[0152]
number
[0153] In this embodiment, N=32 is used for calculation, and the local ROM table address is obtained by continuously accumulating. The local ROM table stores square waves of 1 and 0 corresponding to the address, and when the output clock duty ratio is required to be 50%, in the ROM, the data corresponding to the first half of the address is "1" and the data corresponding to the latter half of the address is "0".
[0154] The actual asynchronous clock frequency obtained from the address lookup table output by the accumulator is F reqC =19440008.99780907109379768371582hz, which is assigned the frequency multiplication factor 3 of the original transmitting module by the post-stage frequency divider and undergoes 3-fold frequency division to obtain a frequency of 6480002.9992696903645992279052734hz, which has a difference of 0.11ppb from 6480003hz corresponding to the original asynchronous clock C.
[0155] It should be noted that the above 50% duty ratio is used to better explain the process of determining the local ROM table address, and those skilled in the art may adjust the ratio and order of "1" and "0" corresponding to the address according to the actual required duty ratio, and the present application is not limited thereto. Similarly, the above error is merely the error between the asynchronous clock restored in this exemplary embodiment and the original asynchronous clock of the transmitting module, and in actual implementation, the above error depends on factors such as the magnitude of the value of N of the accumulator, the filtering ability of the calculation filter, and the depth of the local ROM table, for example, the error may decrease with the increase of the value of N, or may decrease with the improvement of the filtering ability of the calculation filter, and those skilled in the art may control or adjust the error according to actual needs.
[0156] The embodiment of the present application further provides a clock distribution system, and Fig. 18 is a functional schematic diagram of the clock distribution system according to the embodiment of the present application. As shown in Fig. 18, the clock distribution system according to the embodiment of the present application includes: an input unit 302 configured to receive a first input clock and a second input clock; a sampling unit 304 configured to obtain a first sampling clock determined from a first input clock according to a predetermined rule and a second sampling clock determined from a second input clock according to a predetermined rule, and to determine a first frequency control word from the first sampling clock and the second sampling clock to indicate a relationship between the first sampling clock and the second sampling clock; a transmitting unit 306 configured to generate a clock signal having at least a first frequency control word attached thereto from a first input clock and to transmit the clock signal to a receiving end; a receiving unit 308 configured to receive the clock signal and to determine a first input clock and a first frequency control word from the clock signal; and a recovery unit 310 configured to determine the second input clock from the first input clock and the first frequency control word.
[0157] In addition, the input unit, sampling unit, and sending unit in the clock transmission system according to the embodiment of the present application constitute the corresponding units of the clock transmission device according to the embodiment of the present application, and therefore the receiving unit and the restoration unit of the clock transmission system according to the embodiment of the present application are the corresponding units of the clock receiving device according to the embodiment of the present application. Therefore, the clock transmission system according to the embodiment of the present application may be composed of the clock transmission device and the clock receiving device according to the embodiment of the present application, and the remaining embodiments and technical solutions of the transmitting side of the clock transmission system according to the embodiment of the present application correspond to the clock transmission device according to the embodiment of the present application, and the remaining embodiments and technical solutions of the receiving side of the clock transmission system according to the embodiment of the present application correspond to the clock receiving device according to the embodiment of the present application, and will not be described here repeatedly.
[0158] In one embodiment, a clock distribution system according to an embodiment of the present application includes: It further includes a line unit 312, which is disposed between the sending unit and the receiving unit and is configured to transmit a clock signal to the receiving unit via the same line.
[0159] In addition, the line unit in the embodiment of the present application constitutes a physical link between the transmitting unit and the receiving unit of the clock transmission system, and the line unit indicates one physical link, so that multiple input clocks on the transmitting side can be transmitted to the receiving side via the same line.
[0160] An embodiment of the present application further provides a clock transmission method applied to the transmitting side, and FIG. 19 is a flowchart of the clock transmission method according to an embodiment of the present application. As shown in FIG. 19, the clock transmission method according to an embodiment of the present application includes S102, S104, and S106.
[0161] S102: The first input clock and the second input clock are input.
[0162] S104: Obtain a first sampling clock from a first input clock, obtain a second sampling clock from a second input clock, and determine a first frequency control word from the first sampling clock and the second sampling clock to indicate a relationship between the first sampling clock and the second sampling clock.
[0163] S106: Generate a clock signal having at least a first frequency control word attached thereto from a first input clock, and transmit the clock signal to a receiving side.
[0164] It should be noted that the remaining embodiments and technical solutions of the clock transmission method according to the embodiments of the present application correspond to the clock transmission device according to the embodiments of the present application, and will not be described here repeatedly.
[0165] In one embodiment, the first frequency control word indicates at least one of a ratio of clock frequencies of the first sampling clock and the second sampling clock, and a difference between the clock frequencies of the first sampling clock and the second sampling clock.
[0166] In one embodiment, in the step S104, the step of determining the first frequency control word from the first sampling clock and the second sampling clock includes: The method includes the step of sampling the clock frequency of the first sampling clock and the clock frequency of the second sampling clock to determine a first frequency control word.
[0167] In one embodiment, the step of sampling the clock frequency of the first sampling clock and the clock frequency of the second sampling clock to determine the first frequency control word comprises: accumulating clock edges of a first sampling clock; determining a clock edge of a second sampling clock and counting the clock edges of the second sampling clock based on the determination result; and determining a count value of clock edges of a second sampling clock when the clock edges of the first sampling clock have accumulated to a predetermined number to obtain a first frequency control word.
[0168] In one embodiment, in the step S104, the step of obtaining the first sampling clock from the first input clock includes: The method includes frequency multiplying the first input clock by a first predetermined multiple to obtain a first sampling clock whose ratio to the clock frequency of the second sampling clock is within a predetermined range.
[0169] In one embodiment, the step of frequency multiplying the first input clock by the predetermined first multiple to obtain the first sampling clock comprises: frequency multiplying the first input clock by a second predetermined multiple to obtain a first transmit clock for generating a clock signal; and frequency multiplying the first transmit clock by a third predetermined multiple to obtain a first sampling clock.
[0170] In one embodiment, in step S104, the step of obtaining the second sampling clock from the second input clock includes: The method includes frequency multiplying the second input clock by a predetermined fourth factor to obtain a second sampling clock.
[0171] In one embodiment, the clock signal is further multiplied by a first multiple, a second multiple, a third multiple, and a fourth multiple.
[0172] In one embodiment, in the step S106, the step of generating a clock signal from a first input clock and transmitting the clock signal to the receiving side includes: filtering the first frequency control word according to a predetermined filtering scheme; The method further includes generating a clock signal having the filtered first frequency control word attached thereto by a first input clock, and transmitting the clock signal to a receiving end.
[0173] In one embodiment, in the step S104, the step of determining the first frequency control word from the first sampling clock and the second sampling clock includes: the step of repeatedly determining a first frequency control word from the first sampling clock and the second sampling clock to obtain a plurality of first frequency control words; Filtering the first frequency control word using a predetermined filtering scheme includes averaging a plurality of first frequency control words to obtain the filtered first frequency control word.
[0174] In one embodiment, in step S106, the step of generating a clock signal from a first input clock includes: The step includes encoding a first input clock to generate a clock signal whose clock frequency is the clock frequency of the first input clock, and enveloping a first frequency control word into the clock signal.
[0175] In one embodiment, a clock transmission method according to an embodiment of the present application includes: inputting a first input clock, a second input clock and a third input clock; determining a first frequency control word from the first sampling clock and the second sampling clock; deriving a third sampling clock from a third input clock and determining a second frequency control word from the first sampling clock and the third sampling clock to indicate a relationship between the first sampling clock and the third sampling clock; The method further includes the steps of generating a clock signal having at least the first frequency control word and the second frequency control word attached thereto using a first input clock, and transmitting the clock signal to a receiving end.
[0176] In one embodiment, the frequency sources of the first and second input clocks are different.
[0177] From the above description of the embodiments, it is obvious to those skilled in the art that the methods according to the above embodiments may be realized by combining software with a required general-purpose hardware platform, and of course, may also be realized by a hardware platform, and in many cases, the former is a more preferred embodiment. Based on this knowledge, the essential part of the technical solution of the present application or the part that contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM / RAM, diskette, optical disk) and includes a plurality of instructions that cause a terminal device (which may be a mobile phone, a computer, a server, a network device, etc.) to execute the methods described in each embodiment of the present application.
[0178] An embodiment of the present application further provides a clock receiving method applied to the receiving side, and FIG. 20 is a flowchart of the clock receiving method according to an embodiment of the present application. As shown in FIG. 20, the clock receiving method according to an embodiment of the present application includes S202, S204 and S206.
[0179] S202: Receive a clock signal transmitted from a receiving transmitting side, the clock signal being generated from a first input clock of the transmitting side and having at least a first frequency control word attached thereto to indicate a relationship between a first sampling clock generated from the first input clock and determined from the first input clock according to a predetermined rule, and a second sampling clock determined from a second input clock of the transmitting side according to a predetermined rule.
[0180] S204: Determine a first input clock and a first frequency control word from the clock signal.
[0181] S206: Determine a second input clock from the first input clock and the first frequency control word.
[0182] It should be noted that the remaining embodiments and technical solutions of the clock receiving method according to the embodiments of the present application correspond to the clock receiving device according to the embodiments of the present application, and will not be described here repeatedly.
[0183] In one embodiment, in step S206, determining the second input clock from the first input clock and the first frequency control word includes: deriving a first sampling clock from a first input clock and determining a plurality of first phase addresses from the first sampling clock and a first frequency control word for indicating phases of a second sampling clock; determining a second sampling clock based on the plurality of first phase addresses, and determining a second input clock from the second sampling clock.
[0184] In one embodiment, the step of deriving a first sampling clock from the first input clock and determining a plurality of first phase addresses from the first sampling clock and the first frequency control word includes: The method includes accumulating a first frequency control word at a clock edge of a first sampling clock, and obtaining a plurality of first phase addresses based on each accumulation result of the first frequency control word; The step of determining the second sampling clock based on the plurality of first phase addresses includes: obtaining a waveform of a second sampling clock based on a plurality of first phase addresses and a predetermined mapping relationship for indicating a mapping relationship between the first phase addresses and a predetermined waveform parameter of the second sampling clock; and determining the clock frequency of the second sampling clock from the waveform of the second sampling clock.
[0185] In one embodiment, the waveform parameters refer to parameters of a periodic waveform, and the waveform parameters include at least one of a square wave power level value, a sine wave power level value, a triangle wave power level value, a sawtooth wave power level value, and a pulse power level value.
[0186] In one embodiment, when the waveform parameter is a square wave output level value, the step of obtaining a waveform of the second sampling clock based on a plurality of first phase addresses and a predetermined mapping relationship includes: The method includes determining a plurality of first phase addresses based on the mapping relationship, and obtaining a waveform of a second sampling clock based on a result of the determination.
[0187] In one embodiment, when the waveform parameter is a sine wave output level value, the step of obtaining a waveform of the second sampling clock based on a plurality of first phase addresses and a predetermined mapping relationship includes: obtaining a plurality of sine wave output level values respectively corresponding to the plurality of first phase addresses based on a mapping relationship between the plurality of first phase addresses; and performing digital-to-analog conversion on the plurality of sine wave output level values to obtain a waveform of a second sampling clock.
[0188] In one embodiment, the clock signal is provided with a second frequency control word, the second frequency control word indicating a relationship between the first sampling clock and a third sampling clock, the third sampling clock being determined according to a predetermined rule from a third input clock of the transmitting side; In the above case, the clock receiving method according to the embodiment of the present application is as follows: determining a second frequency control word from the clock signal; and determining a third input clock from the first input clock and the second frequency control word.
[0189] From the above description of the embodiments, it is obvious to those skilled in the art that the methods according to the above embodiments may be realized by combining software with a required general-purpose hardware platform, and of course, may also be realized by a hardware platform, and in many cases, the former is a more preferred embodiment. Based on this knowledge, the essential part of the technical solution of the present application or the part that contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM / RAM, diskette, optical disk) and includes a plurality of instructions that cause a terminal device (which may be a mobile phone, a computer, a server, a network device, etc.) to execute the methods described in each embodiment of the present application.
[0190] An embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program configured, when executed, to implement the steps in any of the above embodiments.
[0191] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a flash drive, a read-only memory (abbreviated as ROM), a random access memory (abbreviated as RAM), a mobile disk, a diskette, an optical disk, etc.
[0192] An embodiment of the present application further provides an electronic device comprising a memory and a processor, the memory having a computer program stored therein, the processor being configured to execute the computer program to implement the steps of any of the method embodiments described above.
[0193] In an exemplary embodiment, the electronic device further includes a transmission means and an input / output means, the transmission means being connected to the processor and the input / output means being connected to the processor.
[0194] According to the embodiment of the present application, when the transmitting side transmits a clock, for the first input clock and the second input clock to be transmitted inputted by the input unit, the sampling unit obtains the first sampling clock determined from the first input clock according to a predetermined rule, and the second sampling clock determined from the second input clock according to a predetermined rule, and determines a first frequency control word from the first sampling clock and the second sampling clock to indicate the relationship between the first sampling clock and the second sampling clock, and the transmitting unit generates a clock signal to which the first frequency control word is attached from the first input clock, and transmits the clock signal to the receiving side. Thus, the clock transmitting device according to the embodiment of the present application transmits the first input clock and the second input clock simultaneously, and there is no restriction on whether the first input clock and the second input clock are synchronous. Therefore, the embodiment of the present application solves the problem that the arrangement of the clock line is very complicated and difficult to realize in the clock distribution of the communication equipment in some scenes in the field, and can significantly simplify the arrangement of the clock line in the clock distribution, thereby reducing the manufacturing cost of the backplane.
[0195] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and the present embodiment will not be described here repeatedly.
[0196] Of course, as will be apparent to one skilled in the art, each module or step of the present application described above may be implemented by a general-purpose computing device, may be centralized in one computing device, may be distributed across a network of computing devices, may be implemented by program code executable by a computing device, may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in a different order than described herein, may each be fabricated as a single integrated line module, or multiple of the modules or steps may be implemented as a single integrated line module. In this manner, the present application is not limited to any particular combination of hardware and software.
[0197] The above are merely some examples of the present application and are not intended to limit the present application. Those skilled in the art may make various modifications and changes to the present application. Any modifications, equivalent replacements, improvements, etc. made within the scope of the present application are included in the patent scope of the present application.
Claims
1. A clock transmission method applied to a transmitting side, comprising: inputting a first input clock and a second input clock; deriving a first sampling clock from the first input clock; deriving a second sampling clock from the second input clock; determining a first frequency control word from the first sampling clock and the second sampling clock, the first frequency control word being for indicating a clock frequency relationship between the first sampling clock and the second sampling clock; generating a clock signal from the first input clock and transmitting the clock signal to a receiving side, the clock signal being marked with at least the first frequency control word; The step of deriving a first sampling clock from the first input clock comprises:
1. A clock transmission method comprising: a step of frequency multiplying the first input clock by a predetermined first multiple to obtain the first sampling clock, the ratio of the clock frequency of the first sampling clock to that of the second sampling clock being within a predetermined range.
2. 2. The clock transmission method of claim 1, wherein the first frequency control word indicates at least one of a ratio of clock frequencies of the first sampling clock and the second sampling clock, and a difference between clock frequencies of the first sampling clock and the second sampling clock.
3. The step of determining a first frequency control word from the first sampling clock and the second sampling clock comprises:
3. The clock transmission method of claim 2, further comprising the step of sampling frequencies of the first sampling clock and the second sampling clock, respectively, to determine the first frequency control word.
4. The step of sampling frequencies of the clock signals of the first sampling clock and the second sampling clock, respectively, and determining the first frequency control word comprises: accumulating clock edges of the first sampling clock; determining a clock edge of the second sampling clock and counting the clock edges of the second sampling clock based on a result of the determination; 4. The clock transmission method of claim 3, further comprising: when the clock edges of the first sampling clock have been accumulated to a predetermined number, determining a count value of the clock edges of the second sampling clock to obtain the first frequency control word.
5. The step of frequency multiplying the first input clock by a first predetermined multiple to obtain the first sampling clock further comprises: frequency multiplying the first input clock by a second predetermined multiple to obtain a first transmit clock for generating the clock signal; 2. The clock transmission method according to claim 1, further comprising the step of: multiplying the frequency of the first transmission clock by a predetermined third multiple to obtain the first sampling clock.
6. The step of deriving a second sampling clock from the second input clock comprises:
6. The method of claim 5, further comprising the step of frequency multiplying the second input clock by a predetermined fourth multiple to obtain the second sampling clock.
7. 7. The clock transmission method according to claim 6, wherein the first multiple, the second multiple, the third multiple, and the fourth multiple are further multiples applied to the clock signal.
8. The step of generating a clock signal from the first input clock and transmitting the clock signal to a receiving end further comprises: filtering the first frequency control word according to a predetermined filtering scheme; A clock transmission method according to any one of claims 1 to 4, further comprising the steps of generating the clock signal having the filtered first frequency control word attached thereto from the first input clock, and transmitting the clock signal to the receiving side.
9. The step of determining a first frequency control word from the first sampling clock and the second sampling clock further comprises: repeatedly determining the first frequency control word from the first sampling clock and the second sampling clock to obtain a plurality of the first frequency control words; 9. The clock transmission method according to claim 8, wherein the step of filtering the first frequency control word using a predetermined filtering scheme includes a step of taking an average value of a plurality of the first frequency control words as the filtered first frequency control word.
10. The step of generating a clock signal from the first input clock and transmitting the clock signal to a receiving end comprises:
2. The clock transmission method of claim 1, comprising the steps of: encoding the first input clock to generate the clock signal whose clock frequency is the clock frequency of the first input clock; including the first frequency control word in the clock signal; and transmitting the clock signal to a receiving side.
11. The clock transmission method includes: inputting a third input clock; deriving a third sampling clock from the third input clock; and determining a second frequency control word from the first sampling clock and the third sampling clock, the second frequency control word being for indicating a clock frequency relationship between the first sampling clock and the third sampling clock; 2. The clock transmission method according to claim 1, wherein the clock signal transmitted to the receiving side is provided with at least the first frequency control word and the second frequency control word.
12. A clock reception method applied to a receiving side, comprising the steps of: receiving a clock signal transmitted from a transmitting side, the clock signal being generated from a first input clock of the transmitting side and having at least a first frequency control word attached thereto for indicating a clock frequency relationship between a first sampling clock and a second sampling clock, the first sampling clock being obtained by frequency multiplying the first input clock, the second sampling clock being determined from the second input clock of the transmitting side according to a predetermined rule, and the ratio of the clock frequency of the first sampling clock to that of the second sampling clock being within a predetermined range; determining the first input clock and the first frequency control word from the clock signal; determining said second input clock from said first input clock and said first frequency control word.
13. said step of determining said second input clock from said first input clock and said first frequency control word further comprising: deriving the first sampling clock from the first input clock and determining a plurality of first phase addresses from the first sampling clock and the first frequency control word, the first phase addresses being for indicating phases of the second sampling clock; 13. The clock receiving method of claim 12, further comprising the steps of: determining the second sampling clock based on the plurality of first phase addresses; and determining the second input clock from the second sampling clock.
14. The step of deriving the first sampling clock from the first input clock and determining a plurality of first phase addresses from the first sampling clock and the first frequency control word comprises: accumulating the first frequency control word at a clock edge of the first sampling clock, and obtaining the plurality of first phase addresses based on each accumulation result of the first frequency control word; determining the second sampling clock based on the plurality of first phase addresses, obtaining a waveform of the second sampling clock based on the plurality of first phase addresses and a predetermined mapping relationship, the mapping relationship being for indicating a mapping relationship between the first phase addresses and a predetermined waveform parameter of the second sampling clock; and determining a clock frequency of the second sampling clock from a waveform of the second sampling clock.
15. 15. The clock receiving method of claim 14, wherein the waveform parameters indicate parameters of a periodic waveform, and the waveform parameters include at least one of a square wave output level value, a sine wave output level value, a triangular wave output level value, a sawtooth wave output level value, and a pulse output level value.
16. When the waveform parameter is the rectangular wave output level value, the step of obtaining the waveform of the second sampling clock based on the plurality of first phase addresses and a predetermined mapping relationship includes:
16. The clock receiving method according to claim 15, further comprising the steps of: determining the plurality of first phase addresses based on the mapping relationship; and obtaining a waveform of the second sampling clock based on a determination result.
17. When the waveform parameter is the sine wave output level value, the step of obtaining a waveform of the second sampling clock based on a predetermined mapping relationship between the plurality of first phase addresses and the plurality of first phase addresses includes: obtaining a plurality of sine wave output level values respectively corresponding to the plurality of first phase addresses based on the plurality of first phase addresses and the mapping relationship; and performing digital-to-analog conversion on the plurality of sine wave output level values to obtain a waveform of the second sampling clock.
18. a second frequency control word is further attached to the clock signal, the second frequency control word indicating a clock frequency relationship between a first sampling clock and a third sampling clock, and the third sampling clock is determined from a third input clock of the transmitting side according to a predetermined rule; The clock receiving method includes: determining the second frequency control word from the clock signal; 16. The method of claim 15, further comprising the step of determining the third input clock from the first input clock and the second frequency control word.
19. A computer-readable storage medium storing a computer program configured to realize the clock transmission method according to any one of claims 1 to 11 or the clock reception method according to any one of claims 12 to 18 when executed by a processor.
Citation Information
Patent Citations
Zero offset clock distribution
EP3599736A1
Method of adjusting timing of parallel light transmitting equipment
JP1993122150A
Clock transmission system of spread spectrum system
JP2011151609A
Communication system, transmitter, and receiver
JP2015177425A
Multiplex transmission system, multiplex transmitter and demultiplex receiver
JP2016039396A
