Bus-flip encoding using the limited Hamming distance of multibyte interfaces
By using extended coding space and multiple DBI bits on the multi-byte bus to limit the conversion of the total data line, the problem of excessive power supply noise in traditional bus flip coding is solved, and low-speed operation in high-bandwidth memory and on-chip buses is achieved. Noise communication, maintaining compatibility.
Patent Information
- Application Number
- CN201910464439.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-14
- Filing Date
- 2019-05-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-10-01
AI Technical Summary
Traditional bus flip coding will cause a lot of power supply noise in multi-byte interfaces, especially in high-bandwidth memory and on-chip bus communications, affecting the stability and efficiency of data transmission.
By using an expanded encoding space on the multi-byte bus, limiting the conversion of the total data line, using multiple DBI bits to reduce the Hamming distance, thereby reducing the power supply noise caused by switching outputs at the same time, using multi-byte DBI encoding technology, gradually Expands to wider bus widths.
It effectively reduces simultaneous switching output noise, reduces power supply noise by 75% to 87.5%, maintains compatibility with existing bus communication mechanisms, and further reduces noise toward zero as the bus width increases.
Smart Images

Figure CN110737620B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority under 35 U.S.C. 119 to U.S. application Ser. No. 62 / 701,075, filed on Jul. 20, 2018, entitled “BUS-INVERT CODING WITH RESTRICTED HAMMING DISTANCE FOR MULTI-BYTE INTERFACES,” the entire contents of which are incorporated herein by reference. Background Art
[0003] Conventional bus flip encoding flips the polarity of all data bits (and an additional line / bit called the DBI bit) when more than half of the bits (including the DBI bit) switch polarity on the next parallel data transfer on the bus. This avoids adjacent data transitions where more than half of the bits change polarity. For example, using conventional DBI, on an 8-bit data bus with only one DBI line, the total number of lines that change polarity between byte transfers is between 0 and 4, which reduces simultaneous switching output (SSO) noise by 50%. Summary of the invention
[0004] Described herein is a technique for reducing power supply noise induced by multiple bus drivers switching their outputs simultaneously (SSO noise). The technique works with existing encoding / decoding mechanisms currently used in high-bandwidth memory (HMB), which uses multiple bytes in the decision algorithm. This allows for a significant reduction in induced power supply noise while maintaining backward compatibility with existing bus communication mechanisms. The technique can also be applied to on-chip buses, such as buses used to communicate data between functional units on a graphics processing unit (GPU), between a general-purpose central processing unit (CPU) and other circuits, or between two circuit components that typically communicate on the bus. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] To facilitate identification of the discussion of any particular element or action, the most significant digit(s) in the reference number refers to the figure number in which the element is first introduced.
[0006] Figure 1 An embodiment of an unterminated bus 100 is illustrated.
[0007] Figure 2 An embodiment of a conventional DBI technique 200 is illustrated.
[0008] Figure 3An embodiment of a data communication system 300 is illustrated.
[0009] Figure 4 An embodiment of a 16-bit data bus 400 is illustrated.
[0010] Figure 5 An embodiment of a 2-byte DBI encoding technique 500 is illustrated.
[0011] Figure 6 An embodiment of a 32-bit data bus 600 is illustrated.
[0012] Figure 7 An embodiment of a 4-byte DBI encoding technique 700 is illustrated.
[0013] Figure 8 An 8-byte DBI encoding technique 800 is illustrated according to one embodiment.
[0014] Fig. 9 is a block diagram of a computing system 900 in which the techniques described herein may be implemented or practiced. DETAILED DESCRIPTION
[0015] A technique is disclosed for utilizing data from a multi-byte transmission on a multi-byte wide bus where each byte has an associated DBI line. The technique utilizes an expanded encoding space for multi-byte data and associated multiple DBI bits. This enables a maximum number of polarity changes on the bus for 16-bit data transmission (+2DBI bits), thereby reducing SSO noise by 75%. The technique can be extended to 4 bytes for 32-bit data transmission (+4DBI bits), which will reduce SSO noise by 87.5%.
[0016] The techniques disclosed herein determine the Hamming distance across multiple bytes, thereby further limiting the total data line transitions beyond what can be achieved by considering each byte of the bus independently. For each doubling of the number of bytes considered, and the associated DBI bits, the cumulative Hamming distance can be reduced by an additional 50% relative to not using encoding. Therefore, each time the bus width is doubled, the SSO noise is reduced by an additional 50%. As the bus width increases, the SSO noise using the disclosed techniques tends to zero. In addition, this encoding technique can effectively defeat systems that analyze power supply fluctuations / variations to determine / decrypt encrypted information.
[0017] Figure 1 An example of an unterminated bus 100 is illustrated. For simplicity, the transmitter 102 (Tx) is illustrated as a flip-flop designed to have an output impedance that can drive a load, represented by the capacitance of the data line 106 and the receiver 104, with rise and fall times that are appropriate to the operating rate. When the transmitter 102 switches the data line 106 from logic LO to logic HI, there is a voltage drop from VDDQ Current pulse drawn from the power supply. When the transmitter 102 switches the data line 106 from logic HI to logic LO, there is a current pulse that drops to GND. The current push and pull on the data line 106 is one source of SSO noise on a bus that uses multiple data lines.
[0018] Figure 2 A conventional DBI technique 200 is illustrated. The Hamming distance (HD) of the data and DBI line settings for the next bus cycle compared to the previous bus cycle is determined (block 202). If the HD is less than or equal to half of the data line N (decision block 204), the DBI line is set to zero (block 206) and the data bits are not flipped (block 208). If the HD is greater than N / 2 (decision block 210), the DBI is set to 1 (block 212) and the data bits are flipped (block 214).
[0019] Figure 3 The data communication system 300 in one embodiment is illustrated. The data communication system 300 includes a GPU 302, a DBI encoder 304, a transmitter 306, a receiver 310, a DBI decoder 312, and a memory 314. The GPU 302 generates data, such as the result of a calculation, to be stored in the memory 314. The data output of the GPU 302 is received by the DBI encoder 304 and encoded in the manner described herein, including adding multiple DBI bits to the data. The DBI encoder 304 outputs the encoded data to the transmitter 306, which generates a voltage signal on the data line and the DBI line of the bus 308, and then outputs it to the receiver 310. The receiver 310 receives signals from the data and DBI lines and provides the signals to the DBI decoder 312, which decodes the data. When using the encoding technology, no changes are required to the traditional DBI decoder. The decoded data is stored in the memory 314. The technology disclosed herein can be used to reduce SSO in a system such as the data communication system 300.
[0020] Figure 4An embodiment of a 16-bit data bus 400 is illustrated. The 16-bit data bus 400 includes two groups of data lines (group 1 402, group 2 404), each group having 8 data lines. The data lines in group 1 402 have associated DBI lines (DBI1 406), and the data lines in group 2 have associated DBI lines (DBI2 408). The layout of the data lines and DBI lines in the 16-bit data bus 400 may be different in other implementations. In each bus cycle, the data bits are transmitted along the data lines as described above (e.g., one bit is transmitted per line), and the data flip bits are transmitted by the associated DBI lines. In each bus cycle, the value of each data bit may be "0" or "1". The Hamming distance of each line is "1" for a change in value (i.e., "0" to "1" or "1" to "0") or "0" for a constant value (i.e., "0" to "0" or "1" to "1"). The Hamming distance of each line is then aggregated for each group. In some embodiments, the Hamming distance of a group may be between 0 and 8, but it may be greater than 8 as well.
[0021] Figure 5 A 2-byte DBI encoding technique 500 according to one embodiment is illustrated. At block 502, the Hamming distances of two groups (group 1 and group 2) of data lines and their associated DBI lines DBI1 and DBI2 are calculated, respectively. The Hamming distance of group 1 is denoted as HD1 and the Hamming distance of group 2 is denoted as HD2. At block 504, the data and data flip bits of group 1 and group 2 are selectively flipped. The selective flipping can be based on Figure 2 . In block 506, a second Hamming distance (or encoded Hamming distance) HD1' and HD2' is calculated for each group (Group 1' and Group 2'). The second Hamming distances HD1' and HD2' are calculated for the data that is selectively flipped in block 504, i.e., the data for Group 1' and Group 2', Data 1' and Data 2'. In decision block 508, the 2-byte DBI encoding technique 500 determines whether HD2'≥HD1'. In another embodiment, the 2-byte DBI encoding technique 500 determines whether HD2'>HD1'. If so, then in blocks 510 and 512, the data of Group 2' is flipped, and DBI2' is flipped. In the first embodiment, in blocks 514 and 516, if HD1'>HD2', the data of Group 1' is flipped, and DBI1' is flipped. In the second embodiment, if HD1'≥HD2', the data of Group 1' is flipped, and DBI1' is flipped.
[0022] Figure 6An embodiment of a 32-bit data bus 600 is illustrated. The 32-bit data bus 600 includes four groups of data lines: group 1 602, group 2 604, group 3 606, and group 4 608. Each group has an associated DBI line: for groups 1 602 to 4 608, respectively: DBI1 610, DBI2 612, DBI3 614, and DBI4 616. The layout of the data lines and DBI lines in the 32-bit data bus 600 may be different in other implementations. As shown, group 1 602 is adjacent to group 2 604, and group 3 606 is adjacent to group 4 608. In other embodiments, the lines can be arranged in different ways. In addition, the physical location of the lines can be used to determine which group each line is assigned to. In further embodiments, each group can include adjacent lines, and the group number of another group that can be determined for flipping is based on the physical location of the group. For example, adjacent groups can be selected for encoding (such as Figure 5 Other embodiments may select non-adjacent groups for encoding.
[0023] Figure 7 4-byte DBI encoding technique 700 according to one embodiment is illustrated. 4-byte DBI encoding technique 700 extends 2-byte DBI encoding technique 500 to 4-byte encoding of cross-bus data (e.g., for example, Figure 6 32-bit data bus 600 with DBI line shown in FIG. 4 ). This encoding is accomplished by treating the four bytes as a pair of byte pairs. That is, the first byte pair (e.g., group 1 602 and group 2 604) is evaluated and encoded as a unit (blocks 702 and 704), and the second byte pair (e.g., group 3 606 and group 4 608) is evaluated and encoded as another unit (blocks 706 and 708). Then, the combined Hamming distance of the two byte pairs is compared (decision block 710), and an additional encoding operation is applied to one of the byte pairs. This simplifies the overall encoding of the four bytes, because each byte pair can use the same logic required for the encoding of the 2-byte DBI encoding technique 500 above.
[0024] The first stage (block 702, block 704, block 706, block 708) of the 4-byte DBI encoding technique 700 applies two encoders (see 2-byte DBI encoding technique 500), one applied to the raw byte pairs (and their associated DBI lines) of group 1 / group 2, and the other applied to the raw byte pairs (and their associated DBI lines) of group 3 / group 4.
[0025] The second stage (decision block 710) of the 4-byte DBI encoding technique 700 applies the outputs from both encoders and compares the combined Hamming distances for the Group 1 / Group 2 pairs (HD1″+HD2″, respectively, where HDn″ is Figure 5The Hamming distance of the encoded Group 1 / Group 2) and the combined Hamming distance for the Group 3 / Group 4 pair (HD3” + HD4” respectively, where HDn” is Figure 5 the Hamming distance of the encoded Group 3 / Group 4).
[0026] The third stage of the 4-byte DBI encoding technique 700 applies the following encoding algorithm:
[0027] 1. If HD1" + HD2" ≤ HD3" + HD4", then flip DBI3" and DBI4" (block 716), and flip Group 3" and Group 4" bits (block 718); and
[0028] 2. If HD1” + HD2” > HD3” + HD4”, then flip DBI1” and DBI2” (block 712), and flip Group 1” and Group 2” bits (block 714).
[0029] In another embodiment, the third stage of the 4-byte DBI encoding technique 700 applies the following encoding algorithm:
[0030] 1. If HD1" + HD2" < HD3" + HD4", then flip DBI3" and DBI4" (block 716), and flip Group 3" and Group 4" bits (block 718); and
[0031] 2. If HD1” + HD2” ≥ HD3” + HD4”, then flip DBI1” and DBI2” (block 712), and flip Group 1” and Group 2” bits (block 714).
[0032] In other words, the 4-byte DBI encoding technique 700 determines which encoded byte pair (and associated DBI bits) has the largest combined Hamming distance, and then flips that byte pair and the bits of the associated DBI. If the byte pairs have the same combined Hamming distance, then based on the embodiment, the 4-byte DBI encoding technique 700 can flip any one byte pair (i.e., one and only one byte pair) and the bits of the associated DBI.
[0033] Figure 8 Illustrates an 8-byte DBI encoding technique 800 according to one embodiment. In the first stage (blocks 802, 804, 806, 808, 810, 812, 814, and 816), low-toggle encoding is applied to each group. For example, if HDn > N / 2, flip data n and set DBIn = 1. The first stage can use Figure 2 the conventional DBI technique 200 described in
[0034] In the second stage (block 818, block 820, block 822, block 824), the bytes are paired (e.g., group 1 / group 2, group 3 / group 4, group 5 / group 6, and group 7 / group 8). These byte pairs have their encoded Hamming distances compared, and one of the groups in the byte pair flips the data bits and data flip bits. The second stage can use Figure 5 the 2-byte DBI encoding technique 500 described in
[0035] In the third stage (block 826 and block 828), the byte pairs are further paired with another byte pair. Each byte pair has a calculated combined Hamming distance. Then the combined Hamming distances are compared, and the data bits and data flip bits of one of the byte pairs are flipped. The third stage can use Figure 7 the 4-byte DBI encoding technique 700 described in
[0036] In the fourth stage (block 830), a second combined Hamming distance is determined for the paired byte pairs compared in the third stage. As Figure 8 shown, groups 1 - 4 and groups 5 - 8 have combined Hamming distances determined using the data bits and data flip bits encoded with the flip code that obeys the previous stage. Then the second combined Hamming distances are compared, and the data bits and data flip bits of one group of 4 bytes are flipped. The fourth stage of the 8-byte DBI encoding technique 800 applies the previous stages as follows:
[0037] 5. If HD1”'+HD2”'+HD3”'+HD4”'≤HD5”'+HD6”'+HD7”'+HD8”', then flip data 5”', DBI5”', data 6”', DBI6”', data 7”', DBI7”', data 8”' and DBI8”';
[0038] 6. If HD1”+HD2”+HD3”'+HD4”'>HD5”'+HD6”'+HD7”'+HD8”', then flip data 1”', DBI1”', data 2”', DBI2”', data 3”', DBI3”', data 4”' and DBI4”'.
[0039] In another embodiment, the fourth stage of the 8-byte DBI encoding technique 800 applies the following d coding algorithm:
[0040] 7. If HD1”'+HD2”'+HD3”'+HD4”'<HD5”'+HD6”'+HD7”'+HD8”', then flip data 5”', DBI5”', data 6”', DBI6”', data 7”', DBI7”', data 8”' and DBI8”'; and
[0041] 8. If HD1”’+HD2”’+HD3”’+HD4”’≥HD5”’+HD6”’+HD7”’+HD8”’, then flip Data1”’, DBI1”’, Data2”’, DBI2”’, DBI3”’, Data3”’, Data4”’ and DBI4”’.
[0042] In other words, the 8-byte DBI encoding technique 800 determines which encoded byte pair (and associated DBI bit) has the largest combined Hamming distance, and then flips that byte pair and associated DBI bit. If each byte pair has the same combined Hamming distance, then based on an embodiment, the 8-byte DBI encoding technique 800 may flip any one of the byte pairs (i.e., one and only one byte pair) and associated DBI bits.
[0043] Fig. 9 900, in which one or more aspects of the present disclosure may be implemented. Computing system 900 includes system data bus 932, CPU 902, input device 908, system memory 904, graphics processing system 906, and display device 910. In alternative embodiments, CPU 902, portions of graphics processing system 906, system data bus 932, or any combination thereof may be integrated into a single processing unit. Additionally, the functionality of graphics processing system 906 may be included in a chipset or other type of dedicated processing unit or co-processor.
[0044] As shown, the system data bus 932 connects the CPU 902, the input device 908, the system memory 904, and the graphics processing system 906. In an optional embodiment, the system memory 904 can be directly connected to the CPU 902. The CPU 902 receives user input from the input device 908, executes programming instructions stored in the system memory 904, and operates on the data stored in the system memory 904 to perform computing tasks. The system memory 904 typically includes a dynamic random access memory (DRAM) for storing programming instructions and data. The graphics processing system 906 receives instructions transmitted by the CPU 902 and processes the instructions, for example, to implement various aspects of the embodiments of the present disclosure, and / or renders and displays graphics (e.g., images, tiles, videos) on the display device 910.
[0045] As shown, system memory 904 includes application 912, API 914 (application programming interface), and graphics processing unit driver 916 (GPU driver). Application 912 generates calls to API 914 to generate a required set of calculation results. For example, application 912 can transfer its program or function to API 914 for processing in graphics processing unit driver 916.
[0046] The graphics processing system 906 includes a GPU 918 (graphics processing unit), an on-chip GPU memory 922, an on-chip GPU data bus 936, a GPU local memory 920, and a GPU data bus 934. For example, embodiments of the systems and techniques disclosed herein may be used to communicate data on these buses and between these components. The GPU 918 is configured to communicate with the on-chip GPU memory 922 via the on-chip GPU data bus 936, and to communicate with the GPU local memory 920 via the GPU data bus 934. The GPU 918 may receive instructions transmitted by the CPU 902, process the instructions, and store the results in the GPU local memory 920. Subsequently, the GPU 918 may display certain graphics stored in the GPU local memory 920 on the display device 910.
[0047] The GPU 918 includes one or more logic blocks 924. The logic block 924 may implement functions such as graphics operations, encoding techniques, artificial intelligence, matrix operations, and the like.
[0048] Embodiments of the present disclosure may be used to communicate data between various components of computing system 900. Example component communications include communications between CPU 902 and / or GPU 918 and memory circuits, where memory circuits include system memory 904, GPU local memory 920, and / or on-chip GPU memory 922.
[0049] The GPU 918 may have any number of on-chip GPU memories 922 and GPU local memories 920 , including zero, and may employ any combination of on-chip GPU memories 922 , GPU local memories 920 , and system memory 904 for memory operations.
[0050] On-chip GPU memory 922 is configured to include GPU programming 928 and on-chip buffer 930. GPU programming 928 may be transferred from graphics processing unit driver 916 to on-chip GPU memory 922 via system data bus 932. GPU programming 928 may include logic block 924.
[0051] The GPU local memory 920 typically includes less expensive off-chip dynamic random access memory (DRAM) and is also used to store data and programming used by the GPU 918. As shown, the GPU local memory 920 includes a frame buffer 926. For example, the frame buffer 926 can store data for driving an image (e.g., a graphics surface) of the display device 910. The frame buffer 926 can contain more than one surface so that the GPU 918 can render one surface while a second surface can be used to drive the display device 910.
[0052] The display device 910 is one or more output devices capable of emitting a visual image corresponding to an input data signal. For example, a liquid crystal display or any other suitable display system can be used to construct the display device. The input data signal sent to the display device 910 is usually generated by scanning the contents of one or more image data frames stored in the frame buffer 926.
[0053] Terms used herein shall have their ordinary meaning in the relevant art or the meaning dictated by their use in the context, but if an explicit definition is provided, that meaning controls.
[0054] "Circuitry" means an electrical circuit having at least one discrete circuit, an electrical circuit having at least one integrated circuit, an electrical circuit having at least one application-specific integrated circuit, a circuit forming a general-purpose computing device configured by a computer program (e.g., a general-purpose computer configured by a computer program to perform at least in part a process or device described herein, or a microprocessor configured by a computer program to perform at least in part a process or device described herein), a circuit forming a memory device (e.g., in the form of random access memory), or a circuit forming a communications device (e.g., a modem, a communications switch, or an optoelectronic device).
[0055] "Firmware" refers to software logic embodied as processor-executable instructions stored in read-only memory or media.
[0056] "Hardware" refers to logic embodied as analog or digital circuits.
[0057] "Logic" means machine memory circuits, non-transitory machine-readable media, and / or circuits, through their material and / or material energy configurations, including control and / or program signals, and / or settings and values (such as resistance, impedance, capacitance, inductance, current / voltage levels, etc.), which can be used to affect the operation of the device. Magnetic media, electronic circuits, electronic and optical memory (volatile and non-volatile), and firmware are all examples of logic. Logic specifically excludes pure signals or software itself (but does not exclude machine memory composed of software, thereby forming a configuration of matter).
[0058] "Software" refers to logic implemented as processor-executable instructions in a machine's memory (eg, read / write volatile or non-volatile memory or media).
[0059] A "bus" is a group of different conductors that carry data and control signals in a computer system, to which components of a device can be connected in parallel. Each conductor can be called a wire or cable.
[0060] References to "one embodiment" or "an embodiment" herein do not necessarily refer to the same embodiment, although they may. Unless the context clearly requires otherwise, throughout the specification and claims, the words "including," "comprising," and the like should be interpreted as inclusive and not exclusive or exhaustive; that is, in the sense of "including but not limited to." Words using the singular or plural number also include the plural or singular, respectively, unless expressly limited to one or more. In addition, when "herein," "above," "below," and words of similar meaning are used in this application, they refer to the entire application and not to any particular part of this application. When a claim uses the word "or" with respect to two or more listed items, the word covers all of the following interpretations of the word: any item in the list, all items in the list, and any combination of items in the list, unless expressly limited to one or the other. Any term not expressly defined herein has the same conventional meaning as understood by those skilled in the art.
[0061] The various logic function operations described herein can be implemented in logic, which refers to the use of nouns or noun phrases to reflect the operation or function. For example, an association operation can be performed by an "associator" or a "correlator". Similarly, switching can be performed by a "switch" or selected by a "selector", and so on.
[0062] The technology disclosed herein provides uniform current consumption over time and scale on a wide data bus without unnecessary complexity for a four-byte wide bus. The technology does require a special lookup table and does not incur additional time overhead (i.e., running the link faster than the baseline signaling rate) or additional signal lines. The technology is well suited for receiving devices that are not aware of (not dedicated to) the encoding algorithm used by the transmitter. All decoding information required by the receiver to recover the data is conveyed by the polarity of the DBI bit. The technology can be applied to one or both bus directions of the link.
Claims
1. A method for encoding data transmitted via a bus, the method comprising: Calculating a first Hamming distance HD1 of a group 1 including a first plurality of data bits Data1 and a first inversion bit DBI1, wherein Data1 and DBI1 are to be transmitted in parallel via a first plurality of serial data lines of a data bus and a first data bus inversion DBI line of the data bus, respectively; Calculating a second Hamming distance HD2 of a group 2 including a second plurality of data bits Data2 and a second inversion bit DBI2, wherein Data2 and DBI2 are to be transmitted in parallel with Data1 and DBI1 through a second plurality of serial data lines of the data bus and a second data bus inversion DBI line of the data bus, respectively; Selectively flipping one of Data1 and Data2 according to HD1 and HD2, respectively, to generate Data1' and Data2', respectively; Set DBI1 and DBI2 according to HD1 and HD2 respectively to generate DBI1' and DBI2' respectively; Calculate the third Hamming distance HD1' between Data1' and DBI1'; Calculate the fourth Hamming distance HD2' between Data2' and DBI2'; Based on the comparison of HD1' and HD2', selectively flip Data1' and DBI1' or Data2' and DBI2'; and The generated encoded data is transmitted via the data bus.
2. The method according to claim 1, further comprising: If HD2' ≥ HD1', flip Data2' and DBI2'.
3. The method according to claim 1, further comprising: If HD2'>HD1', flip Data2' and DBI2'.
4. The method according to claim 1, further comprising: If HD1'>HD2', flip Data1' and DBI1'.
5. The method according to claim 1, further comprising: If HD1' ≥ HD2', flip Data1' and DBI1'.
6. A method for encoding data transmitted via a bus, the method comprising: Calculating a first Hamming distance HD1 of group 1, the group 1 including a first plurality of data bits Data1 and an inverted bit DBI1 of Data1 and a second plurality of data bits Data2 and an inverted bit DBI2 of Data2; calculating a second Hamming distance HD2 of group 2, the group 2 including the third plurality of data bits Data3 and the inverted bit DBI3 of Data3 and the fourth plurality of data bits Data4 and the inverted bit DBI4 of Data4; calculating a third Hamming distance HD3 of group 3, the group 3 including the fifth plurality of data bits Data5 and the inverted bit DBI5 of Data5 and the sixth plurality of data bits Data6 and the inverted bit DBI6 of Data6; calculating a fourth Hamming distance HD4 of group 4, the group 4 including the seventh plurality of data bits Data7 and the inverted bit DBI7 of Data7 and the eighth plurality of data bits Data8 and the inverted bit DBI8 of Data8; wherein group 1, group 2, group 3 and group 4 are to be transmitted in parallel via a plurality of serial data lines and a plurality of data bus inversion DBI lines of the data bus; Based on the comparison of HD1 and HD2, Group 1 or Group 2 is selectively flipped to generate Group 1' and Group 2', respectively; Based on the comparison of HD3 and HD4, group 3 or group 4 is selectively flipped to generate group 3' and group 4', respectively; forming a first combined Hamming distance HDC1 including HD1+HD2; Form a second combined Hamming distance HDC2 including HD3 + HD4; Conditionally flip group 3 and group 4, or, group 1 and group 2, based on a comparison of the first combined Hamming distance and the second combined Hamming distance; and Transmit the generated encoded data through the data bus.
7. The method according to claim 6, wherein conditionally flipping group 3 and group 4, or group 1 and group 2, based on a comparison of the first combined Hamming distance and the second combined Hamming distance comprises: If HDC1 <= HDC2, flip group 3 and group 4; And If HDC1 > HDC2, flip group 1 and group 2.
8. The method according to claim 6, wherein conditionally flipping group 3 and group 4, or group 1 and group 2, based on a comparison of the first combined Hamming distance and the second combined Hamming distance comprises: If HDC1 < HDC2, flip group 3 and group 4; And If HDC1 >= HDC2, flip group 1 and group 2.
9. A method for encoding data transmitted via a bus, the method comprising: Divide the bus into groups of lines, each group of lines including a plurality of data lines and DBI lines; Arrange the groups into first pairs, each first pair including two of the groups; Calculate a first Hamming distance of Data1 representing the data bits and DBI bits of each group in each first pair; Based on the first Hamming distance, conditionally flip the Data1 of the selected group in the first pair to form a first encoding; Arrange the first encoding into second pairs, each of the second pairs including two first pairs; Calculate a second Hamming distance of Data2 representing the data bits and DBI bits of each first pair in each second pair; Based on the second Hamming distance, conditionally flip the Data2 of the selected first pair in each second pair to form a second encoding; Arrange the second encoding into third pairs, each of the third pairs including two second pairs; Calculate a third Hamming distance of Data3 representing the data bits and DBI bits of each second pair in each third pair; Based on a comparison of the third Hamming distance, conditionally flip the Data3 of the selected second pair in the third pair; and Transmit the generated encoded bits through the bus.
10. The method according to claim 9, wherein: Conditionally flipping Data1 of the selected group in the first pair includes: Based on the first Hamming distance, flip the Data1 of one group in each first pair; Conditionally flipping the Data2 of the selected first pair in each second pair includes: based on the second Hamming distance, flipping the Data2 of one pair in each second pair.
11. The method according to claim 10, wherein: Conditionally flipping the Data3 of the selected second pair in the third pair includes: based on the third Hamming distance, flipping the Data3 of one second pair in each third pair.
