Timing level lightweight FC downlink processing engine
By designing a time-level lightweight FC downlink processing engine, the data transmission reliability problem of Fibre Channel technology under simplex transmission and non-standard line rates is solved. CRC-12 checksum 64B/66B encoding and other technologies are used to achieve The correct reception and transmission of data is achieved.
Patent Information
- Application Number
- CN202410989585.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-11-12
AI Technical Summary
Existing fiber channel technology is difficult to support simplex transmission methods and non-standard line rates, especially in special application scenarios, and the reliability and correctness of data transmission are difficult to ensure.
A timed-level lightweight FC downlink processing engine is designed, including data packaging, transmission control, word effective judgment and primitive detection, reception control, data analysis and data encoding and decoding modules, using CRC-12 verification and cyclic redundancy Technologies such as the UV verification code and 64B/66B encoding support non-standard line rate and simplex transmission methods to ensure the correct reception and transmission of data.
It realizes support for non-standard line rate and simplex transmission methods, and ensures the reliability and correctness of data through multiple error detection mechanisms, which is suitable for special application scenarios.
Smart Images

Figure CN118944810A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of network technology and FPGA, and in particular relates to a timing-level lightweight FC downlink processing engine. Background Art
[0002] Fibre Channel (FC) is a high-speed, high-performance transmission protocol defined for connections between computers and between computers and I / O devices. It is an open network technology with high bandwidth, strong real-time performance, and high reliability. Similar to the general OSI model, Fibre Channel also adopts a layered structure, which can be divided into FC-0, FC-1, FC-2, FC-3, and FC-4 layers. At the same time, Fibre Channel also provides mapping of multiple upper-layer protocols, which are classified into the ULPs layer.
[0003] Currently, Fibre Channel technology has been widely used in the commercial field and provides support for the next generation of unified network construction for avionics systems. The current mainstream Fibre Channel rates are 2G, 4G, 8G and 16G. The sixth-generation Fibre Channel protocol proposes Fibre Channel protocol specifications based on 256B / 257B encoding for 32G and 128G rate standards, and introduces forward error correction coding, link training and other mechanisms to ensure data reliability under high-speed data transmission. However, for applications in some special scenarios, such as data / command transmission, the data transmission method is required to be simplex transmission, and the Fibre Channel rate is a non-standard line rate. For such special application scenarios, it is necessary to customize the corresponding processing engine. Summary of the invention
[0004] The present invention provides a timing-level lightweight FC downlink processing engine to solve the above-mentioned technical problems, and specifically adopts the following technical solutions:
[0005] A timing-level lightweight FC downlink processing engine, comprising: a data encapsulation module, a transmission control module, a word validity judgment and primitive detection module, a reception control module, a data analysis module and a data encoding and decoding module;
[0006] The data encapsulation module is used to receive the AXIS format control or pulse data transmitted from the upper layer, encapsulate it into an FC frame according to the FC protocol, perform CRC-12 check on the FC_ASM header information therein, and fill the check result into the lower 12 bits of the Reserved field in the FC_ASM header, and then encapsulate the axis format data according to the FC protocol standard;
[0007] The sending control module is used to send FC primitives or FC frames;
[0008] The word validity judgment and primitive detection module is used for judging the validity of the transmission word and detecting various frame delimiters and primitive signals, and outputting the primitive detection result to the receiving control module;
[0009] The receiving control module is used to infer the FC frame from the decoded data according to the frame delimiter, and perform error detection on the received FC frame, and then output it to the subsequent module for processing;
[0010] The data parsing module is used to perform CRC-12 check on the FC_ASM header information in the output data of the receiving control module. If a check error occurs, the frame is discarded; otherwise, the relevant data content is parsed and repackaged into the axis data format;
[0011] The data encoding and decoding module adopts different encoding methods to encode and decode the received and sent data according to the encoding requirements at different line rates.
[0012] Further, the data encapsulation module comprises: a data extraction module, a header CRC generation module and a data encapsulation submodule;
[0013] The data extraction module is used to parse the axis interface data to extract data and write it into the cache;
[0014] The header CRC generation module is used to generate header information of FC_ASM, perform CRC-12 checksum calculation on the FC_ASM header information, and fill the checksum into the Reserved field of the ASM header;
[0015] The data encapsulation submodule encapsulates the data into FC frames according to the FC protocol standard.
[0016] Further, the sending control module sends the primitive signal according to the instruction of the sending control state machine and the primitive signal valid flag, and transmits the FC frame or the idle filling word in other cases;
[0017] The sending control module has the following transmission priority: primitive signal>FC frame>idle filling word;
[0018] The transmission control module also has a cyclic redundancy check code generation function. When the FC frame is transmitted, the cyclic redundancy check code from the frame start delimiter to the last 4 bytes of data payload is calculated, and the cyclic redundancy check code is inserted before the frame end delimiter;
[0019] The sending control module also matches a corresponding transmission word type code according to the type of the current transmission word for subsequent 64B / 66B encoding.
[0020] Furthermore, the sending control module also has a frame scrambling function. When the subsequent encoding is 8B / 10B encoding, the sending control module scrambles the data payload portion from the frame start delimiter to the frame end delimiter.
[0021] Furthermore, the word validity judgment and primitive detection module judges the validity of the transmission word and the primitive signal according to the transmission word validity judgment criteria and the primitive signal detection criteria, and then identifies the code words of the four bytes of the transmission word respectively to infer whether the current transmission word is a data transmission word, a frame delimiter or a primitive signal, and outputs the corresponding indication signal to the receiving control module for use.
[0022] Furthermore, the receiving control module determines the FC frame according to the frame delimiter, performs frame end delimiter loss detection, overlong / undershort frame detection, cyclic redundancy check code error detection in sequence, and identifies different types of errors through flag signals.
[0023] Furthermore, the frame end delimiter loss detection analyzes the abnormal situation of "the frame data is followed by the FC control word / filling word", and if such abnormal situation occurs, the frame abnormal end delimiter is immediately inserted, and the first bit of the flag signal is used to identify such abnormal situation;
[0024] The overlong / undershort frame detection analyzes abnormal situations such as "frame length is greater than 2148 bytes or less than 36 bytes". For an overlong frame, the current frame is truncated immediately after the overlong frame, and then a frame abnormal end delimiter is inserted, and the overlong frame situation is identified by the third bit of the flag signal; for an overshort frame, the overshort frame situation is identified by the second bit of the flag signal;
[0025] The cyclic redundancy check error detection and analysis of abnormal situations such as "the cyclic redundancy check check result matches the check code field in the transmission word" is identified using the 0th bit of the flag signal.
[0026] Furthermore, the receiving control module has a frame descrambling function. When the encoding mode is 8B / 10B encoding, the receiving control module descrambles the data payload part between the frame start delimiter and the frame end delimiter of the received FC frame.
[0027] Furthermore, the data parsing module is used to parse the received FC protocol data and encapsulate it into axi format data, and perform CRC-12 check on the FC_ASM header information, and discard the FC frame that fails the check;
[0028] The data analysis module calculates the current data length, truncates the current data when the data length is greater than or equal to 2048B, and writes the data information into the data information FIFO.
[0029] Further, the data encoding and decoding module includes: a transmission word segmentation module, a transmission word reorganization module, a 64b / 66b encoding module, a 64b / 66b decoding module, a scramble module and a descramble module;
[0030] The transmission word segmentation module is used to adjust the bit sequence of data sent to the high-speed serial transceiver when the encoding scheme uses 8b / 10b encoding, transmit K code information, and calculate the frame RD value from the frame start delimiter to the end of CRC;
[0031] The transmission word reorganization module is used to adjust the bit sequence of the data received from the high-speed serial transceiver. If the K code of the data after the bit sequence adjustment does not appear in the first byte, the data is shifted according to the Comma position indication signal so that the K code is fixed in the first byte, and the FC transmission word is formed and input into the receiving clock isolation FIFO;
[0032] The 64b / 66b encoding module is used to combine two FC transmission words, perform 64b / 66b encoding according to the transmission word type code, scramble the encoded data, and then output it to the high-speed serial transceiver;
[0033] The 64b / 66b decoding module is used to synchronize the data received by the high-speed serial transceiver according to the synchronization header, and then descramble the data, and complete 64b / 66b decoding of the descrambled data according to the synchronization header, type field, control code and other information;
[0034] The scramble module scrambles the data after 64B / 66B encoding to increase the randomness of the data;
[0035] The descramble module descrambles the parallel data received by the GTH to restore the original data.
[0036] The invention is beneficial in that it provides a timing-level lightweight FC downlink processing engine, which is a simplex transmission mode, supports non-standard line rates, supports two encoding modes, and has multiple error detection mechanisms to ensure correct reception and transmission of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0038] Figure 1A schematic diagram of a timing-level lightweight FC downlink processing engine of the present invention;
[0039] Figure 2 A schematic diagram of the data encapsulation module structure of a timing-level lightweight FC downlink processing engine of the present invention;
[0040] Figure 3 It is a schematic diagram of the structure of a sending control module of a timing-level lightweight FC downlink processing engine of the present invention;
[0041] Figure 4 A transmission frame data reading state machine transition diagram of a timing-level lightweight FC downlink processing engine of the present invention;
[0042] Figure 5 It is a schematic diagram of a frame scrambling module of a timing-level lightweight FC downlink processing engine of the present invention;
[0043] Figure 6 It is a schematic diagram of word validity judgment and primitive detection functions of a timing-level lightweight FC downlink processing engine of the present invention;
[0044] Figure 7 It is a schematic diagram of the structure of a receiving control module of a timing-level lightweight FC downlink processing engine of the present invention;
[0045] Figure 8 A schematic diagram of the structure of a data parsing module of a timing-level lightweight FC downlink processing engine of the present invention;
[0046] Fig. 9 The present invention is a schematic diagram of the coding and decoding module structure of a timing-level lightweight FC downlink processing engine. DETAILED DESCRIPTION
[0047] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0048] The "FC transmission word" described in this application refers to the basic unit of data transmission of the timing-level lightweight FC downlink engine, and has a length of 4 bytes.
[0049] The "FC-ASM frame" described in this application is a FC frame used in an avionics environment and includes an ASM extension header;
[0050] The "FC primitive" described in this application refers to a series of FC transmission words with special meanings specified in the FC protocol, which consists of 1 K code and 3 D codes.
[0051] The "FC frame" described in this application refers to a set consisting of a frame start delimiter (SOF, 4 bytes), an FC header (FCHeader, 24 bytes), a data payload (Payload, 0-2048 bytes), a cyclic redundancy check code (CRC, 4 bytes) and a frame end delimiter (EOF, 4 bytes), which is the basic unit of FC protocol data link layer transmission.
[0052] The "CRC-12" described in this application is a 12-bit cyclic redundancy check code with error detection and correction capabilities, which is filled in the lower 12 bits of the Reserved field in the ASM header.
[0053] The "idle filler word" described in this application refers to the IDLE primitive.
[0054] Figure 1The figure shows the overall structure of a timing-level lightweight FC downlink processing engine of the present application. The timing-level lightweight FC downlink processing engine, based on the FC protocol standard, simplifies some functions of the FC-1 and FC-2 layers for the requirements of simplex flow control, non-standard line rate, and timing control integration. Specifically, the timing-level lightweight FC downlink processing engine includes: a data encapsulation module, a transmission control module, a word validity judgment and primitive detection module, a receiving control module, a data parsing module, and a data encoding and decoding module (including a data encoding module and a data decoding module). Among them, the data encapsulation module receives the AXIS format control or pulse data transmitted from the upper layer, encapsulates it into an FC frame according to the FC protocol, and performs a CRC-12 check on the ASM_HEADER field. The check result is filled in the lower 12 bits of the RESERVED field in the ASM_HEADER, and then sent to the transmission control module. The transmission control module sends a primitive signal or FC frame according to the instruction of the transmission control state machine. If the subsequent encoding is 8B / 10B encoding, the data is scrambled before sending the data; if the subsequent encoding is 64B / 66B encoding, no scrambling is required. Then the data is encoded and output to the high-speed serial transceiver to complete the data transmission. The other node receiving end decodes the parallel data received by the high-speed serial transceiver to obtain the FC transmission word. The word validity judgment and primitive detection module is mainly responsible for the validity judgment of the transmission word and the detection of various frame delimiters and primitive signals, and outputs the primitive detection results to the receiving control module. Specifically, the word validity judgment and primitive detection module infers the FC frame and primitive signal according to the frame delimiter, and then enters the receiving control module for error detection. If the encoding method is 8B / 10B encoding, it is now necessary to descramble and then input the data into the receiving control module; if the encoding method is 64B / 66B encoding, the data can be directly input into the receiving control module. After that, the content of the FC frame is extracted through the data parsing module and encapsulated as data in AXIS format. At the same time, the CRC-12 check of ASM_HEADER is completed. If the check fails, the current frame is directly discarded. Specifically, the data parsing module is responsible for performing a CRC-12 check on the FC_ASM header information in the output data of the receiving control module. If a check error occurs, the frame is discarded, otherwise the relevant data content is parsed and repackaged into the axis data format. The data encoding and decoding module uses different encoding methods to encode and decode the received and sent data according to the encoding requirements at different line rates.
[0055] like Figure 2As shown, as a preferred implementation scheme, the data encapsulation module includes: a data extraction module, a header CRC generation module and a data encapsulation submodule. Among them, the data extraction module extracts data information from the AXIS format data transmitted from the upper layer application, and caches the control information and data of the current data. The header CRC generation module generates the header information of FC_ASM, and calculates CRC-12 for FC_ASM_HEADER and fills it into the RESERVED field. The data encapsulation submodule reads data information from the data cache and integrates the header information of the FC frame to form an FC frame and sends it to the sending control module.
[0056] The data extraction module extracts the AXIS format data. The data extraction state machine extracts the data according to AXIS's tvalid, tready, and tlast, calculates the length of the current frame, determines whether the current frame is the first frame and the last frame of the sequence, and determines the current sequence number through the tuser signal. All data information is integrated together and the data is cached separately.
[0057] The data encapsulation submodule encapsulates the data according to the FC protocol. The data reading state machine determines whether the current data information FIFO is empty. If it is not empty, the data information is read to obtain the length of the current frame, the first frame flag of the sequence, the last frame of the sequence, and the sequence number. This information is filled in the corresponding fields of the FC frame header, and the data and header information are combined and sent to the sending control module for processing, and frame delimiters are added at the beginning and end of the frame.
[0058] like Figure 3 As shown, as a preferred implementation scheme, the transmission control module mainly implements the transmission of primitive signals and FC frames, generates CRC-32, and scrambles the transmission frame under 8B / 10B encoding. The transmission frame data reading state machine and the transmission control state machine in the transmission control module work together. The transmission frame data reading module reads the FC frame from the data encapsulation module according to the frame flag, including: valid frame, frame start delimiter, and frame end delimiter when the transmission clock isolation FIFO is not full. The transmission control state machine is responsible for the control of the transmission of the transmission word, and sends an idle fill word transmission indication in the idle state, and sends a frame transmission indication or a CRC filling indication in the rest of the cases. The CRC generator calculates the CRC-32 value from the frame start delimiter to the frame end delimiter, and fills the 4 bytes before the frame end delimiter. If the 8B / 10B encoding scheme is adopted, it is necessary to scramble the data between the frame start delimiter and the frame end delimiter before the data is sent to increase the randomness of the data and ensure the DC balance of the data transmission.
[0059] The sending control module sends the primitive signal according to the instruction of the sending control state machine and the valid flag of the primitive signal. In other cases, it transmits the FC frame or the idle fill word. The sending control module has the following transmission priority: primitive signal>FC frame>idle fill word. The sending control module also has the function of generating a cyclic redundancy check code. When transmitting the FC frame, the cyclic redundancy check code from the frame start delimiter to the last 4 bytes of data payload is calculated, and the cyclic redundancy check code is inserted before the frame end delimiter. The sending control module will also match the corresponding transmission word type code according to the type of the current transmission word for subsequent 64B / 66B encoding.
[0060] like Figure 4 As shown, the state machine for reading the data of the transmission frame consists of four states: S_WAIT_SOF, S_SOF_REG, S_SOF_REG2, and S_WAIT_EOF. When the transmission clock isolation FIFO buffer is sufficient, the data is loaded to determine whether the current data is valid. If it is valid, the data is continued to be read, and it is determined whether it is SOF. If so, it enters the S_SOF_REG state. In the S_SOF_REG state, it is determined whether the current valid data is SOF. If it is, it means that EOF is lost and the abnormal frame end delimiter EOFa needs to be inserted; and it is determined whether the current valid data is EOF. If it is, it returns to the S_WAIT_SOF state to read the next frame. In the S_SOF_REG2 state, wait for the transmission state machine to issue a data transmission indication. After the data transmission indication is valid, enter the S_WAIT_EOF state to start data transmission. In the S_WAIT_EOF state, wait for the arrival of a valid EOF to complete the reading of a complete FC frame. After reading a frame completely, return to the S_WAIT_SOF state to prepare for the reading of the next frame.
[0061] The sending control module also has a frame scrambling function. When the subsequent encoding is 8B / 10B encoding, the sending control module will scramble the data payload part from the frame start delimiter to the frame end delimiter. Specifically, Figure 5 As shown in Figure 1, it is a 64-bit data scrambling scheme. The frame scrambling module in the sending control module scrambles the extended frame header, frame header, payload and CRC part. The scrambling principle is to perform a shift XOR operation on the data. The formula is: G(x) = x 58 +x 39 +1. The frame scrambling module consists of a feedback shift register (LSFR), a shifter (LFSRN) and two XOR trees. It inputs 64-bit parallel original data and outputs 64-bit parallel scrambled data. The frame scrambling function is implemented in two parts. The input 64-bit transmission word is divided into high 32 bits and low 32 bits, and then the XOR operation is performed with the corresponding feedback shift register respectively. Taking the low 32-bit data as an example, the output data can be expressed by the following logical relationship:
[0062] dout
[31] =din
[31] ⊕lfsr
[58] ⊕lfsr
[39]
[0063] dout
[30] =din
[30] ⊕lfsr
[57] ⊕lfsr
[38]
[0064] …
[0065] dout[0]=din[0]⊕lfsr
[27] ⊕lfsr[8]
[0066] The word validity judgment and primitive detection module judges the validity of the transmission word and primitive signal according to the transmission word validity judgment criteria and primitive signal detection criteria, and then identifies the codewords of the four bytes of the transmission word to infer whether the current transmission word is a data transmission word, a frame delimiter or a primitive signal, and outputs the corresponding indication signal to the receiving control module for use. Figure 6 As shown, as a preferred implementation, the word validity judgment and primitive detection module first judges the validity of the transmission word, and the judgment steps are as follows: (1) judge the validity of the 8B / 10B encoding of the 4 bytes of the current transmission word through the not_in_table and run_disparity_error signals, and then judge whether the transmission word is valid; (2) judge whether the K code appears in bytes 2 to 4 through the charisk signal, if it appears, the transmission word is invalid; (3) judge whether K30.7 appears in byte 1. When the transmission word is valid, the signal single_word_valid_early is set to 1, and the value of single_word_valid_early is assigned to the single_word_valid_o output in the next clock cycle. Then detect the frame delimiter and primitive signal, and the judgment steps are as follows: (1) judge whether byte 1 of the current transmission word is the K code; (2) judge whether the current transmission word is valid; (3) judge whether the current transmission word is an ordered set of valid frame delimiters and primitive signals, and judge the frame delimiter or primitive signal type to which the transmission word belongs. When byte 1 is recognized as a K code, the transmission word is identified as a non-data transmission word, and the signal single_word_not_data_o is set to 1. When the transmission word is valid and is any one of SOFc1, SOFi2, SOFn2, SOFi3, and SOFn3, single_word_sofc123_o is set to 1. When the transmission word is valid and is any one of EOFa, EOFni, and EOFdti, single_word_invalid_eof_o is set to 1, and the transmission word is determined to be the frame end delimiter of an invalid frame.
[0067] The receiving control module determines the FC frame according to the frame delimiter, and performs frame end delimiter loss detection, overlong / undershort frame detection, cyclic redundancy check code error detection in sequence, and identifies different types of errors through flag signals.
[0068] Specifically, the frame end delimiter loss detection analyzes the abnormal situation of "the frame data is followed by the FC control word / filling word (excluding the frame end delimiter)". If such an abnormal situation occurs, the frame abnormal end delimiter is immediately inserted, and the first bit of the flag signal is used to identify such abnormal situation. The overlong / undershort frame detection analyzes abnormal situations such as "the frame length is greater than 2148 bytes or less than 36 bytes". For overlong frames, the current frame is truncated immediately after the overlength, and then the frame abnormal end delimiter is inserted, and the overlong frame situation is identified using the third bit of the flag signal; for overshort frames, the overshort frame situation is identified using the second bit of the flag signal. The cyclic redundancy check code error detection analyzes abnormal situations such as "the cyclic redundancy check code check result matches the check code field in the transmission word", and uses the 0th bit of the flag signal for identification.
[0069] Specifically, Figure 7 As shown, as a preferred implementation, the receiving control module is responsible for dividing the FC receiving transmission word into FC frames according to the word validity judgment and the frame delimiter flag output by the primitive detection module. The receiving control module has a frame descrambling function. If the encoding method is 8B / 10B encoding, the received data will be descrambled first when the data enters the receiving control module to restore the original data. At the same time, the receiving control module will detect invalid frames, overlong frames, overshort frames, CRC check errors, etc., and mark them with error indication flags. The receiving control module is coordinated by the data path, the receiving control state machine 1 and the receiving control state machine 2. The data path divides the FC receiving transmission word according to the instructions of the receiving control state machine. The receiving control state machine 1 is responsible for the judgment and processing of the frame start, and the receiving control state machine 2 is turned on by the start_assistant_fsm signal. The receiving control state machine is mainly responsible for the judgment and processing of the frame end. In the case of an overlong frame or EOF loss, the receive control module will truncate the current frame and add EOFni. The receive control status module uses the clientrxstatus_o signal to identify various error types. When clientrxstatusvalid_o is valid, different bits of clientrxstatus_o represent different types of errors: clientrxstatus_o[0] is set to indicate that a CRC check error occurs in the current receive frame; clientrxstatus_o[1] is set to indicate that the current receive frame is an invalid frame; clientrxstatus_o[2] is set to indicate that the current receive frame is an undershort frame; clientrxstatus_o[4] is set to indicate that the EOF of the current receive frame is lost or the EOF is invalid.
[0070] The data parsing module is used to parse the received FC protocol data and encapsulate it into axi format data. It also performs CRC-12 check on the FC_ASM header information and discards FC frames that fail the check. The data parsing module calculates the current data length. When the data length is greater than or equal to 2048B, it truncates the current data and writes the data information into the data information FIFO.
[0071] like Figure 8 As shown, as a preferred implementation, the data parsing module is responsible for parsing the received FC frame, extracting data and frame information, and finally converting it into an AXIS data stream. First, the header CRC check module performs CRC-12 check on the ASM header field in the received frame, and feeds the check result back to the data separation module. The data separation module determines the start of the received FC frame through the rx_begin_en signal, and then starts the header count, extracts the sequence end flag (last_sequence_mk), sequence number (sequence_mk), sequence first frame flag (first_frame_mk), sequence last frame flag (last_frame_mk) in the header of the received FC frame in turn, and combines the frame length information to form the received frame information and write it into the frame information cache FIFO; write the data into the data cache FIFO, and complete the processing of a complete frame by pulling up a high rx_finish_en.
[0072] The control state machine in the FC packet assembly module determines whether there is valid frame information in the frame information cache FIFO. If it is not empty, it reads a frame information, and fills different control codes at the beginning of the AXIS data stream according to the different sequence numbers in the frame information to identify the current sequence information. After that, the data in the data cache FIFO is continuously read and sent, and a new control code will be sent after a complete FC sequence is processed to mark the beginning of the next sequence.
[0073] like Fig. 9 As shown, as a preferred implementation, the data encoding and decoding module includes: a transmission word segmentation module, a transmission word reassembly module, a 64b / 66b encoding module, a 64b / 66b decoding module, a scramble module and a descramble module.
[0074] The transmission word segmentation module adjusts the bit order of the data sent to the high-speed serial transceiver when the encoding scheme uses 8b / 10b encoding, transmits the K code information, and calculates the frame RD value from the frame start delimiter to the end of CRC. The transmission word reassembly module adjusts the bit order of the data received from the high-speed serial transceiver. If the K code of the data after the bit order adjustment does not appear in the first byte, the data is shifted according to the Comma position indication signal so that the K code is fixed in the first byte, forming the FC transmission word input to the receiving clock isolation FIFO. The 8B / 10B encoding method requires 2 bits of additional data overhead for each byte, and the 64B / 66B encoding only requires 2 bits of additional overhead for every 64 bits of data, which greatly improves the effective bandwidth of the data.
[0075] The transmission word reassembly module is used to adjust the bit order of the data received from the high-speed serial transceiver. If the K code of the data after the bit order adjustment does not appear in the first byte, the data is shifted according to the Comma position indication signal so that the K code is fixed in the first byte, forming the FC transmission word input to the receiving clock isolation FIFO.
[0076] The 64b / 66b encoding module combines two FC transmission words, performs 64b / 66b encoding according to the transmission word type code, scrambles the encoded data, and then outputs it to the high-speed serial transceiver. Specifically, the 64B / 66B encoding module determines the type of the current transmission word according to the transmission word type code attached to each FC transmission word by the sending control module, and completes the data encoding according to the FC protocol specification. The transmission word types are mainly the following: 1. Data transmission word; 2. Idle fill word IDLE; 3. Frame start delimiter SOF; 4. Frame end delimiter EOF. If the current two 32-bit transmission words are both data, the encoded synchronization header is 2'b10, otherwise it is 2'b01, indicating that it contains control information. The 64B / 66B encoding module will form an 8-bit transmission type code based on the current two FC transmission word types to fill in the highest byte of the encoded data, as shown in Table 1 below.
[0077] Table 1 64B / 66B coded transmission type code for timing-level lightweight FC downlink
[0078] Transmission Type Code FC transfer word combination 1E {IDLE,IDLE} 33h {SOF,IDLE} B4h {IDLE,EOF} 78h {data,SOF} FWf {EOF,data}
[0079] The 64B / 66B encoding module does not encode the data transmission word; if the transmission word is IDLE, it is encoded as four 7-bit control codes; if the transmission word is SOF or EOF, it is encoded as a 4-bit sequential code and three 8-bit modifier codes, as shown in Table 2 below.
[0080] Table 2 64B / 66B coded transmission word encoding for timing-level lightweight FC downlink
[0081] FC transfer word Control code / order code Control code / modification code Control code / modification code Control code / modification code IDLE 00h 00h 00h 00h SOFi3 F B5h 56h 56h SOF3 F B5h 36h 36h EOF F 95h 75h 75h EOF F 95h 5h 5h EoF F 8Ah 5h 5h
[0082] The 64b / 66b decoding module first synchronizes the data received by the high-speed serial transceiver according to the synchronization header, and then descrambles the data. For the descrambled data, 64b / 66b decoding is completed according to the synchronization header, type field, control code and other information. Specifically, the 64b / 66b decoding module first synchronizes the data received by the high-speed serial transceiver according to the synchronization header. If the receiving end detects an invalid synchronization header, the invalid synchronization header count value is increased by 1. When the invalid synchronization header count value is greater than the threshold, rx_gearboxslip is pulled high, and the high-speed serial transceiver shifts the serial data. When the valid synchronization header count value continuously detected by the synchronization module exceeds the threshold, it is considered that the reception synchronization is completed. Then the data is descrambled, and the 64b / 66b decoding is completed for the descrambled data according to the synchronization header, type field, control code and other information.
[0083] The scramble module scrambles the data after 64B / 66B encoding. 64B / 66B encoding does not encode the data transmission word. Therefore, scrambling is needed to increase the randomness of the data to ensure that the data has enough jumps and that the receiving end can recover the clock information from the data. The principle of scrambling is similar to frame scrambling.
[0084] The descramble module descrambles the parallel data received by GTH to restore the original data, and then delivers it to the 64B / 66B decoding module to complete the decoding work.
[0085] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A timing-level lightweight FC downlink processing engine, characterized in that: It includes: data encapsulation module, transmission control module, word validity judgment and primitive detection module, reception control module, data analysis module and data encoding and decoding module; The data encapsulation module is used to receive the AXIS format control or pulse data transmitted from the upper layer, encapsulate it into an FC frame according to the FC protocol, perform CRC-12 check on the FC_ASM header information therein, and fill the check result into the lower 12 bits of the Reserved field in the FC_ASM header, and then encapsulate the axis format data according to the FC protocol standard; The sending control module is used to send FC primitives or FC frames; The word validity judgment and primitive detection module is used for judging the validity of the transmission word and detecting various frame delimiters and primitive signals, and outputting the primitive detection result to the receiving control module; The receiving control module is used to infer the FC frame from the decoded data according to the frame delimiter, and perform error detection on the received FC frame, and then output it to the subsequent module for processing; The data parsing module is used to perform CRC-12 check on the FC_ASM header information in the output data of the receiving control module. If a check error occurs, the frame is discarded; otherwise, the relevant data content is parsed and repackaged into the axis data format; The data encoding and decoding module adopts different encoding methods to encode and decode the received and sent data according to the encoding requirements at different line rates.
2. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The data encapsulation module comprises: a data extraction module, a header CRC generation module and a data encapsulation submodule; The data extraction module is used to parse the axis interface data to extract data and write it into the cache; The header CRC generation module is used to generate header information of FC_ASM, perform CRC-12 checksum calculation on the FC_ASM header information, and fill the checksum into the Reserved field of the ASM header; The data encapsulation submodule encapsulates the data into FC frames according to the FC protocol standard.
3. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The sending control module sends the primitive signal according to the instruction of the sending control state machine and the primitive signal valid flag, and transmits the FC frame or the idle filling word in other cases; The sending control module has the following transmission priority: primitive signal>FC frame>idle filling word; The transmission control module also has a cyclic redundancy check code generation function. When the FC frame is transmitted, the cyclic redundancy check code from the frame start delimiter to the last 4 bytes of data payload is calculated, and the cyclic redundancy check code is inserted before the frame end delimiter; The sending control module also matches a corresponding transmission word type code according to the type of the current transmission word for subsequent 64B / 66B encoding.
4. The timing-level lightweight FC downlink processing engine according to claim 3, characterized in that: The sending control module also has a frame scrambling function. When the subsequent encoding is 8B / 10B encoding, the sending control module scrambles the data payload portion from the frame start delimiter to the frame end delimiter.
5. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The word validity judgment and primitive detection module judges the validity of the transmission word and the primitive signal according to the transmission word validity judgment criteria and the primitive signal detection criteria, and then infers whether the current transmission word is a data transmission word, a frame delimiter or a primitive signal based on the recognition of the code words of the four bytes of the transmission word, and outputs the corresponding indication signal to the receiving control module for use.
6. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The receiving control module determines the FC frame according to the frame delimiter, performs frame end delimiter loss detection, overlong / undershort frame detection, cyclic redundancy check code error detection in sequence, and identifies different types of errors through flag signals.
7. The timing-level lightweight FC downlink processing engine according to claim 6, characterized in that: The frame end delimiter loss detection analyzes the abnormal situation of "the frame data is followed by the FC control word / filling word", and if such abnormal situation occurs, the frame abnormal end delimiter is immediately inserted, and the first bit of the flag signal is used to identify such abnormal situation; The overlong / undershort frame detection analyzes abnormal situations such as "frame length is greater than 2148 bytes or less than 36 bytes". For an overlong frame, the current frame is truncated immediately after the overlong frame, and then a frame abnormal end delimiter is inserted, and the overlong frame situation is identified by the third bit of the flag signal; for an overshort frame, the overshort frame situation is identified by the second bit of the flag signal; The cyclic redundancy check error detection and analysis of abnormal situations such as "the cyclic redundancy check check result matches the check code field in the transmission word" is identified using the 0th bit of the flag signal.
8. The timing-level lightweight FC downlink processing engine according to claim 6, characterized in that: The receiving control module has a frame descrambling function. When the encoding mode is 8B / 10B encoding, the receiving control module descrambles the data payload part between the frame start delimiter and the frame end delimiter of the received FC frame.
9. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The data parsing module is used to parse the received FC protocol data and encapsulate it into axi format data, and perform CRC-12 check on the FC_ASM header information and discard the FC frame that fails the check; The data analysis module calculates the current data length, truncates the current data when the data length is greater than or equal to 2048B, and writes the data information into the data information FIFO.
10. The timing-level lightweight FC downlink processing engine according to claim 1, characterized in that: The data encoding and decoding module comprises: a transmission word segmentation module, a transmission word reorganization module, a 64b / 66b encoding module, a 64b / 66b decoding module, a scramble module and a descramble module; The transmission word segmentation module is used to adjust the bit sequence of data sent to the high-speed serial transceiver when the encoding scheme uses 8b / 10b encoding, transmit K code information, and calculate the frame RD value from the frame start delimiter to the end of CRC; The transmission word reorganization module is used to adjust the bit sequence of the data received from the high-speed serial transceiver. If the K code of the data after the bit sequence adjustment does not appear in the first byte, the data is shifted according to the Comma position indication signal so that the K code is fixed in the first byte, and the FC transmission word is formed and input into the receiving clock isolation FIFO; The 64b / 66b encoding module is used to combine two FC transmission words, perform 64b / 66b encoding according to the transmission word type code, scramble the encoded data, and then output it to the high-speed serial transceiver; The 64b / 66b decoding module is used to synchronize the data received by the high-speed serial transceiver according to the synchronization header, and then descramble the data, and complete 64b / 66b decoding of the descrambled data according to the synchronization header, type field, control code and other information; The scramble module scrambles the data after 64B / 66B encoding to increase the randomness of the data; The descramble module descrambles the parallel data received by the GTH to restore the original data.
Citation Information
Patent Citations
Message analysis method and device, equipment and medium
CN117176836A
High performance FC protocol processing engine
CN117319518A
Timing level lightweight FC uplink processing engine
CN118054854A
Cited By
32G fiber channel forward error correction coding and decoding device
CN119561653A
