Signal transmission method, device, equipment, medium and computer program product

By selecting an appropriate clock in signal transmission and adjusting the transmission rate according to the proportion of logical idle characters, the problem of fixed transmission rate in the existing technology is solved, and adaptive adjustment and efficiency improvement of signal transmission are achieved.

CN118381583BActive Publication Date: 2024-09-13SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410834402.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-13
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The existing signal transmission scheme based on DS codec has a fixed transmission rate, which cannot meet the dynamic needs of signal transmission.

Method used

The clock selection circuit is controlled to select a target clock from multiple clocks, and the target clock is determined based on the proportion of logical idle characters within a preset time interval, thereby adjusting the transmission rate of the transmission encoding circuit.

Benefits of technology

The adaptive adjustment of the transmission rate is realized to meet the dynamic needs of signal transmission and improve the flexibility and efficiency of the link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381583B
    Figure CN118381583B
Patent Text Reader

Abstract

The present invention discloses a signal transmission method, device, equipment, medium and computer program product, which relates to the field of electronic communication technology, including: controlling a clock selection circuit to select a clock from multiple clocks; using a transmission coding circuit to encode and send a signal according to the selected clock; clocks of different frequencies correspond to different transmission rates; calculating the proportion of logical idle characters in a preset time interval; determining a target clock according to the proportion of logical idle characters in a preset time interval; controlling the clock selection circuit to select the target clock from multiple clocks, so that the transmission coding circuit encodes and sends a signal at the transmission rate corresponding to the target clock. The method can realize adaptive adjustment of the transmission rate and better meet the needs of signal transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic communication technology, and in particular to a signal transmission method, device, equipment, medium and computer program product. Background Art

[0002] The basic principle of DS (Data Strobe) encoding is that the sender's physical layer sends a strobe signal in addition to the data signal. During reset, the signal levels of the data line and the strobe line are zero. During initialization, the first bit on the data line is opposite to that on the strobe line. After the link is operating normally, the characters sent on the link are divided into three categories. One category is the characters used by higher layers above the protocol link layer, such as data or broadcast characters. One category is the characters (tokens) used for link control by the link layer, such as flow control characters. One category is the logical idle characters that maintain the link activation state. At present, the transmission rate in the signal transmission scheme based on DS encoding and decoding is often fixed, which can no longer meet the needs of signal transmission. Therefore, providing a signal transmission scheme that can achieve adaptive adjustment of the transmission rate and meet the needs of signal transmission has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0003] The object of the present invention is to provide a signal transmission method, apparatus, device, medium and computer program product, which can realize adaptive adjustment of the sending rate and better meet the needs of signal transmission.

[0004] In order to solve the above technical problems, the present invention provides a signal transmission method, comprising:

[0005] Controlling a clock selection circuit to select a clock from a plurality of clocks;

[0006] The signal is encoded and transmitted according to the selected clock using a transmission encoding circuit; clocks of different frequencies correspond to different transmission rates;

[0007] Calculate the proportion of logical idle characters within a preset time interval;

[0008] Determine the target clock according to the proportion of logical idle characters in a preset time interval;

[0009] The clock selection circuit is controlled to select the target clock from a plurality of clocks, so that the transmission encoding circuit encodes and transmits a signal at a transmission rate corresponding to the target clock.

[0010] In some embodiments, the sending rate is positively correlated with the frequency of a clock, and the sending rate is negatively correlated with the proportion of logical idle characters.

[0011] In some embodiments, determining the target clock according to the proportion of logical idle characters in a preset time interval includes:

[0012] Determine whether the proportion of logical idle characters in a preset time interval is within the logical idle character proportion interval corresponding to the current sending rate; wherein, if the logical idle character proportion interval corresponding to the current sending rate includes zero percent or one hundred percent, determine whether the proportion of logical idle characters in the preset time interval is within the interval of the logical idle character proportion interval corresponding to the current sending rate minus zero percent and one hundred percent; each of the sending rates corresponds to a clock and logical idle character proportion interval, and all of the logical idle character proportion intervals are superimposed to form a closed interval from zero percent to one hundred percent;

[0013] If so, determining the target clock to be the clock currently selected by the clock selection circuit;

[0014] If not, the target clock is determined to be a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located.

[0015] In some embodiments, each of the sending rates corresponds to a clock and a logical idle character ratio interval, and the logical idle character ratio intervals corresponding to two adjacent sending rates partially overlap; all of the logical idle character ratio intervals are superimposed to form a closed interval from zero percent to one hundred percent.

[0016] In some embodiments, determining the target clock as a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within a preset time interval is located includes:

[0017] Determine the target clock as the clock corresponding to the sending rate corresponding to the target logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located; the target logical idle character ratio interval is the logical idle character ratio interval corresponding to the sending rate closest to the current sending rate.

[0018] In some embodiments, determining whether the proportion of logical idle characters within a preset time interval is within a logical idle character proportion interval corresponding to the current sending rate includes:

[0019] Calculate the average value of the proportion of logical idle characters within a preset time interval of a preset number of connections;

[0020] Determine whether the mean is within a target logical idle character ratio interval;

[0021] Correspondingly, if the logical idle character ratio interval corresponding to the current sending rate includes zero percent or one hundred percent, it is determined whether the mean is within the interval of the logical idle character ratio interval corresponding to the current sending rate excluding zero percent and one hundred percent.

[0022] In some embodiments, the clock selection circuit includes:

[0023] A logic processing circuit and an OR gate; the number of the logic processing circuits is equal to the number of clocks; the output end of each of the logic processing circuits is connected to the input end of the OR gate, and the output end of the OR gate outputs the target clock; the logic processing circuit comprises a first AND gate, a first D flip-flop, a second D flip-flop and a second AND gate; the input end of the first AND gate inputs a selection signal and a signal output by the second output end of the second D flip-flop in the other logic processing circuits; the output end of the first AND gate is connected to the data input end of the first D flip-flop, the clock input end of the first D flip-flop inputs the corresponding clock, the first output end of the first D flip-flop is connected to the data input end of the second D flip-flop, the clock input end of the second D flip-flop inputs the corresponding clock inversion, the first output end of the second D flip-flop is connected to the input end of the second AND gate, and the input end of the second AND gate also inputs the corresponding clock.

[0024] In some embodiments, controlling the clock selection circuit to select the target clock from a plurality of clocks comprises:

[0025] By controlling the selection signal input to the clock selection circuit, the clock selection circuit is controlled to select the target clock from a plurality of clocks.

[0026] In some embodiments, the transmitting encoding circuit includes:

[0027] A third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a first selector, a second selector and a NOT gate; the data input end of the third D flip-flop inputs the first data, the first data is data sampled at the rising edge of the clock, the clock input end of the third D flip-flop inputs the target clock, the first output end of the third D flip-flop is connected to the first selector and the input end of the NOT gate, and the output end of the NOT gate is connected to the second selector; the data input end of the fourth D flip-flop is connected to the second data, the second data is data sampled at the falling voltage of the clock, the clock input end of the fourth D flip-flop inputs the target clock, the first output end of the fourth D flip-flop is connected to the data input end of the fifth D flip-flop, the clock input end of the fifth D flip-flop inputs the inversion of the target signal, the first output end of the fifth D flip-flop is connected to the first selector and the second selector, the first selector and the second selector also input the target clock, the first selector outputs a data signal, and the second selector outputs a selection signal.

[0028] In some embodiments, it also includes:

[0029] Receive a signal sent by a peer node;

[0030] The signal is decoded by a receiving decoding circuit.

[0031] In some embodiments, the receiving decoding circuit includes:

[0032] An XOR gate, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop, a tenth D flip-flop and a delay output circuit;

[0033] The input end of the XOR gate inputs a data signal and a selection signal, the output end of the XOR gate is connected to the delay output circuit, the signal output by the delay output circuit is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop; the data input end of the sixth D flip-flop inputs a data signal, the first output end of the sixth D flip-flop is connected to the data input end of the seventh D flip-flop, the first output end of the seventh D flip-flop is connected to the data input end of the ninth D flip-flop, and the first output end of the ninth D flip-flop outputs first data, and the first data is data sampled at the rising edge of the clock; the data input end of the eighth D flip-flop inputs the data signal, the first output end of the eighth D flip-flop is connected to the data input end of the tenth D flip-flop, and the output end of the tenth D flip-flop outputs second data, and the second data is data sampled at the falling edge of the clock.

[0034] In some embodiments, the delay output circuit comprises:

[0035] An even number of NOT gates; the NOT gates are connected in series, the input end of the first NOT gate is connected to the output end of the XOR gate, the signal output by the output end of the last NOT gate is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop.

[0036] In some embodiments, it also includes:

[0037] Use the target sending rate to perform handshake operations with the peer node and monitor the link status in real time; when an abnormality occurs in the link, re-perform the handshake operation.

[0038] In some embodiments, performing a handshake operation with a peer node using a target sending rate includes:

[0039] Use the lowest sending rate to perform handshake operations with the other node.

[0040] In some embodiments, it also includes:

[0041] Configure the relationship between the percentage of logical idle characters and the sending rate.

[0042] In some embodiments, the plurality of clocks are obtained by frequency division or a phase-locked loop.

[0043] In order to solve the above technical problems, the present invention further provides a signal transmission device, comprising:

[0044] A first selection module, used for controlling a clock selection circuit to select a clock from a plurality of clocks;

[0045] An encoding module, used for encoding and transmitting a signal according to a selected clock using a transmission encoding circuit;

[0046] A calculation module, used to calculate the proportion of logical idle characters within a preset time interval;

[0047] A determination module, used to determine a target clock according to a proportion of logical idle characters within a preset time interval;

[0048] The second selection module is used to control the clock selection circuit to select the target clock from multiple clocks, so that the transmission encoding circuit encodes and sends the signal at a transmission rate corresponding to the target clock.

[0049] In order to solve the above technical problems, the present invention further provides a signal transmission device, comprising:

[0050] Memory for storing computer programs;

[0051] A processor is used to implement the steps of the signal transmission method as described above when executing the computer program.

[0052] In order to solve the above technical problem, the present invention further provides a medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the signal transmission method described above are implemented.

[0053] In order to solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the signal transmission method described above when executed by a processor.

[0054] The signal transmission method provided by the present invention includes: controlling a clock selection circuit to select a clock from multiple clocks; using a sending coding circuit to encode and send a signal according to the selected clock; clocks of different frequencies correspond to different sending rates; calculating the proportion of logical idle characters in a preset time interval; determining a target clock according to the proportion of logical idle characters in the preset time interval; controlling the clock selection circuit to select the target clock from multiple clocks, so that the sending coding circuit encodes and sends the signal at the sending rate corresponding to the target clock.

[0055] It can be seen that the signal transmission method provided by the present invention sets multiple clocks, selects a clock from multiple clocks through a clock selection circuit, and the sending coding module encodes and sends a signal according to the selected clock. Clocks of different frequencies correspond to different sending rates. According to the selected clock, the sending code can be encoded and sent at a corresponding sending rate. During operation, the clock is automatically adjusted according to the proportion of logical idle characters, thereby adjusting the sending rate of the sending coding circuit, realizing adaptive adjustment of the sending rate, and better meeting the needs of signal transmission.

[0056] The signal transmission device, equipment, medium and computer program product provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 A schematic diagram of full-duplex communication based on DS encoding and decoding provided by an embodiment of the present invention;

[0059] Figure 2 A schematic diagram of a flow chart of a signal transmission method provided by an embodiment of the present invention;

[0060] Figure 3 A schematic diagram of a clock selection circuit provided by an embodiment of the present invention;

[0061] Figure 4 A schematic diagram of clock switching delay provided by an embodiment of the present invention;

[0062] Figure 5 A schematic diagram of a transmission coding circuit provided by an embodiment of the present invention;

[0063] Figure 6A schematic diagram of the relationship between a rate and a proportion of logical idle characters provided by an embodiment of the present invention;

[0064] Figure 7 A schematic diagram of a receiving and decoding circuit provided by an embodiment of the present invention;

[0065] Figure 8 A schematic diagram of a delayed output circuit provided by an embodiment of the present invention;

[0066] Fig. 9 A schematic diagram of a signal transmission device provided by an embodiment of the present invention;

[0067] Fig.10 A schematic diagram of a signal transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The core of the present invention is to provide a signal transmission method, device, equipment, medium and computer program product, which can realize adaptive adjustment of the sending rate to meet the needs of signal transmission.

[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] Signal transmission based on DS codec can refer to Figure 1 The physical layer uses Figure 1 The DS encoding scheme shown aims to embed the clock into the transmitted bit stream and increase the data offset margin of the receiving party. At present, the transmission rate in the signal transmission scheme based on DS encoding and decoding is often fixed, which can no longer meet the needs of signal transmission. To this end, the present invention provides a signal transmission scheme that can realize adaptive adjustment of the transmission rate and meet the needs of signal transmission.

[0071] Please refer to Figure 2 , Figure 2 A schematic diagram of a signal transmission method according to an embodiment of the present invention is provided. Figure 2 As shown, the method includes:

[0072] S101: Control a clock selection circuit to select a clock from multiple clocks;

[0073] refer to Figure 1As shown, the link targeted by this embodiment is bidirectional and can perform full-duplex communication, and the rates in the two directions can be different. This embodiment uses the node at one end of the link (hereinafter referred to as the local node) as the execution subject to explain the signal transmission process. It can be understood that the node at the other end of the link, that is, the opposite node, can also execute the same signal transmission process as the local node. The Data targeted by this embodiment has the first bit "0" when the link is initialized, and the data is sent at double the rate. If the first bit is "1", some designs in the present invention are also applicable with slight modifications.

[0074] This embodiment provides multiple optional clocks, and multiple clocks can be added to the sending function module of the local node. Multiple clocks can be provided by using frequency division or PLL (Phase Locked Loop) technology. The multiple optional clocks provided can be of the same source or different sources. The frequencies of each clock can be in a multiple relationship or in a non-multiple relationship. The number of clocks with different frequencies is the number of optional link rate levels, that is, a clock of one frequency corresponds to a sending rate level. Selecting a clock of a certain frequency selects the corresponding sending rate. The clock is selected from multiple clocks by controlling the clock selection circuit.

[0075] In some embodiments, the sending rate is positively correlated with the frequency of a clock, and the sending rate is negatively correlated with the proportion of logical idle characters.

[0076] Therefore, the smaller the proportion of logical idle characters, the higher the selected transmission rate, so that when the link becomes busy due to an increase in data transmission, the transmission rate can be automatically increased to improve performance. The larger the proportion of logical idle characters, the lower the selected transmission rate, so that when the link transmits less data or is logically idle, the transmission rate can be automatically reduced to reduce power consumption.

[0077] In some embodiments, the clock selection circuit includes:

[0078] A logic processing circuit and an OR gate; the number of the logic processing circuits is equal to the number of clocks; the output end of each of the logic processing circuits is connected to the input end of the OR gate, and the output end of the OR gate outputs the target clock; the logic processing circuit comprises a first AND gate, a first D flip-flop, a second D flip-flop and a second AND gate; the input end of the first AND gate inputs a selection signal and a signal output by the second output end of the second D flip-flop in the other logic processing circuits; the output end of the first AND gate is connected to the data input end of the first D flip-flop, the clock input end of the first D flip-flop inputs the corresponding clock, the first output end of the first D flip-flop is connected to the data input end of the second D flip-flop, the clock input end of the second D flip-flop inputs the corresponding clock inversion, the first output end of the second D flip-flop is connected to the input end of the second AND gate, and the input end of the second AND gate also inputs the corresponding clock.

[0079] refer to Figure 3 As shown, Figure 3 Flip-flop 1 represents the first D flip-flop, flip-flop 2 represents the second D flip-flop, clk0 to clk n Indicates n clocks, clk_sel is the clock selected by the clock selection circuit, sel0 to sel n Represents n selection signals. The number of logic processing circuits is equal to the number of clocks of different frequencies. Each logic processing circuit includes two AND gates, namely the first AND gate and the second AND gate and two D flip-flops, namely the first D flip-flop and the second D flip-flop. The input end of the first AND gate in each logic processing circuit is connected to a selection signal, and the input end of the first AND gate in each logic processing circuit inputs the signal output from the second end of the second D flip-flop in each other logic processing circuit. The first end of the second D flip-flop is the Q end, and the second end is the QN end. The signal output by the QN end is the signal outputted by the Q. The output end of the first AND gate is connected to the data input end of the first D flip-flop, namely Figure 3 As shown in the D terminal, a clock is input to the clock input terminal of the first D flip-flop, and the clock is input to the second AND gate, and the clock is inverted and input to the clock input terminal of the second D flip-flop. The first output terminal of the first D flip-flop is connected to the data input terminal of the second D flip-flop in the logic processing circuit to which it belongs, and the first output terminal of the second D flip-flop is connected to the input terminal of the second AND gate. The output terminal of the second AND gate in each logic processing circuit is connected to the input terminal of the OR gate, and the output terminal of the OR gate is the selected clock.

[0080] refer to Figure 4 As shown, with the above-mentioned clock selection circuit, when the clock is switched by selecting a signal, the switching is not completed immediately, but delayed for a certain period of time, waiting for the two conditions of clock shutoff before switching and clock on after switching to be met at the same time to complete the switching. The bit stream on the link is continuous before and after the clock switching occurs.

[0081] S102: Encode and send a signal according to the selected clock using a transmission coding circuit; clocks of different frequencies correspond to different transmission rates;

[0082] On the basis of selecting a clock from a plurality of clocks, the transmission encoding circuit encodes and transmits the data signal and the selection signal based on the selected clock. Clocks of different frequencies correspond to different transmission rates.

[0083] In some embodiments, the transmitting encoding circuit includes:

[0084] A third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a first selector, a second selector and a NOT gate; the data input end of the third D flip-flop inputs the first data, the first data is data sampled at the rising edge of the clock, the clock input end of the third D flip-flop inputs the target clock, the first output end of the third D flip-flop is connected to the first selector and the input end of the NOT gate, and the output end of the NOT gate is connected to the second selector; the data input end of the fourth D flip-flop is connected to the second data, the second data is data sampled at the falling voltage of the clock, the clock input end of the fourth D flip-flop inputs the target clock, the first output end of the fourth D flip-flop is connected to the data input end of the fifth D flip-flop, the clock input end of the fifth D flip-flop inputs the inversion of the target signal, the first output end of the fifth D flip-flop is connected to the first selector and the second selector, the first selector and the second selector also input the target clock, the first selector outputs a data signal, and the second selector outputs a selection signal.

[0085] The double rate coding scheme provided in this embodiment is as follows: Figure 5 As shown, Figure 5In the figure, trigger 3 represents the third D flip-flop, trigger 4 represents the fourth D flip-flop, and trigger 5 represents the fifth D flip-flop. Data is divided into Dp and Dn according to the rising edge or falling edge sampling of the clock. Dp represents the data sampled on the rising edge, and Dn represents the data sampled on the falling edge. Both Dp and Dn are signals synchronized with the rising edge in the clk_sel clock domain, and the corresponding selection signals are Sp and Sn. Dp is input to the data input end of the third D flip-flop, and the output of the first output end of the third D flip-flop is obtained after passing through the NOT gate. Dn is input to the data input end of the fourth D flip-flop, and the first output end of the fourth D flip-flop is connected to the data input end of the fifth D flip-flop, and the signal outputted from the first output end of the fifth D flip-flop is Sn. After the third D flip-flop and the fourth D flip-flop are synchronously sampled on the rising edge, Dn is sampled again using the fifth D flip-flop on the falling edge of the clock, and the outputs of the third D flip-flop and the fifth D flip-flop are selected using a selector, and the selection end is the clock clk_sel. When the clock clk_sel is at a high level and a low level, the outputs of the third D flip-flop and the fifth D flip-flop are respectively selected as inputs.

[0086] S103: Calculate the proportion of logical idle characters within a preset time interval;

[0087] S104: determining a target clock according to a proportion of logical idle characters within a preset time interval;

[0088] S105: Control the clock selection circuit to select the target clock from a plurality of clocks, so that the transmission encoding circuit encodes and transmits the signal at a transmission rate corresponding to the target clock.

[0089] During the link operation, the sending function module of the local node calculates the proportion of logical idle characters in the preset time interval. The proportion of logical idle characters refers to the proportion of logical idle characters in all characters sent. According to the calculated proportion of logical idle characters in the preset time interval, the target clock is determined, and then the clock selection circuit is controlled to select the target clock from multiple clocks, so that the sending encoding circuit encodes and sends data signals and selection signals based on the target clock. Different clock frequencies have different sending rates, so the switching of the sending rate is achieved by switching the clock.

[0090] In some embodiments, determining the target clock according to the proportion of logical idle characters in a preset time interval includes:

[0091] Determine whether the proportion of logical idle characters in a preset time interval is within the logical idle character proportion interval corresponding to the current sending rate; wherein, if the logical idle character proportion interval corresponding to the current sending rate includes zero percent or one hundred percent, determine whether the proportion of logical idle characters in the preset time interval is within the interval of the logical idle character proportion interval corresponding to the current sending rate minus zero percent and one hundred percent; each of the sending rates corresponds to a clock and logical idle character proportion interval, and all of the logical idle character proportion intervals are superimposed to form a closed interval from zero percent to one hundred percent;

[0092] If so, determining the target clock to be the clock currently selected by the clock selection circuit;

[0093] If not, the target clock is determined to be a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located.

[0094] In this embodiment, each transmission rate corresponds to a logical idle character ratio interval, and all the logical idle character ratio intervals are superimposed to form a closed interval from 0% to 100%. If the ratio of logical idle characters in the preset time interval is within the logical idle character ratio interval corresponding to the transmission rate corresponding to the currently selected clock (excluding 0% and 100%), it indicates that the link is in a stable transmission state. At this time, the transmission rate is not adjusted, and the target clock is the clock currently selected by the clock selection circuit, that is, the currently selected clock remains unchanged. Otherwise, the target clock is determined to be the clock corresponding to the transmission rate corresponding to the logical idle character ratio interval in which the ratio of logical idle characters in the preset time interval is located.

[0095] In some embodiments, each of the sending rates corresponds to a clock and a logical idle character ratio interval, and the logical idle character ratio intervals corresponding to two adjacent sending rates partially overlap; all of the logical idle character ratio intervals are superimposed to form a closed interval from zero percent to one hundred percent.

[0096] In this embodiment, each sending rate corresponds to a logical idle character ratio interval, and the logical idle character ratio intervals corresponding to two adjacent sending rates partially overlap, and the logical idle character ratio intervals corresponding to all sending rates are superimposed to form a closed interval from zero percent to one hundred percent.

[0097] Exemplary, reference Figure 6As shown, there are four clocks, namely, a 5MHz clock, a 25MHz clock, a 50MHz clock and a 100MHz clock. The transmission rate corresponding to the 5MHz clock is V0, the transmission rate corresponding to the 25MHz clock is V1, the transmission rate corresponding to the 50MHz clock is V2, and the transmission rate corresponding to the 100MHz clock is V3. V0 is the lowest transmission rate, and V3 is the highest transmission rate. The proportion of logical idle characters is divided into 5 intervals from 100% to 0%. The logical idle character proportion interval corresponding to V0 is (60%, 100%], the logical idle character proportion interval corresponding to V1 is (40%, 80%), the logical idle character proportion interval corresponding to V2 is (20%, 60%), and the logical idle character proportion interval corresponding to V3 is [0%, 40%).

[0098] In some embodiments, determining the target clock as a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within a preset time interval is located includes:

[0099] Determine the target clock as the clock corresponding to the sending rate corresponding to the target logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located; the target logical idle character ratio interval is the logical idle character ratio interval corresponding to the sending rate closest to the current sending rate.

[0100] Exemplary, reference Figure 6 As shown, Figure 6 The horizontal axis between the solid circle and the hollow circle in the same row indicates the logical idle character ratio range in which the rate can be stable, and the solid circle is marked with the actual transmission rate used by the link at this time. Rate switching is divided into upward rate switching and downward rate switching. When switching to increase the rate upward, select the rate pointed to by the corresponding left-pointing arrow line according to the interval in which the logical idle character ratio is located. When switching to reduce the rate downward, select the rate pointed to by the right-pointing arrow line according to the interval in which the logical idle character ratio is located.

[0101] For example, the current rate is V1, and the proportion of logical idle characters is 30%, which is in the intervals of (20%, 60%) and [0%, 40%). At this time, since 30% is not in the logical idle character proportion interval corresponding to V1 (40%, 80%), the rate needs to be increased, and the target clock is the clock corresponding to V2, that is, the clock corresponding to 50 MHz.

[0102] In some embodiments, determining whether the proportion of logical idle characters within a preset time interval is within a logical idle character proportion interval corresponding to the current sending rate includes:

[0103] Calculate the average value of the proportion of logical idle characters within a preset time interval of a preset number of connections;

[0104] Determine whether the mean is within a target logical idle character ratio interval;

[0105] Correspondingly, if the logical idle character ratio interval corresponding to the current sending rate includes zero percent or one hundred percent, it is determined whether the mean is within the interval of the logical idle character ratio interval corresponding to the current sending rate excluding zero percent and one hundred percent.

[0106] In order to avoid the problem of frequent switching of the transmission rate in a short period of time, the present embodiment calculates the average value of the proportion of logical idle characters in a preset time interval of a preset number of connections, and determines whether the average value is within the target logical idle character proportion interval. If the logical idle character proportion interval corresponding to the current transmission rate includes zero percent or one hundred percent, it is determined whether the average value is within the interval of the logical idle character proportion interval corresponding to the current transmission rate minus zero percent and one hundred percent.

[0107] For example, the average of the proportion of logical idle characters in the preset time interval of the three connections is calculated, and it is determined whether the average is within the target logical idle character proportion interval. If the logical idle character proportion interval corresponding to the current transmission rate includes zero percent or one hundred percent, it is determined whether the average is within the interval of the logical idle character proportion interval corresponding to the current transmission rate minus zero percent and one hundred percent.

[0108] The values ​​of the preset number and the preset time interval can be set differently according to actual conditions.

[0109] In some embodiments, controlling the clock selection circuit to select the target clock from a plurality of clocks comprises:

[0110] By controlling the selection signal input to the clock selection circuit, the clock selection circuit is controlled to select the target clock from a plurality of clocks.

[0111] Corresponding to the circuit structure of the clock selection circuit in the above-mentioned embodiment, this embodiment controls the clock selection circuit to select a target clock from a plurality of clocks by controlling a selection signal input into the clock selection circuit.

[0112] In some embodiments, it also includes:

[0113] Receive data signals and selection signals sent by the opposite node;

[0114] The data signal and the selection signal are decoded by a receiving decoding circuit.

[0115] In addition to sending data signals and strobe signals to the opposite node, the local node also receives data signals and strobe signals sent by the opposite node, and decodes the data signals and strobe signals sent by the opposite node through a receiving decoding circuit.

[0116] In some embodiments, the receiving decoding circuit includes:

[0117] An XOR gate, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop, a tenth D flip-flop and a delay output circuit;

[0118] The input end of the XOR gate inputs a data signal and a selection signal, the output end of the XOR gate is connected to the delay output circuit, the signal output by the delay output circuit is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop; the data input end of the sixth D flip-flop inputs a data signal, the first output end of the sixth D flip-flop is connected to the data input end of the seventh D flip-flop, the first output end of the seventh D flip-flop is connected to the data input end of the ninth D flip-flop, and the first output end of the ninth D flip-flop outputs first data, and the first data is data sampled at the rising edge of the clock; the data input end of the eighth D flip-flop inputs the data signal, the first output end of the eighth D flip-flop is connected to the data input end of the tenth D flip-flop, and the output end of the tenth D flip-flop outputs second data, and the second data is data sampled at the falling edge of the clock.

[0119] The DS receiving and decoding circuit provided in this embodiment is as follows: Figure 7 As shown, Figure 7 In the middle, trigger 6 represents the sixth D trigger, trigger 7 represents the seventh D trigger, trigger 8 represents the eighth D trigger, trigger 9 represents the ninth D trigger, and trigger 10 represents the tenth D trigger. After the receiving decoding circuit XORs the data signal with the selection signal, the XORed signal is delayed for a certain period of time to obtain a clock for sampling data. Among them, the delay value of the delayed output circuit is less than half of the cycle time corresponding to the maximum clock frequency of the received signal (assuming a duty cycle of 50%), and is greater than the circuit signal conversion time. Figure 7 All D flip-flops in the system use the delayed signal as the clock. The data signal Data is first stored by the sixth D flip-flop synchronized by the rising edge to obtain the Data_p signal, and then the seventh and eighth D flip-flops use the falling edge to sample Data_p and the original data signal Data respectively, thus realizing data clock recovery.

[0120] refer to Figure 8As shown, in some embodiments, the delayed output circuit includes: an even number of NOT gates; the NOT gates are connected in series, the input end of the first NOT gate is connected to the output end of the XOR gate, the signal output by the output end of the terminal NOT gate is input into the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delayed output circuit is inverted and input into the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop.

[0121] In this embodiment, a NOT gate is used to delay the output of the signal output by the XOR gate. The number of NOT gates is an even number, and each NOT gate is connected in series. The required delay time is accumulated by combining multiple NOT gates. For example, in a 14-nanometer integrated circuit, the typical delay of a single NOT gate is between 10 and 20 picoseconds. The number of NOT gates is set according to the required delay time, and the required delay time is achieved by connecting multiple NOT gates in series. Figure 8 Where D^S represents the exclusive OR of the data signal and the selection signal, and CLK is the clock output by the delay output circuit.

[0122] In some embodiments, it also includes:

[0123] Use the target sending rate to perform handshake operations with the peer node and monitor the link status in real time; when an abnormality occurs in the link, re-perform the handshake operation.

[0124] The two communicating parties need to exchange some link control information to realize the logical connection, that is, the link needs to perform a handshake operation after the physical connection, and generally adopts a unique rate negotiated by both parties. After the link handshake is successful, it enters the normal operation state, and the data sending function can be used to send data. When the link is in the running state, both parties must monitor the link status. If an error occurs on either side or the link is physically disconnected, the link is required to re-handshake to enter the running state again.

[0125] In some embodiments, performing a handshake operation with a peer node using a target sending rate includes:

[0126] Use the lowest sending rate to perform handshake operations with the other node.

[0127] In this embodiment, when both parties perform a handshake operation, the handshake operation is performed using the negotiated lowest sending rate.

[0128] In some embodiments, it also includes:

[0129] Configuring the correspondence between the proportion of logical idle characters and the transmission rate The correspondence between the proportion of logical idle characters and the transmission rate can be configured differently according to actual needs, and the present invention does not limit this.

[0130] In summary, the signal transmission method provided by the present invention sets multiple clocks, selects a clock from multiple clocks through a clock selection circuit, and the sending coding module encodes and sends a signal according to the selected clock. Clocks of different frequencies correspond to different sending rates. According to the selected clock, the sending code can be encoded and sent at a corresponding sending rate. During operation, the clock is automatically adjusted according to the proportion of logical idle characters, thereby adjusting the sending rate of the sending coding circuit, realizing adaptive adjustment of the sending rate, and better meeting the needs of signal transmission.

[0131] The present invention also provides a signal transmission device, and the device described below can be referred to in correspondence with the method described above. Fig. 9 , Fig. 9 A schematic diagram of a signal transmission device provided by an embodiment of the present invention, combined with Fig. 9 As shown, the device comprises:

[0132] A first selection module 10, used to control a clock selection circuit to select a clock from a plurality of clocks;

[0133] The encoding module 20 is used to encode and transmit the signal according to the selected clock using the transmission encoding circuit;

[0134] A calculation module 30, used to calculate the proportion of logical idle characters within a preset time interval;

[0135] A determination module 40, configured to determine a target clock according to a proportion of logical idle characters within a preset time interval;

[0136] The second selection module 50 is used to control the clock selection circuit to select the target clock from multiple clocks, so that the transmission encoding circuit encodes and sends the signal at a transmission rate corresponding to the target clock.

[0137] In some embodiments, the sending rate is positively correlated with the frequency of a clock, and the sending rate is negatively correlated with the proportion of logical idle characters.

[0138] In some embodiments, the determination module 40 includes:

[0139] A judging unit, used to judge whether the proportion of logical idle characters in a preset time interval is within a logical idle character proportion interval corresponding to a current sending rate; wherein, if the logical idle character proportion interval corresponding to the current sending rate includes zero percent or one hundred percent, then judging whether the proportion of logical idle characters in the preset time interval is within an interval of the logical idle character proportion interval corresponding to the current sending rate minus zero percent and one hundred percent; each of the sending rates corresponds to a clock and logical idle character proportion interval, and all of the logical idle character proportion intervals are superimposed to form a closed interval from zero percent to one hundred percent;

[0140] a first determining unit, configured to determine that the target clock is the clock currently selected by the clock selection circuit;

[0141] The second determining unit is configured to, if not, determine the target clock to be a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within a preset time interval is located.

[0142] In some embodiments, each of the sending rates corresponds to a clock and a logical idle character ratio interval, and the logical idle character ratio intervals corresponding to two adjacent sending rates partially overlap; all of the logical idle character ratio intervals are superimposed to form a closed interval from zero percent to one hundred percent.

[0143] In some embodiments, the second determining unit is specifically configured to:

[0144] Determine the target clock as the clock corresponding to the sending rate corresponding to the target logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located; the target logical idle character ratio interval is the logical idle character ratio interval corresponding to the sending rate closest to the current sending rate.

[0145] In some embodiments, the determining unit includes:

[0146] A calculation subunit, used to calculate an average value of the proportion of logical idle characters within a preset time interval of a preset number of connections;

[0147] A judging subunit, used to judge whether the mean is within a target logical idle character ratio interval;

[0148] Correspondingly, if the logical idle character ratio interval corresponding to the current sending rate includes zero percent or one hundred percent, the judging subunit judges whether the mean is within the interval of the logical idle character ratio interval corresponding to the current sending rate excluding zero percent and one hundred percent.

[0149] In some embodiments, the clock selection circuit includes:

[0150] A logic processing circuit and an OR gate; the number of the logic processing circuits is equal to the number of clocks; the output end of each of the logic processing circuits is connected to the input end of the OR gate, and the output end of the OR gate outputs the target clock; the logic processing circuit comprises a first AND gate, a first D flip-flop, a second D flip-flop and a second AND gate; the input end of the first AND gate inputs a selection signal and a signal output by the second output end of the second D flip-flop in the other logic processing circuits; the output end of the first AND gate is connected to the data input end of the first D flip-flop, the clock input end of the first D flip-flop inputs the corresponding clock, the first output end of the first D flip-flop is connected to the data input end of the second D flip-flop, the clock input end of the second D flip-flop inputs the corresponding clock inversion, the first output end of the second D flip-flop is connected to the input end of the second AND gate, and the input end of the second AND gate also inputs the corresponding clock.

[0151] In some embodiments, the second selection module is specifically configured to:

[0152] By controlling the selection signal input to the clock selection circuit, the clock selection circuit is controlled to select the target clock from a plurality of clocks.

[0153] In some embodiments, the transmitting encoding circuit includes:

[0154] A third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a first selector, a second selector and a NOT gate; the data input end of the third D flip-flop inputs the first data, the first data is data sampled at the rising edge of the clock, the clock input end of the third D flip-flop inputs the target clock, the first output end of the third D flip-flop is connected to the first selector and the input end of the NOT gate, and the output end of the NOT gate is connected to the second selector; the data input end of the fourth D flip-flop is connected to the second data, the second data is data sampled at the falling voltage of the clock, the clock input end of the fourth D flip-flop inputs the target clock, the first output end of the fourth D flip-flop is connected to the data input end of the fifth D flip-flop, the clock input end of the fifth D flip-flop inputs the inversion of the target signal, the first output end of the fifth D flip-flop is connected to the first selector and the second selector, the first selector and the second selector also input the target clock, the first selector outputs a data signal, and the second selector outputs a selection signal.

[0155] In some embodiments, it also includes:

[0156] A receiving module, used for receiving a signal sent by a peer node;

[0157] The decoding module is used to decode the signal by receiving a decoding circuit.

[0158] In some embodiments, the receiving decoding circuit includes:

[0159] An XOR gate, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop, a tenth D flip-flop and a delay output circuit;

[0160] The input end of the XOR gate inputs a data signal and a selection signal, the output end of the XOR gate is connected to the delay output circuit, the signal output by the delay output circuit is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop; the data input end of the sixth D flip-flop inputs a data signal, the first output end of the sixth D flip-flop is connected to the data input end of the seventh D flip-flop, the first output end of the seventh D flip-flop is connected to the data input end of the ninth D flip-flop, and the first output end of the ninth D flip-flop outputs first data, and the first data is data sampled at the rising edge of the clock; the data input end of the eighth D flip-flop inputs the data signal, the first output end of the eighth D flip-flop is connected to the data input end of the tenth D flip-flop, and the output end of the tenth D flip-flop outputs second data, and the second data is data sampled at the falling edge of the clock.

[0161] In some embodiments, the delay output circuit comprises:

[0162] An even number of NOT gates; the NOT gates are connected in series, the input end of the first NOT gate is connected to the output end of the XOR gate, the signal output by the output end of the last NOT gate is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop.

[0163] In some embodiments, it also includes:

[0164] The handshake module is used to perform handshake operations with the peer node at the target sending rate and monitor the link status in real time; when an abnormality occurs in the link, the handshake operation is performed again.

[0165] In some embodiments, the handshake module is specifically used to:

[0166] Use the lowest sending rate to perform handshake operations with the other node.

[0167] In some embodiments, it also includes:

[0168] The configuration module is used to configure the corresponding relationship between the proportion of logical idle characters and the sending rate.

[0169] In some embodiments, the plurality of clocks are obtained by frequency division or a phase-locked loop.

[0170] The signal transmission device provided by the present invention sets multiple clocks, selects a clock from the multiple clocks through a clock selection circuit, and the sending coding module encodes and sends a signal according to the selected clock. Clocks of different frequencies correspond to different sending rates. According to the selected clock, the sending code can be encoded and sent at a corresponding sending rate. During operation, the clock is automatically adjusted according to the proportion of logical idle characters, thereby adjusting the sending rate of the sending coding circuit, realizing adaptive adjustment of the sending rate, and better meeting the needs of signal transmission.

[0171] The present invention also provides a signal transmission device, referring to Fig.10 As shown, the device includes a memory 1 and a processor 2 .

[0172] Memory 1, used for storing computer programs;

[0173] Processor 2 is used to execute the computer program to implement the following steps:

[0174] Control a clock selection circuit to select a clock from multiple clocks; use a sending coding circuit to encode and send a signal according to the selected clock; clocks of different frequencies correspond to different sending rates; calculate the proportion of logical idle characters in a preset time interval; determine a target clock according to the proportion of logical idle characters in a preset time interval; control the clock selection circuit to select the target clock from multiple clocks, so that the sending coding circuit encodes and sends a signal at the sending rate corresponding to the target clock.

[0175] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0176] The present invention also provides a medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0177] Control a clock selection circuit to select a clock from multiple clocks; use a sending coding circuit to encode and send a signal according to the selected clock; clocks of different frequencies correspond to different sending rates; calculate the proportion of logical idle characters in a preset time interval; determine a target clock according to the proportion of logical idle characters in a preset time interval; control the clock selection circuit to select the target clock from multiple clocks, so that the sending coding circuit encodes and sends a signal at the sending rate corresponding to the target clock.

[0178] The medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0179] For an introduction to the medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0180] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the following steps when executed by a processor:

[0181] Control a clock selection circuit to select a clock from multiple clocks; use a sending coding circuit to encode and send a signal according to the selected clock; clocks of different frequencies correspond to different sending rates; calculate the proportion of logical idle characters in a preset time interval; determine a target clock according to the proportion of logical idle characters in a preset time interval; control the clock selection circuit to select the target clock from multiple clocks, so that the sending coding circuit encodes and sends a signal at the sending rate corresponding to the target clock.

[0182] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the devices, equipment and media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0183] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0184] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0185] The signal transmission method, device, equipment, medium and computer program product provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A signal transmission method, characterized in that: include: Controlling a clock selection circuit to select a clock from a plurality of clocks; Encoding and transmitting a signal according to the selected clock using a transmission encoding circuit; Clocks of different frequencies correspond to different transmission rates; the encoding is data signal and selection signal encoding; Calculate the proportion of logical idle characters within a preset time interval; Determine the target clock according to the proportion of logical idle characters in a preset time interval; Controlling the clock selection circuit to select the target clock from a plurality of clocks, so that the transmission encoding circuit encodes and transmits a signal at a transmission rate corresponding to the target clock; Determining the target clock according to the proportion of logical idle characters in a preset time interval includes: Determine whether the proportion of logical idle characters in a preset time interval is within the logical idle character proportion interval corresponding to the current sending rate; wherein, if the logical idle character proportion interval corresponding to the current sending rate includes zero percent or one hundred percent, determine whether the proportion of logical idle characters in the preset time interval is within the interval of the logical idle character proportion interval corresponding to the current sending rate minus zero percent and one hundred percent; each of the sending rates corresponds to a clock and logical idle character proportion interval, and all of the logical idle character proportion intervals are superimposed to form a closed interval from zero percent to one hundred percent; If so, determining the target clock to be the clock currently selected by the clock selection circuit; If not, the target clock is determined to be a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located.

2. The signal transmission method according to claim 1, characterized in that: The sending rate is positively correlated with the frequency of the clock, and the sending rate is negatively correlated with the proportion of logical idle characters.

3. The signal transmission method according to claim 1, characterized in that: Each of the sending rates corresponds to a clock and a logical idle character ratio interval, and the logical idle character ratio intervals corresponding to two adjacent sending rates partially overlap; all the logical idle character ratio intervals are superimposed to form a closed interval from zero percent to one hundred percent.

4. The signal transmission method according to claim 3, characterized in that: Determining the target clock as a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within a preset time interval is located includes: Determine the target clock as the clock corresponding to the sending rate corresponding to the target logical idle character ratio interval in which the ratio of logical idle characters within the preset time interval is located; the target logical idle character ratio interval is the logical idle character ratio interval corresponding to the sending rate closest to the current sending rate.

5. The signal transmission method according to claim 1, characterized in that: Determining whether the proportion of logical idle characters within a preset time interval is within a logical idle character proportion interval corresponding to the current sending rate includes: Calculate the average value of the proportion of logical idle characters within a preset time interval of a preset number of connections; Determine whether the mean is within a target logical idle character ratio interval; Correspondingly, if the logical idle character ratio interval corresponding to the current sending rate includes zero percent or one hundred percent, it is determined whether the mean is within the interval of the logical idle character ratio interval corresponding to the current sending rate excluding zero percent and one hundred percent.

6. The signal transmission method according to claim 1, characterized in that: The clock selection circuit comprises: A logic processing circuit and an OR gate; the number of the logic processing circuits is equal to the number of clocks; the output end of each of the logic processing circuits is connected to the input end of the OR gate, and the output end of the OR gate outputs the target clock; the logic processing circuit comprises a first AND gate, a first D flip-flop, a second D flip-flop and a second AND gate; the input end of the first AND gate inputs a selection signal and a signal output by the second output end of the second D flip-flop in the other logic processing circuits; the output end of the first AND gate is connected to the data input end of the first D flip-flop, the clock input end of the first D flip-flop inputs the corresponding clock, the first output end of the first D flip-flop is connected to the data input end of the second D flip-flop, the clock input end of the second D flip-flop inputs the corresponding clock inversion, the first output end of the second D flip-flop is connected to the input end of the second AND gate, and the input end of the second AND gate also inputs the corresponding clock.

7. The signal transmission method according to claim 6, characterized in that: Controlling the clock selection circuit to select the target clock from a plurality of clocks comprises: By controlling the selection signal input to the clock selection circuit, the clock selection circuit is controlled to select the target clock from a plurality of clocks.

8. The signal transmission method according to claim 1, characterized in that: The sending coding circuit comprises: A third D flip-flop, a fourth D flip-flop, a fifth D flip-flop, a first selector, a second selector and a NOT gate; the data input end of the third D flip-flop inputs the first data, the first data is data sampled at the rising edge of the clock, the clock input end of the third D flip-flop inputs the target clock, the first output end of the third D flip-flop is connected to the first selector and the input end of the NOT gate, and the output end of the NOT gate is connected to the second selector; the data input end of the fourth D flip-flop inputs the second data, the second data is data sampled at the falling edge of the clock, the clock input end of the fourth D flip-flop inputs the target clock, the first output end of the fourth D flip-flop is connected to the data input end of the fifth D flip-flop, the clock input end of the fifth D flip-flop inputs the inversion of the target clock, the first output end of the fifth D flip-flop is connected to the first selector and the second selector, the first selector and the second selector also input the target clock, the first selector outputs a data signal, and the second selector outputs a selection signal.

9. The signal transmission method according to claim 1, characterized in that: Also includes: Receive a signal sent by a peer node; The signal is decoded by a receiving decoding circuit.

10. The signal transmission method according to claim 9, characterized in that: The receiving decoding circuit comprises: An XOR gate, a sixth D flip-flop, a seventh D flip-flop, an eighth D flip-flop, a ninth D flip-flop, a tenth D flip-flop and a delay output circuit; The input end of the XOR gate inputs a data signal and a selection signal, the output end of the XOR gate is connected to the delay output circuit, the signal output by the delay output circuit is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop; the data input end of the sixth D flip-flop inputs a data signal, the first output end of the sixth D flip-flop is connected to the data input end of the seventh D flip-flop, the first output end of the seventh D flip-flop is connected to the data input end of the ninth D flip-flop, and the first output end of the ninth flip-flop outputs first data, and the first data is data sampled at the rising edge of the clock; the data input end of the eighth D flip-flop inputs the data signal, the first output end of the eighth D flip-flop is connected to the data input end of the tenth D flip-flop, and the output end of the tenth D flip-flop outputs second data, and the second data is data sampled at the falling edge of the clock.

11. The signal transmission method according to claim 10, characterized in that: The delay output circuit comprises: An even number of NOT gates; the NOT gates are connected in series, the input end of the first NOT gate is connected to the output end of the XOR gate, the signal output by the output end of the last NOT gate is input to the clock input end of the sixth D flip-flop, the clock input end of the ninth D flip-flop, and the clock input end of the tenth D flip-flop, and the signal output by the delay output circuit is inverted and input to the clock input end of the seventh D flip-flop and the clock input end of the eighth D flip-flop.

12. The signal transmission method according to claim 1, characterized in that: Also includes: Use the target sending rate to perform handshake operations with the peer node and monitor the link status in real time; when an abnormality occurs in the link, re-perform the handshake operation.

13. The signal transmission method according to claim 12, characterized in that: The handshake operation with the peer node using the target sending rate includes: Use the lowest sending rate to perform handshake operations with the other node.

14. The signal transmission method according to claim 2, characterized in that: Also includes: Configure the relationship between the percentage of logical idle characters and the sending rate.

15. The signal transmission method according to claim 1, characterized in that: The multiple clocks are obtained through frequency division or phase-locked loop.

16. A signal transmission device, characterized in that: include: A first selection module, used for controlling a clock selection circuit to select a clock from a plurality of clocks; The encoding module is used to encode and transmit the signal according to the selected clock using the transmission encoding circuit; clocks of different frequencies correspond to different transmission rates; The encoding is a data signal and a strobe signal encoding; A calculation module, used to calculate the proportion of logical idle characters within a preset time interval; A determination module, used to determine a target clock according to a proportion of logical idle characters within a preset time interval; A second selection module, used for controlling the clock selection circuit to select the target clock from a plurality of clocks, so that the transmission encoding circuit encodes and transmits a signal at a transmission rate corresponding to the target clock; The modules are determined to include: A judging unit, used to judge whether the proportion of logical idle characters in a preset time interval is within a logical idle character proportion interval corresponding to a current sending rate; wherein, if the logical idle character proportion interval corresponding to the current sending rate includes zero percent or one hundred percent, then judging whether the proportion of logical idle characters in the preset time interval is within an interval of the logical idle character proportion interval corresponding to the current sending rate minus zero percent and one hundred percent; each of the sending rates corresponds to a clock and logical idle character proportion interval, and all the logical idle character proportion intervals are superimposed to form a closed interval from zero percent to one hundred percent; a first determining unit, configured to determine that the target clock is the clock currently selected by the clock selection circuit; The second determining unit is configured to, if not, determine the target clock to be a clock corresponding to a sending rate corresponding to a logical idle character ratio interval in which the ratio of logical idle characters within a preset time interval is located.

17. A signal transmission device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the signal transmission method according to any one of claims 1 to 15 when executing the computer program.

18. A medium, characterized in that The medium stores a computer program, and when the computer program is executed by a processor, the steps of the signal transmission method according to any one of claims 1 to 15 are implemented.

19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the signal transmission method according to any one of claims 1 to 15 are implemented.