CN114039704A - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
CN114039704A
CN114039704A CN202111570997.0A CN202111570997A CN114039704A CN 114039704 A CN114039704 A CN 114039704A CN 202111570997 A CN202111570997 A CN 202111570997A CN 114039704 A CN114039704 A CN 114039704A
Authority
CN
China
Prior art keywords
data
sent
rule
current data
transmitted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111570997.0A
Other languages
Chinese (zh)
Inventor
代开勇
陈奎
胡伟
胡金凤
谢国敏
潘于
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haiguang Information Technology Co Ltd
Original Assignee
Haiguang Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haiguang Information Technology Co Ltd filed Critical Haiguang Information Technology Co Ltd
Priority to CN202111570997.0A priority Critical patent/CN114039704A/en
Publication of CN114039704A publication Critical patent/CN114039704A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • H04L1/0043Realisations of complexity reduction techniques, e.g. use of look-up tables
    • H04L1/0044Realisations of complexity reduction techniques, e.g. use of look-up tables specially adapted for power saving

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the application provides a data transmission method and a related device, which comprises the steps of obtaining current data to be sent and latest sent previous sent data; according to each coding rule, respectively carrying out coding operation on the current data to be sent to obtain each code of the current data to be sent; respectively comparing the previously sent data with the current data to be sent of each code to obtain the number of each bit with the same bit data; acquiring the maximum bit quantity of each bit quantity, the current data to be sent of the code corresponding to the maximum bit quantity and the coding rule, acquiring the current data to be sent of the code to be sent and the coding rule to be sent, and acquiring the rule code of the coding rule to be sent; and sending the current data to be sent of the code to be sent and the rule code of the code to be sent according to a sending rule. The embodiment of the application can transmit data with low power consumption.

Description

Data transmission method and related device
Technical Field
The embodiment of the application relates to the technical field of chips, in particular to a data transmission method and a related device.
Background
Chip development has been widely applied to computers, mobile phones and other digital electric appliances so far, and the maturity of the chip will bring about great development of science and technology, so that breakthrough in chip design technology and chip processing technology is very important.
The low power consumption technology is an important design method in the chip technology, the heat dissipation cost and the user experience of the chip are directly influenced, data transmission and calculation are the parts occupying the highest power consumption in the chip, the distance from the sending end to the receiving end of data transmission is further and further increased along with the increasing of the chip, and the power consumption proportion of the chip occupied by the data transmission is also stably improved, so that the power consumption of the chip can be reduced by improving the system power consumption in the data transmission process.
In the prior art, the power consumption reduction in the chip data transmission process is mainly realized by a method for reducing the data transmission quantity, but the power consumption reduction of the data transmission still cannot be realized under the condition that the data transmission quantity cannot be reduced.
Therefore, how to further reduce the power consumption of data transmission when the data transmission amount is determined becomes a technical problem which needs to be solved urgently.
Content of application
The technical problem solved by the embodiment of the application is to reduce the power consumption of data transmission.
In order to solve the foregoing problems, embodiments of the present application provide a data transmission method and a related apparatus, including:
in a first aspect, an embodiment of the present application provides a data transmission method, where the method is executed by a sending end of a data transmission processor, and the processor for performing data transmission includes the sending end and a receiving end, and the method includes:
acquiring current data to be transmitted and previous transmitted data, wherein the previous transmitted data is latest transmitted data;
according to each coding rule, respectively carrying out coding operation on the current data to be sent to obtain each code of the current data to be sent;
respectively comparing the previously sent data with the current data to be sent of each code to obtain the number of each bit with the same bit data;
acquiring the maximum bit quantity in each bit quantity, the current data to be sent of the code corresponding to the maximum bit quantity and the coding rule, acquiring the current data to be sent of the code to be sent and the coding rule to be sent, and acquiring the rule code of the coding rule to be sent;
and sending the current data to be sent of the code to be sent and the rule code of the code to be sent according to a sending rule.
In a second aspect, an embodiment of the present application provides a data transmission method, where the method is performed by a receiving end of a data transmission processor, and the method includes:
according to the received information, acquiring data to be decoded and a rule code of a coding rule corresponding to the data to be decoded, wherein the coding rule comprises the coding rule to be sent of the data transmission method according to the first aspect;
determining a decoding rule of the data to be decoded according to the rule coding;
and decoding the data to be decoded according to the decoding rule to obtain decoded data.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, where the apparatus is located at a sending end of a data transmission processor, and is configured to execute the data transmission method according to the first aspect, where the apparatus includes:
the device comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring current data to be sent and previous sent data, and the previous sent data is latest sent data;
the encoding module is used for respectively carrying out encoding operation corresponding to the current data to be sent according to each encoding rule to obtain each encoding current data to be sent;
a judging module, configured to compare and judge the previously sent data and each piece of the coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent;
and the sending module is used for sending the current data to be sent of the code to be sent and the rule code of the code rule to be sent according to the sending rule.
In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, where the apparatus is located at a receiving end of a data transmission processor, and is configured to perform the data transmission method according to the second aspect, where the apparatus includes:
a data obtaining module, adapted to obtain, according to information to be received, data to be decoded and a rule code of a coding rule corresponding to the data to be decoded, where the coding rule includes the coding rule to be sent of the data transmission apparatus according to the third aspect;
the decoding rule determining module is suitable for determining the decoding rule of the data to be decoded according to the rule coding;
and the decoding module is used for decoding the data to be decoded according to the decoding rule to obtain the decoded data.
In a fifth aspect, an embodiment of the present application further provides a data transmission system, where the data transmission system includes a sending end and a receiving end, the sending end of the data transmission system can send data to implement the data transmission method according to the first aspect, and the receiving end of the data transmission system can receive data to implement the data transmission method according to the second aspect.
In a sixth aspect, an embodiment of the present application further provides an integrated circuit, which includes a relay and the data transmission system according to the fifth aspect.
Compared with the prior art, the technical scheme of the embodiment of the application has the following advantages:
the data transmission method provided in the embodiment of the application completes coding operation of data to be transmitted at a transmitting end, counts the number of the same bit bits of the current data to be transmitted and the previous data to be transmitted, which are obtained by calculation under different coding rules, and then judges and compares the current data to be transmitted, which is the coded data with the largest number of the same bit bits, so as to determine the coding rule which can cause the current data to be transmitted to be turned over least during transmission, obtain the coding rule to be transmitted and the current data to be transmitted, and finally, the transmitting end transmits the current data to be transmitted and the coding rule to be transmitted.
It can be seen that, according to the technical scheme provided in the embodiment of the present application, at a sending end of a data transmission system, current data to be sent of each code is obtained through coding, the current data to be sent of the code with the same number of bits as that of the previous data to be sent is determined, a coding rule to be sent and the current data to be sent of the code to be sent are obtained and sent, sending of the current data to be sent can be achieved by sending the current data to be sent of the code to be sent, and sending is performed with the least bit reversal amount, so that the number of bits for data inversion in a data transmission process is reduced, and power consumption of data transmission is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a diagram of a basic system architecture of an integrated circuit.
FIG. 2 is a diagram illustrating a basic system architecture of an integrated circuit for implementing data transmission.
Fig. 3 is a schematic diagram of an architecture for implementing data transmission in the data transmission method according to the embodiment of the present application.
Fig. 4 is a flowchart of a data transmission method according to an embodiment of the present application.
Fig. 5 is another flowchart of a data transmission method according to an embodiment of the present application.
Fig. 6 is another flowchart of a data transmission method according to an embodiment of the present application.
Fig. 7 is a further flowchart of a data transmission method according to an embodiment of the present application.
Fig. 8 is a flowchart of a data transmission method according to an embodiment of the present application.
Fig. 9 is a block diagram of a structure of a data transmission apparatus at a sending end according to an embodiment of the present application.
Fig. 10 is a block diagram of a data transmission apparatus at a processing end according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a data transmission system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 schematically illustrates a system architecture diagram of an integrated circuit, which, as shown in fig. 1, may include: a transmitting end 110, a register 111, and a receiving end 112.
The transmitting end 110 transmits data to be transmitted, and the receiving end 112 receives the data transmitted by the transmitting end 110. As the functions of the integrated circuits are more and more, the internal devices are more and more, which results in that the distance between the transmitter 110 and the receiver 112 is more and more, and in order to increase the system operating frequency, a multi-stage register 111 needs to be inserted between the transmitter 110 and the receiver 112 to meet the timing requirement.
The register 111 is a circuit structure capable of temporarily storing a logic value, and needs a clock to trigger the register to operate, the clock speed of the register determines the length of data latched by the register, and the fastest value of the clock depends on the logic sum line delay between the two registers. As shown in the figure, D in the register 111 is an input, Q is an output, and the position of the left marker triangle is input with a clock signal.
To facilitate understanding of the data transmission process, please refer to fig. 2, and fig. 2 is a schematic diagram illustrating an implementation of data transmission by a basic system architecture of an integrated circuit.
As shown in the figure, the transmitting end 110 transmits data actually required to be transmitted, and after passing through the relay 113, the data is transmitted to the receiving end 112. During the whole data transmission process, the transmitted signals mainly include: control signals and actual transmission data.
It should be noted that the relay 113 is a register pipeline, i.e. is composed of a plurality of registers 111 shown in fig. 1, and is mainly used for increasing the clock frequency of data transmission.
However, as more registers 111 are included in the relay 113, the corresponding power consumption generated during the data transmission process is also larger. For example, when only one register 111 is included in the integrated circuit, the trigger clock generated when data is transmitted to the receiving end 112 through the register 111 is referred to as a one-time trigger clock, the power consumption at this time includes the power consumption generated by triggering a clock once and changing the data of each bit in one register 111, when the integrated circuit includes two registers 111, data is first transferred to the second register 111 through the first register 111, a one-time clock is generated, then, the clock signal is transmitted to the receiving end 112 via the second register 111, and a one-shot clock is generated, the power consumption generated when data is transferred within the integrated circuit including the two registers 111 is the power consumption including the two one-shot clocks and the data changing the respective bits in the two registers 111. And so on, the more registers 111, the higher the power consumption generated inside the integrated circuit.
In a wide bus (such as 512 or 1024) in a large-scale integrated circuit, the data amount of the transmitted data is very large, and the data change (flip) times of each bit in the register 111 increases during the transmission of the data, so that a large amount of power consumption is generated, and the occupation ratio in the whole power consumption is remarkably improved.
The data flip times refer to the number of times of logic change of data, and taking a clock edge as an example, the rising or falling of one clock edge is regarded as one flip.
As the functions of the integrated circuit are increased, the structure of the integrated circuit itself is increased during the design, and more registers 111 are needed during the data transmission, and accordingly, the power consumption is increased. Therefore, the reduction of the internal power consumption of the integrated circuit becomes an urgent problem to be solved.
For low power consumption design in the data transmission process, at present, the following schemes mainly exist:
firstly, the hit rate of data is improved mainly by means of cache or buffer cache, so as to reduce the data carrying amount;
secondly, when no data is transmitted, the gated clock is adopted to reduce the turnover of a clock network so as to reduce the power consumption;
and thirdly, multiplexing and sharing data in each processing unit.
Although the technical solutions can significantly reduce the transmission amount of data, thereby achieving the purpose of reducing the power consumption of data transmission, in the first and third data transmission solutions, the situation that the required data is not hit or the multiplexed and shared data does not contain the required target data still occurs, at this time, the problem that the data transmission is still needed and the power consumption is high in the data transmission process still exists, while in the second solution, the power consumption is reduced by controlling the gated clock when no data is transmitted, but the situation that the data really needs to be transmitted cannot be reduced, and the power consumption generated by the whole data transmission is not changed.
It can be seen that the above-mentioned prior art solutions do not guarantee a reduction of the internal power consumption of the integrated circuit when data transmission is required.
The data transmission method provided by the embodiment of the application optimizes data turnover generated in the data transmission process of the wide bus in the large-scale integrated circuit chip, and effectively reduces the data turnover frequency, so that the purpose of reducing the power consumption of data transmission is realized.
Fig. 3 is a schematic diagram of an architecture for implementing data transmission in the data transmission method according to the embodiment of the present application. The system architecture includes: the transmitting end 110, the relay 113 and the receiving end 112, wherein the transmitting end 110 is additionally provided with a transmitting and encoding module 1101, and the receiving end 112 is additionally provided with a corresponding receiving and decoding module 1121. The data to be transmitted mainly includes: control signals, transmit data, and add regular coding.
When data transmission is performed, the sending encoding module 1101 of the sending end 110 encodes data that needs to be sent currently according to encoding rules, where the encoding rules may include at least two algorithms of different operation methods, and in order to facilitate understanding of the encoding rules used by the transmitted data at the receiving end, the encoding rules may also be encoded to obtain rule codes, the receiving decoding module 1121 of the receiving end 112 receives operation result data that is sent from the sending encoding module 1101 and calculated based on the encoding rules, and the rule codes corresponding to the encoding rules, and the receiving decoding module 1121 determines the encoding rules according to the received rule codes to further obtain corresponding decoding rules, and decodes the operation result data by using the decoding rules, so as to finally obtain the data that needs currently.
Specifically, inside the transmission encoding module 1101, the following operations need to be performed:
firstly, according to different coding rules, corresponding coding operation is carried out on current data to be sent (namely, the current data to be sent), and operation results under different coding rules are obtained, namely, the current data to be sent are coded;
then, comparing the current data to be transmitted under different coding rules with the previous data transmitted by the transmitting end 110 (i.e. the latest data transmitted), and determining the same number of bits of the data on the same bit corresponding to the current data to be transmitted under different coding rules;
then, comparing the determined bit numbers under different coding rules again, selecting the maximum bit number with the same data, and simultaneously acquiring the current data to be sent of the code corresponding to the maximum bit number and the coding rules;
finally, the coding rule corresponding to the maximum bit number is coded to obtain a rule code, and the rule code and the code corresponding to the maximum bit number are sent to the receiving end 112.
In the receiving end 112, the receiving and decoding module 1121 receives the rule code and the current data to be transmitted, which are transmitted from the transmitting end 110, and performs the inverse operation of the coding rule on the received current data to be transmitted according to the coding rule corresponding to the received rule code, so as to obtain the data to be transmitted currently.
Thus, when the current data to be transmitted is needed, in order to reduce the power consumption in the data transmission process, the data transmission method provided in the embodiment of the present application considers that an operation can be performed on the current data to be transmitted first at the transmission front end, that is, the transmitting end 110, so as to reduce the number of times of flipping, and according to the foregoing basis, it is required to ensure that the difference between the previous transmitted data and the next data to be transmitted is minimum, that is, the number of bits of the data that are the same on the same bit is the largest, and therefore, multiple flipping will not occur at the time when the clock edge arrives (that is, when the data needs to be transmitted).
The selection of the coding rule may be multiple, when the operation result is compared, the operation result data under two coding rules may be compared with the previously sent data, or the operation result data under three coding rules, four coding rules, or more coding rules may be compared with the previously sent data, then the coding rule with the largest number of bits and the coded operation result data are selected as the data to be sent currently, and the largest number of bits indicates that the difference between the operation result obtained under the coding rule and the previously sent data is the smallest, so that the number of data flips is the smallest in the data transmission process, and the generated power consumption is lower.
It can be seen that, in the architecture for implementing data transmission of the data transmission method provided in the embodiment of the present application, by setting the sending encoding module 1101 at the sending end 110, the encoding rule capable of implementing the fewest number of turns and the operation result obtained based on the encoding rule (i.e., encoding the current data to be transmitted) are obtained, so that when the current data to be transmitted is encoded, the turn-over frequency in the data transmission process can be reduced, thereby achieving the purpose of reducing the power consumption of the system.
For further explanation of implementation of the embodiments of the present application, fig. 4 shows a flowchart of a data transmission method provided in the embodiments of the present application. In some embodiments, this flow may be performed in the architecture system shown in FIG. 3.
As shown in fig. 4, in the data transmission method provided in the embodiment of the present invention, the process may include the following steps:
first, for the data sender:
in step S210, current data to be transmitted and previous transmitted data are obtained, where the previous transmitted data is the latest transmitted data;
to implement data transmission, a transmitting end first needs to acquire data to be transmitted (i.e., data to be transmitted currently) and previously transmitted data.
Based on the foregoing description, it can be known that the previously sent data can be used to compare whether the same bit data is the same with the result data after the current data to be sent is coded; of course, based on different encoding rules, the previously transmitted data can also be used to combine with the current data to be transmitted, so as to implement data encoding.
In step S211, according to each coding rule, the current data to be sent is respectively subjected to coding operation, so as to obtain each coded current data to be sent.
After the current data to be sent and the previous sent data are obtained, determining each coding rule, and then carrying out coding operation on the current data to be sent according to each coding rule to obtain coded current data to be sent.
It should be noted that, in an embodiment, the determination of each encoding rule may be implemented by the following steps:
acquiring an application scene of data transmission;
and determining each encoding rule from an encoding rule base according to the application scene.
Therefore, different types of coding rules can be stored in a coding rule base in advance, when the coding rules are needed to be used, the coding rules can be selected to be combined according to the application scene of actual use, the use and the operation are more convenient, and more selection spaces can be provided.
Of course, the number of the encoded current data to be transmitted is the same as the number of the encoding rules, and there is a one-to-one correspondence relationship between the encoding rules and the encoded current data to be transmitted.
Based on the foregoing description, the number of the encoding rules may be 2, 3, 4 or even more, so as to implement the subsequent comparison, and the content of the specific encoding rule may also be selected as required.
Specifically, the encoding rules may include a first encoding rule for keeping the current data to be transmitted unchanged, a second encoding rule for inverting the current data to be transmitted, a third encoding rule for performing an exclusive-or operation on the current data to be transmitted and the previous data to be transmitted, and a fourth encoding rule for performing an exclusive-or operation on the current data to be transmitted and the previous data to be transmitted.
For ease of understanding, the following description will take two different encoding rules as examples:
assuming that the previous transmitted data is 10010001 with 8 bits, after the current data to be transmitted is encoded by using two different encoding rules, the obtained 8-bit encoded current data to be transmitted is 10000001 and 00110011, respectively.
In step S212, the previously transmitted data and the current data to be transmitted of each code are respectively compared, and the number of bits of the same bit data of the previously transmitted data and the current data to be transmitted of each code is obtained.
And after the current data to be sent is coded, further acquiring the number of each bit.
It should be noted that "both" refers to encoding the current data to be transmitted and the previous data to be transmitted under a certain encoding rule.
When the number of the coding rules is two, the number of the coded current data to be sent is two, and the two coded current data to be sent are respectively compared with the previous sent data to obtain the number of the same bits of the two same bits of data; when the number of the coding rules is three, the number of the coded current data to be sent is three, the three coded current data to be sent are respectively compared with the previous data to be sent to obtain the same number of bits of the same three bits of data, and so on, the number of the coding rules corresponds to the number of the bits.
For ease of understanding, the following description is continued with reference to the foregoing case:
after obtaining that the two pieces of encoded current data to be transmitted are 10010001 and 01101110, respectively, using the two pieces of encoded current data to be transmitted to compare the same data on the same bit with the previously transmitted data 10000001, it can be seen that the number of bits of the same data on the same bit of 10000001 and 10010001 is 7, and the number of bits of the same data on the same bit of 10000001 and 01101110 is 1, and the two numbers of bits are 7 and 1, respectively.
In step S213, the maximum bit number of the bit numbers, the current data to be transmitted of the code corresponding to the maximum bit number, and the coding rule are obtained, so as to obtain the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, and obtain the rule code of the coding rule to be transmitted.
The maximum bit number in each bit number is obtained, so that it can be determined which coding rule obtains the smallest difference between the current data to be transmitted and the previously transmitted data, that is, the smallest number of turns in the transmission process.
When two maximum bit numbers occur, namely the previously sent data is compared with each piece of coded current data to be sent, and two bit numbers which are the same and are the maximum values in each bit number of the same bit data are obtained, the coding rule to be sent corresponding to one bit number and the coded current data to be sent are randomly selected.
For ease of understanding, the following description is continued with reference to the foregoing case:
after obtaining that the two bit numbers are respectively 7 and 1, the maximum bit number is 7 by comparison, and then acquiring 10010001 of the current data to be transmitted of the code corresponding to the maximum bit number of 7 and the coding rule to be transmitted.
Since the encoding rule is an algorithm, the algorithm needs to be encoded again to obtain the rule code in order to transmit the encoding rule conveniently.
Specifically, the rule code may be represented by 1 bit, and 1 and 0 represent different coding rules, respectively; of course, the regular code can also be represented by 2 bits, such as: 00. 01, 10, 11 represent different encoding rules, respectively, but in other embodiments, when the number of encoding rules increases, the rule encoding may be represented by bits of 2 or more bits.
Specifically, when the number of the encoding rules is within 8, the rule encoding may be represented by 3-bit bits, and when the number of the encoding rules is within 16, the rule encoding may be represented by 4-bit bits, and the number of bits of the rule encoding may satisfy the requirement of encoding according to the number of the encoding rules.
The corresponding relation between the coding rule and the rule code can be set in advance according to needs, and can be obtained by searching after the coding rule to be sent is obtained.
Therefore, in the above example, it is also necessary to re-encode the coding rule with the maximum number of bits of 7 to obtain the corresponding to-be-transmitted rule code.
In step S214, according to a transmission rule, the data to be transmitted and the rule code of the coding rule to be transmitted are transmitted.
The encoding rule which is used for encoding the current data to be transmitted and has the least number of turns and the largest number of bit positions is used for encoding the current data to be transmitted;
the sending rule may specifically include a bit width determination condition and a bit width non-determination condition.
It should be noted that the bit width is the total number of bits of the data to be transmitted.
In a specific embodiment, when the sending rule does not include the condition of determining the bit width, that is, no matter whether the maximum bit number is equal to the bit width, the sending end needs to send the rule code that is to send the current data to be sent and the coding rule to be sent.
When the sending rule includes determining the bit width, the maximum bit number and the bit width need to be compared, which may specifically refer to fig. 5, where fig. 5 is a flowchart of determining the gate control signal by the data transmission method provided in the embodiment of the present application.
Specifically, step S214 may further include:
in step S2140, it is determined whether the maximum bit number and the bit width are equal, and if the maximum bit number is determined to be smaller than the bit width (i.e., the maximum bit number is not equal to the bit width), step S2141 is performed, otherwise step S2142 is performed.
In step S2141, a non-enabled gate control signal is transmitted and the current data to be transmitted of the code to be transmitted and the rule code of the code rule to be transmitted are transmitted;
in step S2142, the sending of the current data to be sent of the code to be sent is stopped, the previously sent data is retained, and an enable gate signal and the regular code of the coding rule to be sent are sent.
The enabling gating signals and the disabling gating signals are both codes, and the control signals are transmitted through the enabling gating signals and the disabling gating signals to control whether each register transmits data or not.
Specifically, the number of encoding bits may be 1 bit, for example, encoding 1 represents enabling the gating signal and encoding 0 represents not enabling the gating signal.
When the information sent by the first register of the data sending end includes the enabling gating signal, that is, it is clear that the currently transmitted data is the same as the last transmitted data, the previously sent data does not need to be sent again, only the previously sent data needs to be kept, and each subsequent register keeps the previously sent data as long as the enabling gating signal is received, and simultaneously, the rule coding of the coding rule to be sent and the enabling gating signal are sent to the next register, so that the power consumption generated by sending the current data to be sent of the coding to be sent is reduced, the power consumption in the data transmission process can be further reduced, and because the bit position occupied by the enabling gating signal is extremely small, the power consumption is extremely low compared with the power consumption generated by transmitting the whole data, and no extra load is caused in the data transmission process.
Therefore, by adding the coding information of the gating signal with one bit, the data acquisition of the receiving end is realized under the condition that the transmitting end does not transmit data, and the power consumption loss can be further reduced when the data is transmitted.
Continuing with the above case, the data to be transmitted is coded current data to be transmitted 10010001 calculated by the coding rule with the maximum number of bits being 7.
And sending the current data to be sent of the codes corresponding to the maximum bit number and the rule codes corresponding to the coding rules to a receiving end, and performing data intervention from a sending end of data transmission so as to effectively reduce the turnover times in the data transmission process and reduce the power consumption generated in the data transmission process.
It can be seen that, according to the technical scheme provided in the embodiment of the present application, at a sending end of a data transmission system, current data to be sent of each code is obtained through coding, the current data to be sent of the code with the same number of bits as that of the previous data to be sent is determined, a coding rule to be sent and the current data to be sent of the code to be sent are obtained and sent, sending of the current data to be sent can be achieved by sending the current data to be sent of the code to be sent, and sending is performed with the least bit reversal amount, so that the number of bits for data inversion in a data transmission process is reduced, and power consumption of data transmission is reduced.
For the data receiver, please continue to refer to fig. 4:
in step S310, according to the receiving information, to-be-decoded data and a rule code of a coding rule corresponding to the to-be-decoded data are obtained, where the to-be-decoded data includes the to-be-transmitted coded current to-be-transmitted data transmitted by the transmitting end, and the coding rule includes the to-be-transmitted coding rule of the transmitting end.
It is easy to understand that, after the sending end sends the current data to be sent of the code to be sent and the rule code corresponding to the code rule to be sent, the receiving end receives the current data to be sent of the code to be sent, that is, obtains the data to be decoded, and receives the rule code of the code rule corresponding to the data to be decoded, that is, obtains the rule code of the code rule corresponding to the data to be decoded.
When the sending rule includes the condition of judging the bit width, the receiving information includes two conditions of whether the enabling signal is included or not, the obtained receipts to be received are different, and when the receiving information is determined to include the enabling signal, the data to be decoded is obtained as the previous received data, wherein the previous received data is the latest received data;
and when the received information is determined to include the non-enabling signal, acquiring the data to be decoded as the current data to be transmitted of the code to be transmitted, which is transmitted by the data transmission method of the transmitting end.
When the received information comprises an enabling signal, acquiring the previous received data of the receiving end, and taking the previous received data as the data to be decoded; and when the receiving information comprises the non-enabling signal, receiving the data to be sent of the code to be sent by the data transmission method of the sending end, thereby obtaining the data to be decoded.
Therefore, when the maximum bit number is equal to the bit width, the power consumption generated in the data transmission process can be further reduced.
In step S311, a decoding rule of the data to be decoded is determined according to the rule coding.
And after the rule coding is obtained, determining a coding rule according to the rule coding, and then obtaining a reverse operation rule of the coding rule to obtain a decoding rule so as to decode the data to be decoded.
Specifically, if it is determined that the encoding rule is the first encoding rule for keeping the current data to be decoded unchanged based on the obtained rule encoding, it is determined that the decoding rule is the first decoding rule for keeping the data to be decoded unchanged.
Similarly, if the encoding rule is determined to be the second encoding rule for negating the data to be decoded based on the obtained rule encoding, the decoding rule is determined to be the second decoding rule for negating the data to be decoded.
If the encoding rule is determined to be a third encoding rule for performing exclusive-or operation on the current data to be decoded and the previously transmitted data based on the obtained rule encoding, the decoding rule is determined to be a third decoding rule for performing exclusive-or operation on the data to be decoded and the previously received data, and the previously received data is the latest received data before the data to be decoded and is equal to the previously transmitted data.
And if the encoding rule is determined to be a fourth encoding rule for performing exclusive nor operation on the current data to be decoded and the previously transmitted data based on the obtained rule encoding, determining the decoding rule to be a fourth decoding rule for performing exclusive nor operation on the data to be decoded and the previously received data, wherein the previously received data is the latest received data before the data to be decoded and is equal to the previously transmitted data.
If other rules are coded, the corresponding coding rule and decoding rule can be determined, and the subsequent decoding of the data to be decoded is realized.
In step S312, the data to be decoded is decoded according to the decoding rule, so as to obtain decoded data.
Of course, according to the difference of the maximum bit number determined by the sending end sending encoding module, the decoding rules obtained after the inverse operation are different, and the operation on the data to be decoded is different.
Specifically, when the decoding rule corresponding to the obtained data to be decoded is the first decoding rule, the data to be decoded is kept unchanged, and the decoded data can be obtained.
And when the obtained decoding rule corresponding to the data to be decoded is a second decoding rule, negating each bit of the data to be decoded to obtain the decoded data.
And when the obtained decoding rule corresponding to the data to be decoded is a third decoding rule, performing exclusive or operation on the data to be decoded and the previously received data to obtain the decoded data.
And when the decoding rule corresponding to the obtained data to be decoded is a fourth decoding rule, performing exclusive OR operation on the data to be decoded and the previously received data to obtain the decoded data.
And when the decoding rule corresponding to the obtained data to be decoded is a fifth decoding rule, performing AND operation on the data to be decoded and the previously received data to obtain the decoded data.
And when the decoding rule corresponding to the obtained data to be decoded is a sixth decoding rule, performing OR operation on the data to be decoded and the previously received data to obtain the decoded data.
And when the decoding rule corresponding to the obtained data to be decoded is other decoding rules, decoding the data to be decoded according to the corresponding decoding rule, and obtaining the decoded data.
On the basis of low power consumption, data miss can not occur, the situation that the current target data is not met is multiplexed, and all the data to be sent can be received, namely the whole data can not be damaged.
In some embodiments, in order to reduce the encoding operation amount, the encoding rules may be two, as shown in fig. 6, and fig. 6 shows another flowchart of the data transmission method provided by the embodiment of the present application.
Specifically, as shown in fig. 6, the encoding rules may include a first encoding rule for keeping the current data to be sent unchanged and a second encoding rule for inverting the current data to be sent, in which case, the process may include the following steps:
in step S410, current data to be transmitted and previous transmitted data are obtained, where the previous transmitted data is the latest transmitted data;
the specific content of step S410 may refer to the description of step S210 shown in fig. 4, and is not described herein again.
In step S411, according to the first coding rule, the current data to be sent is kept unchanged to obtain first coded current data to be sent, and according to the second coding rule, the current data to be sent is negated to obtain second coded current data to be sent.
Part of the content of step S411 may refer to the description of step S211 shown in fig. 4, except that the first encoding rule is to keep the current data to be transmitted unchanged, so that the obtained first encoded current data to be transmitted is the same as the current data to be transmitted; the second coding rule is to invert the current data to be sent, so that the obtained second coded current data to be sent is data obtained by inverting each bit of the current data to be sent.
Here, for ease of understanding, the description is continued with reference to the previously transmitted data and the currently transmitted data in the foregoing case.
10000001 that the previous sent data is 8 bits and 10010001 that the current data to be sent is 8 bits, then, according to the algorithm of the first coding rule, the obtained current data to be sent of the first code is 10010001, and according to the second coding rule, the obtained current data to be sent of the second code is 01101110;
in step S412, the previously transmitted data and the first coded current data to be transmitted are compared to obtain the same number of first bits of the same bit data, and the previously transmitted data and the second coded current data to be transmitted are compared to obtain the same number of second bits of the same bit data.
The specific content of step S412 can refer to the description of step S212 shown in fig. 4, and is not described herein again.
For ease of understanding, the description continues with the foregoing case:
when the first encoded current data to be transmitted 10010001 obtained in step S411 is compared with the previous transmitted data 10000001, the same first bit number of the same bit data is 7, and when the second encoded current data to be transmitted 01101110 is compared with the previous transmitted data 10000001, the same second bit number of the same bit data is 1.
In step S413, it is determined whether the first bit number is the maximum, if so, step S414 is executed, otherwise, step S416 is executed.
Here, the first number of bits is used as a judgment basis, but it is needless to say that the second number of bits may be used as a judgment basis in other embodiments, and it is essential to compare the sizes of the first number of bits and the second number of bits to determine which number of bits is the largest.
In combination with the above case, the first number of bits 7 and the second number of bits 1 are compared, the first number of bits 7 is the maximum number of bits, and thus step S414 is performed.
In step S414, the current data to be transmitted of the first code and the first coding rule are obtained, the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted are obtained, and the rule code of the coding rule to be transmitted is obtained.
And when the number of the first bits is maximum, the first code current data to be sent is the data to be sent of the code to be sent, and the first coding rule is the coding rule to be sent.
Then, a rule code corresponding to the first coding rule is obtained, such as: a first encoding rule that keeps the current data to be transmitted unchanged may be denoted by 00.
In combination with the above cases: here, the data to be transmitted is coded to be currently transmitted as 10010001 of the first coded data to be currently transmitted.
In step S415, the first code is sent to the current data to be sent and the rule code of the first coding rule.
Specifically, in combination with the foregoing cases: 10010001 and 00 are sent.
In step S416, the second bit number and the second coding rule are obtained, so as to obtain the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, and obtain the rule code of the coding rule to be transmitted.
When it is determined that the first number of bits is not the maximum, step S416 is executed, where the data to be transmitted should be encoded as the second encoded data to be transmitted, and the encoding rule should be the second encoding rule: and negating the current data to be sent and acquiring the rule code of the second coding rule.
Correspondingly, in step S417, the second code is sent to the current data to be sent and the rule code of the second coding rule.
Therefore, by keeping the current data to be transmitted unchanged by the first coding rule and negating the current data to be transmitted by the second coding rule, the current data to be transmitted is calculated, the original data and the negated data are compared, the current data to be transmitted and the coding rule corresponding to the data, which has the smallest difference compared with the previous data to be transmitted, can be determined between the current data to be transmitted and the negated data, the rule code corresponding to the coding rule is determined, and the rule code and the current data to be transmitted are transmitted to the transmitting end, so that the minimum turnover in the data transmission process can be realized and the power consumption of data transmission can be reduced by smaller calculation amount and lower calculation difficulty.
In the following embodiments, when there are two encoding rules, all refer to fig. 6, and only the encoding rule needs to be adjusted.
In other embodiments, the encoding rules may include a first encoding rule for keeping the current data to be transmitted unchanged and a third encoding rule for performing an exclusive-or operation on the current data to be transmitted and the previous data to be transmitted, and specifically includes the following steps:
acquiring current data to be transmitted and previous transmitted data, wherein the previous transmitted data is latest transmitted data;
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the third coding rule, carrying out XOR on the current data to be sent and the previously sent data to obtain third-coded current data to be sent;
comparing the previously sent data with the first code current data to be sent, acquiring the same first bit quantity of the same bit data, and comparing the previously sent data with the third code current data to be sent, acquiring the same third bit quantity of the same bit data;
judging whether the number of first bits is maximum, if so, acquiring the current data to be sent of the first code and the first coding rule to obtain the current data to be sent of the code to be sent and the coding rule to be sent, acquiring the rule code of the coding rule to be sent, and sending the current data to be sent of the first code and the first coding rule; if not, acquiring the third bit quantity and the third coding rule, acquiring the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, acquiring the rule code of the coding rule to be transmitted, and transmitting the current data to be transmitted of the third code and the rule code of the third coding rule.
In combination with the above cases: the current data to be sent is coded according to a first coding rule and a third coding rule respectively to obtain that the current data to be sent of the first code is 10010001, the current data to be sent of the third code is 00010000, the current data to be sent of the first code is 10010001 and the current data to be sent of the previous sent data 10000001 are compared to obtain that the same first bit number of the same bit data is 7, the current data to be sent of the third code is 00010000 and the current data to be sent of the previous sent data 10000001 are compared to obtain that the same third bit number of the same bit data is 5, and the first bit number 7 is the maximum bit number.
Therefore, the types of the coding rules can be enriched, different codes of the current data to be sent can be obtained, and the requirements of different types of data transmission can be met.
In another embodiment, the encoding rule further includes a first encoding rule for keeping the current data to be transmitted unchanged and a fourth encoding rule for performing an exclusive or operation on the current data to be transmitted and the previously transmitted data, and the process specifically includes the following steps:
acquiring current data to be transmitted and previous transmitted data, wherein the previous transmitted data is latest transmitted data;
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the fourth coding rule, performing the same or operation on the current data to be sent and the previously sent data to obtain fourth-coded current data to be sent;
comparing the previously sent data with the first coded current data to be sent to obtain the same first bit quantity of the same bit data, and comparing the previously sent data with the fourth coded current data to be sent to obtain the same fourth bit quantity of the same bit data;
judging whether the number of first bits is maximum, if so, acquiring the current data to be sent of the first code and the first coding rule to obtain the current data to be sent of the code to be sent and the coding rule to be sent, acquiring the rule code of the coding rule to be sent, and sending the current data to be sent of the first code and the first coding rule; if not, acquiring the fourth bit quantity and the fourth coding rule, acquiring data to be sent and a coding rule to be sent of a code to be sent currently, acquiring a rule code of the coding rule to be sent, and sending the data to be sent and the rule code of the fourth coding rule.
In combination with the above cases: coding the current data to be sent according to a first coding rule and a fourth coding rule respectively to obtain that the current data to be sent of the first code is 10010001, and the current data to be sent of the fourth code is 11101111; comparing the obtained first coded current data to be transmitted 10010001 with the previous transmitted data 10000001, so that the same first bit quantity of the same bit data is 7, and comparing the fourth coded current data to be transmitted 11101111 with the previous transmitted data 10000001, so that the same fourth bit quantity of the same bit data is 3; therefore, the current data to be sent of the first code and the rule code of the first coding rule are obtained, and the current data to be sent of the first code and the rule code of the first coding rule are sent.
Therefore, the types of the coding rules can be enriched in another mode, different codes of the current data to be sent can be obtained, and the requirements of different types of data transmission can be met.
Of course, the encoding rules may be other algorithms, and the present application only describes some of the algorithms, including but not limited to the implementation of the algorithms described in the examples of the present application.
In other embodiments, a combination manner of any two combinations, such as the second encoding rule and the third encoding rule, the second encoding rule and the fourth encoding rule, may also be selected from the encoding rules to meet the needs of different data transmissions.
Therefore, different codes are carried out on the current data to be transmitted through various types of coding rules to obtain different codes of the current data to be transmitted, one data with the least difference with the previously transmitted data and a corresponding algorithm can be compared, and in the data transmission process, various algorithms can be flexibly combined, so that the turnover frequency of the data can be reduced to the greatest extent, and the aim of low-power-consumption data transmission is fulfilled.
Still taking the above different encoding rules as examples, when there are three encoding rules, the embodiments of the present application are all described with reference to fig. 7. Fig. 7 is a further flowchart of a data transmission method according to an embodiment of the present application.
In an embodiment, the encoding rules may include a first encoding rule for keeping the current data to be transmitted unchanged, a second encoding rule for inverting the current data to be transmitted, and a third encoding rule for xoring the current data to be transmitted and the previous data to be transmitted, as shown in fig. 7, the process may include the following steps:
in step S510, current data to be transmitted and previous transmitted data are obtained, where the previous transmitted data is the latest transmitted data.
For details of step S510, please refer to the related description of step S410 described in fig. 6, which is not repeated herein.
In step S511, according to the first coding rule, the current data to be sent is kept unchanged to obtain first-coded current data to be sent, according to the second coding rule, the current data to be sent is negated to obtain second-coded current data to be sent, and according to the third coding rule, an xor operation is performed on the current data to be sent and the previously sent data to obtain third-coded current data to be sent.
For the specific content of step S511, please refer to the related description of step S411 described in fig. 6, and it is only necessary to obtain the current data to be transmitted of the third code according to the third coding rule.
Continuing to combine the above cases, according to the algorithm of the first coding rule, the obtained current data to be transmitted of the first code is 10010001, according to the second coding rule, the obtained current data to be transmitted of the second code is 01101110, and according to the third coding rule, the obtained current data to be transmitted of the third code is 00010000.
In step S512, the previous sent data and the first coded current data to be sent are compared to obtain a first number of bits of the same bit data, the previous sent data and the second coded current data to be sent are compared to obtain a second number of bits of the same bit data, and the previous sent data and the third coded current data to be sent are compared to obtain a third number of bits of the same bit data.
For the specific content of step S512, please refer to the related description of step S412 in fig. 6, it is only necessary to compare the previously sent data with the currently to-be-sent data of the third code, and obtain the same number of third bits of the same bit data.
Continuing with the above case, comparing the first coded current data to be transmitted 10010001 obtained in step S511 with the previous transmitted data 10000001, if the same first bit number of the same bit data is 7, comparing the second coded current data to be transmitted 01101110 with the previous transmitted data 10000001, if the same second bit number of the same bit data is 1, comparing the third coded current data to be transmitted 00010000 with the previous transmitted data 10000001, if the same second bit number of the same bit data is 5.
In step S513, it is determined whether the first bit number is the maximum, if so, step S514 is executed, otherwise, step S516 is executed.
The first number of bits is used as a judgment basis, but in other embodiments, the second number of bits or the third number of bits may be used as a judgment basis.
For details of step S513, please refer to the related description of step S413 described in fig. 6, which is not repeated herein.
A determination is made based on the first bit number 7, the second bit number 1, and the third bit number 5 obtained in step S512, and the first bit number 7 is the maximum bit number, so step S514 is performed.
In step S514, the current data to be transmitted of the first code and the first coding rule are obtained, the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted are obtained, and the rule code of the coding rule to be transmitted is obtained.
In step S515, sending the first code of the current data to be sent and the rule code of the first coding rule;
for details of step S514 and step S515, please refer to the related description of step S414 and step S415 described in fig. 6, which is not repeated herein.
In step S516, it is determined whether the second bit number is the maximum, if so, step S517 is executed, and if not, step S519 is executed.
And when the first bit quantity is judged not to be the maximum, further judging whether the second bit quantity is the maximum or not, and carrying out subsequent steps.
In step S517, the second bit number and the second coding rule are obtained, the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted are obtained, and the rule code of the coding rule to be transmitted is obtained.
In step S518, the second code is sent with the current data to be sent and the rule code of the second coding rule.
For details of step S517 and step S518, please refer to the related description of step S416 and step S417 described in fig. 6, which is not repeated herein.
In step S519, the third bit number and the third coding rule are obtained, the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted are obtained, and the rule code of the coding rule to be transmitted is obtained.
In step S520, the third code is sent to the current data to be sent and the rule code of the third coding rule.
In another embodiment, the encoding rules may further include a first encoding rule for keeping the current data to be transmitted unchanged, a second encoding rule for inverting the current data to be transmitted, and a fourth encoding rule for performing an exclusive-nor operation on the current data to be transmitted and the previous data to be transmitted, and please refer to fig. 7 in detail, the specific processing steps only need to adjust the third encoding rule to the fourth encoding rule, and the current data to be transmitted in the third encoding is adjusted to the current data to be transmitted in the fourth encoding, which is not described herein again.
Of course, the embodiments when the encoding rule includes three types may be various, for example, all combination schemes including different permutation combinations of the first encoding rule, the third encoding rule, and the fourth encoding rule, and the second encoding rule, the third encoding rule, and the fourth encoding rule, may be implemented according to the data transmission method provided in the embodiments of the present application.
Therefore, different operations are performed on the current data to be transmitted through various algorithms to obtain different variants of the current data to be transmitted, the various algorithms are added for comparison, the transmission effect of comparing the variant with the least difference with the previous transmitted data and the corresponding algorithm is better, and the data turnover frequency can be reduced to a greater extent in the data transmission process, so that the purpose of low-power-consumption data transmission is achieved.
Of course, the number of the encoding rules may be more, and still take the above different encoding rules as examples, and when the encoding rules are four, all the embodiments of the present application will be described with reference to fig. 8. Fig. 8 is a flowchart of a data transmission method according to an embodiment of the present application.
In the embodiment provided in this application, the encoding rules include a first encoding rule for keeping the current data to be transmitted unchanged, a second encoding rule for inverting the current data to be transmitted, a third encoding rule for performing an exclusive-or operation on the current data to be transmitted and the previous data to be transmitted, and a fourth encoding rule for performing an exclusive-or operation on the current data to be transmitted and the previous data to be transmitted, as shown in fig. 8, the process may include the following steps:
in step S610, current data to be transmitted and previous transmitted data are obtained, where the previous transmitted data is the latest transmitted data.
For details of step S610, please refer to the related description of step S410 described in fig. 6, which is not repeated herein.
In step S611, according to the first coding rule, the current data to be sent is kept unchanged to obtain first-coded current data to be sent, the current data to be sent is inverted according to the second coding rule to obtain second-coded current data to be sent, according to the third coding rule, an exclusive or operation is performed on the current data to be sent and the previous data to be sent to obtain third-coded current data to be sent, and according to the fourth coding rule, an exclusive or operation is performed on the current data to be sent and the previous data to be sent to obtain fourth-coded current data to be sent;
for the specific content of step S611, please refer to the related description of step S411 described in fig. 6 and the related description of step S511 described in fig. 7, and only the fourth code current data to be transmitted needs to be obtained according to the fourth coding rule.
Continuing to combine the above case, according to the first coding rule, obtaining 10010001 of the first code currently to-be-transmitted data, according to the second coding rule, 01101110 of the second code currently to-be-transmitted data, according to the third coding rule, 00010000 of the third code currently to-be-transmitted data, and according to the fourth coding rule, 11101111 of the fourth code currently to-be-transmitted data;
in step S612, comparing the previous sent data with the first coded current data to be sent, obtaining a first number of bits of the same bit data, comparing the previous sent data with the second coded current data to be sent, obtaining a second number of bits of the same bit data, comparing the previous sent data with the third coded current data to be sent, obtaining a third number of bits of the same bit data, comparing the previous sent data with the fourth coded current data to be sent, and obtaining a fourth number of bits of the same bit data.
For the specific content of step S612, please refer to the related description of step S412 in fig. 6 and the related description of step S512 in fig. 7, and only the previously sent data and the fourth coded current data to be sent need to be compared to obtain the same fourth bit number of the same bit data.
Continuing to combine with the above case, comparing the first coded current data to be transmitted 10010001 obtained in step S611 with the previous transmitted data 10000001, if the same first bit number of the same bit data is 7, comparing the second coded current data to be transmitted 01101110 with the previous transmitted data 10000001, then the same second bit number of the same bit data is 1, comparing the third coded current data to be transmitted 00010000 with the previous transmitted data 10000001, then the same third bit number of the same bit data is 5, comparing the fourth coded current data to be transmitted 11101111 with the previous transmitted data 10000001, then the same fourth bit number of the same bit data is 3;
in step S613, it is determined whether the first bit number is the maximum, if so, step S614 is performed, otherwise, step S616 is performed.
The first number of bits is used as a judgment basis, but in other embodiments, the second number of bits, the third number of bits, or the fourth number of bits may be used as a judgment basis.
For details of step S613, please refer to the related description of step S413 described in fig. 6, which is not repeated herein.
A determination is made according to the first bit number 7, the second bit number 1, the third bit number 5, and the fourth bit number 3 obtained in step S612, and the first bit number 7 is the maximum bit number, so step S614 is executed.
In step S614, the current data to be transmitted of the first code and the first coding rule are obtained, the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted are obtained, and the rule code of the coding rule to be transmitted is obtained.
In step S615, the first code is sent to the current data to be sent and the rule code of the first coding rule.
For details of step S614 and step S615, please refer to the related description of step S414 and step S415 described in fig. 6, which is not repeated herein.
In step S616, it is determined whether the second bit number is the maximum, if so, step S617 is performed, and if not, step S619 is performed.
In step S617, the second bit number and the second coding rule are obtained, to obtain the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, and to obtain the rule code of the coding rule to be transmitted.
In step S618, the second coded current data to be transmitted and the rule code of the second coding rule are transmitted.
For details of steps S616-S618, please refer to the related description of steps S516 and S518 described in fig. 7, which is not repeated herein.
In step S619, it is determined whether the third bit number is the maximum, if so, step S620 is performed, and if not, step S622 is performed.
And when the first bit quantity is judged not to be the maximum and the second bit quantity is judged not to be the maximum, further judging whether the third bit quantity is the maximum or not, and carrying out the subsequent steps.
In step S620, the third bit number and the third coding rule are obtained, so as to obtain the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, and obtain the rule code of the coding rule to be transmitted.
In step S621, the third code is sent to the current data to be sent and the rule code of the third coding rule.
In step S622, the fourth bit number and the fourth coding rule are obtained, so as to obtain the current data to be transmitted of the code to be transmitted and the coding rule to be transmitted, and obtain the rule code of the coding rule to be transmitted.
In step S623, the fourth coded current data to be transmitted and the rule code of the fourth coding rule are transmitted.
Of course, when other encoding rules different from the above are included, other combinations are also possible, and any combination may be performed according to the data transmission method provided in the embodiment of the present application.
Therefore, different operations are performed on the current data to be sent by continuously increasing the types of different algorithms to obtain different variants of the current data to be sent, the more variants are obtained, the more the comparison result is beneficial to data transmission, and therefore, the data turnover frequency can be further reduced to the maximum extent in the data transmission process, and the purpose of low-power-consumption data transmission is achieved.
The encoding rule described in any of the above embodiments is an encoding including at least 2 bits, and is specifically determined according to the kind of the algorithm included in the encoding rule.
In order to solve the foregoing problem, an embodiment of the present application further provides a data transmission apparatus, where the apparatus is applicable to a sending end, and may be considered as a functional module that needs to be set at the sending end to implement the data transmission method provided in the embodiment of the present application. The device contents described below may be referred to in correspondence with the method contents described above at the transmitting end.
As an alternative implementation, fig. 9 shows an alternative structural block diagram of a data transmission apparatus at a sending end according to an embodiment of the present application.
As shown in fig. 9, the data transmission apparatus may include:
an obtaining module 710, configured to obtain current data to be sent and previous sent data, where the previous sent data is latest sent data;
the encoding module 711 is configured to perform encoding operations on the current data to be sent according to each encoding rule, so as to obtain each encoded current data to be sent; a determining module 712, configured to compare and determine the previous sent data and each piece of coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent;
a sending module 713, configured to send, according to a sending rule, the current data to be sent of the code to be sent and the rule code of the code to be sent.
Of course, in some embodiments, the encoding rule determining module 7110 may further be included, where the encoding rule determining module 7110 is configured to obtain an application scenario of data transmission, and determine each of the encoding rules from an encoding rule base according to the application scenario.
Since the number of the encoding rules can be 2, 3, 4 or even more, the encoding basis is provided for the comparison of the subsequent data, and the content of the specific encoding rule can be selected according to the requirement.
Specifically, when the number of the encoding rules is within 8, the rule encoding may be represented by 3-bit bits, and when the number of the encoding rules is within 16, the rule encoding may be represented by 4-bit bits, and the number of bits of the rule encoding may satisfy the requirement of encoding according to the number of the encoding rules.
The corresponding relation between the coding rules and the rule codes can be set in advance according to needs, and after the coding rules to be sent are obtained, the coding rules can be obtained by searching, and the coding rules can be flexibly and conveniently combined and called.
Therefore, in the above example, it is also necessary to re-encode the coding rule with the maximum number of bits of 7 to obtain the corresponding to-be-transmitted rule code.
In other embodiments, the sending module 713 may be configured to send the data to be sent and the rule code of the coding rule to be sent according to a sending rule, including:
when the maximum bit number is determined to be smaller than the bit width, transmitting a non-enabled gating signal and transmitting the current data to be transmitted of the code to be transmitted and the regular code of the code rule to be transmitted;
and when the maximum bit number is determined to be equal to the bit width, stopping sending the current data to be sent of the code to be sent, keeping the previous sent data, and sending an enabling gating signal and the regular code of the code rule to be sent.
The enabling gating signals and the disabling gating signals are both codes, and the control signals are transmitted through the enabling gating signals and the disabling gating signals to control whether each register transmits data or not.
Specifically, the number of encoding bits may be 1 bit, for example, encoding 1 represents enabling the gating signal and encoding 0 represents not enabling the gating signal. Therefore, one bit of coding information of the gating signal is added, and unnecessary power loss can be reduced conveniently when the sending end transmits data in each register.
In some further embodiments, the encoding rules may include a first encoding rule that does not change the current data to be transmitted and a second encoding rule that negates the current data to be transmitted, and the encoding module 711 is configured to perform, according to each encoding rule, an encoding operation on the current data to be transmitted, respectively, to obtain each encoded current data to be transmitted, and includes: and according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the second coding rule, negating the current data to be sent to obtain second-coded current data to be sent.
The determining module 712 is further configured to compare and determine the previous sent data and each piece of coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent, where the method includes: comparing the previously sent data with the first coded current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the second coded current data to be sent, obtaining a second bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the second bit number, and the coded current data to be sent and the coding rule corresponding to the maximum bit number, obtaining the current data to be sent of the code to be sent and the coding rule to be sent, and obtaining the rule code of the coding rule to be sent.
According to the content in the foregoing embodiment, in a further embodiment, when the encoding rule may further include a third encoding rule that performs an exclusive or operation on the current data to be transmitted and the previous data to be transmitted, the encoding module 711 is further configured to: and according to the third coding rule, performing exclusive or on the current data to be sent and the previously sent data to obtain third coded current data to be sent.
The determining module 712 is further configured to: comparing the previously sent data with the third coded current data to be sent, obtaining the same third bit quantity of the same bit data, determining the maximum bit quantity in the first bit quantity, the second bit quantity and the third bit quantity, and the coded current data to be sent and the coding rule corresponding to the maximum bit quantity, obtaining the coded current data to be sent and the coding rule to be sent, and obtaining the rule code of the coding rule to be sent.
According to the content in the above further embodiment, the encoding rule further includes a fourth encoding rule for performing an exclusive or operation on the current data to be transmitted and the previous transmitted data, and the encoding module 711 is further configured to perform an exclusive or operation on the current data to be transmitted and the previous transmitted data according to the fourth encoding rule, so as to obtain fourth encoded current data to be transmitted.
The determining module 712 is further configured to compare the previously sent data with the fourth coded current data to be sent, obtain a fourth bit number that is the same as the same bit data, determine a maximum bit number of the first bit number, the second bit number, the third bit number, and the fourth bit number, and the coded current data to be sent and the coding rule corresponding to the maximum bit number, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent.
In other embodiments, when the encoding rule may also include a first encoding rule for keeping the current data to be sent unchanged and a third encoding rule for performing an exclusive-or operation on the current data to be sent and the previous data to be sent, the encoding module 711 is configured to perform, according to each encoding rule, an encoding operation on the current data to be sent respectively to obtain each encoded current data to be sent, and includes:
and according to the third coding rule, carrying out XOR on the current data to be sent and the previously sent data to obtain third-coded current data to be sent.
A determining module 712, configured to compare and determine the previous sent data and each piece of coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent, where the determining module includes:
comparing the previously sent data with the first code current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the third code current data to be sent, obtaining a third bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the third bit number, and the code current data to be sent corresponding to the maximum bit number and the coding rule, obtaining the code current data to be sent and the code rule to be sent, and obtaining the rule code of the code rule to be sent.
In other embodiments, the encoding rules may further include a first encoding rule for keeping the current data to be transmitted unchanged and a fourth encoding rule for performing an exclusive or operation on the current data to be transmitted and the previously transmitted data, and correspondingly, the encoding module 711 is configured to perform, according to each encoding rule, an encoding operation on the current data to be transmitted, respectively, to obtain each encoded current data to be transmitted, and includes: and according to the fourth coding rule, performing the same or operation on the current data to be sent and the previously sent data to obtain fourth coded current data to be sent.
A determining module 712, configured to compare and determine the previous sent data and each piece of coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent, where the determining module includes:
comparing the previously sent data with the first code current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the fourth code current data to be sent, obtaining a fourth bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the fourth bit number, and the code current data to be sent corresponding to the maximum bit number and the coding rule, obtaining the code current data to be sent and the code rule to be sent, and obtaining the rule code of the code rule to be sent.
Therefore, the data transmission device of the sending end ensures that the sending end can intervene in advance to deform the data, so that the transmitted data has the smallest difference and the smallest overturn compared with the previously sent data, and the power consumption of data transmission can be reduced.
The device is required by a sending end, and in addition, the embodiment of the application also provides a data transmission device, which is suitable for a receiving end and can be regarded as a functional module required to be arranged at the receiving end for realizing the data transmission method provided by the embodiment of the application. The device contents described below may be referred to in correspondence with the method contents described above for the receiving end.
As an alternative implementation, fig. 10 shows an alternative structural block diagram of a data transmission apparatus at a receiving end according to an embodiment of the present application.
As shown in fig. 10, the apparatus may include:
a data obtaining module 810, adapted to obtain, according to the received information, to-be-decoded data and an encoding rule corresponding to the to-be-decoded data, where the encoding rule includes, for example, the encoding rule to be sent of the data transmission apparatus at the sending end;
a decoding rule determining module 811 adapted to determine a decoding rule of the data to be decoded according to the rule encoding;
and the decoding module 812 decodes the data to be decoded according to the decoding rule to obtain decoded data.
Therefore, inverse operation can be performed according to the data which is sent by the sending end and is subjected to minimum pre-judgment overturning, the data which needs to be transmitted is finally obtained, the problem of high power consumption caused by excessive data overturning times in the data transmission process is effectively solved, the power consumption in data transmission is reduced, and the service life of the device is prolonged.
In some embodiments, the data obtaining module 810 is adapted to obtain the data to be decoded according to the received information, including:
when the received information is determined to include an enable signal, acquiring previous received data, wherein the previous received data is latest received data;
when it is determined that the reception information includes the disable signal, the data to be transmitted of the code to be transmitted, which is transmitted by the data transmission apparatus of any one of the foregoing transmitting ends, is acquired.
The embodiment of the present application further provides a data transmission system 910, which is suitable for implementing the data transmission method provided in the embodiment of the present application.
Fig. 11 shows a schematic structural diagram of a data transmission system provided in an embodiment of the present application, and as shown in fig. 11, the data transmission system 910 includes a sending end 911 and a receiving end 912, where the sending end 911 of the data transmission system 910 can send data to implement the data transmission method according to any one of the embodiments, and the receiving end 912 of the data transmission system 910 can receive data to implement the data transmission method according to any one of the embodiments.
An embodiment of the present application further provides an integrated circuit, which may include a relay and the data transmission system 910 provided in the foregoing embodiments of the present application.
Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present disclosure, and it is intended that the scope of the present disclosure be defined by the appended claims.

Claims (27)

1. A data transmission method is characterized in that the method is suitable for a data sending end and comprises the following steps:
acquiring current data to be transmitted and previous transmitted data, wherein the previous transmitted data is latest transmitted data;
according to each coding rule, respectively carrying out coding operation on the current data to be sent to obtain each code of the current data to be sent;
respectively comparing the previously sent data with the current data to be sent of each code to obtain the number of each bit with the same bit data;
acquiring the maximum bit quantity in each bit quantity, the current data to be sent of the code corresponding to the maximum bit quantity and the coding rule, acquiring the current data to be sent of the code to be sent and the coding rule to be sent, and acquiring the rule code of the coding rule to be sent;
and sending the current data to be sent of the code to be sent and the rule code of the code to be sent according to a sending rule.
2. The data transmission method according to claim 1, wherein the step of transmitting the rule code of the transmission-compliant coded current data to be transmitted and the transmission-compliant coding rule according to the transmission rule comprises:
when the maximum bit number is determined to be smaller than the bit width, transmitting a gating disabling signal, and transmitting the current data to be transmitted of the code to be transmitted and the regular code of the code rule to be transmitted;
and when the maximum bit number is determined to be equal to the bit width, stopping sending the current data to be sent of the code to be sent, keeping the previous sent data, and sending an enabling gating signal and the regular code of the code rule to be sent.
3. The data transmission method of claim 1, wherein each of the encoding rules is determined by:
acquiring an application scene of data transmission;
and determining each encoding rule from an encoding rule base according to the application scene.
4. The data transmission method according to any one of claims 1 to 3, wherein the coding rules include a first coding rule for keeping the current data to be transmitted unchanged and a second coding rule for inverting the current data to be transmitted;
the step of respectively performing coding operation on the current data to be sent according to each coding rule to obtain each coded current data to be sent comprises:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the second coding rule, negating the current data to be sent to obtain second-coded current data to be sent;
the step of comparing the previously transmitted data with the current data to be transmitted of each code to obtain the number of each bit with the same bit data of the two comprises:
comparing the previously sent data with the first code current data to be sent to obtain the same first bit quantity of the same bit data, and comparing the previously sent data with the second code current data to be sent to obtain the same second bit quantity of the same bit data;
the step of obtaining the maximum number of bits of each of the number of bits includes:
and acquiring the maximum bit number in the first bit number and the second bit number.
5. The data transmission method according to claim 4, wherein the encoding rule further includes a third encoding rule for xoring the current data to be transmitted and the previous transmitted data;
the step of respectively performing coding operation on the current data to be sent according to each coding rule to obtain each coded current data to be sent further includes:
according to the third coding rule, performing exclusive or on the current data to be sent and the previously sent data to obtain third coded current data to be sent;
the step of comparing the previously transmitted data with each of the encoded currently transmitted data to obtain the same number of bits of the same bit data of the previously transmitted data and each of the encoded currently transmitted data further includes:
comparing the previously sent data with the third coded current data to be sent, and acquiring the same third bit number of the same bit data;
the step of obtaining the maximum number of bits of each of the number of bits includes:
obtaining a maximum bit number of the first bit number, the second bit number, and the third bit number.
6. The data transmission method according to claim 5, wherein the coding rules further include a fourth coding rule for exclusive-oring the current data to be transmitted and the previous transmitted data;
the step of respectively performing coding operation on the current data to be sent according to each coding rule to obtain each coded current data to be sent further includes:
performing the same or operation on the current data to be sent and the previously sent data to obtain fourth coded current data to be sent;
the step of comparing the previously transmitted data with each of the encoded currently transmitted data to obtain the same number of bits of the same bit data of the previously transmitted data and each of the encoded currently transmitted data further includes:
comparing the previously sent data with the fourth coded current data to be sent to obtain the same number of fourth bits of the same bit data;
the step of obtaining the maximum number of bits of each of the number of bits includes:
and acquiring the maximum bit number in the first bit number, the second bit number, the third bit number and the fourth bit number.
7. The data transmission method according to any one of claims 1 to 3, wherein the coding rules include a first coding rule for keeping the current data to be transmitted unchanged and a third coding rule for exclusive-ORing the current data to be transmitted and the previous data to be transmitted;
the step of respectively performing coding operation on the current data to be sent according to each coding rule to obtain each coded current data to be sent comprises:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the third coding rule, carrying out XOR on the current data to be sent and the previously sent data to obtain third-coded current data to be sent;
the step of comparing the previously transmitted data with the current data to be transmitted of each code to obtain the number of each bit with the same bit data of the two comprises:
comparing the previously sent data with the first code current data to be sent, acquiring the same first bit quantity of the same bit data, and comparing the previously sent data with the third code current data to be sent, acquiring the same third bit quantity of the same bit data;
the step of obtaining the maximum number of bits of each of the number of bits includes:
and acquiring the maximum bit number in the first bit number and the third bit number.
8. The data transmission method according to any one of claims 1 to 3, wherein the coding rules include a first coding rule for keeping the current data to be transmitted unchanged and a fourth coding rule for performing an exclusive-nor operation on the current data to be transmitted and the previously transmitted data;
the step of respectively performing coding operation on the current data to be sent according to each coding rule to obtain each coded current data to be sent comprises:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the fourth coding rule, performing the same or operation on the current data to be sent and the previously sent data to obtain fourth-coded current data to be sent;
the step of comparing the previously transmitted data with the current data to be transmitted of each code to obtain the number of each bit with the same bit data of the two comprises:
comparing the previously sent data with the first coded current data to be sent to obtain the same first bit quantity of the same bit data, and comparing the previously sent data with the fourth coded current data to be sent to obtain the same fourth bit quantity of the same bit data;
the step of obtaining the maximum number of bits of each of the number of bits includes:
and acquiring the maximum bit number in the first bit number and the fourth bit number.
9. A method of data transmission according to any one of claims 1 to 3 wherein the regular code comprises at least 2 bits.
10. A data transmission method, adapted to a data receiving end, comprising:
acquiring data to be decoded and rule codes of coding rules corresponding to the data to be decoded according to the received information, wherein the coding rules comprise the coding rules to be sent of the data transmission method according to any one of claims 1 to 9;
determining a decoding rule of the data to be decoded according to the rule coding;
and decoding the data to be decoded according to the decoding rule to obtain decoded data.
11. The data transmission method according to claim 10, wherein the step of acquiring the data to be decoded according to the reception information comprises:
when the received information is determined to include an enable signal, acquiring previous received data, wherein the previous received data is latest received data;
when it is determined that the reception information includes a disable signal, acquiring the data to be transmitted coded currently to be transmitted, which is transmitted by the data transmission method according to any one of claims 1 to 9.
12. The data transmission method according to claim 10 or 11, wherein the decoding rule includes a first decoding rule that keeps the data to be decoded unchanged.
13. The data transmission method according to claim 10 or 11, wherein the decoding rule comprises a second decoding rule that inverts the data to be decoded.
14. The data transmission method according to claim 10 or 11, wherein the decoding rule includes a third decoding rule that performs an exclusive-or operation on the data to be decoded and previously received data, the previously received data being data that has been received last before the data to be decoded.
15. The data transmission method according to claim 10 or 11, wherein the decoding rule includes a fourth decoding rule for performing an exclusive-nor operation on the data to be decoded and previously received data, the previously received data being data that has been received last before the data to be decoded.
16. A data transmission apparatus, adapted to a data transmitting end, comprising:
the device comprises an acquisition module, a sending module and a sending module, wherein the acquisition module is used for acquiring current data to be sent and previous sent data, and the previous sent data is latest sent data;
the encoding module is used for respectively carrying out encoding operation corresponding to the current data to be sent according to each encoding rule to obtain each encoding current data to be sent;
a judging module, configured to compare and judge the previously sent data and each piece of the coded current data to be sent, determine the number of bits with the same bit data, obtain the coded current data to be sent and the coding rule corresponding to the maximum number of bits, obtain the coded current data to be sent and the coding rule to be sent, and obtain the rule code of the coding rule to be sent;
and the sending module is used for sending the current data to be sent of the code to be sent and the rule code of the code rule to be sent according to the sending rule.
17. The data transmission apparatus according to claim 16, wherein the sending module is configured to send the current data to be sent and the rule code of the coding rule to be sent according to a sending rule, and includes:
when the maximum bit number is determined to be smaller than the bit width, transmitting a gating disabling signal, and transmitting the current data to be transmitted of the code to be transmitted and the regular code of the code rule to be transmitted;
and when the maximum bit number is determined to be equal to the bit width, stopping sending the current data to be sent of the code to be sent, keeping the previous sent data, and sending an enabling gating signal and the regular code of the code rule to be sent.
18. The data transmission apparatus of claim 16, further comprising:
and the coding rule determining module is used for acquiring an application scene of data transmission and determining each coding rule from a coding rule base according to the application scene.
19. The data transmission apparatus according to any one of claims 16 to 18, wherein the encoding rule of the encoding module is a first encoding rule that the current data to be transmitted does not change and a second encoding rule that is inverse to the current data to be transmitted, the encoding module is further adapted to:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the second coding rule, negating the current data to be sent to obtain second-coded current data to be sent;
the determination module is further adapted to:
comparing the previously sent data with the first coded current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the second coded current data to be sent, obtaining a second bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the second bit number, and the coded current data to be sent and the coding rule corresponding to the maximum bit number, obtaining the current data to be sent of the code to be sent and the coding rule to be sent, and obtaining the rule code of the coding rule to be sent.
20. The data transmission apparatus according to claim 17, wherein the encoding rule of the encoding module further includes a third encoding rule for xoring the current data to be transmitted and the previous data to be transmitted, the encoding module is further adapted to:
according to the third coding rule, performing exclusive or on the current data to be sent and the previously sent data to obtain third coded current data to be sent;
the determination module is further adapted to:
comparing the previously sent data with the third coded current data to be sent, obtaining the same third bit quantity of the same bit data, determining the maximum bit quantity in the first bit quantity, the second bit quantity and the third bit quantity, and the coded current data to be sent and the coding rule corresponding to the maximum bit quantity, obtaining the coded current data to be sent and the coding rule to be sent, and obtaining the rule code of the coding rule to be sent.
21. The data transmission apparatus according to claim 18, wherein the encoding rule of the encoding module further includes a fourth encoding rule for performing an exclusive or operation on the current data to be transmitted and the previous data to be transmitted, the encoding module is further adapted to:
according to the fourth coding rule, performing exclusive or on the current data to be sent and the previously sent data to obtain fourth coded current data to be sent;
the determination module is further adapted to:
comparing the previously sent data with the fourth coded current data to be sent, obtaining the same fourth bit number of the same bit data, determining the maximum bit number in the first bit number, the second bit number, the third bit number and the fourth bit number, and the coded current data to be sent and the coding rule corresponding to the maximum bit number, obtaining the current data to be sent and the coding rule to be sent, and obtaining the rule code of the coding rule to be sent.
22. The data transmission apparatus according to any of claims 16-18, wherein when the encoding rule of the encoding module includes a first encoding rule that keeps the current data to be transmitted unchanged and a third encoding rule that xors the current data to be transmitted and the previous data to be transmitted, the encoding module is further adapted to:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the third coding rule, carrying out XOR on the current data to be sent and the previously sent data to obtain third-coded current data to be sent;
the determination module is further adapted to:
comparing the previously sent data with the first code current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the third code current data to be sent, obtaining a third bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the third bit number, and the code current data to be sent corresponding to the maximum bit number and the coding rule, obtaining the code current data to be sent and the code rule to be sent, and obtaining the rule code of the code rule to be sent.
23. The data transmission apparatus according to any of claims 16-18, wherein when the encoding rule of the encoding module includes a first encoding rule keeping the current data to be transmitted unchanged and a fourth encoding rule performing an exclusive-nor operation on the current data to be transmitted and the previous data to be transmitted, the encoding module is further adapted to:
according to the first coding rule, keeping the current data to be sent unchanged to obtain first-coded current data to be sent, and according to the fourth coding rule, performing the same or operation on the current data to be sent and the previously sent data to obtain fourth-coded current data to be sent;
the determination module is further adapted to:
comparing the previously sent data with the first code current data to be sent, obtaining a first bit number which is the same as the same bit data, comparing the previously sent data with the fourth code current data to be sent, obtaining a fourth bit number which is the same as the same bit data, determining the maximum bit number in the first bit number and the fourth bit number, and the code current data to be sent corresponding to the maximum bit number and the coding rule, obtaining the code current data to be sent and the code rule to be sent, and obtaining the rule code of the code rule to be sent.
24. A data transmission apparatus, adapted to a receiving end, comprising:
a data obtaining module, adapted to obtain, according to information to be received, data to be decoded and a rule code of a coding rule corresponding to the data to be decoded, where the coding rule includes the coding rule to be sent of the data transmission apparatus according to any one of claims 16 to 23;
the decoding rule determining module is suitable for determining the decoding rule of the data to be decoded according to the rule coding;
and the decoding module is suitable for decoding the data to be decoded according to the decoding rule to obtain the decoded data.
25. The data transmission apparatus according to claim 24, wherein the data obtaining module, adapted to obtain the data to be decoded according to the received information, comprises:
when the received information is determined to include an enable signal, acquiring previous received data, wherein the previous received data is latest received data;
when it is determined that the reception information includes a disable signal, acquiring the data to be transmitted coded currently to be transmitted, which is transmitted by the data transmission apparatus according to any one of claims 16 to 23.
26. A data transmission system, comprising:
a sending end;
a receiving end, a transmitting end of the data transmission system can transmit data to implement the data transmission method according to any one of claims 1 to 9, and a receiving end of the data transmission system can receive data to implement the data transmission method according to any one of claims 10 to 15.
27. An integrated circuit comprising a relay and a data transmission system according to claim 26.
CN202111570997.0A 2021-12-21 2021-12-21 Data transmission method and related device Pending CN114039704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111570997.0A CN114039704A (en) 2021-12-21 2021-12-21 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111570997.0A CN114039704A (en) 2021-12-21 2021-12-21 Data transmission method and related device

Publications (1)

Publication Number Publication Date
CN114039704A true CN114039704A (en) 2022-02-11

Family

ID=80147077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111570997.0A Pending CN114039704A (en) 2021-12-21 2021-12-21 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN114039704A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978421A (en) * 2022-05-05 2022-08-30 煤炭科学研究总院有限公司 Dynamic coding method and device and electronic equipment
CN115955250A (en) * 2023-03-14 2023-04-11 燕山大学 College scientific research data acquisition management system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760329A (en) * 2016-02-01 2016-07-13 中国电子科技集团公司第三十八研究所 Coding and decoding device capable of reducing bus coupling overturn

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760329A (en) * 2016-02-01 2016-07-13 中国电子科技集团公司第三十八研究所 Coding and decoding device capable of reducing bus coupling overturn

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978421A (en) * 2022-05-05 2022-08-30 煤炭科学研究总院有限公司 Dynamic coding method and device and electronic equipment
CN114978421B (en) * 2022-05-05 2023-10-27 煤炭科学研究总院有限公司 Dynamic coding method and device and electronic equipment
CN115955250A (en) * 2023-03-14 2023-04-11 燕山大学 College scientific research data acquisition management system
CN115955250B (en) * 2023-03-14 2023-05-12 燕山大学 College scientific research data acquisition management system

Similar Documents

Publication Publication Date Title
CN114039704A (en) Data transmission method and related device
US6807595B2 (en) Mobile communication device having a prioritized interrupt controller
US5151904A (en) Reconfigurable, multi-user viterbi decoder
JP2012533264A (en) Data encoding using combined data mask and data bus inversion
CA3069482A1 (en) Blockwise parallel frozen bit generation for polar codes
KR100969748B1 (en) Method and apparatus for transmitting/receiving serial data in serial communication system and serial communication system thereof
US20150195211A1 (en) Low-voltage differential signaling or 2-wire differential link with symbol transition clocking
US10320593B2 (en) Receiver for data communication
US9311975B1 (en) Bi-synchronous electronic device and FIFO memory circuit with jump candidates and related methods
US9219509B1 (en) System performance improvement using data reordering and/or inversion
US9525890B2 (en) Method and apparatus for decoding for AVS system using fetching flag
KR100594300B1 (en) System and method for digital video data transmission
JPH05135187A (en) Digital signal processor
KR20160073713A (en) Data inversion coding apparatus and method
KR101370606B1 (en) Bus encoding device to minimize the switching and crosstalk delay
CN111193648B (en) Data transmission method for reducing CAN bus load, terminal equipment and storage medium
TWI549437B (en) Codec system and method
JP2011155330A (en) Transmission system
JP2005286662A (en) Data transmission apparatus, data transmission / reception system, and data transmission method
KR101726546B1 (en) List successive cancellation decoder having efficiently hardware size
WO2021175176A1 (en) Decoding system, decoding controller, and method for controlling decoding
KR20070090447A (en) Method and apparatus of address bus coding/decoding for low-power very large scale integration system
CN114173133B (en) Encoding method and device for data transmission, electronic equipment, storage medium and vehicle
Yoon et al. A novel low-power bus design for bus-invert coding
JP2010246029A (en) Device and method for transmitting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination