WO2018014529A1 - Encoding method and associated apparatus and system - Google Patents

Encoding method and associated apparatus and system Download PDF

Info

Publication number
WO2018014529A1
WO2018014529A1 PCT/CN2017/071768 CN2017071768W WO2018014529A1 WO 2018014529 A1 WO2018014529 A1 WO 2018014529A1 CN 2017071768 W CN2017071768 W CN 2017071768W WO 2018014529 A1 WO2018014529 A1 WO 2018014529A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
data
bytes
transmission frame
transmission
Prior art date
Application number
PCT/CN2017/071768
Other languages
French (fr)
Chinese (zh)
Inventor
夏宇
张磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018014529A1 publication Critical patent/WO2018014529A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used
    • H04J3/0605Special codes used as synchronising signal
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to an encoding method, related device, and system.
  • Solid State Semiconductor Industry Reliability Standard JESD204 series protocol is a serial interface standard based on serializer/deserializer (English: SERializer/DESerializer, SERDES for short). It is used to define application specific integrated circuit (English: Application Specific Integrated Circuit). :ASIC)/Field Programmable Gate Array (English: Field-Programmable Gate Array, FPGA) and Digital to Analog Converter (English: Digital to Analog Converter): Analog to Digital Converter (English: Analog to digital The interface between converter, referred to as: ADC), the topology defined by JESD204B protocol is shown in Figure 1.
  • Downstream direction The IF data of the ASIC/FPGA is transmitted to the DAC through the JESD204B interface, and then sent out from the RF air interface through the mixer (English: Mixer) and power amplifier (English: Power Amplifier, PA).
  • Upstream direction The data received from the RF air interface is amplified by a low noise amplifier (English: Low Noise Amplifier, LNA for short), and then frequency-converted to the intermediate frequency point by a demodulator (English: Demod), and then passed through the JESD204B interface after being sampled by the ADC. Transfer to ASIC/FPGA.
  • JESD204B data is transmitted in units of frames. One frame contains F bytes, and one multiframe contains K frames.
  • JESD204B data consists of three levels of data: CODE SYNC, Initial Lane Alignment (ILA) sequence and business data. The structure of these three data is shown in Figure 2.
  • Code level synchronization (CODE SYNC) consists of a continuous control word K (value K28.5).
  • the second multiframe of the ILA sequence is in turn composed of the control word R (first byte), the control word Q, the control byte, the data and the control word A (the last byte); the other multiframes of the ILA sequence are in turn controlled by the control word R ( 1 byte), data and control word A (last byte).
  • control word A value K28.3 is used for multi-lane alignment
  • control word F (value is K28.7) for frame alignment (described after control word F)
  • control word K value is K28.5) for code level synchronization
  • control word R (value K28.0) is used to indicate the start of multiple frames in the ILA sequence
  • control word R (value K28.0) is used to indicate the start of multiple frames in the ILA sequence
  • Q (value K28.4) is used to indicate the start of the control word in the ILA sequence.
  • the data frame can be encoded by the 8B10B coding technology to generate a specific pattern to distinguish Control word A, control word F and normal data.
  • the 8B10B encoding technique is to decompose a group of consecutive 8-bit data into two sets of data, one set of 3-bit data, and one set of 5-bit data, which are encoded into 1 set of 4 bits respectively. Data and a set of 6-bit data, the two sets of data constitute a set of 10 bits of data.
  • the insertion of the control word F or the control word A at the end of the data frame includes two cases. The following describes the data frame shown in FIG. 4 as an example.
  • a disadvantage of the prior art is that the 8B10B technology encodes an efficiency of 0.8, which requires a higher SERDES rate and SERDES logarithm.
  • the embodiment of the invention discloses an encoding method, a related device and a system, which can improve coding efficiency.
  • an embodiment of the present invention provides an encoding method, where the method includes:
  • the encoding terminal determines a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, and the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame is composed of 8 bytes. ;
  • the encoding terminal encodes the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame. ;
  • the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
  • the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
  • the encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not perform data on the transmission frame of the D28.5 carrying the first identifier and the data carried in each byte of 8 bytes. Checking, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5
  • the frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header.
  • the data carried is the data check of the transmission frame of D28.5.
  • the frame header of the transmission frame carries the An identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame except the nth byte.
  • the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3
  • the frame is used for data verification.
  • the frame header of the transmission frame carries the An identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte.
  • the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3
  • the frame is used for data verification.
  • a fourth possible implementation of the first aspect when the target JESD 204 frame belongs to the service
  • the data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried.
  • the data in the 8 bytes of the service data frame when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured.
  • the decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
  • the fifth possible implementation in the first aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not an A frame and an F frame,
  • the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28.7, and
  • the frame header of the transmission frame carries a data check code and an inverse of the data check code
  • the decoding terminal is configured to use the data check code to carry data carried by the nth byte.
  • Data transmission is not performed for the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the transmission data of 8 bytes which are not
  • the data check code is an odd check code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code
  • the last bit in the frame header of the transmission frame is The even parity code
  • the first bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • an embodiment of the present invention provides an encoding method, where the method includes:
  • the decoding terminal receives a transmission frame sent by the encoding terminal, and the transmission frame is obtained by encoding, by the encoding terminal, a JESD204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are The frame header of the transmission frame;
  • the encoding terminal parses the transmission frame to acquire data of the 8 bytes and the 2 bits;
  • the decoding terminal When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal is based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and the data carried in each byte of the 8 bytes of the code level synchronization frame is D28.5;
  • the decoding terminal is based on the transmission
  • the data in the 8 bytes of the frame generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one correspondence with the data in the 8 bytes of the transmission frame, and 8 of the ILA sequence frames
  • the data of the 0th byte in the byte is D28.0.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • a frame header of the transmission frame carries a preset second identifier
  • the data carried by the 8 bytes of the transmission frame is D28
  • the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
  • the decoding terminal when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte of the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, where the service data frame The eight bytes one-to-one correspond to the data in the eight bytes of the transmission frame, and the data of the last byte of the eight bytes of the service data frame is D28.3.
  • the decoding terminal when the transmission frame is When the frame header carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on 8 bytes of the transmission frame.
  • the data generates a service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last byte of the 8 bytes of the service data frame
  • the data is D28.7.
  • the decoding terminal when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on data in 8 bytes of the transmission frame.
  • the data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the fifth possible implementation in the second aspect In the mode, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on The data in the 8 bytes of the transmission frame generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the frame header of the transmission frame includes data verification. a code and an inverse of the data check code;
  • the decoding terminal checks data in 8 bytes of the transmission frame by using the data check code
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
  • the data check code is an odd check code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code
  • the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code
  • the last bit in the frame header of the transmission frame is The even parity code
  • the first bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10
  • the second identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the second identifier is 10.
  • an embodiment of the present invention provides an encoding terminal, where the encoding terminal includes a processor, a memory, and a transceiver:
  • the memory is for storing data and programs
  • the processor calls a program in the memory to perform the following operations:
  • the frame type in the JESD 204B data comprising a code level synchronization frame, an ILA sequence frame, and a service data frame, wherein the target JESD 204 frame is composed of 8 bytes;
  • the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
  • the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
  • Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5
  • the frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header.
  • the data carried is the data check of the transmission frame of D28.5.
  • the frame header of the transmission frame carries the An identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame except the nth byte.
  • the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3
  • the frame is used for data verification.
  • the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the F frame;
  • the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
  • a fourth possible implementation manner of the third aspect when the target JESD 204 frame belongs to the service
  • the data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried.
  • the data in the 8 bytes of the service data frame when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured.
  • the decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
  • the fifth possible implementation in the third aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all When D28.5 and the target JESD204 frame are not an A frame and an F frame, the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, when the transmission frame When the data carried by the nth byte is not D28.3, D28.7, and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding The data used by the terminal to carry the data to the nth byte through the data check code is not a transmission frame of D28.3, a transmission frame of D28.7, a transmission frame of D28.0, and an incomplete data of 8 bytes. Perform data verification
  • the data check code is an odd parity code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code
  • the last bit in the frame header of the transmission frame is The even parity code
  • the first bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • an embodiment of the present invention provides a decoding terminal, where the encoding terminal includes a processor, a memory, and a transceiver:
  • the memory is for storing data and programs
  • the processor calls a program in the memory to perform the following operations:
  • a transmission frame sent by an encoding terminal where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
  • each byte of 8 bytes of the transmission frame is D28.5, based on 8 bytes of the transmission frame
  • the data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
  • the transmission frame is based on the transmission frame
  • the data in 8 bytes generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the 8 bytes of the ILA sequence frame
  • the data of the 0th byte in the data is D28.0.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the processor is further configured to:
  • the service is generated based on the data in the 8 bytes of the transmission frame.
  • the data frame, each byte of the 8 bytes of the service data frame carries data of D28.5.
  • the processor is further configured to:
  • the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, based on 8 bytes of the transmission frame
  • the data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame
  • the data for the section is D28.3.
  • the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, based on 8 bytes of the transmission frame
  • the data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame
  • the data for the section is D28.7.
  • the processor is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, 8 words based on the transmission frame
  • the data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the processor is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, 8 words based on the transmission frame
  • the data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the processor is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0, 8 words based on the transmission frame
  • the data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the frame header of the transmission frame includes data verification.
  • the processor is further configured to:
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
  • the data check code is an odd check code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code
  • the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code
  • the last bit in the frame header of the transmission frame is The even parity code
  • the first bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10
  • the second identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the first identifier is 01
  • the second identifier is 10.
  • an embodiment of the present invention provides an encoding terminal, where the encoding terminal includes:
  • a determining unit configured to determine a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, where the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame consists of 8 Byte composition
  • a coding unit configured to encode the target JESD 204 frame by a 64B66B coding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are frames of the transmission frame head;
  • the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
  • the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
  • a sending unit configured to send the transmission frame to a decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. In terms of coding efficiency is greatly improved.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5
  • the frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header.
  • the data carried is the data check of the transmission frame of D28.5.
  • the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame
  • the frame header of the transmission frame carries the first identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3
  • the 8 bytes of the transmission frame are The 7 bytes except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and The data carried by the nth byte is data verified for the transmission frame of D28.3.
  • the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the F frame;
  • the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
  • a fourth possible implementation manner of the fifth aspect when the target JESD 204 frame belongs to the service
  • the data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried.
  • the data in the 8 bytes of the service data frame when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured.
  • the decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
  • the fifth possible implementation of the fifth aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not an A frame and an F frame,
  • the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28.7, and
  • the frame header of the transmission frame carries a data check code and an inverse of the data check code
  • the decoding terminal is configured to use the data check code to carry data carried by the nth byte.
  • Data transmission is not performed for the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the transmission data of 8 bytes which are not
  • the data check code is an odd check code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code
  • the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is an inverse of the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • an embodiment of the present invention provides a decoding terminal, where the decoding terminal includes:
  • a receiving unit configured to receive a transmission frame sent by the encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
  • a parsing unit configured to parse the transmission frame to acquire data in the 8 bytes and the 2 bits
  • a decoding unit configured to: when the frame header of the transmission frame carries a preset first identifier, and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
  • the decoding unit is further configured to: when the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, Generating an ILA sequence frame based on data in 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame correspondingly carrying data in 8 bytes of the transmission frame, and the ILA sequence The data of the 0th byte of the 8 bytes of the frame is D28.0.
  • a frame header of the transmission frame carries a preset second identifier
  • data carried by 8 bytes of the transmission frame is D28
  • the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
  • the decoding terminal when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte of the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, where the service data frame The eight bytes one-to-one correspond to the data in the eight bytes of the transmission frame, and the data of the last byte of the eight bytes of the service data frame is D28.3.
  • the decoding terminal when the transmission frame is When the frame header carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on 8 bytes of the transmission frame.
  • the data generates a service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last byte of the 8 bytes of the service data frame
  • the data is D28.7.
  • the decoding terminal when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on data in 8 bytes of the transmission frame. a data frame, the 8 bytes of the service data frame are in a one-to-one correspondence carrying the transmission frame The data in 8 bytes.
  • the fifth possible implementation in the sixth aspect In the mode, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on The data in the 8 bytes of the transmission frame generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • the decoding terminal when a frame header of the transmission frame carries a preset second identifier and is carried by an nth byte of 8 bytes of the transmission frame
  • the decoding terminal when the data is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame.
  • the data in the byte when a frame header of the transmission frame carries a preset second identifier and is carried by an nth byte of 8 bytes of the transmission frame.
  • the fourth possible implementation manner of the sixth aspect, or the sixth possible implementation manner of the sixth aspect, in the seventh possible implementation manner of the sixth aspect is not all D28.5, or the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7, and D28.3.
  • the frame header of the transmission frame includes a data check code and an inverse of the data check code;
  • the decoding terminal checks data in 8 bytes of the transmission frame by using the data check code
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
  • the data check code is an odd check code
  • the first one of the frame headers of the transmission frame The bit is the odd parity code
  • the last bit in the frame header of the transmission frame is the inverse of the odd parity code
  • the last bit in the frame header of the transmission frame is The odd parity code
  • the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
  • the data check code is an even check code
  • the first one of the frame headers of the transmission frame The bit is the even parity code
  • the last bit in the frame header of the transmission frame is the inverse of the even parity code
  • the last bit in the frame header of the transmission frame is The even parity code
  • the first bit in the frame header of the transmission frame is the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or The first identifier is 01 and the second identifier is 10.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the mesh.
  • the standard JESD204 frame greatly improves the coding efficiency compared to the 8B10B coding technique.
  • an embodiment of the present invention provides an encoding system, where the encoding system includes an encoding terminal and a decoding terminal, where the encoding terminal is an encoding terminal described in any implementation manner of the third aspect, or the fifth aspect is described.
  • An encoding terminal; the decoding terminal is the decoding terminal described in any implementation manner of the fourth aspect, or the encoding terminal described in the sixth aspect.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique.
  • the words greatly improve the coding efficiency.
  • the encoding terminal encodes the target JESD 204 frame by using the 64B66B encoding technology to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by using the 64B66B encoding technology to restore the target JESD 204 frame, compared to the 8B10B encoding technology. In terms of coding efficiency is greatly improved.
  • FIG. 1 is a schematic diagram of a topology structure defined by a JESD204B protocol in the prior art
  • FIG. 2 is a schematic structural diagram of data based on a JESD204B protocol in the prior art
  • FIG. 3 is a schematic diagram of a scenario coded based on an 8B10B coding technique in the prior art
  • FIG. 5 is a schematic structural diagram of still another data frame in the prior art
  • FIG. 7 is a schematic flowchart diagram of an encoding method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of data according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • 15 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of a data check code according to an embodiment of the present disclosure.
  • 17 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention.
  • FIG. 18 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention.
  • FIG. 20 is a schematic structural diagram of an encoding terminal according to an embodiment of the present disclosure.
  • FIG. 21 is a schematic structural diagram of a decoding terminal according to an embodiment of the present disclosure.
  • FIG. 22 is a schematic structural diagram of still another encoding terminal according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of still another decoding terminal according to an embodiment of the present disclosure.
  • FIG. 24 is a schematic structural diagram of an encoding system according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of an encoding method according to an embodiment of the present invention, where the method includes but is not limited to the following steps.
  • Step S701 The encoding terminal determines the frame type of the target JESD 204 frame in the JESD 204 data to be transmitted.
  • the JESD204 data specifically refers to data based on the JESD204 series protocol, for example, currently using the more mature JESD204B protocol, and the JESD204C protocol that may be evolved in the future.
  • the JESD204B protocol as an example, the JESD204 data to be transmitted is composed of at least one multiframe, each multiframe includes K frames, and each frame contains F bytes, where K and F are positive integers.
  • the JESD204 data is re-segmented in units of 8 bytes to obtain a plurality of JESD204 frames of 64-bit block size, that is, the frame and the mulftiframe are defined in the prior art, and the JESD 204 frame-based
  • the amount defined by the invention since the JESD 204 data includes three parts of code level synchronization, ILA sequence, and service data, the JESD 204 frame can be correspondingly divided into three frame types: a code level synchronization frame, an ILA sequence frame, and a service data frame.
  • the encoding terminal can determine the frame type of the target JESD 204 frame through the local state machine.
  • the eight bytes described above may be sequentially referred to as the 0th byte, the 1st byte, the 2nd byte, the 3rd byte, the 4th byte, and the 5 bytes, 6th byte, and 7th byte, where the 0th byte is the first byte and the 7th byte is the last byte.
  • Step S702 The encoding terminal encodes the target JESD 204 frame by using a 64B66B encoding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are the frame header of the transmission frame.
  • the encoding terminal encodes JESD 204 frames of different frame types differently.
  • the frame header of the encoded transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5.
  • the data correspondence of the transmission frame obtained by the target JESD204 frame coding is as shown in FIG. 9.
  • the encoded frame header of the transmission frame carries the first identifier, and the transmission frame has 8 bytes.
  • the data carried by the preset nth byte is D28.0, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 bytes of the ILA sequence frame. The data in the last 7 bytes.
  • the nth byte is which of the 8 bytes, and 7 bytes of the 8 bytes of the transmission frame except the nth byte and 8 of the ILA sequence frame
  • the one-to-one correspondence of the last 7 bytes in the byte may be predefined by a preset rule, so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame.
  • the data correspondence of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 10 .
  • the frame header of the transmitted transmission frame carries the first
  • the second identifier indicates that the data carried by the 8 bytes of the transmission frame is D28.5.
  • the data correspondence relationship of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 11 .
  • the target JESD 204 frame belongs to the service data frame or the ILA sequence frame
  • the frame header of the encoded transmission frame carries the first identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3
  • the transmission frame is The 7 bytes of the 8 bytes except the nth byte are one-to-one corresponding to the data of 7 bytes other than the control word A among the 8 bytes of the A frame.
  • the specific one of the eight bytes of the eight bytes of the transmission frame except the first seven bytes of the eight bytes of the A frame may pass the preset.
  • the rule is predefined so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame.
  • the data correspondence relationship of the transmission frame obtained by the target JESD204 frame is as shown in FIG. 12 .
  • the data correspondence of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 13 .
  • the target JESD 204 frame belongs to the ILA frame and the value of the 7th byte of the target JESD 204 frame is the control word A in the JESD 204 data
  • the target JESD 204 frame is an A frame.
  • the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced by the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
  • the target JESD 204 frame only contains or is smaller than a frame of one F byte in the multiframe; in the embodiment of the present invention, when the JESD 204 frame contains data less than 1 frame, it can be processed according to 1 frame; when JESD 204 frame When the number of included data is greater than 1 frame, it can be processed according to multiple frames.
  • the frame is the last frame in the multiframe
  • the last byte of the frame is in the last byte of the target JESD 204 frame
  • the data of the last byte of the frame is the same as the data of the last byte of the previous frame of the frame.
  • the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced by the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
  • the target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe
  • the last frame of the multiple frames is the last frame of the multiframe
  • the last byte of the last frame is the last byte of the target JESD 204 frame
  • the data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.
  • the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
  • the frame of the target JESD 204 only one F-byte frame in the multiframe is included.
  • the frame may be processed according to one frame; when the JESD 204 frame contains data.
  • the number is greater than 1frame, it can be processed according to multiple frames;
  • the frame is the last frame in the multiframe
  • the last byte of the frame is in the last byte of the target JESD 204 frame
  • the data of the last byte of the target JESD204 frame is D28.3.
  • the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
  • the target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe
  • the last frame of the multiple frames is the last frame of the multiframe
  • the last byte of the last frame is the last byte of the target JESD 204 frame
  • the data of the last byte of the target JESD204 frame is D28.3.
  • the encoded frame header of the transmission frame carries the first identifier, and 8 of the transmission frames
  • the data carried by the nth byte of the byte is D28.7, and the 7 bytes except the nth byte of the 8 bytes of the transmission frame are correspondingly carried in the 8 bytes of the F frame.
  • Data in 7 bytes other than the control word F; the decoding terminal does not perform parity check on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.7.
  • the specific one of the 8 bytes of the 8 bytes of the transmission frame and the first 7 bytes of the 8 bytes of the F frame may pass the pre-specific
  • the rule is pre-defined so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame.
  • the data correspondence of the transmission frame obtained by the target JESD204 frame coding is as shown in FIG. 14 .
  • the data correspondence of the transmission frame obtained by the target JESD204 frame encoding is as shown in FIG. 15 .
  • the target JESD204 frame is unscrambled. If the following five conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the five conditions are as follows:
  • the frame of the target JESD 204 only one F-byte frame in the multiframe is included.
  • the frame may be processed according to one frame; when the JESD 204 frame contains data.
  • the number is greater than 1frame, it can be processed according to multiple frames.
  • the frame is not the last frame in the multiframe
  • the last byte of the frame is in the last byte of the target JESD 204 frame
  • the data of the last byte of the frame is the same as the data of the last byte of the previous frame of the frame.
  • the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
  • the target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe
  • the last frame of the multiple frames is not the last frame of the multiframe
  • the last byte of the last frame is the last byte of the target JESD 204 frame
  • the data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.
  • the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
  • the frame of the target JESD 204 only one F-byte frame in the multiframe is included.
  • the frame may be processed according to one frame; when the JESD 204 frame contains data.
  • the number is greater than 1frame, it can be processed according to multiple frames;
  • the frame is not the last frame in the multiframe
  • the last byte of the frame is in the last byte of the target JESD 204 frame
  • the data of the last byte of the target JESD204 frame is D28.7.
  • the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
  • the target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe
  • the last frame of the multiple frames is not the last frame of the multiframe
  • the last byte of the last frame is the last byte of the target JESD 204 frame
  • the data of the last byte of the target JESD204 frame is D28.7.
  • the target JESD 204 frame belongs to the service data frame and the 8 bytes of the target JESD 204 frame carry data not all D28.5 and the target JESD 204 frame is not an A frame and an F frame.
  • the encoded 8 bytes of the transmission frame correspond one-to-one with the data of the 8 bytes of the service data frame, and the data carried by the nth byte of the transmission frame is D28.3, D28. 7 or D28.0, the frame header of the transmission frame carries the second identifier.
  • the hexadecimal number corresponding to the value D28.3 is 0x7C
  • the hexadecimal number corresponding to the value D28.7 is 0xFC.
  • the hexadecimal number corresponding to the value D28.5 is 0xBC
  • the hexadecimal number corresponding to the value D28.0 is 0x1C
  • the hexadecimal number corresponding to the value D28.4 is 0x9C.
  • the eight bytes of the encoded transmission frame and the eight bytes of the service data frame may be specifically defined by the preset rule, so that the decoding terminal may subsequently receive the transmission frame.
  • the transmission frame is smoothly decoded (parsed) based on the preset rule.
  • the target JESD 204 frame belongs to the service data frame and the 8 bytes of the target JESD 204 frame carry data not all D28.5 and the target JESD 204 frame is not an A frame and an F frame.
  • the encoded 8 bytes of the transmission frame correspond to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28.
  • the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the data check code may be a parity check code.
  • the eight bytes of the encoded transmission frame and the eight bytes of the service data frame may be specifically defined by the preset rule, so that the decoding terminal may subsequently receive the transmission frame. Based on the preset The rule successfully decodes (parses) the transmitted frame.
  • the parity code is an odd parity code
  • the first bit in the frame header of the transmission frame is the odd parity code
  • the last bit in the frame header of the transmission frame is the odd school
  • the inverse of the code is as shown in FIG. 16; or the last bit in the frame header of the transmission frame is the odd parity code, and the first bit in the frame header of the transmission frame is the odd parity code
  • the inverse of the code is shown in Figure 17.
  • the parity code is an even parity code
  • the first bit in the frame header of the transmission frame is the even parity code
  • the last bit in the frame header of the transmission frame is the even parity code
  • the first bit in the frame header of the transmission frame is the even parity code
  • the inverse of the code is shown in Figure 19.
  • the transmission coded by the JESD204 coding technology can maintain the frame header of the transmission frame as 10, or 01. Therefore, the first identifier in the embodiment of the present invention may be 01 and the second identifier may be 10 Or the first identifier is 10 and the second identifier is 01.
  • the parity code is specifically configured for the parity code to ensure that the frame header of the transmission frame is 10, or 01.
  • Step S703 The encoding terminal sends the transmission frame to the decoding terminal.
  • Step S704 The decoding terminal receives the transmission frame sent by the encoding terminal.
  • Step S705 The decoding terminal parses the transmission frame to acquire the data of the 8 bytes and the 2 bits.
  • Step S706 The decoding terminal decodes the transmission frame to obtain a JESD 204 frame, and the decoding process of different transmission frames may be different.
  • the following describes the decoding process of various transmission frames, the code level synchronization frame, the ILA sequence frame and the following description.
  • the service data frames belong to the JESD204 frame.
  • the decoding terminal When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal is based on 8 bytes of the transmission frame.
  • the data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of K28.5.
  • the decoding terminal is based on 8 words of the transmission frame.
  • the data in the section generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one by one corresponding to the data in the 8 bytes of the transmission frame, and the 0th byte of the 8 bytes of the ILA sequence frame
  • the data is K28.0.
  • the ILA sequence frame is generated as a second ILA sequence frame in the ILA sequence
  • the first byte of the ILA sequence frame may be encapsulated with a value of K28.4 or D28.4.
  • the decoding terminal when the frame header of the transmission frame carries the second identifier and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not perform parity check on the transmission frame.
  • the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried by each byte of the 8 bytes of the service data frame is D28.5.
  • the decoding terminal when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal The parity of the transmission frame is not performed, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame.
  • the data in the data, and the data of the last byte of the 8 bytes of the service data frame is K28.3.
  • the decoding terminal when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal Do not perform parity check on the transmission frame, the decoding terminal Generating a service data frame based on the data in the 8 bytes of the transmission frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and 8 of the service data frames The data of the last byte in the byte is K28.7.
  • the specific correspondence between the 8 bytes of the service data frame and the 8 bytes of the transmission frame may be obtained based on the foregoing preset rule, so that the target JESD 204 frame is encoded and sent to the encoded terminal.
  • the target JESD 204 frame is restored by the decoding terminal, and the target JESD 204 frame restored by the decoding terminal is substantially the same as the data in the target JESD 204 frame before encoding, and the following similarities are not described herein.
  • the decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame.
  • the data in the byte is D28.7
  • the decoding terminal when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, The decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
  • the decoding terminal when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0, the decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
  • the decoding terminal checks data in 8 bytes of the transmission frame by using a parity check code preset in a frame header of the transmission frame;
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond one by one to carry the 8 words of the transmission frame.
  • the data in the section is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not In D28.0, D28.7, and D28.3
  • the decoding terminal checks data in 8 bytes of the transmission frame by using a parity check code preset in a frame header of the transmission frame;
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond one by one to carry the 8 words of the transmission frame.
  • the data in the section is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not In
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B.
  • the coding technique greatly improves the coding efficiency.
  • FIG. 20 is an encoding terminal 200 according to an embodiment of the present invention.
  • the encoding terminal 200 includes a processor 21012001, a memory 2002, and a transceiver 2003.
  • the processor 2001 and the memory 2002 and the transceiver 2003 pass The buses are connected to each other.
  • the memory 2002 includes, but is not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), or a portable read only memory (CD-ROM). Memory 2002 Used for related instructions and data.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • CD-ROM portable read only memory
  • the processor 2001 may be one or more central processing units (English: Central Processing Unit, CPU for short). In the case where the processor 2001 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
  • CPU Central Processing Unit
  • the processor 2001 in the encoding terminal 200 is configured to read the program code stored in the memory 2002, and perform the following operations:
  • the frame type in the JESD 204B data comprising a code level synchronization frame, an ILA sequence frame, and a service data frame, wherein the target JESD 204 frame is composed of 8 bytes;
  • the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
  • the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0.
  • the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
  • the encoding terminal 200 encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique.
  • the words greatly improve the coding efficiency.
  • the frame header of the transmission frame carries a second identifier
  • the data carried by the 8 bytes of the transmission frame is D28.5
  • the decoding terminal does not carry the second identifier and the data carried by the 8 bytes of the frame header are all D28.5 transmission
  • the frame is used for data verification.
  • a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes of the 8 bytes of the transmission frame are respectively corresponding to the 7 bytes of the A frame.
  • a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of 8 bytes is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 of the F frame.
  • the target JESD 204 frame belongs to the service data frame and the target
  • the 8 bytes of the JESD 204 frame correspond to the 8 of the service data frame.
  • the data in the byte when the data carried in the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the second identifier;
  • the decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A.
  • the 8 bytes of the transmission frame are in one-to-one correspondence with the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28. 3.
  • the frame header of the transmission frame carries a data check code and an inverse of the data check code
  • the decoding terminal is configured to pass the data check code pair
  • the data carried by n bytes is not the data frame of D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and 8 bytes of data not all for D28.5 transmission frame.
  • the data check code is an odd check code
  • the first bit in the frame header of the transmission frame is the odd parity code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the odd parity code.
  • the data check code is an even check code
  • the first bit in the frame header of the transmission frame is the even check code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • the encoding terminal 200 encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame.
  • the coding efficiency is greatly improved.
  • FIG. 21 is a decoding terminal 210 according to an embodiment of the present invention.
  • the decoding terminal 210 includes a processor 2101, a memory 2102, and a transceiver 2103.
  • the processor 2101 and the memory 2102 and the transceiver 2103 pass.
  • the buses are connected to each other.
  • the memory 2102 includes, but is not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), or a portable read only memory (CD-ROM). Memory 2102 is used for related instructions and data.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • CD-ROM portable read only memory
  • the processor 2101 may be one or more central processing units 2101 (English: Central Processing Unit, CPU for short). In the case where the processor 2101 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
  • CPU Central Processing Unit
  • the processor 2101 in the decoding terminal 210 is configured to read the program code stored in the memory 2102, and perform the following operations:
  • a transmission frame sent by an encoding terminal where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
  • each byte of 8 bytes of the transmission frame is D28.5, based on 8 bytes of the transmission frame
  • the data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
  • the transmission frame is based on the transmission frame
  • the data in 8 bytes generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the 8 bytes of the ILA sequence frame
  • the data of the 0th byte in the data is D28.0.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology.
  • processor 2101 is further configured to:
  • the service is generated based on the data in the 8 bytes of the transmission frame.
  • the data frame, each byte of the 8 bytes of the service data frame carries data of D28.5.
  • processor 2101 is further configured to:
  • the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, based on 8 bytes of the transmission frame
  • the data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame
  • the data for the section is D28.3.
  • processor 2101 is further configured to:
  • the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, based on 8 bytes of the transmission frame
  • the data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame
  • the data for the section is D28.7.
  • processor 2101 is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, 8 words based on the transmission frame
  • the data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • processor 2101 is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, 8 words based on the transmission frame
  • the data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  • processor 2101 is further configured to:
  • the frame header of the transmission frame carries a preset second identifier and the nth byte of the 8 bytes of the transmission frame carries
  • the data of the band is D28.0
  • a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried to carry 8 bytes of the transmission frame.
  • the processor 2101 is further configured to:
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
  • the data check code is an odd check code
  • the first bit in the frame header of the transmission frame is the odd parity code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the odd parity code.
  • the data check code is an even check code
  • the first bit in the frame header of the transmission frame is the even check code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, as compared with The 8B10B encoding technology greatly improves the coding efficiency.
  • FIG. 22 is a schematic structural diagram of still another encoding terminal 220 according to an embodiment of the present invention.
  • the encoding terminal 220 may include a determining unit 2201, an encoding unit 2202, and a sending unit 2203, where detailed descriptions of the respective units are as follows. .
  • the determining unit 2201 is configured to determine a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, where the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame consists of 8 frames.
  • the encoding unit 2202 is configured to encode the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are frames of the transmission frame. head;
  • the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
  • the frame header of the transmission frame carries the first identifier
  • the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28.
  • 0, 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the last 7 bytes of the 8 bytes carrying the ILA sequence frame.
  • the sending unit 2203 is configured to send the transmission frame to the decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5. Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  • the encoding 220 uses the 64B66B encoding technique to encode the target JESD 204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. In terms of coding efficiency is greatly improved.
  • the frame header of the transmission frame carries a second identifier
  • the data carried by the 8 bytes of the transmission frame is D28.5
  • the decoding terminal does not carry the second identifier and the data carried by the 8 bytes of the frame header are all D28.5 transmission
  • the frame is used for data verification.
  • a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes of the 8 bytes of the transmission frame are respectively corresponding to the 7 bytes of the A frame.
  • a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of 8 bytes is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 of the F frame.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A.
  • the 8 bytes of the transmission frame correspond to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is D28. 3.
  • the frame header of the transmission frame carries the second identifier; the decoding terminal does not carry the second identifier on the frame header and the data carried in the nth byte is D28. 3.
  • the data transmission frame of D28.7 or D28.0 is used for data verification.
  • the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A.
  • the 8 bytes of the transmission frame are in one-to-one correspondence with the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28. 3.
  • the frame header of the transmission frame carries a data check code and an inverse of the data check code
  • the decoding terminal is configured to pass the data check code pair
  • the data carried by n bytes is not the data frame of D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and 8 bytes of data not all for D28.5 transmission frame.
  • the data check code is an odd check code
  • the first bit in the frame header of the transmission frame is the odd parity code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame Bits The inverse of the odd parity code.
  • the data check code is an even check code
  • the first bit in the frame header of the transmission frame is the even check code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • each unit in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7.
  • the encoding 220 uses the 64B66B encoding technique to encode the target JESD 204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame.
  • the coding efficiency is greatly improved.
  • FIG. 23 is a schematic structural diagram of still another decoding terminal 230 according to an embodiment of the present invention.
  • the decoding terminal 230 may include a receiving unit 2301, a parsing unit 2302, and a decoding unit 2303, where detailed descriptions of the units are as follows. .
  • the receiving unit 2301 is configured to receive a transmission frame sent by the encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame is a bit is a frame header of the transmission frame;
  • the parsing unit 2302 is configured to parse the transmission frame to acquire data in the 8 bytes and the 2 bits;
  • the decoding unit 2303 is configured to: when the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
  • the decoding unit 2303 is further configured to: when the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, Generating an ILA sequence frame based on data in 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame correspondingly carrying data in 8 bytes of the transmission frame, and the ILA sequence The data of the 0th byte of the 8 bytes of the frame is D28.0.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique.
  • the words greatly improve the coding efficiency.
  • the decoding unit 2303 is further configured to: carry a preset second identifier in a frame header of the transmission frame, and carry data of 8 bytes of the transmission frame are all D28.5
  • the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
  • the decoding unit 2303 is configured to carry the first identifier in a frame header of the transmission frame and carry the nth byte of the 8 bytes of the transmission frame.
  • a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame.
  • Data, and the data of the last byte of the 8 bytes of the service data frame is D28.3.
  • the decoding unit 2303 is configured to carry the first label in a frame header of the transmission frame. And when the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the service data frame The 8 bytes of the data correspond to the data in the 8 bytes of the transmission frame, and the data of the last byte of the 8 bytes of the service data frame is D28.7.
  • the decoding unit 2303 is configured to carry a preset second identifier in a frame header of the transmission frame and carry an nth byte in 8 bytes of the transmission frame.
  • the decoding terminal 230 When the data is D28.3, the decoding terminal 230 generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the transmission frame. Data in 8 bytes.
  • the frame header of the transmission frame carries a preset second identifier
  • the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7.
  • the decoding unit 2303 is configured to generate a service data frame based on data in 8 bytes of the transmission frame, where 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame. data.
  • the decoding unit 2303 is configured to carry a preset second identifier in a frame header of the transmission frame and carry an nth byte in 8 bytes of the transmission frame.
  • a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame. The data.
  • the frame header of the transmission frame includes a data check code and an inverse of the data check code
  • the decoding unit 2303 is configured to check data in 8 bytes of the transmission frame by using the data check code
  • the decoding unit 2303 is configured to generate a service data frame based on data in 8 bytes of the transmission frame, where the service data frame The eight bytes one by one correspond to the data in the eight bytes carrying the transmission frame.
  • the data check code is an odd check code
  • the first bit in the frame header of the transmission frame is the odd parity code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the odd parity code.
  • the data check code is an even check code
  • the first bit in the frame header of the transmission frame is the even check code
  • the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame
  • the bits are the inverse of the even parity code.
  • the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  • each unit in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7.
  • the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame.
  • the coding efficiency is greatly improved.
  • FIG. 24 is an encoding system 240 according to an embodiment of the present invention.
  • the encoding system includes an encoding terminal 2401 and a decoding terminal 2402, where:
  • the encoding terminal 2401 may be the encoding terminal 200 in the embodiment shown in FIG. 20 or the encoding terminal 220 shown in FIG.
  • the decoding terminal 2402 may be the decoding terminal 210 in the embodiment shown in FIG. 21 or the decoding terminal 230 shown in FIG.
  • the encoding terminal By running the encoding system 240, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding.
  • the coding efficiency is greatly improved.
  • the encoding terminal encodes the target JESD 204 frame by using the 64B66B encoding technology to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by using the 64B66B encoding technology to restore the target JESD 204 frame.
  • the coding efficiency is greatly improved.
  • the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Abstract

Embodiments of the present invention disclose an encoding method and an associated apparatus and system. The method comprises: an encoding terminal determining a frame type of a target JESD204 frame in JESD204B data to be transmitted; the encoding terminal encoding the target JESD204 frame using a 64B66B encoding technique to obtain a 66-bit transmission frame; the encoding terminal transmitting the transmission frame to a decoding terminal; the decoding terminal omitting data verification of a transmission frame in which a frame header carries a first identifier and data carried in each of 8 bytes is D28.5; and the decoding terminal omitting data verification of a transmission frame in which a frame header carries a first identifier and data carried in an nth byte of 8 bytes is D28.0. The method based on the embodiments of the present invention is capable of enhancing the encoding efficiency.

Description

一种编码方法、相关设备及系统Coding method, related device and system 技术领域Technical field
本发明实施例涉及计算机技术领域,尤其涉及一种编码方法、相关设备及系统。The embodiments of the present invention relate to the field of computer technologies, and in particular, to an encoding method, related device, and system.
背景技术Background technique
固态半导体工业可靠性标准JESD204系列协议是基于串行器/解串器(英文:SERializer/DESerializer,简称:SERDES)的串行接口标准,用于定义专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)/现场可编程门阵列(英文:Field-Programmable Gate Array,简称:FPGA)与数字模拟转换器(英文:Digital to analog converter,简称:DAC)/模拟数字转换器(英文:Analog to digital converter,简称:ADC)之间的接口,JESD204B协议定义的拓扑结构如图1所示。下行方向:ASIC/FPGA的中频数据经过JESD204B接口传输给DAC,再经过混频器(英文:Mixer)、功率放大器(英文:Power Amplifier,简称:PA)后从射频空口发送出去。上行方向:从射频空口接收的数据通过低噪声放大器(英文:Low Noise Amplifier,简称:LNA)放大,再通过解调器(英文:Demod)变频到中频频点,然后经过ADC采样后通过JESD204B接口传输给ASIC/FPGA。Solid State Semiconductor Industry Reliability Standard JESD204 series protocol is a serial interface standard based on serializer/deserializer (English: SERializer/DESerializer, SERDES for short). It is used to define application specific integrated circuit (English: Application Specific Integrated Circuit). :ASIC)/Field Programmable Gate Array (English: Field-Programmable Gate Array, FPGA) and Digital to Analog Converter (English: Digital to Analog Converter): Analog to Digital Converter (English: Analog to digital The interface between converter, referred to as: ADC), the topology defined by JESD204B protocol is shown in Figure 1. Downstream direction: The IF data of the ASIC/FPGA is transmitted to the DAC through the JESD204B interface, and then sent out from the RF air interface through the mixer (English: Mixer) and power amplifier (English: Power Amplifier, PA). Upstream direction: The data received from the RF air interface is amplified by a low noise amplifier (English: Low Noise Amplifier, LNA for short), and then frequency-converted to the intermediate frequency point by a demodulator (English: Demod), and then passed through the JESD204B interface after being sampled by the ADC. Transfer to ASIC/FPGA.
JESD204B数据是以帧(frame)为单位进行传输的,1个frame包含F个字节,1个多帧(multiframe)中含有K个frame。JESD204B数据由码级同步(CODE SYNC)、初始化通道对齐(英文:Initial Lane Alignment,简称:ILA)序列和业务数据这三种数据组成,这三种数据的结构如图2所示。JESD204B data is transmitted in units of frames. One frame contains F bytes, and one multiframe contains K frames. JESD204B data consists of three levels of data: CODE SYNC, Initial Lane Alignment (ILA) sequence and business data. The structure of these three data is shown in Figure 2.
码级同步(CODE SYNC)由连续的控制字K(值为K28.5)组成。ILA序列的第二个multiframe依次由控制字R(第一个byte)、控制字Q、控制byte、数据和控制字A(最后一个byte)组成;ILA序列的其他multiframe依次由控制字R(第1个byte)、数据和控制字A(最后1个byte)组成。其中,控制字A(值为K28.3)用于多通道(lane)对齐,控制字F(值为K28.7)用于帧(Frame)对齐(控制字F后面进行介绍),控制字K(值为K28.5)用于码级同步,控制字R(值为K28.0)用于指示ILA序列中多帧的起始,控制字Code level synchronization (CODE SYNC) consists of a continuous control word K (value K28.5). The second multiframe of the ILA sequence is in turn composed of the control word R (first byte), the control word Q, the control byte, the data and the control word A (the last byte); the other multiframes of the ILA sequence are in turn controlled by the control word R ( 1 byte), data and control word A (last byte). Among them, control word A (value K28.3) is used for multi-lane alignment, control word F (value is K28.7) for frame alignment (described after control word F), control word K (value is K28.5) for code level synchronization, control word R (value K28.0) is used to indicate the start of multiple frames in the ILA sequence, control word
Q(值为K28.4)用于指示ILA序列中控制字的起始。Q (value K28.4) is used to indicate the start of the control word in the ILA sequence.
为了提高JESD204B数据在链路上的传输特性,需要在该业务数据的数据帧的帧尾插入控制字A或者控制字F,目前可以通过8B10B编码技术对数据帧进行编码来产生特定码型来区分控制字A、控制字F和普通数据。如图3所示,8B10B编码技术是将1组连续的8位数据分解成两组数据,1组为3位的数据,1组为5位的数据,经过编码后分别成为1组4位的数据和1组6位的数据,这两组数据组成1组10位的数据。在数据帧的帧尾插入控制字F或控制字A包括两种情况,以下以图4所示的数据帧为例来进行说明。In order to improve the transmission characteristics of the JESD204B data on the link, it is necessary to insert the control word A or the control word F at the end of the data frame of the service data. Currently, the data frame can be encoded by the 8B10B coding technology to generate a specific pattern to distinguish Control word A, control word F and normal data. As shown in FIG. 3, the 8B10B encoding technique is to decompose a group of consecutive 8-bit data into two sets of data, one set of 3-bit data, and one set of 5-bit data, which are encoded into 1 set of 4 bits respectively. Data and a set of 6-bit data, the two sets of data constitute a set of 10 bits of data. The insertion of the control word F or the control word A at the end of the data frame includes two cases. The following describes the data frame shown in FIG. 4 as an example.
不加扰情况:如图5所示,如果当前frame(不在multiframe的结尾)的最后一个字节与上一帧的最后一个字节相同,则用控制字F=K28.7替代当前frame的最后一个字节。如果上一帧中已经发生过替代,则这一次不进行替换。如果当前frame(在multiframe的结尾)的最后一个字节与上一帧的最后一个字节相同,则用控制字A=K28.3替换当前frame的最后一个字节。 Unscrambled: As shown in Figure 5, if the last byte of the current frame (not at the end of the multiframe) is the same as the last byte of the previous frame, replace the last frame of the current frame with the control word F=K28.7. One byte. If a replacement has occurred in the previous frame, this time it will not be replaced. If the last byte of the current frame (at the end of the multiframe) is the same as the last byte of the previous frame, replace the last byte of the current frame with the control word A=K28.3.
加扰的情况:如图6所示,如果当前帧(不是multiframe的最后一个frame)的最后一个字节等于0xFC(即D28.7),则用控制字F=K28.7替代当前frame的最后一个字节。如果multiframe的最后一个字节等于0x7C(即D28.3),则用控制字A=K28.3替代当前frame的最后一个字节。Scrambling situation: As shown in Figure 6, if the last byte of the current frame (not the last frame of the multiframe) is equal to 0xFC (ie D28.7), replace the last frame of the current frame with the control word F=K28.7 One byte. If the last byte of the multiframe is equal to 0x7C (ie D28.3), replace the last byte of the current frame with the control word A=K28.3.
现有技术的缺陷在于,8B10B技术编码的效率为0.8,这对SERDES速率和SERDES对数要求较高。A disadvantage of the prior art is that the 8B10B technology encodes an efficiency of 0.8, which requires a higher SERDES rate and SERDES logarithm.
发明内容Summary of the invention
本发明实施例公开了一种编码方法、相关设备及系统,能够提高编码效率。The embodiment of the invention discloses an encoding method, a related device and a system, which can improve coding efficiency.
第一方面,本发明实施例提供了一种编码方法,该方法包括:In a first aspect, an embodiment of the present invention provides an encoding method, where the method includes:
编码终端确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The encoding terminal determines a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, and the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame is composed of 8 bytes. ;
所述编码终端通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding terminal encodes the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame. ;
当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
所述编码终端将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not perform data on the transmission frame of the D28.5 carrying the first identifier and the data carried in each byte of 8 bytes. Checking, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
通过执行上述步骤,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above steps, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology. Greatly improved coding efficiency.
结合第一方面,在第一方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。With reference to the first aspect, in a first possible implementation manner of the first aspect, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5 The frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header. The data carried is the data check of the transmission frame of D28.5.
结合第一方面,或者第一方面的第一种可能的实现方式,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the first aspect, or the first possible implementation manner of the first aspect, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, the frame header of the transmission frame carries the An identifier, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame except the nth byte. Corresponding to the data in the first 7 bytes of the 8 bytes carrying the A frame; the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3 The frame is used for data verification.
结合第一方面,或者第一方面的第一种可能的实现方式,或者第一方面的第二种可能 的实现方式,在第一方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。Combining the first aspect, or the first possible implementation of the first aspect, or the second possible aspect of the first aspect In a third possible implementation manner of the first aspect, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, the frame header of the transmission frame carries the An identifier, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte. Corresponding to the data in the first 7 bytes of the 8 bytes carrying the F frame; the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3 The frame is used for data verification.
结合第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In conjunction with the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, when the target JESD 204 frame belongs to the service The data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried. The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured. The decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
结合第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,或者第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In combination with the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the fourth possible implementation of the first aspect, the fifth possible implementation in the first aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not an A frame and an F frame, The 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28.7, and In D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding terminal is configured to use the data check code to carry data carried by the nth byte. Data transmission is not performed for the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the transmission data of 8 bytes which are not all for D28.5.
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation manner of the foregoing aspect, in a sixth possible implementation manner of the first aspect, the data check code is an odd check code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第一方面的第五种可能的实现方式,在第一方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is The even parity code is described, and the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第一方面的第一种可能的实现方式,或者第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,或者第一方面的第四种可能的实现方式,或者第一方面的第五种可能的实现方式,或者第一方面的第六种可能的实现方式,或者第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。Combining the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the fourth possible implementation of the first aspect The fifth possible implementation of the first aspect, or the sixth possible implementation of the first aspect, or the seventh possible implementation of the first aspect, the eighth possible aspect in the first aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
第二方面,本发明实施例提供一种编码方法,该方法包括:In a second aspect, an embodiment of the present invention provides an encoding method, where the method includes:
解码终端接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头; The decoding terminal receives a transmission frame sent by the encoding terminal, and the transmission frame is obtained by encoding, by the encoding terminal, a JESD204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are The frame header of the transmission frame;
所述编码终端解析所述传输帧以获取所述8个字节和所述2比特中的数据;The encoding terminal parses the transmission frame to acquire data of the 8 bytes and the 2 bits;
当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,所述解码终端基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal is based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and the data carried in each byte of the 8 bytes of the code level synchronization frame is D28.5;
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the decoding terminal is based on the transmission The data in the 8 bytes of the frame generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one correspondence with the data in the 8 bytes of the transmission frame, and 8 of the ILA sequence frames The data of the 0th byte in the byte is D28.0.
通过执行上述步骤,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above steps, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology. Greatly improved coding efficiency.
结合第二方面,在第二方面的第一种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。With reference to the second aspect, in a first possible implementation manner of the second aspect, when a frame header of the transmission frame carries a preset second identifier, and the data carried by the 8 bytes of the transmission frame is D28 The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
结合第二方面,或者第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte of the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, where the service data frame The eight bytes one-to-one correspond to the data in the eight bytes of the transmission frame, and the data of the last byte of the eight bytes of the service data frame is D28.3.
结合第二方面,或者第二方面的第一种可能的实现方式,或者第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, when the transmission frame is When the frame header carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on 8 bytes of the transmission frame. The data generates a service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last byte of the 8 bytes of the service data frame The data is D28.7.
结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In conjunction with the second possible implementation of the second aspect, or the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on data in 8 bytes of the transmission frame. The data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,在第二方面的第五种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。With reference to the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, the fifth possible implementation in the second aspect In the mode, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on The data in the 8 bytes of the transmission frame generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,在第二方 面的第六种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。Combining the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the fifth possible implementation of the second aspect Way, in the second party In a sixth possible implementation manner, when the frame header of the transmission frame carries a preset second identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0 And the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, where the 8 bytes of the service data frame correspond to the data in the 8 bytes of the transmission frame. .
结合第二方面,或者第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,或者第二方面的第六种可能的实现方式,在第二方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;With reference to the second aspect, or the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the second aspect The fifth possible implementation manner, or the sixth possible implementation manner of the second aspect, in the seventh possible implementation manner of the second aspect, when the data carried by the 8 bytes of the transmission frame is not all D28 .5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7, and D28.3, the frame header of the transmission frame includes data verification. a code and an inverse of the data check code;
所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks data in 8 bytes of the transmission frame by using the data check code;
当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
结合第二方面的第七种可能的实现方式,在第二方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the seventh possible implementation of the second aspect, in an eighth possible implementation manner of the second aspect, the data check code is an odd check code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第二方面的第七种可能的实现方式,在第二方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation of the second aspect, in a ninth possible implementation manner of the second aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is The even parity code is described, and the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第二方面,或者第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,或者第二方面的第六种可能的实现方式,或者第二方面的第七种可能的实现方式,或者第二方面的第八种可能的实现方式,或者第二方面的第九种可能的实现方式,在第二方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。With reference to the second aspect, or the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the second aspect Five possible implementations, or a sixth possible implementation of the second aspect, or a seventh possible implementation of the second aspect, or an eighth possible implementation of the second aspect, or the second aspect The ninth possible implementation manner of the second aspect, the first identifier is 10, the second identifier is 01, or the first identifier is 01, and the first identifier is 01 The second identifier is 10.
第三方面,本发明实施例提供一种编码终端,该所述编码终端包括处理器、存储器和收发器:In a third aspect, an embodiment of the present invention provides an encoding terminal, where the encoding terminal includes a processor, a memory, and a transceiver:
所述存储器用于存储数据和程序;The memory is for storing data and programs;
所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls a program in the memory to perform the following operations:
确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determining a frame type of a target JESD 204 frame in the JESD 204B data to be transmitted, the frame type in the JESD 204B data comprising a code level synchronization frame, an ILA sequence frame, and a service data frame, wherein the target JESD 204 frame is composed of 8 bytes;
通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头; Encoding the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame being composed of 8 bytes and 2 bits and the 2 bits being a frame header of the transmission frame;
当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
通过所述收发器将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。Transmitting, by the transceiver, the transmission frame to a decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5. Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operation, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology. Greatly improved coding efficiency.
结合第三方面,在第三方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。With reference to the third aspect, in a first possible implementation manner of the third aspect, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5 The frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header. The data carried is the data check of the transmission frame of D28.5.
结合第三方面,或者第三方面的第一种可能的实现方式,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the third aspect, or the first possible implementation manner of the third aspect, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, the frame header of the transmission frame carries the An identifier, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame except the nth byte. Corresponding to the data in the first 7 bytes of the 8 bytes carrying the A frame; the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3 The frame is used for data verification.
结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the third aspect, or the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, when the target JESD 204 When the frame belongs to the service data frame and the target JESD 204 frame is an F frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28. .7, the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the F frame; The decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
结合第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。With reference to the second possible implementation of the third aspect, or the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, when the target JESD 204 frame belongs to the service The data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried. The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured. The decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
结合第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,或者第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为 D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。With reference to the second possible implementation of the third aspect, or the third possible implementation of the third aspect, or the fourth possible implementation of the third aspect, the fifth possible implementation in the third aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all When D28.5 and the target JESD204 frame are not an A frame and an F frame, the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, when the transmission frame When the data carried by the nth byte is not D28.3, D28.7, and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding The data used by the terminal to carry the data to the nth byte through the data check code is not a transmission frame of D28.3, a transmission frame of D28.7, a transmission frame of D28.0, and an incomplete data of 8 bytes. Perform data verification for the transmission frame of D28.5.
结合第三方面的第五种可能的实现方式,在第三方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, the data check code is an odd parity code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第三方面的第五种可能的实现方式,在第三方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation manner of the third aspect, in a seventh possible implementation manner of the third aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is The even parity code is described, and the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,或者第三方面的第四种可能的实现方式,或者第三方面的第五种可能的实现方式,或者第三方面的第六种可能的实现方式,或者第三方面的第七种可能的实现方式,在第三方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。Combining the first possible implementation of the third aspect, or the second possible implementation of the third aspect, or the third possible implementation of the third aspect, or the fourth possible implementation of the third aspect The fifth possible implementation manner of the third aspect, or the sixth possible implementation manner of the third aspect, or the seventh possible implementation manner of the third aspect, the eighth possible aspect in the third aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
第四方面,本发明实施例提供一种解码终端,所述编码终端包括处理器、存储器和收发器:In a fourth aspect, an embodiment of the present invention provides a decoding terminal, where the encoding terminal includes a processor, a memory, and a transceiver:
所述存储器用于存储数据和程序;The memory is for storing data and programs;
所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls a program in the memory to perform the following operations:
通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Receiving, by the transceiver, a transmission frame sent by an encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
解析所述传输帧以获取所述8个字节和所述2比特中的数据;Parsing the transmission frame to obtain data of the 8 bytes and the 2 bits;
当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and data in each byte of 8 bytes of the transmission frame is D28.5, based on 8 bytes of the transmission frame The data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the transmission frame is based on the transmission frame The data in 8 bytes generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the 8 bytes of the ILA sequence frame The data of the 0th byte in the data is D28.0.
通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operation, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology. Greatly improved coding efficiency.
结合第四方面,在第四方面的第一种可能的实现方式中,所述处理器还用于: In conjunction with the fourth aspect, in a first possible implementation manner of the fourth aspect, the processor is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried by the 8 bytes of the transmission frame is D28.5, the service is generated based on the data in the 8 bytes of the transmission frame. The data frame, each byte of the 8 bytes of the service data frame carries data of D28.5.
结合第四方面,或者第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the processor is further configured to:
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.3.
结合第四方面,或者第四方面的第一种可能的实现方式,或者第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, Used for:
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.7.
结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,在第四方面的第四种可能的实现方式中,所述处理器还用于:With reference to the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the processor is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,在第四方面的第五种可能的实现方式中,所述处理器还用于:With reference to the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, the fifth possible implementation of the fourth aspect In the mode, the processor is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,在第四方面的第六种可能的实现方式中,所述处理器还用于:Combining the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, or the fifth possible implementation of the fourth aspect In a sixth possible implementation manner of the fourth aspect, the processor is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第四方面,或者第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,或者第四方面的第六种可能的实现方式,在第四方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器还用于: With reference to the fourth aspect, or the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, or the fourth possible implementation manner of the fourth aspect, or the fourth aspect The fifth possible implementation manner, or the sixth possible implementation manner of the fourth aspect, in the seventh possible implementation manner of the fourth aspect, when the data carried by the 8 bytes of the transmission frame is not all D28 .5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7, and D28.3, the frame header of the transmission frame includes data verification. And an inverse of the code and the data check code; the processor is further configured to:
通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying data in 8 bytes of the transmission frame by the data check code;
当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
结合第四方面的第七种可能的实现方式,在第四方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In conjunction with the seventh possible implementation of the fourth aspect, in an eighth possible implementation manner of the fourth aspect, the data check code is an odd check code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第四方面的第七种可能的实现方式,在第四方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation manner of the foregoing aspect, in a ninth possible implementation manner of the fourth aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is The even parity code is described, and the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第四方面,或者第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,或者第四方面的第六种可能的实现方式,或者第四方面的第七种可能的实现方式,或者第四方面的第八种可能的实现方式,或者第四方面的第九种可能的实现方式,在第四方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。With reference to the fourth aspect, or the second possible implementation manner of the fourth aspect, or the third possible implementation manner of the fourth aspect, or the fourth possible implementation manner of the fourth aspect, or the fourth aspect Five possible implementations, or a sixth possible implementation of the fourth aspect, or a seventh possible implementation of the fourth aspect, or an eighth possible implementation of the fourth aspect, or the fourth aspect The ninth possible implementation manner of the fourth aspect, the first identifier is 10, the second identifier is 01, or the first identifier is 01, and the first identifier is 01 The second identifier is 10.
第五方面,本发明实施例提供一种编码终端,该编码终端包括:In a fifth aspect, an embodiment of the present invention provides an encoding terminal, where the encoding terminal includes:
确定单元,用于确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;a determining unit, configured to determine a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, where the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame consists of 8 Byte composition
编码单元,用于通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;a coding unit, configured to encode the target JESD 204 frame by a 64B66B coding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are frames of the transmission frame head;
当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
发送单元,用于将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。a sending unit, configured to send the transmission frame to a decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
通过运行上述功能单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。 By running the above functional unit, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. In terms of coding efficiency is greatly improved.
结合第五方面,在第五方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5 The frame header of the transmission frame carries a second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the 8 bytes to the frame header. The data carried is the data check of the transmission frame of D28.5.
结合第五方面,或者第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame When the frame is an A frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 8 bytes of the transmission frame are The 7 bytes except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and The data carried by the nth byte is data verified for the transmission frame of D28.3.
结合第五方面,或者第五方面的第一种可能的实现方式,或者第五方面的第二种可能的实现方式,在第五方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, or the second possible implementation manner of the fifth aspect, in a third possible implementation manner of the fifth aspect, when the target JESD 204 When the frame belongs to the service data frame and the target JESD 204 frame is an F frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28. .7, the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the first 7 bytes of the 8 bytes of the F frame; The decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
结合第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,在第五方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。With reference to the second possible implementation of the fifth aspect, or the third possible implementation manner of the fifth aspect, in a fourth possible implementation manner of the fifth aspect, when the target JESD 204 frame belongs to the service The data frame and the data carried by the 8 bytes of the target JESD 204 frame are not all D28.5, and when the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame are correspondingly carried. The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries The second identifier is configured. The decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
结合第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,或者第五方面的第四种可能的实现方式,在第五方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。With reference to the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, or the fourth possible implementation of the fifth aspect, the fifth possible implementation of the fifth aspect In the mode, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not an A frame and an F frame, The 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28.7, and In D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding terminal is configured to use the data check code to carry data carried by the nth byte. Data transmission is not performed for the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the transmission data of 8 bytes which are not all for D28.5.
结合第五方面的第五种可能的实现方式,在第五方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation manner of the fifth aspect, in a sixth possible implementation manner of the fifth aspect, the data check code is an odd check code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第五方面的第五种可能的实现方式,在第五方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特 为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation manner of the fifth aspect, in a seventh possible implementation manner of the fifth aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is an inverse of the even parity code; or the last bit in the frame header of the transmission frame For the even parity code, the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第五方面的第一种可能的实现方式,或者第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,或者第五方面的第四种可能的实现方式,结合第五方面的第五种可能的实现方式,或者第五方面的第六种可能的实现方式,或者第五方面的第七种可能的实现方式,在第五方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。Combining the first possible implementation of the fifth aspect, or the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, or the fourth possible implementation of the fifth aspect The fifth possible implementation manner of the fifth aspect, or the sixth possible implementation manner of the fifth aspect, or the seventh possible implementation manner of the fifth aspect, the eighth possible aspect in the fifth aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
第六方面,本发明实施例提供一种解码终端,该解码终端包括:In a sixth aspect, an embodiment of the present invention provides a decoding terminal, where the decoding terminal includes:
接收单元,用于接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;a receiving unit, configured to receive a transmission frame sent by the encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
解析单元,用于解析所述传输帧以获取所述8个字节和所述2比特中的数据;a parsing unit, configured to parse the transmission frame to acquire data in the 8 bytes and the 2 bits;
解码单元,用于在所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;a decoding unit, configured to: when the frame header of the transmission frame carries a preset first identifier, and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
所述解码单元,还用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。The decoding unit is further configured to: when the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, Generating an ILA sequence frame based on data in 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame correspondingly carrying data in 8 bytes of the transmission frame, and the ILA sequence The data of the 0th byte of the 8 bytes of the frame is D28.0.
结合第六方面,在第六方面的第一种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, when a frame header of the transmission frame carries a preset second identifier, and data carried by 8 bytes of the transmission frame is D28 The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
结合第六方面,或者第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte of the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, where the service data frame The eight bytes one-to-one correspond to the data in the eight bytes of the transmission frame, and the data of the last byte of the eight bytes of the service data frame is D28.3.
结合第六方面,或者第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,在第六方面的第三种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, in the third possible implementation manner of the sixth aspect, when the transmission frame is When the frame header carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on 8 bytes of the transmission frame. The data generates a service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last byte of the 8 bytes of the service data frame The data is D28.7.
结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,在第六方面的第四种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧 的8个字节中的数据。With reference to the second possible implementation of the sixth aspect, or the third possible implementation manner of the sixth aspect, in a fourth possible implementation manner of the sixth aspect, when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on data in 8 bytes of the transmission frame. a data frame, the 8 bytes of the service data frame are in a one-to-one correspondence carrying the transmission frame The data in 8 bytes.
结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,在第六方面的第五种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。With reference to the second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, or the fourth possible implementation manner of the sixth aspect, the fifth possible implementation in the sixth aspect In the mode, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal is based on The data in the 8 bytes of the transmission frame generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,在第六方面的第六种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。The second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, or the fourth possible implementation manner of the sixth aspect, or the fifth possible implementation of the sixth aspect In a sixth possible implementation manner of the sixth aspect, when a frame header of the transmission frame carries a preset second identifier and is carried by an nth byte of 8 bytes of the transmission frame When the data is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
结合第六方面,或者第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,或者第六方面的第六种可能的实现方式,在第六方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, or the third possible implementation manner of the sixth aspect, or the sixth aspect The fourth possible implementation manner of the sixth aspect, or the sixth possible implementation manner of the sixth aspect, in the seventh possible implementation manner of the sixth aspect, The data carried by the 8 bytes of the transmission frame is not all D28.5, or the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7, and D28.3. The frame header of the transmission frame includes a data check code and an inverse of the data check code;
所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks data in 8 bytes of the transmission frame by using the data check code;
当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
结合第六方面的第七种可能的实现方式,在第六方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the seventh possible implementation manner of the sixth aspect, in an eighth possible implementation manner of the sixth aspect, the data check code is an odd check code, and the first one of the frame headers of the transmission frame The bit is the odd parity code, the last bit in the frame header of the transmission frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is The odd parity code is used, and the first bit in the frame header of the transmission frame is the inverse of the odd parity code.
结合第六方面的第七种可能的实现方式,在第六方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation manner of the sixth aspect, in a ninth possible implementation manner of the sixth aspect, the data check code is an even check code, and the first one of the frame headers of the transmission frame The bit is the even parity code, the last bit in the frame header of the transmission frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is The even parity code is described, and the first bit in the frame header of the transmission frame is the inverse of the even parity code.
结合第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,或者第六方面的第六种可能的实现方式,或者第六方面的第七种可能的实现方式,或者第六方面的第八种可能的实现方式,或者第六方面的第九种可能的实现方式,在第六方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。Combining the first possible implementation of the sixth aspect, or the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, or the fourth possible implementation of the sixth aspect The fifth possible implementation manner of the sixth aspect, or the sixth possible implementation manner of the sixth aspect, or the seventh possible implementation manner of the sixth aspect, or the eighth possible aspect of the sixth aspect The implementation of the ninth possible implementation manner of the sixth aspect, in the tenth possible implementation manner of the sixth aspect, the first identifier is 10 and the second identifier is 01, or The first identifier is 01 and the second identifier is 10.
通过运行上述功能单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目 标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above functional unit, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the mesh. The standard JESD204 frame greatly improves the coding efficiency compared to the 8B10B coding technique.
第七方面,本发明实施例提供一种编码系统,所述编码系统包括编码终端和解码终端,所述编码终端为第三方面任一实现方式所描述的编码终端,或者第五方面所描述的编码终端;所述解码终端为第四方面任一实现方式所描述的解码终端,或者第六方面所描述的编码终端。In a seventh aspect, an embodiment of the present invention provides an encoding system, where the encoding system includes an encoding terminal and a decoding terminal, where the encoding terminal is an encoding terminal described in any implementation manner of the third aspect, or the fifth aspect is described. An encoding terminal; the decoding terminal is the decoding terminal described in any implementation manner of the fourth aspect, or the encoding terminal described in the sixth aspect.
通过运行上述系统,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above system, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. The words greatly improve the coding efficiency.
通过实施本发明实施例,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By implementing the embodiment of the present invention, the encoding terminal encodes the target JESD 204 frame by using the 64B66B encoding technology to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by using the 64B66B encoding technology to restore the target JESD 204 frame, compared to the 8B10B encoding technology. In terms of coding efficiency is greatly improved.
附图说明DRAWINGS
下面将对背景技术或者实施例所需要使用的附图作简单地介绍。The drawings to be used in the background art or the embodiments will be briefly described below.
图1是现有技术中JESD204B协议定义的拓扑结构示意图;1 is a schematic diagram of a topology structure defined by a JESD204B protocol in the prior art;
图2是现有技术中基于JESD204B协议的数据的结构示意图;2 is a schematic structural diagram of data based on a JESD204B protocol in the prior art;
图3是现有技术中基于8B10B编码技术编码的场景示意图;3 is a schematic diagram of a scenario coded based on an 8B10B coding technique in the prior art;
图4是现有技术中的一种数据帧的结构示意图;4 is a schematic structural diagram of a data frame in the prior art;
图5是现有技术中的又一种数据帧的结构示意图;FIG. 5 is a schematic structural diagram of still another data frame in the prior art; FIG.
图6是现有技术中的又一种数据帧的结构示意图;6 is a schematic structural diagram of still another data frame in the prior art;
图7是本发明实施例提供的一种编码方法的流程示意图;FIG. 7 is a schematic flowchart diagram of an encoding method according to an embodiment of the present disclosure;
图8是本发明实施例提供的一种数据的结构示意图;FIG. 8 is a schematic structural diagram of data according to an embodiment of the present disclosure;
图9是本发明实施例提供的一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 9 is a schematic diagram of a scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention; FIG.
图10是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;10 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention;
图11是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;11 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention;
图12是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 12 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention; FIG.
图13是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 13 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention; FIG.
图14是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;14 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention;
图15是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;15 is a schematic diagram of another scenario of converting a target JESD 204 frame to a transmission frame according to an embodiment of the present invention;
图16是本发明实施例提供的一种数据校验码的场景示意图;FIG. 16 is a schematic diagram of a data check code according to an embodiment of the present disclosure;
图17是本发明实施例提供的一种数据校验码的场景示意图;17 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention;
图18是本发明实施例提供的一种数据校验码的场景示意图;FIG. 18 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention;
图19是本发明实施例提供的一种数据校验码的场景示意图;19 is a schematic diagram of a scenario of a data check code according to an embodiment of the present invention;
图20是本发明实施例提供的一种编码终端的结构示意图;FIG. 20 is a schematic structural diagram of an encoding terminal according to an embodiment of the present disclosure;
图21是本发明实施例提供的一种解码终端的结构示意图;FIG. 21 is a schematic structural diagram of a decoding terminal according to an embodiment of the present disclosure;
图22是本发明实施例提供的又一种编码终端的结构示意图;FIG. 22 is a schematic structural diagram of still another encoding terminal according to an embodiment of the present disclosure;
图23是本发明实施例提供的又一种解码终端的结构示意图;FIG. 23 is a schematic structural diagram of still another decoding terminal according to an embodiment of the present disclosure;
图24是本发明实施例提供的一种编码系统的结构示意图。 FIG. 24 is a schematic structural diagram of an encoding system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
请参见图7,图7是本发明实施例提供的一种编码方法的流程示意图,该方法包括但不限于如下步骤。Referring to FIG. 7, FIG. 7 is a schematic flowchart diagram of an encoding method according to an embodiment of the present invention, where the method includes but is not limited to the following steps.
步骤S701:编码终端判断待传输的JESD204数据中的目标JESD204帧的帧类型。Step S701: The encoding terminal determines the frame type of the target JESD 204 frame in the JESD 204 data to be transmitted.
具体地,JESD204数据具体是指基于JESD204系列协议的数据,例如,目前使用较为成熟的JESD204B协议、以后可能演进出的JESD204C协议等。以JESD204B协议为例,该待传输的JESD204数据由至少一个multiframe(多帧)组成,每个multiframe包括K个frame,每个frame包含F个字节,其中,K和F均为正整数。Specifically, the JESD204 data specifically refers to data based on the JESD204 series protocol, for example, currently using the more mature JESD204B protocol, and the JESD204C protocol that may be evolved in the future. Taking the JESD204B protocol as an example, the JESD204 data to be transmitted is composed of at least one multiframe, each multiframe includes K frames, and each frame contains F bytes, where K and F are positive integers.
而本发明实施例将该JESD204数据重新以8byte为单位进行切分得到多个规格为64bit Block的JESD204帧,也即是说,frame和mulftiframe为现有技术中定义的量,而JESD204帧为本发明定义的量;由于该JESD204数据包括码级同步、ILA序列和业务数据三个部分,因此该JESD204帧可对应划分为码级同步帧、ILA序列帧和业务数据帧这三种帧类型。通常情况下,该编码终端可以通过本地状态机来确定该目标JESD204帧的帧类型。In the embodiment of the present invention, the JESD204 data is re-segmented in units of 8 bytes to obtain a plurality of JESD204 frames of 64-bit block size, that is, the frame and the mulftiframe are defined in the prior art, and the JESD 204 frame-based The amount defined by the invention; since the JESD 204 data includes three parts of code level synchronization, ILA sequence, and service data, the JESD 204 frame can be correspondingly divided into three frame types: a code level synchronization frame, an ILA sequence frame, and a service data frame. Normally, the encoding terminal can determine the frame type of the target JESD 204 frame through the local state machine.
以图8为例,以上描述的8个字节按照顺序可以依次称为第0个字节、第1个字节、第2个字节、第3个字节、第4个字节、第5个字节、第6个字节和第7个字节,其中,第0个字节为最前一个字节,第7个字节为最后一个字节。Taking FIG. 8 as an example, the eight bytes described above may be sequentially referred to as the 0th byte, the 1st byte, the 2nd byte, the 3rd byte, the 4th byte, and the 5 bytes, 6th byte, and 7th byte, where the 0th byte is the first byte and the 7th byte is the last byte.
步骤S702:该编码终端通过64B66B编码技术对该目标JESD204帧进行编码以得到66比特的传输帧,该传输帧由8个字节和2比特组成且该2比特为该传输帧的帧头。Step S702: The encoding terminal encodes the target JESD 204 frame by using a 64B66B encoding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are the frame header of the transmission frame.
具体地,该编码终端对不同帧类型的JESD204帧的编码方式不同。Specifically, the encoding terminal encodes JESD 204 frames of different frame types differently.
当该目标JESD204帧属于该码级同步帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的每个字节携带的数据均为D28.5。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图9所示。When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the encoded transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5. Optionally, the data correspondence of the transmission frame obtained by the target JESD204 frame coding is as shown in FIG. 9.
当该目标JESD204帧属于该ILA序列帧且该目标JESD204帧的第0个字节为控制字R时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节中预设的第n个字节携带的数据为D28.0,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该ILA序列帧的8个字节中的后7个字节中的数据。When the target JESD 204 frame belongs to the ILA sequence frame and the 0th byte of the target JESD 204 frame is the control word R, the encoded frame header of the transmission frame carries the first identifier, and the transmission frame has 8 bytes. The data carried by the preset nth byte is D28.0, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 bytes of the ILA sequence frame. The data in the last 7 bytes.
具体地,该第n个字节为该8个字节中哪个字节,以及该传输帧的8个字节中除第n个字节外的7个字节与该ILA序列帧的8个字节中的后7个字节如何一一对应均可以通过预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图10所示。Specifically, the nth byte is which of the 8 bytes, and 7 bytes of the 8 bytes of the transmission frame except the nth byte and 8 of the ILA sequence frame The one-to-one correspondence of the last 7 bytes in the byte may be predefined by a preset rule, so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame. Optionally, the data correspondence of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 10 .
在一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据均为D28.5时,编码得到的该传输帧的帧头携带第二标识,该传输帧的8个字节携带的数据均为D28.5。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图11所示。In an optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5, the frame header of the transmitted transmission frame carries the first The second identifier indicates that the data carried by the 8 bytes of the transmission frame is D28.5. Optionally, the data correspondence relationship of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 11 .
在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧或ILA序列帧,并 且该目标JESD204帧为A帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的第n个字节携带的数据为D28.3,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该A帧的8个字节中的除控制字A以外的其他7个字节中的数据。In still another alternative, when the target JESD 204 frame belongs to the service data frame or the ILA sequence frame, and When the target JESD 204 frame is an A frame, the frame header of the encoded transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the transmission frame is The 7 bytes of the 8 bytes except the nth byte are one-to-one corresponding to the data of 7 bytes other than the control word A among the 8 bytes of the A frame.
具体地,该传输帧的8个字节中除第n个字节外的7个字节与该A帧的8个字节中的前7个字节具体如何一一对应可以通过该预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图12所示。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图13所示。可选的,当该目标JESD204帧属于ILA帧且该目标JESD204帧的第7个字节的值为JESD204数据中的控制字A时,该目标JESD204帧为A帧。Specifically, the specific one of the eight bytes of the eight bytes of the transmission frame except the first seven bytes of the eight bytes of the A frame may pass the preset. The rule is predefined so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame. Optionally, the data correspondence relationship of the transmission frame obtained by the target JESD204 frame is as shown in FIG. 12 . Optionally, the data correspondence of the transmission frame obtained by the target JESD 204 frame coding is as shown in FIG. 13 . Optionally, when the target JESD 204 frame belongs to the ILA frame and the value of the 7th byte of the target JESD 204 frame is the control word A in the JESD 204 data, the target JESD 204 frame is an A frame.
可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced by the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
1、该目标JESD204帧内只包含或小于上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理。1. The target JESD 204 frame only contains or is smaller than a frame of one F byte in the multiframe; in the embodiment of the present invention, when the JESD 204 frame contains data less than 1 frame, it can be processed according to 1 frame; when JESD 204 frame When the number of included data is greater than 1 frame, it can be processed according to multiple frames.
2、该frame为该multiframe中的的最后一帧;2. The frame is the last frame in the multiframe;
3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the frame is in the last byte of the target JESD 204 frame;
4、该frame的最后一个字节的数据与该frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of the frame is the same as the data of the last byte of the previous frame of the frame.
可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced by the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe;
2、该多个frame中的最后一个frame为该multiframe的最后一个frame;2. The last frame of the multiple frames is the last frame of the multiframe;
3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the last frame is the last byte of the target JESD 204 frame;
4、该最后一个frame的最后一个字节的数据与该最后一个frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.
可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理;1. In the frame of the target JESD 204, only one F-byte frame in the multiframe is included. In the embodiment of the present invention, when the JESD 204 frame contains less than 1 frame, the frame may be processed according to one frame; when the JESD 204 frame contains data. When the number is greater than 1frame, it can be processed according to multiple frames;
2、该frame为该multiframe中的的最后一帧; 2. The frame is the last frame in the multiframe;
3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the frame is in the last byte of the target JESD 204 frame;
4、该目标JESD204帧的最后一个字节的数据为D28.3。4. The data of the last byte of the target JESD204 frame is D28.3.
可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the A frame, and the four conditions are as follows:
1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe;
2、该多个frame中的最后一个frame为该multiframe的最后一个frame;2. The last frame of the multiple frames is the last frame of the multiframe;
3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the last frame is the last byte of the target JESD 204 frame;
4、该目标JESD204帧的最后一个字节的数据为D28.3。4. The data of the last byte of the target JESD204 frame is D28.3.
在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧为F帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的第n个字节携带的数据为D28.7,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该F帧的8个字节中的除控制字F以外的其他7个字节中的数据;该解码终端不对帧头携带该第一标识且第n个字节携带的数据为D28.7的传输帧做奇偶校验。In another optional solution, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, the encoded frame header of the transmission frame carries the first identifier, and 8 of the transmission frames The data carried by the nth byte of the byte is D28.7, and the 7 bytes except the nth byte of the 8 bytes of the transmission frame are correspondingly carried in the 8 bytes of the F frame. Data in 7 bytes other than the control word F; the decoding terminal does not perform parity check on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.7.
具体地,该该传输帧的8个字节中除第n个字节外的7个字节与该F帧的8个字节中的前7个字节具体如何一一对应可以通过该预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图14所示。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图15所示。Specifically, the specific one of the 8 bytes of the 8 bytes of the transmission frame and the first 7 bytes of the 8 bytes of the F frame may pass the pre-specific The rule is pre-defined so that the decoding terminal can successfully decode (parse) the transmission frame based on the preset rule when the decoding terminal subsequently receives the transmission frame. Optionally, the data correspondence of the transmission frame obtained by the target JESD204 frame coding is as shown in FIG. 14 . Optionally, the data correspondence of the transmission frame obtained by the target JESD204 frame encoding is as shown in FIG. 15 .
可选的,该目标JESD204帧未加扰,如果满足如下5个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,5个条件如下:Optionally, the target JESD204 frame is unscrambled. If the following five conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the five conditions are as follows:
1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理。1. In the frame of the target JESD 204, only one F-byte frame in the multiframe is included. In the embodiment of the present invention, when the JESD 204 frame contains less than 1 frame, the frame may be processed according to one frame; when the JESD 204 frame contains data. When the number is greater than 1frame, it can be processed according to multiple frames.
2、该frame不为该multiframe中的的最后一帧;2. The frame is not the last frame in the multiframe;
3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the frame is in the last byte of the target JESD 204 frame;
4、该frame的前一个frame未发生过替换;4. The previous frame of the frame has not been replaced;
5、该frame的最后一个字节的数据与该frame的前一个frame的最后一个字节的数据相同。5. The data of the last byte of the frame is the same as the data of the last byte of the previous frame of the frame.
可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame is unscrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe;
2、该多个frame中的最后一个frame不为该multiframe的最后一个frame; 2. The last frame of the multiple frames is not the last frame of the multiframe;
3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the last frame is the last byte of the target JESD 204 frame;
4、该最后一个frame的最后一个字节的数据与该最后一个frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.
可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理;1. In the frame of the target JESD 204, only one F-byte frame in the multiframe is included. In the embodiment of the present invention, when the JESD 204 frame contains less than 1 frame, the frame may be processed according to one frame; when the JESD 204 frame contains data. When the number is greater than 1frame, it can be processed according to multiple frames;
2、该frame不为该multiframe中的最后一帧;2. The frame is not the last frame in the multiframe;
3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the frame is in the last byte of the target JESD 204 frame;
4、该目标JESD204帧的最后一个字节的数据为D28.7。4. The data of the last byte of the target JESD204 frame is D28.7.
可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame is scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following condition) Taking the xth byte as the last byte as an example for description, and the other data of the target JESD204 frame is not replaced, the transmission frame obtained after the encoding process also belongs to the F frame, and the four conditions are as follows:
1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD 204 frame contains a frame of a plurality of F bytes in the multiframe;
2、该多个frame中的最后一个frame不为该multiframe的最后一个frame;2. The last frame of the multiple frames is not the last frame of the multiframe;
3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The last byte of the last frame is the last byte of the target JESD 204 frame;
4、该目标JESD204帧的最后一个字节的数据为D28.7。4. The data of the last byte of the target JESD204 frame is D28.7.
在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据不全为D28.5以及该目标JESD204帧不为A帧和F帧时,编码得到的该传输帧的8个字节一一对应携带该业务数据帧的8个字节中的数据,当该传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,该传输帧的帧头携带该第二标识,需要说明的是,数值D28.3对应的16进制数为0x7C,数值D28.7对应的16进制数为0xFC,数值D28.5对应的16进制数为0xBC,数值D28.0对应的16进制数为0x1C,数值D28.4对应的16进制数为0x9C。In still another alternative, when the target JESD 204 frame belongs to the service data frame and the 8 bytes of the target JESD 204 frame carry data not all D28.5 and the target JESD 204 frame is not an A frame and an F frame. The encoded 8 bytes of the transmission frame correspond one-to-one with the data of the 8 bytes of the service data frame, and the data carried by the nth byte of the transmission frame is D28.3, D28. 7 or D28.0, the frame header of the transmission frame carries the second identifier. It should be noted that the hexadecimal number corresponding to the value D28.3 is 0x7C, and the hexadecimal number corresponding to the value D28.7 is 0xFC. The hexadecimal number corresponding to the value D28.5 is 0xBC, the hexadecimal number corresponding to the value D28.0 is 0x1C, and the hexadecimal number corresponding to the value D28.4 is 0x9C.
具体地,编码得到的该传输帧的8个字节与该业务数据帧的8个字节具体如何一一对应可以通过该预设规则预先定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。Specifically, the eight bytes of the encoded transmission frame and the eight bytes of the service data frame may be specifically defined by the preset rule, so that the decoding terminal may subsequently receive the transmission frame. The transmission frame is smoothly decoded (parsed) based on the preset rule.
在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据不全为D28.5以及该目标JESD204帧不为A帧和F帧时,编码得到的该传输帧的8个字节一一对应携带该业务数据帧的8个字节中的数据,当该传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,该传输帧的帧头携带数据校验码和该数据校验码的反码,该数据校验码可以为奇偶校验码。In still another alternative, when the target JESD 204 frame belongs to the service data frame and the 8 bytes of the target JESD 204 frame carry data not all D28.5 and the target JESD 204 frame is not an A frame and an F frame. The encoded 8 bytes of the transmission frame correspond to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28.3, D28. In .7 and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the data check code may be a parity check code.
具体地,编码得到的该传输帧的8个字节与该业务数据帧的8个字节具体如何一一对应可以通过该预设规则预先定义好,以便解码终端后续接收到该传输帧时可以基于该预设 规则顺利解码(解析)该传输帧。Specifically, the eight bytes of the encoded transmission frame and the eight bytes of the service data frame may be specifically defined by the preset rule, so that the decoding terminal may subsequently receive the transmission frame. Based on the preset The rule successfully decodes (parses) the transmitted frame.
可选的,该奇偶校验码为奇校验码,该传输帧的帧头中的前1个比特为该奇校验码,该传输帧的帧头中的后1个比特为该奇校验码的反码,如图16所示;或者该传输帧的帧头中的后1个比特为该奇校验码,该传输帧的帧头中的前1个比特为该奇校验码的反码,如图17所示。Optionally, the parity code is an odd parity code, and the first bit in the frame header of the transmission frame is the odd parity code, and the last bit in the frame header of the transmission frame is the odd school The inverse of the code is as shown in FIG. 16; or the last bit in the frame header of the transmission frame is the odd parity code, and the first bit in the frame header of the transmission frame is the odd parity code The inverse of the code is shown in Figure 17.
可选的,该奇偶校验码为偶校验码,该传输帧的帧头中的前1个比特为该偶校验码,该传输帧的帧头中的后1个比特为该偶校验码的反码,如图18所示;或者该传输帧的帧头中的后1个比特为该偶校验码,该传输帧的帧头中的前1个比特为该偶校验码的反码,如图19所示。Optionally, the parity code is an even parity code, and the first bit in the frame header of the transmission frame is the even parity code, and the last bit in the frame header of the transmission frame is the even parity The inverse of the code is as shown in FIG. 18; or the last bit in the frame header of the transmission frame is the even parity code, and the first bit in the frame header of the transmission frame is the even parity code The inverse of the code is shown in Figure 19.
需要说明的是,经JESD204编码技术编码得到的传输在传输时可以保持该传输帧的帧头为10,或者01,因此本发明实施例中的第一标识可以为01以及第二标识可以为10,或者该第一标识为10以及该第二标识为01。当存在奇偶校验码时,还特地为该奇偶校验码配置了奇偶校验码反码,保证了该传输帧的帧头为10,或者01。It should be noted that the transmission coded by the JESD204 coding technology can maintain the frame header of the transmission frame as 10, or 01. Therefore, the first identifier in the embodiment of the present invention may be 01 and the second identifier may be 10 Or the first identifier is 10 and the second identifier is 01. When the parity code is present, the parity code is specifically configured for the parity code to ensure that the frame header of the transmission frame is 10, or 01.
步骤S703:该编码终端将该传输帧发送给解码终端。Step S703: The encoding terminal sends the transmission frame to the decoding terminal.
步骤S704:该解码终端接收该编码终端发送的该传输帧。Step S704: The decoding terminal receives the transmission frame sent by the encoding terminal.
步骤S705:该解码终端解析该传输帧以获取该8个字节和该2比特中的数据。Step S705: The decoding terminal parses the transmission frame to acquire the data of the 8 bytes and the 2 bits.
步骤S706:该解码终端对该传输帧解码以得到JESD204帧,不同的传输帧的解码过程可能不一样,以下分别讲述各种传输帧的解码过程,以下描述的码级同步帧、ILA序列帧和业务数据帧均属于该JESD204帧。Step S706: The decoding terminal decodes the transmission frame to obtain a JESD 204 frame, and the decoding process of different transmission frames may be different. The following describes the decoding process of various transmission frames, the code level synchronization frame, the ILA sequence frame and the following description. The service data frames belong to the JESD204 frame.
当该传输帧的帧头携带预设的第一标识且该传输帧的8个字节的每个字节中的数据均为D28.5时,该解码终端基于该传输帧的8个字节中的数据生成码级同步帧,该码级同步帧的8个字节的每个字节携带的数据均为K28.5。When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal is based on 8 bytes of the transmission frame. The data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of K28.5.
当该传输帧的帧头携带该第一标识且该传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,该解码终端基于该传输帧的8个字节中的数据生成ILA序列帧,该ILA序列帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该ILA序列帧的8个字节中第0个字节的数据为K28.0。可选的,如果该ILA序列帧生成后为ILA序列中的第二个ILA序列帧时,可以将该ILA序列帧的第1个字节中封装数值K28.4或D28.4。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the decoding terminal is based on 8 words of the transmission frame. The data in the section generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one by one corresponding to the data in the 8 bytes of the transmission frame, and the 0th byte of the 8 bytes of the ILA sequence frame The data is K28.0. Optionally, if the ILA sequence frame is generated as a second ILA sequence frame in the ILA sequence, the first byte of the ILA sequence frame may be encapsulated with a value of K28.4 or D28.4.
在一种可选的方案中,当该传输帧的帧头携带该第二标识且该传输帧的8个字节携带的数据均为D28.5时;该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节的每个字节携带的数据均为D28.5。In an optional solution, when the frame header of the transmission frame carries the second identifier and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not perform parity check on the transmission frame. The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried by each byte of the 8 bytes of the service data frame is D28.5.
在又一种可选的方案中,当该传输帧的帧头携带该第一标识且该传输帧的8个字节中的第n个字节携带的数据为D28.3时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该业务数据帧的8个字节中最后一个字节的数据为K28.3。In still another optional solution, when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, the decoding terminal The parity of the transmission frame is not performed, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame. The data in the data, and the data of the last byte of the 8 bytes of the service data frame is K28.3.
在又一种可选的方案中,当该传输帧的帧头携带该第一标识且该传输帧的8个字节中的第n个字节携带的数据为D28.7时,该解码终端不对该传输帧做奇偶校验,该解码终端 基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该业务数据帧的8个字节中最后一个字节的数据为K28.7。In still another optional solution, when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the decoding terminal Do not perform parity check on the transmission frame, the decoding terminal Generating a service data frame based on the data in the 8 bytes of the transmission frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and 8 of the service data frames The data of the last byte in the byte is K28.7.
具体地,该业务数据帧的8个字节与该传输帧的8个字节具体如何一一对应可以基于上述预设规则得到,这样的话就可以保证目标JESD204帧在经过编码终端编码、发送给该解码终端后,经该解码终端还原出该目标JESD204帧,该解码终端还原的目标JESD204帧与编码之前的目标JESD204帧中的数据基本相同,以下类似之处不再赘述。Specifically, the specific correspondence between the 8 bytes of the service data frame and the 8 bytes of the transmission frame may be obtained based on the foregoing preset rule, so that the target JESD 204 frame is encoded and sent to the encoded terminal. After the decoding terminal, the target JESD 204 frame is restored by the decoding terminal, and the target JESD 204 frame restored by the decoding terminal is substantially the same as the data in the target JESD 204 frame before encoding, and the following similarities are not described herein.
在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.7时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In still another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, The decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.3时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In still another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, The decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.0时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In still another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0, The decoding terminal does not perform parity check on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 frames of the transmission frame. The data in the byte.
在又一种可选的方案中,当该传输帧的8个字节携带的数据不全为D28.5,或者当该传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,该解码终端通过该传输帧的帧头中预设的奇偶校验码校验该传输帧的8个字节中的数据;当校验出该传输帧的8个字节中的数据无误时,基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In still another optional solution, when the data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not In D28.0, D28.7, and D28.3, the decoding terminal checks data in 8 bytes of the transmission frame by using a parity check code preset in a frame header of the transmission frame; When the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond one by one to carry the 8 words of the transmission frame. The data in the section.
具体地,该编码终端与该解码终端所使用的64B66B编码技术中已经预定了该传输帧的帧头的2比特中哪个比特为奇偶校验码,以及使用的是奇校验还是偶校验。因此当该解码终端确定该传输帧需要进行奇偶校验时,可以通过预定义好的规则来进行校验。Specifically, in the 64B66B encoding technique used by the encoding terminal and the decoding terminal, which of the 2 bits of the frame header of the transmission frame has been reserved is a parity code, and whether an odd parity or an even parity is used. Therefore, when the decoding terminal determines that the transmission frame needs to perform parity check, it can be verified by a predefined rule.
在图7所描述的方法中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the method described in FIG. 7, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B. The coding technique greatly improves the coding efficiency.
上述详细阐述了本发明实施例的方法,为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的装置。The method of the embodiments of the present invention is described in detail above. In order to facilitate the implementation of the above embodiments of the embodiments of the present invention, correspondingly, the apparatus of the embodiments of the present invention is provided below.
请参见图20,图20是本发明实施例提供的一种编码终端200,该编码终端200包括处理器21012001、存储器2002和收发器2003,所述处理器2001与存储器2002以及与收发器2003通过总线相互连接。Referring to FIG. 20, FIG. 20 is an encoding terminal 200 according to an embodiment of the present invention. The encoding terminal 200 includes a processor 21012001, a memory 2002, and a transceiver 2003. The processor 2001 and the memory 2002 and the transceiver 2003 pass The buses are connected to each other.
存储器2002包括但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、或便携式只读存储器(CD-ROM),该存储器2002 用于相关指令及数据。The memory 2002 includes, but is not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), or a portable read only memory (CD-ROM). Memory 2002 Used for related instructions and data.
处理器2001可以是一个或多个中央处理器(英文:Central Processing Unit,简称:CPU),在处理器2001是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 2001 may be one or more central processing units (English: Central Processing Unit, CPU for short). In the case where the processor 2001 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
所述编码终端200中的处理器2001用于读取所述存储器2002中存储的程序代码,执行以下操作:The processor 2001 in the encoding terminal 200 is configured to read the program code stored in the memory 2002, and perform the following operations:
确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determining a frame type of a target JESD 204 frame in the JESD 204B data to be transmitted, the frame type in the JESD 204B data comprising a code level synchronization frame, an ILA sequence frame, and a service data frame, wherein the target JESD 204 frame is composed of 8 bytes;
通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Encoding the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame being composed of 8 bytes and 2 bits and the 2 bits being a frame header of the transmission frame;
当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
通过所述收发器2003将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。Transmitting, by the transceiver 2003, the transmission frame to a decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5. Data verification is performed, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
通过执行上述操作,编码终端200使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operation, the encoding terminal 200 encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. The words greatly improve the coding efficiency.
在一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In an optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5, the frame header of the transmission frame carries a second identifier, the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the data carried by the 8 bytes of the frame header are all D28.5 transmission The frame is used for data verification.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes of the 8 bytes of the transmission frame are respectively corresponding to the 7 bytes of the A frame. The data in the first 7 bytes of the bytes; the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of 8 bytes is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 of the F frame. The data in the first 7 bytes of the bytes; the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标 JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In still another alternative, when the target JESD 204 frame belongs to the service data frame and the target When the 8 bytes of the JESD 204 frame are not all D28.5 and the target JESD 204 frame is not the A frame and the F frame, the 8 bytes of the transmission frame correspond to the 8 of the service data frame. The data in the byte, when the data carried in the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the second identifier; The decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A. In the frame and the F frame, the 8 bytes of the transmission frame are in one-to-one correspondence with the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28. 3. D28.7 and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding terminal is configured to pass the data check code pair The data carried by n bytes is not the data frame of D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and 8 bytes of data not all for D28.5 transmission frame.
在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In still another optional solution, the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the odd parity code.
在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In still another optional solution, the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the even parity code.
在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In still another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
需要说明的是,本发明实施例中的编码终端200具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that the specific implementation of the encoding terminal 200 in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7 .
在图20所描述的编码终端200中,编码终端200使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the encoding terminal 200 described in FIG. 20, the encoding terminal 200 encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.
请参见图21,图21是本发明实施例提供的一种解码终端210,该解码终端210包括处理器2101、存储器2102和收发器2103,所述处理器2101与存储器2102以及与收发器2103通过总线相互连接。Referring to FIG. 21, FIG. 21 is a decoding terminal 210 according to an embodiment of the present invention. The decoding terminal 210 includes a processor 2101, a memory 2102, and a transceiver 2103. The processor 2101 and the memory 2102 and the transceiver 2103 pass. The buses are connected to each other.
存储器2102包括但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、或便携式只读存储器(CD-ROM),该存储器2102用于相关指令及数据。The memory 2102 includes, but is not limited to, a random access memory (RAM), a read only memory (ROM), an erasable programmable read only memory (EPROM or flash memory), or a portable read only memory (CD-ROM). Memory 2102 is used for related instructions and data.
处理器2101可以是一个或多个中央处理器2101(英文:Central Processing Unit,简称:CPU),在处理器2101是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 2101 may be one or more central processing units 2101 (English: Central Processing Unit, CPU for short). In the case where the processor 2101 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
所述解码终端210中的处理器2101用于读取所述存储器2102中存储的程序代码,执行以下操作: The processor 2101 in the decoding terminal 210 is configured to read the program code stored in the memory 2102, and perform the following operations:
通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Receiving, by the transceiver, a transmission frame sent by an encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
解析所述传输帧以获取所述8个字节和所述2比特中的数据;Parsing the transmission frame to obtain data of the 8 bytes and the 2 bits;
当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and data in each byte of 8 bytes of the transmission frame is D28.5, based on 8 bytes of the transmission frame The data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the transmission frame is based on the transmission frame The data in 8 bytes generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the 8 bytes of the ILA sequence frame The data of the 0th byte in the data is D28.0.
通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operation, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technology. Greatly improved coding efficiency.
在一种可选的方案中,所述处理器2101还用于:In an optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried by the 8 bytes of the transmission frame is D28.5, the service is generated based on the data in the 8 bytes of the transmission frame. The data frame, each byte of the 8 bytes of the service data frame carries data of D28.5.
在又一种可选的方案中,所述处理器2101还用于:In still another optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.3.
在又一种可选的方案中,所述处理器2101还用于:In still another optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.7.
在又一种可选的方案中,所述处理器2101还用于:In still another optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
在又一种可选的方案中,所述处理器2101还用于:In still another optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
在又一种可选的方案中,所述处理器2101还用于:In still another optional solution, the processor 2101 is further configured to:
当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携 带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the nth byte of the 8 bytes of the transmission frame carries When the data of the band is D28.0, a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried to carry 8 bytes of the transmission frame. The data in .
在又一种可选的方案中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器2101还用于:In still another alternative, when the 8 bytes of the transmission frame carry data that is not all D28.5, or the data carried by the nth byte of the 8 bytes of the transmission frame When not D28.0, D28.7, and D28.3, the frame header of the transmission frame includes a data check code and an inverse of the data check code; the processor 2101 is further configured to:
通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying data in 8 bytes of the transmission frame by the data check code;
当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In still another optional solution, the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the odd parity code.
在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In still another optional solution, the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the even parity code.
在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In still another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
需要说明的是,本发明实施例中的解码终端具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that the specific implementation of the decoding terminal in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7.
在图21所描述的解码终端中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the decoding terminal described in FIG. 21, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, as compared with The 8B10B encoding technology greatly improves the coding efficiency.
请参见图22,图22是本发明实施例提供的又一种编码终端220的结构示意图,该编码终端220可以包括确定单元2201、编码单元2202和发送单元2203,其中,各个单元的详细描述如下。Referring to FIG. 22, FIG. 22 is a schematic structural diagram of still another encoding terminal 220 according to an embodiment of the present invention. The encoding terminal 220 may include a determining unit 2201, an encoding unit 2202, and a sending unit 2203, where detailed descriptions of the respective units are as follows. .
确定单元2201用于确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The determining unit 2201 is configured to determine a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, where the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame consists of 8 frames. Byte composition
编码单元2202用于通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding unit 2202 is configured to encode the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, where the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are frames of the transmission frame. head;
当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中 的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0, 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the last 7 bytes of the 8 bytes carrying the ILA sequence frame. The data;
发送单元2203用于将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The sending unit 2203 is configured to send the transmission frame to the decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5. Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
通过运行上述单元,编码中的220使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above unit, the encoding 220 uses the 64B66B encoding technique to encode the target JESD 204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. In terms of coding efficiency is greatly improved.
在一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In an optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5, the frame header of the transmission frame carries a second identifier, the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the data carried by the 8 bytes of the frame header are all D28.5 transmission The frame is used for data verification.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes of the 8 bytes of the transmission frame are respectively corresponding to the 7 bytes of the A frame. The data in the first 7 bytes of the bytes; the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, a frame header of the transmission frame carries a first identifier, where the transmission frame is The data carried by the nth byte of 8 bytes is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the 8 of the F frame. The data in the first 7 bytes of the bytes; the decoding terminal does not perform data verification on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A. In the frame and the F frame, the 8 bytes of the transmission frame correspond to the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is D28. 3. In D28.7 or D28.0, the frame header of the transmission frame carries the second identifier; the decoding terminal does not carry the second identifier on the frame header and the data carried in the nth byte is D28. 3. The data transmission frame of D28.7 or D28.0 is used for data verification.
在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In still another optional solution, when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target JESD 204 frame is not A. In the frame and the F frame, the 8 bytes of the transmission frame are in one-to-one correspondence with the data in the 8 bytes of the service data frame, and the data carried in the nth byte of the transmission frame is not D28. 3. D28.7 and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding terminal is configured to pass the data check code pair The data carried by n bytes is not the data frame of D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and 8 bytes of data not all for D28.5 transmission frame.
在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所 述奇校验码的反码。In still another optional solution, the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame Bits The inverse of the odd parity code.
在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In still another optional solution, the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the even parity code.
在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In still another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
需要说明的是,本发明实施例中各个单元的具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that the specific implementation of each unit in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7.
在图22所描述的编码中的220中,编码中的220使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the encoding 220 described in FIG. 22, the encoding 220 uses the 64B66B encoding technique to encode the target JESD 204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.
请参见图23,图23是本发明实施例提供的又一种解码终端230的结构示意图,该解码终端230可以包括接收单元2301、解析单元2302和解码单元2303,其中,各个单元的详细描述如下。Referring to FIG. 23, FIG. 23 is a schematic structural diagram of still another decoding terminal 230 according to an embodiment of the present invention. The decoding terminal 230 may include a receiving unit 2301, a parsing unit 2302, and a decoding unit 2303, where detailed descriptions of the units are as follows. .
接收单元2301用于接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The receiving unit 2301 is configured to receive a transmission frame sent by the encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame is a bit is a frame header of the transmission frame;
解析单元2302用于解析所述传输帧以获取所述8个字节和所述2比特中的数据;The parsing unit 2302 is configured to parse the transmission frame to acquire data in the 8 bytes and the 2 bits;
解码单元2303用于在所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;The decoding unit 2303 is configured to: when the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
所述解码单元2303还用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。The decoding unit 2303 is further configured to: when the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, Generating an ILA sequence frame based on data in 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame correspondingly carrying data in 8 bytes of the transmission frame, and the ILA sequence The data of the 0th byte of the 8 bytes of the frame is D28.0.
通过运行上述单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above unit, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding technique. The words greatly improve the coding efficiency.
在一种可选的方案中,所述解码单元2303还用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。In an optional solution, the decoding unit 2303 is further configured to: carry a preset second identifier in a frame header of the transmission frame, and carry data of 8 bytes of the transmission frame are all D28.5 The service data frame is generated based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。In still another optional solution, the decoding unit 2303 is configured to carry the first identifier in a frame header of the transmission frame and carry the nth byte of the 8 bytes of the transmission frame. When the data is D28.3, a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame. Data, and the data of the last byte of the 8 bytes of the service data frame is D28.3.
在又一种可选的方案中,所述解码单元2303用于所述传输帧的帧头携带所述第一标 识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。In still another optional solution, the decoding unit 2303 is configured to carry the first label in a frame header of the transmission frame. And when the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the service data frame The 8 bytes of the data correspond to the data in the 8 bytes of the transmission frame, and the data of the last byte of the 8 bytes of the service data frame is D28.7.
在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端230基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In still another optional solution, the decoding unit 2303 is configured to carry a preset second identifier in a frame header of the transmission frame and carry an nth byte in 8 bytes of the transmission frame. When the data is D28.3, the decoding terminal 230 generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the transmission frame. Data in 8 bytes.
在又一种可选的方案中,所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码单元2303用于基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In still another optional solution, the frame header of the transmission frame carries a preset second identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7. The decoding unit 2303 is configured to generate a service data frame based on data in 8 bytes of the transmission frame, where 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame. data.
在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In still another optional solution, the decoding unit 2303 is configured to carry a preset second identifier in a frame header of the transmission frame and carry an nth byte in 8 bytes of the transmission frame. When the data is D28.0, a service data frame is generated based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried in 8 bytes of the transmission frame. The data.
在又一种可选的方案中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;In still another alternative, when the 8 bytes of the transmission frame carry data that is not all D28.5, or the data carried by the nth byte of the 8 bytes of the transmission frame When not D28.0, D28.7, and D28.3, the frame header of the transmission frame includes a data check code and an inverse of the data check code;
所述解码单元2303用于通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding unit 2303 is configured to check data in 8 bytes of the transmission frame by using the data check code;
当校验出所述传输帧的8个字节中的数据无误时,所述解码单元2303用于基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the decoding unit 2303 is configured to generate a service data frame based on data in 8 bytes of the transmission frame, where the service data frame The eight bytes one by one correspond to the data in the eight bytes carrying the transmission frame.
在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In still another optional solution, the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the odd parity code; or the last 1 bit in the frame header of the transmission frame is the odd parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the odd parity code.
在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In still another optional solution, the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in the middle is the inverse of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 in the frame header of the transmission frame The bits are the inverse of the even parity code.
在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In still another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
需要说明的是,本发明实施例中各个单元的具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that the specific implementation of each unit in the embodiment of the present invention may also correspond to the corresponding description of the method embodiment shown in FIG. 7.
在图23所描述的解码终端230中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。 In the decoding terminal 230 described in FIG. 23, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.
上述详细阐述了本发明实施例的方法和装置,为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的系统。The method and apparatus of the embodiments of the present invention are described in detail above. In order to facilitate the implementation of the above embodiments of the embodiments of the present invention, the system of the embodiments of the present invention is provided below.
请参见图24,图24是本发明实施例提供的一种编码系统240,所述编码系统包括编码终端2401和解码终端2402,其中:Referring to FIG. 24, FIG. 24 is an encoding system 240 according to an embodiment of the present invention. The encoding system includes an encoding terminal 2401 and a decoding terminal 2402, where:
该编码终端2401可以为图20所示实施例中的编码终端200,或者图22所示的编码终端220。The encoding terminal 2401 may be the encoding terminal 200 in the embodiment shown in FIG. 20 or the encoding terminal 220 shown in FIG.
该解码终端2402可以为图21所示实施例中的解码终端210,或者图23所示的解码终端230。The decoding terminal 2402 may be the decoding terminal 210 in the embodiment shown in FIG. 21 or the decoding terminal 230 shown in FIG.
通过运行该编码系统240,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the encoding system 240, the encoding terminal encodes the target JESD 204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame by the 64B66B encoding technique to restore the target JESD 204 frame, compared to the 8B10B encoding. Technically, the coding efficiency is greatly improved.
综上所述,通过实施本发明实施例,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In summary, by implementing the embodiment of the present invention, the encoding terminal encodes the target JESD 204 frame by using the 64B66B encoding technology to obtain a transmission frame, and the decoding terminal decrypts the transmission frame by using the 64B66B encoding technology to restore the target JESD 204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可通过计算机程序来指令相关的硬件来完成,该的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可存储程序代码的介质。 A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. The flow of an embodiment of the methods as described above may be included. The foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Claims (41)

  1. 一种编码方法,其特征在于,包括:An encoding method, comprising:
    编码终端确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The encoding terminal determines a frame type of the target JESD 204 frame in the JESD 204B data to be transmitted, and the frame type in the JESD 204B data includes a code level synchronization frame, an ILA sequence frame, and a service data frame, and the target JESD 204 frame is composed of 8 bytes. ;
    所述编码终端通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding terminal encodes the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame. ;
    当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
    当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
    所述编码终端将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not perform data on the transmission frame of the D28.5 carrying the first identifier and the data carried in each byte of 8 bytes. Checking, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  2. 根据权利要求1所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。The method according to claim 1, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5, the transmission frame The frame header carries the second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the data carried by the 8 bytes for the frame header are D28 The transmission frame of .5 is checked for data.
  3. 根据权利要求1或2所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。The method according to claim 1 or 2, wherein when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, a frame header of the transmission frame carries a first identifier, The data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame except the nth byte are carried one by one. Data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not perform data on the transmission frame in which the frame header carries the first identifier and the data carried in the nth byte is D28.3 check.
  4. 根据权利要求1~3任一项所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。The method according to any one of claims 1 to 3, wherein when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, the frame header of the transmission frame carries the first An identifier, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and 7 bytes of the 8 bytes of the transmission frame except the nth byte. Corresponding to the data in the first 7 bytes of the 8 bytes carrying the F frame; the decoding terminal does not carry the first identifier and the data carried in the nth byte is the transmission of D28.3 The frame is used for data verification.
  5. 根据权利要求3或4所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8 个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。The method according to claim 3 or 4, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the target When the JESD 204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame are in a one-to-one correspondence with the service data frame. The data in the byte, when the data carried in the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the second identifier; The decoding terminal does not perform data verification on a transmission frame in which the frame header carries the second identifier and the data carried in the nth byte is D28.3, D28.7, or D28.0.
  6. 根据权利要求3~5任一项所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。The method according to any one of claims 3 to 5, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and When the target JESD 204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, when the nth of the transmission frame When the data carried by the byte is not D28.3, D28.7, and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, and the decoding terminal is used to pass The data check code carries data for the nth byte not for the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the data of 8 bytes is not all D28.5. The transmission frame is used for data verification.
  7. 根据权利要求6所述的方法,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。The method according to claim 6, wherein the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the transmission frame The last bit in the frame header is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is the odd parity code, in the frame header of the transmission frame The first 1 bit is the inverse of the odd parity code.
  8. 根据权利要求6所述的方法,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。The method according to claim 6, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the transmission frame The last bit in the frame header is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is the even parity code, in the frame header of the transmission frame The first 1 bit is the inverse of the even parity code.
  9. 根据权利要求2~8任一项所述的方法,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。The method according to any one of claims 2 to 8, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10 .
  10. 一种编码方法,其特征在于,包括:An encoding method, comprising:
    解码终端接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The decoding terminal receives a transmission frame sent by the encoding terminal, and the transmission frame is obtained by encoding, by the encoding terminal, a JESD204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are The frame header of the transmission frame;
    所述编码终端解析所述传输帧以获取所述8个字节和所述2比特中的数据;The encoding terminal parses the transmission frame to acquire data of the 8 bytes and the 2 bits;
    当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,所述解码终端基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal is based on the transmission frame The data in the 8 bytes generates a code level synchronization frame, and the data carried in each byte of the 8 bytes of the code level synchronization frame is D28.5;
    当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。 When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the decoding terminal is based on the transmission The data in the 8 bytes of the frame generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one correspondence with the data in the 8 bytes of the transmission frame, and 8 of the ILA sequence frames The data of the 0th byte in the byte is D28.0.
  11. 根据权利要求10所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。The method according to claim 10, wherein when the frame header of the transmission frame carries a preset second identifier and the data carried by the 8 bytes of the transmission frame is D28.5; The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.
  12. 根据权利要求10或11所述的方法,其特征在于,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。The method according to claim 10 or 11, wherein when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is In D28.3, the decoding terminal generates a service data frame based on data in 8 bytes of the transmission frame, and 8 bytes of the service data frame are correspondingly carried to carry 8 bytes of the transmission frame. The data in the data, and the data of the last byte of the 8 bytes of the service data frame is D28.3.
  13. 根据权利要求10~12任一项所述的方法,其特征在于,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。The method according to any one of claims 10 to 12, wherein a frame header of the transmission frame carries the first identifier and an nth byte of 8 bytes of the transmission frame carries When the data is D28.7, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 of the transmission frame. The data in the bytes, and the data of the last byte of the 8 bytes of the service data frame is D28.7.
  14. 根据权利要求12或13所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。The method according to claim 12 or 13, wherein when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame In the case of D28.3, the decoding terminal generates a service data frame based on data in 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 words carrying the transmission frame. The data in the section.
  15. 根据权利要求12~14任一项所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。The method according to any one of claims 12 to 14, wherein a frame header of the transmission frame carries a preset second identifier and an nth byte of 8 bytes of the transmission frame When the carried data is D28.7, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond one by one to carry the transmission frame. Data in 8 bytes.
  16. 根据权利要求12~15任一项所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。The method according to any one of claims 12 to 15, wherein a frame header of the transmission frame carries a preset second identifier and an nth byte of 8 bytes of the transmission frame When the carried data is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the transmission frame. Data in 8 bytes.
  17. 根据权利要求10~16任一项所述的方法,其特征在于,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;The method according to any one of claims 10 to 16, wherein when the data carried by the 8 bytes of the transmission frame is not all D28.5, or in the 8 bytes of the transmission frame When the data carried by the nth byte is not D28.0, D28.7, and D28.3, the frame header of the transmission frame includes a data check code and an inverse of the data check code;
    所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks data in 8 bytes of the transmission frame by using the data check code;
    当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的 数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying the 8 bytes of the transmission frame data.
  18. 根据权利要求17所述的方法,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。The method according to claim 17, wherein the data check code is an odd parity code, and a first one of the frame headers of the transmission frame is the odd parity code, and the transmission frame is The last bit in the frame header is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is the odd parity code, in the frame header of the transmission frame The first 1 bit is the inverse of the odd parity code.
  19. 根据权利要求17所述的方法,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。The method according to claim 17, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even parity code, and the transmission frame is The last bit in the frame header is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is the even parity code, in the frame header of the transmission frame The first 1 bit is the inverse of the even parity code.
  20. 根据权利要求11~19任一项所述的方法,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。The method according to any one of claims 11 to 19, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10 .
  21. 一种编码终端,其特征在于,所述编码终端包括处理器、存储器和收发器:An encoding terminal, characterized in that the encoding terminal comprises a processor, a memory and a transceiver:
    所述存储器用于存储数据和程序;The memory is for storing data and programs;
    所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls a program in the memory to perform the following operations:
    确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determining a frame type of a target JESD 204 frame in the JESD 204B data to be transmitted, the frame type in the JESD 204B data comprising a code level synchronization frame, an ILA sequence frame, and a service data frame, wherein the target JESD 204 frame is composed of 8 bytes;
    通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Encoding the target JESD 204 frame by a 64B66B encoding technique to obtain a 66-bit transmission frame, the transmission frame being composed of 8 bytes and 2 bits and the 2 bits being a frame header of the transmission frame;
    当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD 204 frame belongs to the code level synchronization frame, the frame header of the transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;
    当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD 204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28. 0. The 7 bytes of the 8 bytes of the transmission frame except the nth byte are one-to-one corresponding to the data in the last 7 bytes of the 8 bytes of the ILA sequence frame;
    通过所述收发器将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。Transmitting, by the transceiver, the transmission frame to a decoding terminal, where the decoding terminal does not carry the first identifier and the data carried by each byte of 8 bytes of the frame header is a transmission frame of D28.5. Data verification, and the decoding terminal does not perform data verification on the transmission frame of the D28.0, the data carried by the frame header carrying the first identifier and the nth byte of the 8 bytes.
  22. 根据权利要求21所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。 The encoding terminal according to claim 21, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is D28.5, the transmission The frame header of the frame carries the second identifier, and the data carried by the 8 bytes of the transmission frame is D28.5; the decoding terminal does not carry the second identifier and the data carried by the 8 bytes for the frame header. The transmission frame of D28.5 is used for data verification.
  23. 根据权利要求21或22所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。The encoding terminal according to claim 21 or 22, wherein when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an A frame, the frame header of the transmission frame carries the first identifier. The data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and 7 bytes of the 8 bytes of the transmission frame are carried in one-to-one correspondence except the nth byte. Data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not perform the transmission frame of the D28.3 for the data carried by the frame header carrying the first identifier and the nth byte Data validation.
  24. 根据权利要求21~23任一项所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。The encoding terminal according to any one of claims 21 to 23, wherein when the target JESD 204 frame belongs to the service data frame and the target JESD 204 frame is an F frame, the frame header of the transmission frame carries The first identifier, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte Corresponding to carrying data in the first 7 bytes of the 8 bytes of the F frame; the decoding terminal does not carry the first identifier on the frame header and the data carried in the nth byte is D28.3 The transmission frame is used for data verification.
  25. 根据权利要求23或24所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。The encoding terminal according to claim 23 or 24, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 and the When the target JESD 204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame are one-to-one corresponding to the data in the 8 bytes of the service data frame, when the nth byte of the transmission frame When the carried data is D28.3, D28.7, or D28.0, the frame header of the transmission frame carries the second identifier; the decoding terminal does not carry the second identifier and the nth byte to the frame header. The data carried is data verification for the transmission frame of D28.3, D28.7 or D28.0.
  26. 根据权利要求23~25任一项所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。The encoding terminal according to any one of claims 23 to 25, wherein when the target JESD 204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD 204 frame is not all D28.5 And when the target JESD 204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame correspond one-to-one with the data in the 8 bytes of the service data frame, when the nth of the transmission frame When the data carried by the bytes is not D28.3, D28.7, and D28.0, the frame header of the transmission frame carries a data check code and an inverse of the data check code, where the decoding terminal is used. The data carried by the data check code for the nth byte is not the transmission frame of D28.3, the transmission frame of D28.7, the transmission frame of D28.0, and the data of 8 bytes is not all D28. 5 transmission frames for data verification.
  27. 根据权利要求26所述的编码终端,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。The encoding terminal according to claim 26, wherein the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the transmission The last bit in the frame header of the frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is the odd parity code, the frame header of the transmission frame The first bit in the middle is the inverse of the odd parity code.
  28. 根据权利要求26所述的编码终端,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。 The encoding terminal according to claim 26, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even parity code, and the transmission The last bit in the frame header of the frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is the even parity code, the frame header of the transmission frame The first bit in the middle is the inverse of the even parity code.
  29. 根据权利要求22~28任一项所述的编码终端,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。The encoding terminal according to any one of claims 22 to 28, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  30. 一种解码终端,其特征在于,所述编码终端包括处理器、存储器和收发器:A decoding terminal, characterized in that the encoding terminal comprises a processor, a memory and a transceiver:
    所述存储器用于存储数据和程序;The memory is for storing data and programs;
    所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls a program in the memory to perform the following operations:
    通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Receiving, by the transceiver, a transmission frame sent by an encoding terminal, where the transmission frame is obtained by encoding, by the encoding terminal, a JESD 204 frame by using a 64B66B encoding technology, where the transmission frame is composed of 8 bytes and 2 bits, and the transmission frame a bit is a frame header of the transmission frame;
    解析所述传输帧以获取所述8个字节和所述2比特中的数据;Parsing the transmission frame to obtain data of the 8 bytes and the 2 bits;
    当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and data in each byte of 8 bytes of the transmission frame is D28.5, based on 8 bytes of the transmission frame The data in the data generates a code level synchronization frame, and each byte of the 8 bytes of the code level synchronization frame carries data of D28.5;
    当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte preset in the 8 bytes of the transmission frame is D28.0, the transmission frame is based on the transmission frame The data in 8 bytes generates an ILA sequence frame, the 8 bytes of the ILA sequence frame one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the 8 bytes of the ILA sequence frame The data of the 0th byte in the data is D28.0.
  31. 根据权利要求30所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to claim 30, wherein the processor is further configured to:
    当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried by the 8 bytes of the transmission frame is D28.5, the service is generated based on the data in the 8 bytes of the transmission frame. The data frame, each byte of the 8 bytes of the service data frame carries data of D28.5.
  32. 根据权利要求30或31所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to claim 30 or 31, wherein the processor is further configured to:
    当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.3.
  33. 根据权利要求30~32任一项所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to any one of claims 30 to 32, wherein the processor is further configured to:
    当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, based on 8 bytes of the transmission frame The data in the data generation service data frame, the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame, and the last word of the 8 bytes of the service data frame The data for the section is D28.7.
  34. 根据权利要求32或33所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to claim 32 or 33, wherein the processor is further configured to:
    当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数 据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, 8 words based on the transmission frame The data in the section generates a service data frame, and the number of services The data in the 8 bytes of the transmission frame is carried according to the 8 bytes of the frame.
  35. 根据权利要求32~34任一项所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to any one of claims 32 to 34, wherein the processor is further configured to:
    当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  36. 根据权利要求32~35任一项所述的解码终端,其特征在于,所述处理器还用于:The decoding terminal according to any one of claims 32 to 35, wherein the processor is further configured to:
    当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte of the 8 bytes of the transmission frame is D28.0, 8 words based on the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame are one-to-one corresponding to the data in the 8 bytes of the transmission frame.
  37. 根据权利要求30~36任一项所述的解码终端,其特征在于,A decoding terminal according to any one of claims 30 to 36, characterized in that
    当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器还用于:When the data carried by the 8 bytes of the transmission frame is not all D28.5, or the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7, and In D28.3, the frame header of the transmission frame includes a data check code and an inverse of the data check code; the processor is further configured to:
    通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying data in 8 bytes of the transmission frame by the data check code;
    当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence. Carrying data in 8 bytes of the transmission frame.
  38. 根据权利要求37所述的解码终端,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。The decoding terminal according to claim 37, wherein the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd parity code, and the transmission The last bit in the frame header of the frame is the inverse of the odd parity code; or the last bit in the frame header of the transmission frame is the odd parity code, the frame header of the transmission frame The first bit in the middle is the inverse of the odd parity code.
  39. 根据权利要求37所述的解码终端,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。The decoding terminal according to claim 37, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even parity code, and the transmission The last bit in the frame header of the frame is the inverse of the even parity code; or the last bit in the frame header of the transmission frame is the even parity code, the frame header of the transmission frame The first bit in the middle is the inverse of the even parity code.
  40. 根据权利要求31~39任一项所述的解码终端,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。The decoding terminal according to any one of claims 31 to 39, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.
  41. 一种编码系统,其特征在于,所述编码系统包括编码终端和解码终端:An encoding system, characterized in that the encoding system comprises an encoding terminal and a decoding terminal:
    所述编码终端为权利要求21~29任一项所述的编码终端;The encoding terminal is the encoding terminal according to any one of claims 21 to 29;
    所述解码终端为权利要求30~40任一项所述的解码终端。 The decoding terminal is the decoding terminal according to any one of claims 30 to 40.
PCT/CN2017/071768 2016-07-19 2017-01-19 Encoding method and associated apparatus and system WO2018014529A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610575049.9 2016-07-19
CN201610575049.9A CN106160912A (en) 2016-07-19 2016-07-19 A kind of coded method, relevant device and system

Publications (1)

Publication Number Publication Date
WO2018014529A1 true WO2018014529A1 (en) 2018-01-25

Family

ID=58059948

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/071768 WO2018014529A1 (en) 2016-07-19 2017-01-19 Encoding method and associated apparatus and system

Country Status (2)

Country Link
CN (1) CN106160912A (en)
WO (1) WO2018014529A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106160912A (en) * 2016-07-19 2016-11-23 华为技术有限公司 A kind of coded method, relevant device and system
CN106789765A (en) * 2016-11-18 2017-05-31 广东工业大学 A kind of communication link management method and system
CN106919532A (en) * 2017-03-10 2017-07-04 重庆湃芯微电子有限公司 A kind of elastic buffer based on JESD204B
CN106933773B (en) * 2017-03-10 2019-08-23 重庆湃芯微电子有限公司 A kind of method of frame assembling in JESD204B agreement
CN106933774B (en) * 2017-03-10 2019-08-27 重庆湃芯微电子有限公司 A kind of method of frame decoding in JESD204B agreement
CN107395539A (en) * 2017-08-31 2017-11-24 华南理工大学 A kind of 8B10B encoder design methods the agreement suitable for JESD204B
CN109409901B (en) * 2018-08-20 2021-08-10 同济大学 Punching type information coding and decoding method for commodity outer package
CN109815099B (en) * 2018-12-28 2022-08-05 北京时代民芯科技有限公司 FPGA (field programmable Gate array) verification method of JESD204B controller
CN111124982B (en) * 2019-12-17 2021-07-06 中国电子科技集团公司第五十八研究所 Asynchronous clock data synchronous circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050028066A1 (en) * 2003-07-30 2005-02-03 Alcatel Error correction on M-bit encoded links
CN101227450A (en) * 2007-01-16 2008-07-23 华为技术有限公司 Equipment, system and method for transmitting spending information
CN101610134A (en) * 2009-07-10 2009-12-23 中兴通讯股份有限公司 The method of 64B/66B coding and decoding device and realization 64B/66B encoding and decoding
US20110320905A1 (en) * 2010-06-29 2011-12-29 Futurewei Technologies, Inc. Data Sending/Receiving Method with Forward Error Correction and Related Component and System for Gigabit Ethernet
CN106160912A (en) * 2016-07-19 2016-11-23 华为技术有限公司 A kind of coded method, relevant device and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071958A1 (en) * 2004-01-27 2005-08-04 Samsung Electronics Co., Ltd. Digital broadcast transmitting/receiving system having an improved receiving performance and signal processing method thereof
WO2007035260A1 (en) * 2005-09-15 2007-03-29 Analog Devices, Inc. High speed transmission system
CN100403825C (en) * 2006-01-26 2008-07-16 华为技术有限公司 Method for transmitting frame timing and frame number of general radio interface
CN103618551A (en) * 2013-10-18 2014-03-05 中国电子科技集团公司第十研究所 Method and device of realizing serial AD sampling based on JESD204 transport protocol
CN104063342B (en) * 2014-05-30 2017-01-11 中国电子科技集团公司第十研究所 IP core based on JESD 204 protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050028066A1 (en) * 2003-07-30 2005-02-03 Alcatel Error correction on M-bit encoded links
CN101227450A (en) * 2007-01-16 2008-07-23 华为技术有限公司 Equipment, system and method for transmitting spending information
CN101610134A (en) * 2009-07-10 2009-12-23 中兴通讯股份有限公司 The method of 64B/66B coding and decoding device and realization 64B/66B encoding and decoding
US20110320905A1 (en) * 2010-06-29 2011-12-29 Futurewei Technologies, Inc. Data Sending/Receiving Method with Forward Error Correction and Related Component and System for Gigabit Ethernet
CN106160912A (en) * 2016-07-19 2016-11-23 华为技术有限公司 A kind of coded method, relevant device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HE, YUANBO: "Research on Digital Signal Processing Platform of Radio Remote Unit", MASTER'S DISSERTATION OF UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA, 31 December 2015 (2015-12-31) *

Also Published As

Publication number Publication date
CN106160912A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
WO2018014529A1 (en) Encoding method and associated apparatus and system
US7707475B2 (en) 64b/66b coding apparatus and method
US10050741B2 (en) Method and apparatus for transmitting and receiving control information in a broadcasting/communication system
US9467165B2 (en) Physical layer encoding and decoding method and apparatuses thereof
KR101028918B1 (en) Method and apparatus for configuring protocol header in wireless communication system
JP2010517392A (en) Method and apparatus for encoding and decoding data
US11265108B2 (en) Method and device for rate matching and polar encoding
US11075652B2 (en) Polar code transmission method and apparatus
EP3484126B1 (en) Method and apparatus for carrying identifier information
US20100061400A1 (en) Frame generation apparatus and method of protecting protocol header information over wideband high frequency wireless system
US10218821B2 (en) Apparatus and method of transmitting and receiving packet in a broadcasting and communication system
US11831434B2 (en) Data sending and receiving method and device
US20070168835A1 (en) Serial communications system and method
EP2966823A1 (en) Encoding and decoding methods and apparatuses of ethernet physical layer
CN107733562B (en) Method and device for encoding and decoding polarization code
CN108768906B (en) Scrambling method, device and readable storage medium
CN108965173B (en) Descrambling method, descrambling device and readable storage medium
US9749237B2 (en) Method and apparatus for aggregating and encoding received symbols including generation of a pointer for a control code
KR101874537B1 (en) Method and Apparatus for Parallel Decoding of Polar Codes
US11005498B1 (en) Methods and network device for uncoded bit protection in 10Gbase-T ethernet
JP2019083507A (en) Reception device, transmission device, reception method and transmission method
US20230224194A1 (en) Data encoding method, data decoding method, and communication apparatus
WO2011137820A1 (en) Line encoding and decoding method, apparatus and system
CN113726479A (en) FEC encoding module, FEC decoding module, FEC encoding method, and FEC decoding method
KR101181624B1 (en) Frame generation apparatus and method for protecting protocol header information over wideband high frequency wireless system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17830178

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17830178

Country of ref document: EP

Kind code of ref document: A1