Data transmission method, system and device, communication equipment and storage medium

The data transmission method in FPGAs uses bit width adaptation modules to adjust data to match serial transceiver interfaces, addressing resource and power consumption issues by enabling efficient, flexible, and reliable data transmission with a single transceiver.

CN119094086AActive Publication Date: 2024-12-06SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411268114.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-06
Estimated Expiration
2044-09-10

AI Technical Summary

Technical Problem

Existing data transmission methods in FPGAs require instantiating multiple SerDes to accommodate different bit widths, leading to excessive resource consumption and high power consumption.

Method used

A data transmission method that includes bit width adaptation modules to adjust data bit widths to match the user-side interface of serial transceivers, allowing data to be transmitted efficiently with a single transceiver, reducing resource and power consumption.

Benefits of technology

Significantly reduces FPGA resource consumption and power consumption by eliminating the need for multiple SerDes, while ensuring reliable data transmission and flexibility in accommodating various bit widths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094086A_ABST
    Figure CN119094086A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method, system and device, communication equipment and a storage medium, and the method comprises the steps that a first bit width adaptation module adjusts the bit width of first data in a first downlink processor based on the bit width of a user side interface of a first serial transceiver to obtain the adjusted first data, sending the adjusted first data to a first serial transceiver; sending the adjusted first data to a second serial transceiver through the first serial transceiver; sending the adjusted first data to a second bit width adaptation module through a second serial transceiver; and de-mapping the adjusted first data through a second bit width adaptation module to obtain first data before adjustment, and sending the first data before adjustment to a second uplink processor. According to the invention, the bit width adaptation module adjusts the data bit width based on the interface bit width of the serial transceiver, and the problems of large FPGA resource consumption and high power consumption caused by instantiation of a plurality of serial transceivers are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip communication technology, and in particular to a data transmission method, system, device, communication equipment and storage medium. Background Art

[0002] FPGA (Field-Programmable Gate Array) is a highly flexible integrated circuit widely used in various digital signal processing and communication systems. However, the bit width of the SerDes (Serializer / Deserializer) user-side interface inside the FPGA is usually fixed, while the bit width of the data in the FPGA internal module may have multiple modes. This difference requires designers to take measures to ensure that the internal module can be properly connected to the SerDes to achieve efficient data transmission.

[0003] In the existing data transmission method, in order to adapt to the different bit widths of data in the module, the designer may instantiate multiple SerDes to achieve normal data transmission in the internal module of the FPGA through multiple SerDes. For example, if the bit width of the data in the internal module is 40 bits, and the bit width of the user-side interface of the SerDes is 8 bits, the designer will usually instantiate 5 SerDes so that the data in the internal module is transmitted through 5 SerDes.

[0004] However, the use of multiple SerDes in the existing data transmission method will consume excessive FPGA internal resources. At the same time, the use of multiple SerDes will also significantly increase the FPGA power consumption, which is not conducive to the energy efficiency of the overall system. Therefore, the existing data transmission method has the problem of large FPGA resource consumption and high power consumption. Summary of the invention

[0005] In view of this, the present invention aims to propose a data transmission method, system, apparatus, communication device and storage medium to solve the problem of large FPGA resource consumption and high power consumption caused by instantiating multiple SerDes in FPGA.

[0006] According to a first aspect of the present invention, a data transmission method is provided, characterized in that it is applied to a data transmission system, the data transmission system includes a first programmable logic device and a second programmable logic device, wherein the first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module establishes communication connections with the first downlink processor and the first serial transceiver respectively, the second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, the second bit width adaptation module establishes communication connections with the second uplink processor and the second serial transceiver respectively, and the method includes:

[0007] The first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the bit width of the user side interface of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the bit width of the user side interface of the first serial transceiver;

[0008] Sending the adjusted first data to the first serial transceiver through the first bit width adaptation module;

[0009] Sending the adjusted first data to the second serial transceiver through the first serial transceiver;

[0010] Sending the adjusted first data to the second bit width adaptation module through the second serial transceiver;

[0011] When the second bit width adaptation module receives the adjusted first data, demapping the adjusted first data to obtain the first data before adjustment;

[0012] The first data before adjustment is sent to the second uplink processor through the second bit width adaptation module.

[0013] Optionally, before the step of adjusting, by the first bit width adaptation module, the bit width of the first data in the first downlink processor based on the user-side interface bit width of the first serial transceiver to obtain the adjusted first data, the method includes:

[0014] Obtaining a maximum interface bit width of the first downlink processor;

[0015] The user-side interface bit width of the first serial transceiver is set according to the maximum interface bit width of the first downlink processor.

[0016] Optionally, the first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user-side interface bit width of the first serial transceiver, and the first data before adjustment is obtained includes:

[0017] Acquire the bit width of the first data in the first downlink processor and the user side interface bit width of the first serial transceiver through the first bit width adaptation module;

[0018] Determine a numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver according to the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver;

[0019] If the numerical relationship is that the bit width of the first data in the first downlink processor is smaller than the bit width of the user-side interface of the first serial transceiver, each bit of the first data in the first downlink processor is copied to obtain adjusted first data.

[0020] Optionally, after the step of determining a numerical relationship between a bit width of first data in the first downlink processor and a bit width of a user-side interface of the first serial transceiver, the method comprises:

[0021] If the numerical relationship is that the bit width of the first data in the first downlink processor is equal to the user-side interface bit width of the first serial transceiver, the first data in the first downlink processor is sent to the first serial transceiver.

[0022] Optionally, demapping the adjusted first data to obtain the first data before adjustment includes:

[0023] Performing data division on the adjusted first data to obtain a plurality of groups of preset value bits;

[0024] For any group of preset value bits, obtaining the value of the preset value bits;

[0025] Weighting the values ​​of the preset value bits to obtain weighted bit values;

[0026] Comparing the weighted bit value with a preset threshold;

[0027] If the weighted bit value is greater than or equal to the preset threshold, demapping the preset value bit to a first value;

[0028] If the weighted bit value is less than the preset decision threshold, the preset value bit is demapped into a second value.

[0029] Optionally, the first programmable logic device includes a first uplink processor, the first uplink processor establishes a communication connection with the first bit width adaptation module, the second programmable logic device includes a second downlink processor, the second downlink processor establishes a communication connection with the second bit width adaptation module, and after the step of sending the first data before adjustment to the second uplink processor through the second bit width adaptation module, the method includes:

[0030] The second bit width adaptation module adjusts the bit width of the second data in the second downlink processor based on the bit width of the user side interface of the second serial transceiver to obtain adjusted second data, wherein the bit width of the adjusted second data is the same as the bit width of the user side interface of the second serial transceiver;

[0031] Sending the adjusted second data to the second serial transceiver through the second bit width adaptation module;

[0032] Sending the adjusted second data to the first serial transceiver through the second serial transceiver;

[0033] Sending the adjusted second data to the first bit width adaptation module through the first serial transceiver;

[0034] When the first bit width adaptation module receives the adjusted second data, demapping the adjusted second data to obtain the second data before adjustment;

[0035] The first bit width adaptation module sends the second data before adjustment to the second uplink processor.

[0036] According to a second aspect of the present invention, there is provided a data transmission system, characterized in that the data transmission system comprises a first programmable logic device and a second programmable logic device, wherein the first programmable logic device comprises a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module respectively establishes communication connections with the first downlink processor and the first serial transceiver, the second programmable logic device comprises a second bit width adaptation module, a second uplink processor and a second serial transceiver, the second bit width adaptation module respectively establishes communication connections with the second uplink processor and the second serial transceiver;

[0037] The first bit width adaptation module is used to adjust the bit width of the first data in the first downlink processor based on the bit width of the user side interface of the first serial transceiver to obtain the adjusted first data, and send the adjusted first data to the first serial transceiver, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the bit width of the user side interface of the first serial transceiver;

[0038] The first serial transceiver is used to send the adjusted first data to the second serial transceiver;

[0039] The second serial transceiver is used to send the adjusted first data to the second bit width adaptation module;

[0040] The second bit width adaptation module is used for, when receiving the adjusted first data, demapping the adjusted first data to obtain the first data before adjustment, and sending the first data before adjustment to the second uplink processor.

[0041] According to a third aspect of the present invention, there is provided a data transmission device, the data transmission device comprising:

[0042] a first bit width adaptation module, used for the first bit width adaptation module to adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver;

[0043] A first data sending module, configured to send the adjusted first data to the first serial transceiver through the first bit width adaptation module;

[0044] A first serial transceiver processing module, configured to send the adjusted first data to the second serial transceiver through the first serial transceiver;

[0045] A second serial transceiver processing module, configured to send the adjusted first data to the second bit width adaptation module through the second serial transceiver;

[0046] A first data demapping module is used to demap the adjusted first data to obtain the first data before adjustment when the second bit width adaptation module receives the adjusted first data;

[0047] The second data sending module is used to send the first data before adjustment to the second uplink processor through the second bit width adaptation module.

[0048] Optionally, the device comprises:

[0049] A first maximum interface bit width acquisition module, used to acquire the maximum interface bit width of the first downlink processor;

[0050] The first interface width setting module is used to set the user side interface width of the first serial transceiver according to the maximum interface width of the first downlink processor.

[0051] Optionally, the first bit width adaptation module includes:

[0052] A bit width acquisition submodule, configured to acquire the bit width of the first data in the first downlink processor and the user-side interface bit width of the first serial transceiver through the first bit width adaptation module;

[0053] a bit width numerical relationship determination submodule, configured to determine a numerical relationship between a bit width of the first data in the first downlink processor and a bit width of the user-side interface of the first serial transceiver according to a bit width of the first data in the first downlink processor and a bit width of the user-side interface of the first serial transceiver;

[0054] The data bit width adjustment submodule is used to copy each bit of the first data in the first downlink processor to obtain adjusted first data if the numerical relationship is that the bit width of the first data in the first downlink processor is smaller than the user side interface bit width of the first serial transceiver.

[0055] Optionally, the first bit width adaptation module includes:

[0056] The data sending submodule is configured to send the first data in the first downlink processor to the first serial transceiver if the numerical relationship is that the bit width of the first data in the first downlink processor is equal to the user side interface bit width of the first serial transceiver.

[0057] Optionally, the first data demapping module includes:

[0058] A data division submodule, used for performing data division on the adjusted first data to obtain a plurality of groups of preset value bits;

[0059] A bit value acquisition submodule, used for acquiring the value of the preset value bit for any group of preset value bits;

[0060] A data weighting submodule, used for weighting the value of the preset value bit to obtain a weighted bit value;

[0061] A data comparison submodule, used for comparing the weighted bit value with a preset threshold;

[0062] A first data demapping submodule, configured to demap the preset value bit to a first value if the weighted bit value is greater than or equal to the preset threshold;

[0063] The second data demapping submodule is used to demap the preset value bit to a second value if the weighted bit value is less than the preset decision threshold.

[0064] Optionally, the device comprises:

[0065] A second bit width adaptation module, configured for the second bit width adaptation module to adjust the bit width of the second data in the second downlink processor based on the bit width of the user side interface of the second serial transceiver to obtain adjusted second data, wherein the bit width of the adjusted second data is the same as the bit width of the user side interface of the second serial transceiver;

[0066] A third data sending module, configured to send the adjusted second data to the second serial transceiver through the second bit width adaptation module;

[0067] A third serial transceiver processing module, configured to send the adjusted second data to the first serial transceiver through the second serial transceiver;

[0068] a fourth serial transceiver processing module, configured to send the adjusted second data to the first bit width adaptation module through the first serial transceiver;

[0069] A second data demapping module is configured to demap the adjusted second data to obtain the second data before adjustment when the first bit width adaptation module receives the adjusted second data;

[0070] A fourth data sending module is used to send the second data before adjustment to the second uplink processor through the first bit width adaptation module.

[0071] According to another aspect of the present invention, there is also provided an electronic device, comprising:

[0072] processor;

[0073] a memory for storing instructions executable by the processor;

[0074] The processor is configured to execute the instructions to implement the data transmission method as described above.

[0075] According to another aspect of the present invention, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method described above are implemented.

[0076] The data transmission method provided by an embodiment of the present invention is applied to a data transmission system, wherein the data transmission system includes a first programmable logic device and a second programmable logic device, wherein the first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module establishes communication connections with the first downlink processor and the first serial transceiver respectively, the second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, the second bit width adaptation module establishes communication connections with the second uplink processor and the second serial transceiver respectively, and the first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user-side interface bit width of the first serial transceiver Adjustment is performed to obtain adjusted first data, wherein the user-side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the bit width of the user-side interface of the first serial transceiver; the adjusted first data is sent to the first serial transceiver through the first bit width adaptation module; the adjusted first data is sent to the second serial transceiver through the first serial transceiver; the adjusted first data is sent to the second bit width adaptation module through the second serial transceiver; when the second bit width adaptation module receives the adjusted first data, the adjusted first data is demapped to obtain the first data before adjustment; and the first data before adjustment is sent to the second uplink processor through the second bit width adaptation module. The present invention adds a bit width adaptation module so that the bit width adaptation module can adjust the bit width of the first data in the first downlink processor based on the user-side interface bit width of the first serial transceiver. No matter which mode the bit width of the first data in the first downlink processor is, it can ensure that the first data in the first downlink processor can be normally transmitted to the first serial transceiver, and only one first serial transceiver is needed to achieve this, without instantiating multiple first serial transceivers, thereby significantly reducing the consumption of FPGA internal resources and the power consumption of the FPGA, and further solving the problem of large FPGA resource consumption and high power consumption caused by instantiating multiple SerDes in the FPGA.

[0077] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0079] Figure 1 One of the step flow charts of a data transmission method provided by an embodiment of the present invention;

[0080] Figure 2 is a schematic diagram of a data transmission system provided by an embodiment of the present invention;

[0081] Figure 3 This is a second step flow chart of a data transmission method provided by an embodiment of the present invention;

[0082] Figure 4 This is a step flow chart of a data transmission method provided by an embodiment of the present invention;

[0083] Figure 5 This is a fourth step flow chart of a data transmission method provided by an embodiment of the present invention;

[0084] Figure 6 is a device block diagram of a data transmission device provided by an embodiment of the present invention;

[0085] Figure 7 It is a schematic diagram of a communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0086] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0087] Reference Figure 1 , shows one of the step flow charts of the data transmission method provided by an embodiment of the present invention, which is applied to a data transmission system. The method may include:

[0088] Step 101: A first bit width adaptation module adjusts a bit width of first data in a first downlink processor based on a user side interface bit width of a first serial transceiver to obtain adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in a programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver.

[0089] It should be noted that, in the embodiments of the present invention, Figure 2 As shown, the data transmission system includes a first programmable logic device and a second programmable logic device. The first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, and the first bit width adaptation module establishes a communication connection with the first downlink processor and the first serial transceiver respectively. The second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, and the second bit width adaptation module establishes a communication connection with the second uplink processor and the second serial transceiver respectively. It should be noted that the programmable logic device can be an FPGA (Field-Programmable Gate Array), and the serial transceiver can be a SerDes (Serializer / Deserializer).

[0090] The first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the bit width of the user side interface of the first serial transceiver to obtain the adjusted first data, which is used to make the bit width of the adjusted first data the same as the bit width of the user side interface of the first serial transceiver, thereby ensuring that the first data in the first downlink processor can be normally transmitted to the first serial transceiver. It should be noted that the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device except the serial transceiver.

[0091] Step 102: Send the adjusted first data to the first serial transceiver through the first bit width adaptation module.

[0092] Step 103: Send the adjusted first data to the second serial transceiver through the first serial transceiver.

[0093] It should be noted that, in an embodiment of the present invention, when the first bit width adaptation module obtains the adjusted first data, the first bit width adaptation module sends the adjusted first data to the first serial transceiver. Since the data format of the adjusted first data is parallel data, when the first serial transceiver receives the adjusted first data sent by the first bit width adaptation module, the first serial transceiver converts the data format of the adjusted first data from parallel data to serial data. When the conversion of the data format of the adjusted first data is completed, the first serial transceiver sends the adjusted first data to the second serial transceiver in the second programmable logic device.

[0094] Step 104: Send the adjusted first data to the second bit width adaptation module through the second serial transceiver.

[0095] Step 105 : when the second bit width adaptation module receives the adjusted first data, demap the adjusted first data to obtain the first data before adjustment.

[0096] Step 106: Send the first data before adjustment to the second uplink processor through the second bit width adaptation module.

[0097] It should be noted that, in the embodiment of the present invention, when the second serial transceiver receives the adjusted first data sent by the first serial transceiver, the second serial transceiver will convert the data format of the adjusted first data from serial data to parallel data. When the data format conversion of the adjusted first data is completed, the second serial transceiver sends the adjusted first data to the second bit width adaptation module.

[0098] When the second bit width adaptation module receives the adjusted first data sent by the second serial transceiver, the second bit width adaptation module demaps the adjusted first data to obtain the first data before adjustment.

[0099] When the second bit width adaptation module obtains the first data before adjustment, the second bit width adaptation module sends the first data before adjustment to the second uplink processor. At this point, the first programmable logic device and the second programmable logic device complete a round of data interaction.

[0100] In the process of sending data from a first programmable logic device to a second programmable logic device, the present invention adds a first bit width adaptation module, so that the first bit width adaptation module can adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver. No matter which mode the bit width of the first data in the first downlink processor is, it can ensure that the first data in the first downlink processor can be normally transmitted to the first serial transceiver, and only one first serial transceiver is needed to achieve it, without instantiating multiple first serial transceivers, thereby significantly reducing the consumption of internal resources of the first programmable logic device and the power consumption of the first programmable logic device, thereby solving the problem of large resource consumption and high power consumption of the first programmable logic device caused by instantiating multiple SerDes in the first programmable logic device.

[0101] Furthermore, if Figure 3 FIG. 2 shows a second flow chart of the data transmission method provided by an embodiment of the present invention. In the embodiment of the present invention, the following steps may be included before step 101:

[0102] Step 301: Obtain the maximum interface bit width of the first downlink processor.

[0103] Step 302: Set the user-side interface bit width of the first serial transceiver according to the maximum interface bit width of the first downlink processor.

[0104] It should be noted that, in the embodiment of the present invention, when instantiating the first serial transceiver, it is possible to first determine the model or specification of the first downlink processor used, and then refer to the technical document or data sheet of the downlink processor to find the technical specifications of the interface bit width. Usually, such information will clearly indicate the maximum interface bit width supported by the downlink processor.

[0105] After the maximum interface bit width of the first downlink processor is determined, the user-side interface bit width of the first serial transceiver is configured as the maximum interface bit width of the first downlink processor.

[0106] The present invention configures the user-side interface bit width of the first serial transceiver to be the maximum interface bit width of the first downlink processor, thereby making the design of the first programmable logic device more flexible and adaptable to data transmission requirements of different bit widths, providing convenience for future data transmission system upgrades and expansions, and enabling designers to more easily adjust and optimize the data transmission system configuration.

[0107] Furthermore, if Figure 4 As shown, a third step flow chart of the data transmission method provided by an embodiment of the present invention is shown. In the embodiment of the present invention, step 101 may also include the following steps:

[0108] Step 401: Acquire the bit width of first data in a first downlink processor and the bit width of a user-side interface of a first serial transceiver through a first bit width adaptation module.

[0109] Step 402: determine a numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user side interface of the first serial transceiver according to the bit width of the first data in the first downlink processor and the bit width of the user side interface of the first serial transceiver.

[0110] It should be noted that, in the embodiment of the present invention, the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver are obtained through the first bit width adaptation module. The bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver are compared through the first bit width adaptation module to determine the numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver.

[0111] Step 403: If the numerical relationship is that the bit width of the first data in the first downlink processor is smaller than the bit width of the user-side interface of the first serial transceiver, each bit of the first data in the first downlink processor is copied to obtain adjusted first data.

[0112] It should be noted that, in an embodiment of the present invention, if the numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver is that the bit width of the first data in the first downlink processor is smaller than the bit width of the user-side interface of the first serial transceiver, then each bit of the first data in the first downlink processor is copied to obtain adjusted first data.

[0113] For example: when the bit width of the first data in the first downlink processor is 8 bits and the bit width of the user-side interface of the first serial transceiver is 40 bits, if the first data in the first downlink processor is 01010101, each bit "0", "1", "0", "1", "0", "1", "0", "1" of the first data is copied 5 times, and the adjusted first data is 0000011111000001111100000111110000011111.

[0114] The present invention copies each bit of the first data in the first downlink processor to obtain adjusted first data when the bit width of the first data in the first downlink processor is smaller than the bit width of the user-side interface of the first serial transceiver, thereby ensuring that the bit width of the first data in the first downlink processor is the same as the bit width of the user-side interface of the first serial transceiver, thereby realizing normal transmission of data between the first downlink processor and the first serial transceiver.

[0115] Furthermore, in the embodiment of the present invention, the following steps may be included after step 402:

[0116] If the numerical relationship is that the bit width of the first data in the first downlink processor is equal to the user-side interface bit width of the first serial transceiver, the first data in the first downlink processor is sent to the first serial transceiver.

[0117] It should be noted that, in an embodiment of the present invention, if the numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver is that the bit width of the first data in the first downlink processor is equal to the bit width of the user-side interface of the first serial transceiver, then the first data in the first downlink processor is directly sent to the first serial transceiver through the first bit width adaptation module.

[0118] For example: when the bit width of the first data in the first downlink processor is 40 bits and the bit width of the user-side interface of the first serial transceiver is 40 bits, the first bit width adaptation module does not need to adjust the bit width of the first data in the first downlink processor, and directly sends the first data in the first downlink processor to the first serial transceiver.

[0119] The present invention does not adjust the bit width of the first data in the first downlink processor when the bit width of the first data in the first downlink processor is equal to the bit width of the user-side interface of the first serial transceiver, and directly sends the first data in the first downlink processor to the first serial transceiver, thereby avoiding any additional data processing or copying operations, thereby reducing the consumption of FPGA internal resources, and making maximum use of FPGA resources, thereby improving resource utilization efficiency.

[0120] Furthermore, if Figure 5 As shown, a fourth step flow chart of the data transmission method provided by an embodiment of the present invention is shown. In the embodiment of the present invention, step 105 may also include the following steps:

[0121] Step 501 , performing data division on the adjusted first data to obtain a plurality of groups of preset value bits.

[0122] Step 502: For any group of preset value bits, obtain the value of the preset value bits.

[0123] Step 503: weight the values ​​of the preset value bits to obtain weighted bit values.

[0124] Step 504: compare the weighted bit value with a preset threshold.

[0125] Step 505: If the weighted bit value is greater than or equal to a preset threshold, demap the preset value bit to a first value.

[0126] Step 506: If the weighted bit value is less than the preset decision threshold, demap the preset value bit to a second value.

[0127] It should be noted that in the embodiment of the present invention, since data may be interfered with due to frequency deviation or interference during transmission, resulting in transmission errors of certain bits, the data after mapping 1 bit into multiple bits needs to be judged based on the value of the multiple bits to demap the data before adjustment.

[0128] Therefore, when the second bit width adaptation module receives the second serial transceiver, the data is divided to obtain a plurality of groups of preset value bits.

[0129] For example: each bit of the first data in the first downlink processor is copied 5 times through the first bit width adaptation module to obtain adjusted first data, and then the adjusted first data is sent to the second bit width adaptation module through the first serial transceiver and the second serial transceiver. If the adjusted first data received by the second bit width adaptation module is 00001000001111111111011100000110000011111, the adjusted first data is divided into 5 groups of preset value bits, namely "00001", "00000", "111111", "11110", "11100", "00011", "00000", and "11111".

[0130] For any group of preset value bits, obtain the value of the preset value bit. Weight the value of the preset value bit to obtain the weighted bit value. Compare the weighted bit value with the preset threshold. If the weighted bit value is greater than or equal to the preset threshold, demap the preset value bit to the first value. If the weighted bit value is less than the preset decision threshold, demap the preset value bit to the second value. It should be noted that the preset threshold can be 3, the first value can be 1, and the second value can be 0. The specific value of the preset threshold can be adjusted as the solution is optimized.

[0131] For example, if the value of bit[4:0] is 11111, the value of the 5 bits is weighted, and the weighted bit value obtained is 5, which is greater than the preset threshold value 3, then 11111 is demapped to 1, and 1 is used as bit[0] of the first data before adjustment; if the value of bit[9:5] is 00000, the value of the 5 bits is weighted, and the weighted bit value obtained is 0, which is less than the preset threshold value 3, then 00000 is demapped to 0, and 0 is used as bit[1] of the first data before adjustment; The value of bit[14:10] is 00011. The value of the 5 bits is weighted, and the weighted bit value obtained is 2. 2 is less than the preset threshold value 3, so 00011 is demapped to 0, and 0 is used as bit[2] of the first data before adjustment; the value of bit[19:15] is 11100. The value of the 5 bits is weighted, and the weighted bit value obtained is 3. 3 is equal to the preset threshold value 3, so 11100 is demapped to 1, and 1 is used as bit[3] of the first data before adjustment; The value of bit[24:20] is 11110. The value of the 5 bits is weighted, and the weighted bit value obtained is 4. 4 is greater than the preset threshold value 3, so 11110 is demapped to 1, and 1 is used as bit[4] of the first data before adjustment; the value of bit[29:25] is 11111. The value of the 5 bits is weighted, and the weighted bit value obtained is 5. 5 is greater than the preset threshold value 3, so 11111 is demapped to 1, and 1 is used as bit[5] of the first data before adjustment; The value of bit[34:30] is 00000. The weighted bit value obtained by weighting the value of the 5 bits is 0, which is less than the preset threshold value 3. Therefore, 00000 is demapped to 0, and 0 is used as bit[6] of the first data before adjustment. The value of bit[39:35] is 00001. The weighted bit value obtained by weighting the value of the 5 bits is 1, which is less than the preset threshold value 3. Therefore, 00000 is demapped to 0, and 0 is used as bit[7] of the first data before adjustment. Therefore, the first data before adjustment can be demapped to 00111001.

[0132] The present invention demaps the adjusted first data to obtain the first data before adjustment, thereby being able to effectively detect and correct data transmission errors, thereby improving the reliability of data transmission, thereby ensuring the reliability of communication between FPGAs, and further improving the overall performance of communication between FPGAs.

[0133] Furthermore, in the embodiment of the present invention, the method may further include the following steps:

[0134] The second bit width adaptation module adjusts the bit width of the second data in the second downlink processor based on the user side interface bit width of the second serial transceiver to obtain adjusted second data, wherein the bit width of the adjusted second data is the same as the user side interface bit width of the second serial transceiver.

[0135] The adjusted second data is sent to the second serial transceiver through the second bit width adaptation module.

[0136] The adjusted second data is sent to the first serial transceiver through the second serial transceiver.

[0137] The adjusted second data is sent to the first bit width adaptation module through the first serial transceiver.

[0138] When the first bit width adaptation module receives the adjusted second data, it demaps the adjusted second data to obtain the second data before adjustment.

[0139] The first bit width adaptation module sends the second data before adjustment to the second uplink processor.

[0140] It should be noted that, in the embodiments of the present invention, Figure 2 As shown, the first programmable logic device includes a first uplink processor, which establishes a communication connection with the first bit width adaptation module, and the second programmable logic device includes a second downlink processor, which establishes a communication connection with the second bit width adaptation module.

[0141] After completing the setting of the user side interface bit width of the second serial transceiver, the second bit width adaptation module adjusts the bit width of the second data in the second downlink processor based on the user side interface bit width of the second serial transceiver to obtain the adjusted second data, which is used to make the bit width of the adjusted second data the same as the user side interface bit width of the second serial transceiver, ensuring that the second data in the second downlink processor can be normally transmitted to the second serial transceiver. It should be noted that the user side interface is an interface connecting the serial transceiver with other logic modules other than the serial transceiver in the programmable logic device.

[0142] When the second bit width adaptation module obtains the adjusted second data, the second bit width adaptation module sends the adjusted second data to the second serial transceiver. Since the data format of the adjusted second data is parallel data, when the second serial transceiver receives the adjusted second data sent by the second bit width adaptation module, the second serial transceiver converts the data format of the adjusted second data from parallel data to serial data. When the data format conversion of the adjusted second data is completed, the second serial transceiver sends the adjusted second data to the first serial transceiver in the first programmable logic device.

[0143] When the first serial transceiver receives the adjusted second data sent by the second serial transceiver, the first serial transceiver pair converts the data format of the adjusted second data from serial data to parallel data. When the data format conversion of the adjusted second data is completed, the first serial transceiver sends the adjusted second data to the first bit width adaptation module.

[0144] When the first bit width adaptation module receives the adjusted second data sent by the first serial transceiver, the first bit width adaptation module demaps the adjusted second data to obtain the second data before adjustment.

[0145] When the first bit width adaptation module obtains the second data before adjustment, the first bit width adaptation module sends the second data before adjustment to the first uplink processor. Thus, the second programmable logic device and the first programmable logic device complete a round of data interaction.

[0146] In the process of the second programmable logic device feeding back data to the first programmable logic device, the present invention adds a second bit width adaptation module so that the second bit width adaptation module can adjust the bit width of the second data in the second downlink processor based on the user-side interface bit width of the second serial transceiver. No matter which mode the bit width of the second data in the second downlink processor is, it can ensure that the second data in the second downlink processor can be normally transmitted to the second serial transceiver, and only one second serial transceiver is needed to achieve it, without instantiating multiple second serial transceivers, thereby significantly reducing the consumption of internal resources of the second programmable logic device and the power consumption of the second programmable logic device, thereby solving the problem of large resource consumption and high power consumption of the second programmable logic device caused by instantiating multiple SerDes in the second programmable logic device.

[0147] Further, in an embodiment of the present invention, before the step of “the second bit width adaptation module adjusts the bit width of the second data in the second downlink processor based on the user-side interface bit width of the second serial transceiver to obtain the adjusted second data”, the following steps may also be included:

[0148] When the second uplink processor receives the first data before adjustment, the maximum interface bit width of the second downlink processor is acquired.

[0149] The user-side interface bit width of the second serial transceiver is set according to the maximum interface bit width of the second downlink processor.

[0150] It should be noted that, in the embodiment of the present invention, when the second uplink processor receives the first data before adjustment, the second serial transceiver is instantiated. When the second serial transceiver is instantiated, it is possible to first determine the model or specification of the second downlink processor used, and refer to the technical document or data manual of the downlink processor to find the technical specifications of the interface bit width. Usually, this information will clearly indicate the maximum interface bit width supported by the downlink processor.

[0151] After the maximum interface bit width of the second downlink processor is determined, the user-side interface bit width of the second serial transceiver is configured as the maximum interface bit width of the second downlink processor.

[0152] The present invention configures the user-side interface bit width of the second serial transceiver to be the maximum interface bit width of the second downlink processor, thereby making the design of the second programmable logic device more flexible and adaptable to data transmission requirements of different bit widths, providing convenience for future data transmission system upgrades and expansions, and enabling designers to more easily adjust and optimize the data transmission system configuration.

[0153] According to an embodiment of the present invention, a data transmission system is also provided. Figure 2 As shown, the data transmission system includes a first programmable logic device and a second programmable logic device, wherein the first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module establishes communication connections with the first downlink processor and the first serial transceiver respectively, and the second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, the second bit width adaptation module establishes communication connections with the second uplink processor and the second serial transceiver respectively.

[0154] The first bit width adaptation module is used to adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, and send the adjusted first data to the first serial transceiver, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver;

[0155] The first serial transceiver is used for sending the adjusted first data to the second serial transceiver;

[0156] The second serial transceiver is used for sending the adjusted first data to the second bit width adaptation module;

[0157] The second bit width adaptation module is used for demapping the adjusted first data when receiving the adjusted first data to obtain the first data before adjustment, and sending the first data before adjustment to the second uplink processor.

[0158] It should be noted that, in an embodiment of the present invention, the first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, which is used to make the bit width of the adjusted first data the same as the user side interface bit width of the first serial transceiver, ensuring that the first data in the first downlink processor can be normally transmitted to the first serial transceiver. It should be noted that the user side interface is an interface connecting the serial transceiver with other logic modules other than the serial transceiver in the programmable logic device.

[0159] When the first bit width adaptation module obtains the adjusted first data, the first bit width adaptation module sends the adjusted first data to the first serial transceiver. Since the data format of the adjusted first data is parallel data, when the first serial transceiver receives the adjusted first data sent by the first bit width adaptation module, the first serial transceiver converts the data format of the adjusted first data from parallel data to serial data. When the data format conversion of the adjusted first data is completed, the first serial transceiver sends the adjusted first data to the second serial transceiver in the second programmable logic device.

[0160] When the second serial transceiver receives the adjusted first data sent by the first serial transceiver, the second serial transceiver converts the data format of the adjusted first data from serial data to parallel data. When the data format conversion of the adjusted first data is completed, the second serial transceiver sends the adjusted first data to the second bit width adaptation module.

[0161] When the second bit width adaptation module receives the adjusted first data sent by the second serial transceiver, the second bit width adaptation module demaps the adjusted first data to obtain the first data before adjustment.

[0162] When the second bit width adaptation module obtains the first data before adjustment, the second bit width adaptation module sends the first data before adjustment to the second uplink processor. At this point, the first programmable logic device and the second programmable logic device complete a round of data interaction.

[0163] In the process of sending data from the first programmable logic device to the second programmable logic device, the present invention adds a first bit width adaptation module, so that the first bit width adaptation module can adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver. No matter which mode the bit width of the first data in the first downlink processor is, it can ensure that the first data in the first downlink processor can be normally transmitted to the first serial transceiver, and only one first serial transceiver is needed to achieve it, without instantiating multiple first serial transceivers, thereby significantly reducing the consumption of internal resources of the first programmable logic device and the power consumption of the first programmable logic device, thereby solving the problem of large resource consumption and high power consumption of the first programmable logic device caused by instantiating multiple SerDes in the first programmable logic device.

[0164] Reference Figure 6 , Figure 6 : is a device block diagram of a data transmission device provided by an embodiment of the present invention, the data transmission device comprising:

[0165] A first bit width adaptation module 601, used for the first bit width adaptation module to adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver;

[0166] A first data sending module 602, configured to send the adjusted first data to the first serial transceiver through the first bit width adaptation module;

[0167] A first serial transceiver processing module 603, configured to send the adjusted first data to the second serial transceiver via the first serial transceiver;

[0168] A second serial transceiver processing module 604, configured to send the adjusted first data to the second bit width adaptation module through the second serial transceiver;

[0169] A first data demapping module 605 is configured to demap the adjusted first data to obtain the first data before adjustment when the second bit width adaptation module receives the adjusted first data;

[0170] The second data sending module 606 is configured to send the first data before adjustment to the second uplink processor through the second bit width adaptation module.

[0171] Optionally, the device comprises:

[0172] A first maximum interface bit width acquisition module, used to acquire the maximum interface bit width of the first downlink processor;

[0173] The first interface width setting module is used to set the user side interface width of the first serial transceiver according to the maximum interface width of the first downlink processor.

[0174] Optionally, the first bit width adaptation module includes:

[0175] A bit width acquisition submodule, configured to acquire the bit width of the first data in the first downlink processor and the user-side interface bit width of the first serial transceiver through the first bit width adaptation module;

[0176] a bit width numerical relationship determination submodule, configured to determine a numerical relationship between a bit width of the first data in the first downlink processor and a bit width of the user-side interface of the first serial transceiver according to a bit width of the first data in the first downlink processor and a bit width of the user-side interface of the first serial transceiver;

[0177] The data bit width adjustment submodule is used to copy each bit of the first data in the first downlink processor to obtain adjusted first data if the numerical relationship is that the bit width of the first data in the first downlink processor is smaller than the user side interface bit width of the first serial transceiver.

[0178] Optionally, the first bit width adaptation module includes:

[0179] The data sending submodule is configured to send the first data in the first downlink processor to the first serial transceiver if the numerical relationship is that the bit width of the first data in the first downlink processor is equal to the user side interface bit width of the first serial transceiver.

[0180] Optionally, the first data demapping module includes:

[0181] A data division submodule, used for performing data division on the adjusted first data to obtain a plurality of groups of preset value bits;

[0182] A bit value acquisition submodule, used for acquiring the value of the preset value bit for any group of preset value bits;

[0183] A data weighting submodule, used for weighting the value of the preset value bit to obtain a weighted bit value;

[0184] A data comparison submodule, used for comparing the weighted bit value with a preset threshold;

[0185] A first data demapping submodule, configured to demap the preset value bit to a first value if the weighted bit value is greater than or equal to the preset threshold;

[0186] The second data demapping submodule is used to demap the preset value bit to a second value if the weighted bit value is less than the preset decision threshold.

[0187] Optionally, the device comprises:

[0188] A second bit width adaptation module, configured for the second bit width adaptation module to adjust the bit width of the second data in the second downlink processor based on the bit width of the user side interface of the second serial transceiver to obtain adjusted second data, wherein the bit width of the adjusted second data is the same as the bit width of the user side interface of the second serial transceiver;

[0189] A third data sending module, configured to send the adjusted second data to the second serial transceiver through the second bit width adaptation module;

[0190] A third serial transceiver processing module, configured to send the adjusted second data to the first serial transceiver through the second serial transceiver;

[0191] a fourth serial transceiver processing module, configured to send the adjusted second data to the first bit width adaptation module through the first serial transceiver;

[0192] A second data demapping module is configured to demap the adjusted second data to obtain the second data before adjustment when the first bit width adaptation module receives the adjusted second data;

[0193] A fourth data sending module is used to send the second data before adjustment to the second uplink processor through the first bit width adaptation module.

[0194] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0195] Memory 703, used for storing computer programs;

[0196] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:

[0197] The first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver;

[0198] Sending the adjusted first data to the first serial transceiver through the first bit width adaptation module;

[0199] sending the adjusted first data to the second serial transceiver through the first serial transceiver;

[0200] Sending the adjusted first data to the second bit width adaptation module through the second serial transceiver;

[0201] When the second bit width adaptation module receives the adjusted first data, demapping the adjusted first data to obtain the first data before adjustment;

[0202] The first data before adjustment is sent to the second uplink processor through the second bit width adaptation module.

[0203] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0204] The communication interface is used for communication between the above terminal and other devices.

[0205] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0206] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0207] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the data transmission method described in any one of the above embodiments.

[0208] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Sol logo State Disk (SSD)), etc.

[0209] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0210] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0211] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A data transmission method, characterized in that: Applied to a data transmission system, the data transmission system includes a first programmable logic device and a second programmable logic device, wherein the first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module establishes communication connections with the first downlink processor and the first serial transceiver respectively, the second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, the second bit width adaptation module establishes communication connections with the second uplink processor and the second serial transceiver respectively, and the method includes: The first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the bit width of the user side interface of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the bit width of the user side interface of the first serial transceiver; Sending the adjusted first data to the first serial transceiver through the first bit width adaptation module; Sending the adjusted first data to the second serial transceiver through the first serial transceiver; Sending the adjusted first data to the second bit width adaptation module through the second serial transceiver; When the second bit width adaptation module receives the adjusted first data, demapping the adjusted first data to obtain the first data before adjustment; The first data before adjustment is sent to the second uplink processor through the second bit width adaptation module.

2. The method according to claim 1, characterized in that Before the step in which the first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user-side interface bit width of the first serial transceiver to obtain the adjusted first data, the method includes: Obtaining a maximum interface bit width of the first downlink processor; The user-side interface bit width of the first serial transceiver is set according to the maximum interface bit width of the first downlink processor.

3. The method according to claim 1, characterized in that The first bit width adaptation module adjusts the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver, and the adjusted first data includes: Acquire the bit width of the first data in the first downlink processor and the user side interface bit width of the first serial transceiver through the first bit width adaptation module; Determine a numerical relationship between the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver according to the bit width of the first data in the first downlink processor and the bit width of the user-side interface of the first serial transceiver; If the numerical relationship is that the bit width of the first data in the first downlink processor is smaller than the bit width of the user-side interface of the first serial transceiver, each bit of the first data in the first downlink processor is copied to obtain adjusted first data.

4. The method according to claim 3, characterized in that After the step of determining a numerical relationship between a bit width of first data in the first downlink processor and a bit width of a user-side interface of the first serial transceiver, the method comprises: If the numerical relationship is that the bit width of the first data in the first downlink processor is equal to the user-side interface bit width of the first serial transceiver, the first data in the first downlink processor is sent to the first serial transceiver.

5. The method according to claim 1, characterized in that The demapping the adjusted first data to obtain the first data before adjustment includes: Performing data division on the adjusted first data to obtain a plurality of groups of preset value bits; For any group of preset value bits, obtaining the value of the preset value bits; Weighting the values ​​of the preset value bits to obtain weighted bit values; Comparing the weighted bit value with a preset threshold; If the weighted bit value is greater than or equal to the preset threshold, demapping the preset value bit to a first value; If the weighted bit value is less than the preset decision threshold, the preset value bit is demapped into a second value.

6. The method according to claim 1, characterized in that The first programmable logic device includes a first uplink processor, the first uplink processor establishes a communication connection with the first bit width adaptation module, the second programmable logic device includes a second downlink processor, the second downlink processor establishes a communication connection with the second bit width adaptation module, and after the step of sending the first data before adjustment to the second uplink processor through the second bit width adaptation module, the method includes: The second bit width adaptation module adjusts the bit width of the second data in the second downlink processor based on the bit width of the user side interface of the second serial transceiver to obtain adjusted second data, wherein the bit width of the adjusted second data is the same as the bit width of the user side interface of the second serial transceiver; Sending the adjusted second data to the second serial transceiver through the second bit width adaptation module; Sending the adjusted second data to the first serial transceiver through the second serial transceiver; Sending the adjusted second data to the first bit width adaptation module through the first serial transceiver; When the first bit width adaptation module receives the adjusted second data, demapping the adjusted second data to obtain the second data before adjustment; The first bit width adaptation module sends the second data before adjustment to the second uplink processor.

7. A data transmission system, characterized in that: The data transmission system includes a first programmable logic device and a second programmable logic device, wherein the first programmable logic device includes a first bit width adaptation module, a first downlink processor and a first serial transceiver, the first bit width adaptation module establishes communication connections with the first downlink processor and the first serial transceiver respectively, the second programmable logic device includes a second bit width adaptation module, a second uplink processor and a second serial transceiver, and the second bit width adaptation module establishes communication connections with the second uplink processor and the second serial transceiver respectively; The first bit width adaptation module is used to adjust the bit width of the first data in the first downlink processor based on the bit width of the user side interface of the first serial transceiver to obtain the adjusted first data, and send the adjusted first data to the first serial transceiver, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the bit width of the user side interface of the first serial transceiver; The first serial transceiver is used to send the adjusted first data to the second serial transceiver; The second serial transceiver is used to send the adjusted first data to the second bit width adaptation module; The second bit width adaptation module is used for, when receiving the adjusted first data, demapping the adjusted first data to obtain the first data before adjustment, and sending the first data before adjustment to the second uplink processor.

8. A data transmission device, characterized in that: The data transmission device comprises: a first bit width adaptation module, used for the first bit width adaptation module to adjust the bit width of the first data in the first downlink processor based on the user side interface bit width of the first serial transceiver to obtain the adjusted first data, wherein the user side interface is an interface connecting the serial transceiver with other logic modules in the programmable logic device, and the bit width of the adjusted first data is the same as the user side interface bit width of the first serial transceiver; A first data sending module, configured to send the adjusted first data to the first serial transceiver through the first bit width adaptation module; A first serial transceiver processing module, configured to send the adjusted first data to the second serial transceiver through the first serial transceiver; A second serial transceiver processing module, configured to send the adjusted first data to the second bit width adaptation module through the second serial transceiver; A first data demapping module is used to demap the adjusted first data to obtain the first data before adjustment when the second bit width adaptation module receives the adjusted first data; The second data sending module is used to send the first data before adjustment to the second uplink processor through the second bit width adaptation module.

9. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the data transmission method according to any one of claims 1 to 6.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method and device for bridging local bus and transmitting data

    CN102904787A

  • A method and a device for high-bit-width data transmission between FPGA chips

    CN109426636A

  • Data transceiving rate adjusting device and operation method thereof

    CN110233708A

  • Method for changing a bitwidth of an FPGA configuration

    US20230198532A1

  • Signal generation device and signal generation method

    US20240039688A1