Serial transmission method and system based on 8B/10B coding and decoding

Serial transmission method and system based on 8B/10B coding and decoding

  • CN 106,776,422 B
  • Filed: 11/21/2016
  • Issued: 08/27/2021
  • Est. Priority Date: 11/21/2016
  • Status: Active Grant
First Claim
Patent Images

1. A serial transmission method based on 8B/10B coding and decoding is characterized by comprising the following steps:

  • the serial data transmitting end converts the 16-bit parallel data with a specific format into 20-bit parallel data after 8B/10B coding twice;

    the specific format is 2711 format;

    the serial data sending end converts the 20-bit parallel data into a high-speed serial data stream and then transmits the high-speed serial data stream to a serial data receiving end through an external line;

    the serial data receiving end receives the high-speed serial data stream and converts the high-speed serial data stream into 20-bit parallel data;

    the serial data receiving end carries out 8B/10B decoding on the 20-bit parallel data twice to obtain 16-bit parallel data with the specific format;

    the serial data transmitting end converts the 16-bit parallel data with a specific format into 20-bit parallel data after 8B/10B coding twice, and the method comprises the following steps;

    splitting the 16-bit parallel data into two 8-bit parallel data connected in series front and back, and splitting the two 8-bit parallel data into two parts, namely a high 3-bit part and a low 5-bit part;

    3B/4B coding is carried out on the high 3bit and 5B/6B coding is carried out on the low 5bit of the two 8-bit parallel data to obtain two groups of 10-bit effective coding data, and the two groups of 10-bit effective coding data are synthesized into the 20-bit parallel data;

    the 3B/4B coding the high 3bit and the 5B/6B coding the low 5bit of the two 8 bits to obtain two groups of 10-bit effective coding data, and synthesizing the two groups of 10-bit effective coding data into the 20-bit parallel data comprises the following steps;

    respectively taking the high 3bit and the low 5bit as the address values of a ROM table of the 3B/4B code and a ROM table of the 4B/5B code to perform table lookup;

    taking the final RD value of the last data sub-block in the 20-bit parallel data of the previous period as the initial RD value of the first data sub-block in the 20-bit parallel data of the current period;

    acquiring two groups of 10-bit effective coding data according to a table look-up result and the initial RD value of the first data subblock;

    detecting the input of Comma characters, and generating corresponding K codes according to the detected Comma characters;

    generating 20-bit parallel data according to the two groups of 10-bit effective coding data and the K code, wherein the Comma characters at least comprise three special characters of a start symbol, an idle symbol and an end symbol, and the K code value at least comprises a start code, an idle code and an end code which respectively correspond to the start symbol, the idle symbol and the end symbol;

    the serial data receiving end 8B/10B decodes the 20-bit parallel data twice to obtain the 16-bit parallel data with the specific format, and the method comprises the following steps;

    delaying the received 20-bit parallel data by one beat and forming 40-bit data by the newly received 20-bit parallel data by one beat, and searching for Comma characters from bit0 in the 40-bit data bit by bit to enable the serial data receiving end to detect the positions of the Comma characters in the 20-bit parallel data;

    positioning two groups of 10-bit effective coded data in the 20-bit parallel data according to the position of the Comma character, and dividing the two groups of 10-bit effective coded data into two parts, namely a high 4-bit part and a low 6-bit part; and

    3B/4B decoding is carried out on the high 4 bits of the two groups of 10-bit effective coding data, 5B/6B decoding is carried out on the low 6 bits to obtain two 8-bit decoding data, and the two groups of 8-bit decoding data are synthesized into the 16-bit parallel data with the specific format.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×