Disclosure of Invention
In view of the above, embodiments of the present invention provide a data transmission method, which at least partially solves the problems in the prior art.
A method of data transmission, said data comprising a user data signal, an error detection signal and an invalid data signal; the specific method comprises the following steps:
setting a trigger time point of the error detection signal in the transmission time of the invalid data in the transmission process of the data, and replacing part of the invalid data signal by a detection result signal generated by the error detection signal;
wherein: the user data signals are transmitted in a periodic repetition mode in the transmission process, and each transmission period is separated by an invalid data signal;
the error detection signal is used for detecting whether an error occurs in the user data signal in the transmission process and generating the error detection result signal;
the trigger period of the error detection signal is equal to the sum of the periods of the user data signal and the invalid data signal.
Further, the transmission mode of the user data signal, the error detection result signal and the invalid data signal during transmission at the transmission link layer is sequential pipeline transmission.
Further, the user data signal includes a plurality of groups of packetized data signals with consistent transmission time length.
Further, a transmission duration of a single one of the packetized data signals is equal to a single clock period of a transmission link layer of the data.
Further, the error detection result signal is consistent with the transmission duration of the single sub-packet data signal.
By adopting the technical scheme, the invention can bring the following beneficial effects:
the invention moves the starting time of the error detection code to the transmission time of the original invalid code, so that the data delay is not additionally increased in the process of carrying out data transmission on the data of a user at a link layer, the CRC behind the data transmission signal is delayed by a few clocks, the data can be recovered at the receiving end of the data transmission signal in advance by at least 2 clock periods, the data transmission delay is reduced, the detection result of the data integrity is obtained, and the real-time performance of the time division multiplexing system is greatly improved.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to or other than one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than the number, shape and size of the components in practical implementation, and the type, quantity and proportion of the components in practical implementation can be changed freely, and the layout of the components can be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
When the design code of the user is large, the design code of the user needs to be divided, and the divided code is placed in a plurality of FPGAs for operation. At this time, the division boundary needs to be synchronously processed by using a time division multiplexing technology, because one code is divided into a plurality of parts and is operated in a plurality of FPGAs, the real-time requirement on time division multiplexing transmission is higher, the data transmission delay cannot be too large, otherwise, the data transmission performance is influenced.
And in order to ensure the correctness of data transmission, a data integrity detection method is added in the transmission process. Because the clock of the link layer is used to transmit the user data, the traditional detection method is to add error detection codes in the transmission process and directly add the error detection codes to the link layer data. The timing diagram is shown in fig. 1.
Because the calculation of the error detection code needs time and the data transmission can be carried out only after the calculation of the error detection code is finished, the user data can be transmitted only by delaying for 2 clock cycles at least, which directly increases the delay of the time division multiplexing system and reduces the performance of the system.
The embodiment of the invention provides a method for detecting data integrity, wherein the data comprises a user data signal, an error detection signal and an invalid data signal;
in this embodiment, in the transmission process of the data, a trigger time point of the error detection signal is set in the transmission time of the invalid data, and a detection result signal generated by the error detection signal is used to replace part of the invalid data signal;
wherein: the user data signals are transmitted in a periodic repetition mode in the transmission process, and each transmission period is separated by an invalid data signal;
the error detection signal is used for detecting whether an error occurs in the user data signal in the transmission process and generating the error detection result signal;
the trigger period of the error detection signal is equal to the sum of the periods of the user data signal and the invalid data signal. The timing diagram is shown in fig. 2.
In this embodiment, when the transmission time of the error detection signal is set to 1-2 clock cycles after the transmission time of the user data signal, which is the time for transmitting the invalid data signal in the link layer, the system will operate the error detection within the transmission time of the invalid data signal and no longer occupy the transmission time of the user data signal, as shown in "receiving end user data" in fig. 2, the receiving end can resume the receiving of the client data information at least 2 clock cycles in advance, and obtain the detection result of the data integrity, thereby greatly improving the real-time performance of the time division multiplexing system and avoiding the transmission delay of the user data signal.
In this embodiment, as shown in fig. 2, the transmission modes of the user data signal, the error detection result signal and the invalid data signal when transmitted in the transmission link layer are sequential pipeline transmission.
In this embodiment, as shown in fig. 2, in order to improve the data transmission efficiency, the user data signal includes a plurality of groups of packetized data signals with the same transmission time length.
In this embodiment, as shown in fig. 2, in order to improve the transmission efficiency of data, the transmission duration of a single packetized data signal is equal to a single clock period of the transmission link layer of the data.
In one embodiment, as shown in fig. 2, in order to improve the transmission efficiency of data, the error detection result signal is identical to the transmission duration of a single packetized data signal.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are also within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.