Abstract:
The present disclosure discloses a rate dematching method, device and receiving-side apparatus-. The method includes: acquiring new data to be processed, executing bit recovery/bit separation based on the new data to be processed, and writing data obtained after bit recovery/bit separation into a code block data memory; conducting sub-block deinterleaving processing on data stored in the code block data memory; and conducting hybrid automatic repeat request (HARQ) combination processing on output data after sub-block deinterleaving processing and acquired history data to be processed, and outputting HARQ combination results.

Description:
TECHNICAL FIELD 
       [0001]    The present invention relates to a field of communications, and particularly to a rate dematching method, apparatus and a receiving-side device. 
       BACKGROUND 
       [0002]    A Long Term Evolution (LTE) is an evolution of a 3rd-Generation mobile communication (3G) technology. LTE improves and enhances the air access technology of 3G. A new generation wireless networks based on orthogonal frequency division multiplexing (OFDM) and multiple-input multiple-output (MIMO) technologies can provide a peak rate of 100 Mbit/s in downlink and 50 Mbit/s in uplink under a spectral bandwidth of 20 MHZ, thereby improving the performance of cell edge users, increasing the cell capacity and spectrum utilization ratio and reducing the system delay. According to a technical standard 3GPP TS36.211/3GPP TS36.212 protocol file of the LTE, for the uplink and downlink traffic channels of the LTE, as shown in  FIG. 1 , a processing flow of a transmitting side (for a downlink traffic channel, the transmitting side is an eNodeB, and for an uplink traffic channel, the transmitting side is a user equipment CUE)) includes cyclic redundancy check (CRC)  101 , code block segmentation  102 , Turbo encoding  103 , rate matching  104 , code block cascading  105 , scrambling  106 , modulation  107 , layer mapping  108 , pre-coding  109 , resource mapping  110  and OFDM symbol generation  111 . As shown in  FIG. 2 , receiving processing flow of a receiving side (for the downlink traffic channel, the receiving side is an eNodeB, and for the uplink traffic channel, the receiving side is UE) includes reception of antenna data  201 , demodulation of OFDM symbol  202 , demodulation of MIMO  203 , demodulation  204 , descrambling  205 , de-code-block decascading  206 , rate dematching  207 , hybrid automatic repeat request (HARQ) combination  208 , decoding  209 , de-CRC  210 , etc. 
         [0003]    Each code block corresponds to one rate matching process, and the input of each rate matching is the output of the Turbo encoding, i.e., parallel three branches: d k   (0) , d k   (1)  and d k   (2)  (k=0, . . . , K−1). As shown in  FIG. 3 , the rate matching process structurally includes three interleaver sub-processes for respectively processing the three branches, one bit collection sub-process for summarization and one bit selection and clipping sub-process. Three branches of data are read into respectively independent sub-block interleavers in rows, NULL elements are filled in the front of an interleaving matrix with R rows and 32 columns, and data are read out in columns exchanged in columns. Then, the three branches of interleaved data v k   (0) , v k   (1)  and v k   (2)  (k=0, . . . , K−1) are summarized to a bit collection module, and the first branch of data is input in sequence, and the second branch of data and the third branch of data are alternately placed. Finally, beginning from k 0 , the NULL elements of the data in the bit collection module are skipped, and e valid data are selected in sequence as the output of the rate matching. 
         [0004]    Rate dematching is a reverse process of the rate matching, and as shown in  FIG. 4 , a traditional rate dematching method includes bit recovery, bit separation and sub-block deinterleaving. The three processes are specifically realized as follows. 
         [0005]    Bit recovery includes: 
         [0006]    1. the following parameters are calculated: the length of each code block, the number N d  of NULL elements added in a sub-block interleaving of the rate matching, the length N cb  of a circulating cache, positions of the NULL elements in the circulating cache, a starting address k 0  of rate matching output, and the number e of physical channel bits of the code block; 
         [0007]    2. starting from address k 0 , data of an input sequence are input to the circulating cache in sequence; if a current address corresponds a NULL element, 0 is written into the circulating cache, otherwise, input data are written into the circulating cache; and when the address is increased to N cb , the address is returned to 0; and 
         [0008]    3. according to e and N cb , a de-repetition or de-punching process, i.e., an reverse process of bit selection and clipping of the rate matching, is performed; wherein the de-repetition is combining data repeatedly sent in bit selection and clipping, and the de-punching is recovering data removed in bit selection and clipping to 0. 
         [0009]    The bit separation corresponds to the bit collection of the rate matching. Data that have been subjected to bit recovery are read out of the circulating cache in sequence, and separated into three sub-blocks, wherein the first R×32 data are written into a sub-block interleaver S, and the last 2R×32 data are alternately written into a sub-block de-interleaver P 1  and a sub-block de-interleaver P 2 , and R is the number of rows of an interleaving matrix. 
         [0010]    In sub-block deinterleaving, data of three sub-blocks are respectively input in columns, switched in columns, and then output in rows, and the NULL elements added in sub-block interleaving are deleted when data are output. 
         [0011]    Rate dematching methods for LTE in an existing technology have problems of complex processing, huge hardware resource consumption and long processing time. 
       SUMMARY 
       [0012]    To solve the above-mentioned technical problems, embodiments of the present invention provide a rate dematching method, apparatus, and receiving-side device. 
         [0013]    Embodiments of the present invention provide a rate dematching method, including: 
         [0014]    acquiring new data to be processed, performing bit recovery/bit separation on the new data to be processed, and writing data which have been subjected to bit recovery/bit separation into a code block data memory; 
         [0015]    applying sub-block deinterleaving processing to data stored in the code block data memory; and 
         [0016]    applying hybrid automatic repeat request (HARQ) combination processing on output data which have been subjected to sub-block deinterleaving processing and the acquired history data to be processed, and outputting HARQ combination results. 
         [0017]    The performing bit recovery/bit separation on the new data to be processed and writing data which have been subjected to bit recovery/bit separation into a code block data memory include: 
         [0018]    when processing each code block, firstly zero clearing the code block data memory, then reading data from the code block data memory, combining data read from the code block memory and the new data acquired, applying bit separation to combined data, and writing data which have been subjected to bit separation into the code block data memory. 
         [0019]    The code block data in the code block memory are stored in three branches which comprise system bits, a first parity bit and a second parity bit, and each branch of data is stored into two sub-memories according to a sequence in an interleaving matrix which has been subjected to the bit separation, that is, 
         [0020]    a first half part of each branch of data which have been subjected to bit separation is stored into one sub-memory, a second half part of each branch of data which have been subjected to bit separation is stored into another sub-memory, and the three branches of data are stored in a total of six sub-memories. 
         [0021]    The sub-block deinterleaving processing includes: calculating a sequence of the output data which have been subjected to sub-block interleaving, to obtain an address of the output data in the code block data memory, and reading data. 
         [0022]    Embodiments of the present invention also provide a rate dematching apparatus including: 
         [0023]    a parameter processing and controlling module, configured to acquire a task parameter, parse and process the task parameter and distribute the task parameters to other modules; 
         [0024]    a new data input module, configured to acquire and cache new data to be processed; 
         [0025]    a de-repetition/de-punching module, configured to perform bit recovery/bit separation on the new data to be processed, and write data which have been subjected to bit recovery/bit separation into a code block data memory; 
         [0026]    the code block data memory, configured to store the data which have been subjected to bit recovery/bit separation; 
         [0027]    a sub-block deinterleaving module, configured to apply sub-block deinterleaving processing to data stored in the code block data memory; 
         [0028]    a hybrid automatic repeat request (HARQ) data input module, configured to acquire and cache history data to be processed; 
         [0029]    an HARQ combination module, configured to combine data output by the sub-block deinterleaving module and the history data output by the HARQ data input module; and 
         [0030]    an HARQ data output module, configured to cache and output HARQ combination results. 
         [0031]    The performing the bit recovery/bit separation on the new data to be processed and writing data which have been subjected to bit recovery/bit separation into the code block data memory include: 
         [0032]    when processing each code block, by the de-repetition/de-punching module, firstly zero clearing the code block data memory, then reading data from the new data input module and the code block data memory simultaneously, and applying bit separation to combined data, and writing data which have been subjected to bit separation into the code block data memory. 
         [0033]    The code block data memory is configured to store code block data in three branches which comprise system bits, a first parity bit and a second parity bit, and each branch of data is stored into two sub-memories according to a sequence in the interleaving matrix which has been subjected to the bit separation, that is, 
         [0034]    a first half part of each branch of data which have been subjected to bit separation is stored into one sub-memory, a second half part of each branch of data which have been subjected to bit separation is stored into another sub-memory, and the three branches of data are stored in a total of six sub-memories. 
         [0035]    The sub-block deinterleaving module is configured to calculate the sequence of the output data which have been subjected to sub-block interleaving according to the sequence of output data, to obtain the address of the output data in the code block data memory, and read data. 
         [0036]    Embodiments of the present invention also provide a receiving-side device for data communication, including the rate dematching apparatus of any one of the above-mentioned embodiments. 
         [0037]    Embodiments of the present invention also provide a computer readable storage medium, including a set of computer executable instructions for executing the method of any one of the above-mentioned rate dematching method of present invention. 
         [0038]    A rate dematching method, apparatus and a receiving-side device provided in embodiments of the present invention simplify processing complexity, reduce hardware resource consumption, and improve work efficiency. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0039]      FIG. 1  is a flow diagram showing a data processing of a transmitting side of an LTE traffic channel in the existing technology; 
           [0040]      FIG. 2  is a flow diagram showing a data processing of a receiving side of an LTE traffic channel in the existing technology; 
           [0041]      FIG. 3  is a processing diagram showing rate matching of a transmitting side of an LTE traffic channel in the existing technology; 
           [0042]      FIG. 4  is a processing diagram showing rate dematching of a receiving side of an LTE traffic channel in the existing technology; 
           [0043]      FIG. 5  is a structure diagram showing a rate dematching apparatus in an embodiment of the present invention; 
           [0044]      FIG. 6  is a diagram showing stored symbols of all sub-RAMs of a code block data memory when a code block size is odd time of 8 in an embodiment of the present invention; 
           [0045]      FIG. 7  is a diagram showing stored symbols of all sub-RAMs of a code block data memory when a code block size is even time of 8 in an embodiment of the present invention; 
           [0046]      FIG. 8  is a first processing flow diagram showing a method for rate dematching in an embodiment of the present invention; 
           [0047]      FIG. 9  is a diagram showing de-repetition/de-punching in an embodiment of the present invention; 
           [0048]      FIG. 10  is a processing flow diagram showing de-repetition/de-punching in an embodiment of the present invention; 
           [0049]      FIG. 11  is a position diagram showing NULL elements before and after column transformation of system bits and a first parity bit data when nd=20 and R=4 in an embodiment of the present invention; 
           [0050]      FIG. 12  is a position diagram showing NULL elements before and after column transformation of a second parity bit data when nd=20 and R=4 in an embodiment of the present invention; 
           [0051]      FIG. 13  is a storage structure diagram showing addressing of all sub-RAMs according to a processing unit when the last three least significant bits (LSBs) of a number of valid symbols of sub-RAMs is 2 in an embodiment of the present invention; 
           [0052]      FIG. 14  is a storage structure diagram showing addressing of all sub-RAMs according to a processing unit when the last three LSBs of a number of valid symbols of sub-RAMs is 6, in an embodiment of the present invention; 
           [0053]      FIG. 15  is a diagram showing a relationship among a correction factor, a column number and N D  in sub-block deinterleaving of system bits and a first parity bit in an embodiment of the present invention; 
           [0054]      FIG. 16  is a diagram showing a relationship among a correction factor, a column number and N D  in in sub-block deinterleaving of a second parity bit in an embodiment of the present invention; 
           [0055]      FIG. 17  is a diagram showing column numbers of all columns before and after sub-block interleaving of system bits and a first parity bit in an embodiment of the present invention; 
           [0056]      FIG. 18  a diagram showing column numbers of all columns before and after sub-block interleaving of a second parity bit in an embodiment of the present invention; and 
           [0057]      FIG. 19  is a second processing flow diagram showing a rate dematching method in an embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION 
       [0058]    A technical solution of the present invention is described in detail below in combination with the drawings and the specific embodiments. 
         [0059]    Embodiments of the present invention provide an apparatus and method for realizing rate dematching including HARQ combination for an LTE traffic channel. In the embodiments, rate matching parameters and HARQ combination parameters of a transmission block (TB) are sent to the device by a system; the device reads new data to be processed and history data from the system through a data bus, and writes out HARQ combination results; and each data soft symbol occupies one byte. 
         [0060]    As shown in  FIG. 5 , a rate dematching apparatus in an embodiment of the present invention includes a parameter processing and controlling module  501 , a new data input module  502 , de-repetition/de-punching module  503 , sub-block deinterleaving module  504 , a code block data memory  505 , HARQ combination module  506 , HARQ data input module  507  and HARQ data output module  508 . 
         [0061]    The parameter processing and controlling module  501  is configured to acquire and distribute task parameters. The task parameters are in unit of TB. Further, the parameter processing and controlling module  501  parses the task parameters, divide the task parameters into code blocks (CB), and distribute the CBs to each of other modules. 
         [0062]    The new data input module  502  is configured to acquire and cache new data to be processed. NULL elements are not included in the new data. Further, the new data input module  502  reads data from outside through the data bus. A cache is set in the new data input module  502 , and the cache mechanism is first input first output (FIFO). The new data input module  502  may read data by packets, and take data to process while reading, so that fewer storage resources are required. 
         [0063]    The de-repetition/de-punching module  503  is configured to perform bit recovery/bit separation. When processing each code block, the de-repetition/de-punching module  503  firstly clears the code block data memory, then reads data from the new data input module  502  and a code block data memory  505  simultaneously, combines data read from the new data input module  502  and a code block data memory  505 , applies bit separation to combined data, and writes data which have been subjected to bit separation into the code block data memory  505 . The de-repetition/de-punching module  503  adopts a 8-symbol parallel processing, naturally completes de-repetition/de-punching in a process of combination and writing data into the code block data memory  505 , and the NULL elements are not required to be recovered. 
         [0064]    The sub-block deinterleaving module  504  is configured to apply sub-block deinterleaving. The sub-block deinterleaving module  504  calculates a sequence of output data which have been subjected to sub-block interleaving and reads three branches of data, i.e. system bits, a first parity bit and a second parity bit from a code block data memory  505 , wherein each branch of data are read parallel in 2 symbols. 
         [0065]    The code block data memory  505  is configured to store code block data which have been subject to bit recovery/bit separation, and do not include the NULL elements, that is, data which have not been subjected to sub-block deinterleaving. The code block data memory stores code block data in three branches, i.e. system bits, the first parity bit and the second parity bit, and each branch of data is stored into two sub-RAMs which respectively store a half of the data of three branches. Storage capacity of sub-RAM shall be greater than half of size of a maximum code block, i.e. 6148/2=3074. In order to cooperate with 8-symbol parallel processing of the de-repetition/de-punching module  503 , a bit width of sub-RAM is 8 symbols, and a depth of sub-RAM is 3074/8=385. By using a single port RAM, each of the sub-RAMs simultaneously reads one symbol data, thus (3×2)-symbol parallel processing of the sub-block deinterleaving module can be realized. 
         [0066]    Two sub-RAMs respectively store an upper half part and a lower half part of data of one branch of data which have been subjected to bit recovery/bit separation, denoted by up_ram and dw_ram. The sub-RAM storing upper half part of system bits is named sys_up_ram, and the sub-RAM storing lower half part of system bits is named sys_dw_ram, and the sub-RAMs storing the other two branches of data are named by analogy. According to 3GPP TS36.212, a code block size K must be an integral multiple of 8, and a code block will increase by 4 symbols after Turbo encoding. When K is odd time of 8, the storage capacity of each sub-RAM equals to 6 plus an integral multiple of 8, i.e., only 6 valid symbols are stored at the last address of sub-RAM. In this case, a data format stored in all sub-RAMs is shown in  FIG. 6 . When K is even time of 8, the storage capacity of each of sub-RAMs pluses 2 on the basis of an integral multiple of 8, i.e., the last address of sub-RAM only stores 6 valid symbols, and in this case, a data format stored in all sub-RAMs are shown in  FIG. 7 . 
         [0067]    The HARQ combination module  506  is configured to combine data output by the sub-block deinterleaving module  504  and the history data output by the HARQ data input module  507 . The HARQ combination module  506  adopts (3×2)-symbol parallel processing. 
         [0068]    The HARQ data input module  507  is configured to acquire and cache history data to be processed. The HARQ data input module  507  may read data from outside through the data bus, and the cache may be set in the HARQ data input module  507 . The cache mechanism in present embodiments is FIFO, data can be read by packets and taken to process while being read, which only requires fewer storage resources. 
         [0069]    The HARQ data output module  508  is configured to cache and output HARQ combination results. The HARQ data output module  508  may write data out through the data bus, and the cache may be set in the HARQ data output module  508 . The cache mechanism in present embodiments is FIFO, data can be written out by packets, and data which have been subjected to HARQ combination can be stored while being written out, which only requires fewer storage resources. 
         [0070]    It is noted that the parameter processing and controlling module  501 , the new data input module  502  the de-repetition/de-punching module  503 , the sub-block deinterleaving module  504 , the HARQ combination module  506 , the HARQ data input module  507  and the HARQ data output module  508  in embodiments of the present invention may be realized through an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA) of an rate dematching apparatus; and the code block data memory  505  may be realized through RAM of the rate dematching apparatus. 
         [0071]    As shown in  FIG. 8 , a processing flow diagram of a rate dematching method in embodiments of the present invention includes steps  801 - 805 . 
         [0072]    In step  801  and step  802 , a parameter processing and controlling module, acquires a task parameter, calculates and processes the acquired task parameter, and distributes processed task parameter to other modules in code blocks. 
         [0073]    In step  803 , a new data input module acquires data to be processed from outside and temporarily stores the data, where the data begins with a starting address k 0  of code block rate matching output, NULL elements are not included, and the total amount of data of one code block is e symbols. The new data input module may initiate a read request to a data bus when there is a free space in an FIFO cache, and read data of one packet every time; and when a de-repetition/de-punching module requires data, data are taken from the FIFO cache, converted to a bit width of 8 symbols, and transmitted to the de-repetition/de-punching module. 
         [0074]    In step  804  and step  805 , the de-repetition/de-punching module receives new code block data, and firstly clears code block data memory for the code block. As shown in  FIG. 6  and  FIG. 7 , each of sub-RMAs stores data only starting from the address 
         [0000]    
       
         
           
             
               0 
               ~ 
               
                 ⌊ 
                 
                   
                     
                       k 
                       / 
                       2 
                     
                     + 
                     2 
                   
                   8 
                 
                 ⌋ 
               
             
             , 
           
         
       
     
         [0000]    so zero clearing code block data memory is only required to be performed on the part of RAM, and zero clearing 6 sub-RAMs is performed simultaneously. 
         [0075]    After a code block data memory is cleared, the de-repetition/de-punching module reads data to be processed from the new data input module according to a bit width of 8 symbols, and data read out are adjusted to be aligned in a storage format in RAM; and meanwhile, corresponding addresses of data in RAM are calculated, data in RAM are read from the address and combined with new data, data combined are written back to RAM, where the written address is the same as the read address. A de-repetition/de-punching diagram is shown in  FIG. 9 . When e new data of a whole code block are all combined and written back, processing of bit recovery and bit separation is completed. 
         [0076]    As shown in  FIG. 10 , the de-repetition/de-punching process is divided into a plurality of sub-steps, i.e. steps  1001 - 1011 . 
         [0077]    Step  1001  to step  1004  are used for adjusting format of new data taken from an input cache. 
         [0078]    In step  1001 , data are read from the input cache, where the data are denoted by fifo_dat and the upper bytes of the data are ahead. 
         [0079]    In step  1002 , fifo_dat beginning from (k 0 −k 0 [2:0]) are aligned according to a whole 8-byte, i.e., if k 0 [2:0]!=0, zero padding is applied to a lower byte, and data begin to be generated at a whole 8-byte; and the data are denoted by dat_remove_k 0 , and the valid data of dat_remove_k 0  are more than one beat compared with the valid data of fifo_dat. 
         [0080]    In step  1003 , system bits is separated from a parity bit, and after the separation, data are denoted by dat_sp_sel. Since the total number of system bits is (k+4), system bits of dat_remove_k 0  are required to be supplemented by 4 bytes of 0 at the last 8-byte position; and after data roll for each circle in a virtual cache, the valid data of dat_sp_sel has one more beat than the valid data of dat_remove_k 0 . 
         [0081]    For a parity bit, data output by rate matching is in an alternate format of p 1 _p 2 . But during the rate matching, since a column of p 2  in which a NULL element is inserted is different from that of p 1  in which the NULL element is inserted, positions of bits which are deleted finally are different, causing a position of p 1  and p 2  exchanged to be a format of p 2 _p 1 . 
         [0082]      FIG. 11  and  FIG. 12  explain situations of exchanging sequences of p 1 /p 2  using the number of NULL elements of nd=20 and R=4 as an example, and bold italics in the  FIG. 11  and  FIG. 12  indicate serial numbers of NULL elements, and other numbers indicate serial numbers of valid data. In a shadow position of  FIG. 12 , p 1  is a NULL element, and p 2  is valid data. When data are output in this way, data are changed to be in a format of p 2 _p 1  until the last parity bit. When dat_sp_sel is required to be adjusted from data in a yellow position, positions of every two bytes data will be exchanged. 
         [0083]    In step  1004 , data of two sub-RAMs of each branch are separated and denoted by dat_ud_sel. k 0  may be in the system bits or in the parity bits, the number of valid symbols of a last address of each of sub-RAMs may be 2 or 6, a virtual cache may also roll during rate matching, and in various cases, the numbers of added zero bytes are different. The number of valid symbols in RAM is denoted by ram_dat_sum, and delay for dat_sp_sel_data is denoted by dat_sp_sel_dly*, wherein * indicates the number of beats of delay. There are several cases in the following. 
         [0084]    In case (1), k 0  is in system bits and ram_dat_sum[2:0]=2, and rolling has not yet been executed: 
         [0085]    in sys_up_ram, dat_ud_sel&lt;=sp_sel_dat_dly 1 ; 
         [0086]    6 bytes of 0 are added to the end of sys_up_ram, and dat_ud_sel&lt;={sp_sel_dat_dly 1 [63:48], 48′d 0 }; 
         [0087]    in sys_dw_ram, 6 bytes of 0 have been added, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [47:0], sp_sel_dat_dly 1 [63:48}; 
         [0088]    6 bytes of 0 shall have been added to an end of sys_dw_ram, but 4 bytes of 0 have already been added in sp separation before, therefore only 2 bytes of 0 are added to an end of sys_dw_ram here, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [47:0], 16′d 0 }; 
         [0089]    in p_up_ram, 8 bytes of 0 have been added before, i.e., delay by one beat, dat_ud_sel&lt;=sp_sel_dat_dly 2 ; 
         [0090]    at the end of p_up_ram, (k+4) data are stored in p_up_ram; finally, there are four valid data and four added bytes of 0 in the end of p up_ram; dat_ud_sel&lt;={sp_sel_dat_dly 2 [63:32], 32′d 0 }; 
         [0091]    in p_dw_ram, 12 bytes of 0 have been added before; dat_ud_sel&lt;={sp_sel_dat_dly 3 [31:0], sp_sel_dat_dly 2 [63:32]}; 
         [0092]    4 bytes of 0 are added to the end of p_dw_ram; dat_ud_sel&lt;={sp_sel_dat_dly 3 [31:0], 32′d 0 }; 
         [0093]    in sys_up_ram which has been subjected to the first roll, 16 bytes of 0 have been added before, i.e., delay by two beats; dat_ud_sel&lt;=sp_sel_dat_dly 3 ; 
         [0094]    then the above process is repeated; two beats are added for each roll delay. 
         [0095]    In case (2), k 0  is in system bits and ram_dat_sum[2:0]=6, and rolling has not yet been executed: 
         [0096]    in sys_up_ram, dat_ud_sel&lt;=sp_sel_dat_dly 1 ; 
         [0097]    2 bytes of 0 are added to the end of sys_up_ram, and dat_ud_sel&lt;={sp_sel_dat_dly 1 [63:16], 16′d 0 }; 
         [0098]    in sys_dw_ram, 2 bytes of 0 have been added, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [15:0] and sp_sel_dat_dly 1 [63:16}; 
         [0099]    2 bytes of 0 shall have been added to an end of sys_dw_ram, but 4 bytes of 0 have been already added in sp separation before, therefore 0 is not required to be added to an end of sys_dw_ram here, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [15:0], sp_sel_dat_dly 1 [63:161; 0 added herein is offset; 
         [0100]    in p_up_ram, 0 has not been added before; dat_ud_sel&lt;=sp_sel_dat_dly 1 ; 
         [0101]    at the end of p_up_ram, (k+4) data are stored in p_up_ram, finally, there are four valid data, four bytes of 0 are added and dat_ud_sel&lt;={sp_sel_dat_dly 1 [63:32], 32′d 0 }; 
         [0102]    in p_dw_ram, 4 bytes of 0 have been added before; dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], sp_sel_dat_dly 1 [63:32]}; 
         [0103]    4 bytes of 0 are added to an end of p_dw_ram; dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], 32′d 0 }; and 
         [0104]    in sys_up_ram which has been subjected to the first roll, 8 bytes of 0 have been added before, i.e., delay by one beat; dat_ud_sel&lt;=sp_sel_dat_dly 2 . 
         [0105]    Then the above process is repeated; and one beat is added for each roll delay. 
         [0106]    In case (3), k 0  is in parity bits and ram_dat_sum[2:0]=2, and rolling has not yet been executed: 
         [0107]    in p_up_ram, dat_ud_sel&lt;=sp_sel_dat_dly 1 ; 
         [0108]    at an end of p_up_ram, (k+4) symbols are stored in p_up_ram; finally, there are four valid symbols, 4 bytes of 0 are added; dat_ud_sel&lt;={sp_sel_dat_dly 1 [63:32], 32′d 0 }; 
         [0109]    in p_dw_ram, 4 bytes of 0 have been added before, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], sp_sel_dat_dly 1 [63:32]}; 
         [0110]    at the end of p_dw_ram, 4 bytes of 0 are added; dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], 32′d 0 }; 
         [0111]    in sys_up_ram which has been subjected to first roll, 8 bytes of 0 have been added before, i.e., delay by one beat; dat_ud_sel&lt;=sp_sel_dat_dly 2 ; 
         [0112]    at the end of sys_up_ram which has been subjected to first roll, 6 bytes of 0 are added, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [63:48], 48′d 0 }; 
         [0113]    in sys_dw_ram which has been subjected to first roll, 14 bytes of 0 have been added before, and dat_ud_sel&lt;={sp_sel_dat_dly 3 [47:0], sp_sel_dat_dly 2 [63:48]}; 
         [0114]    at the end of sys_dw_ram which has been subjected to first roll, 6 bytes of 0 shall be added here, but 4 bytes of 0 have been added in sp separation, therefore 2 bytes of 0 are added, and dat_ud_sel&lt;={sp_sel_dat_dly 3 [47:0], 16′d 0 }; 
         [0115]    at the end of p_up_ram which has been subjected to first roll, 16 bytes of 0 have been added before, dat_ud_sel&lt;=sp_sel_dat_dly 3 . 
         [0116]    Then the above process is repeated; and two beats are added for each roll delay. 
         [0117]    In case (4), k 0  is in parity bits and ram_dat_sum[2:0]=6, and rolling has not yet been executed: 
         [0118]    in p_up_ram, dat_ud_sel&lt;=sp_sel_dat_dly 1 ; 
         [0119]    at the end of p_up_ram, (k+4) symbols are stored in p_up_ram, finally, there are four valid symbols, 4 bytes of 0 are added, and dat_ud_sel&lt;={sp_sel_dat_dly 1 [63:32], 32′d 0 }; 
         [0120]    in p_dw_ram, 4 bytes of 0 have been added before, and dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], sp_sel_dat_dly 1 [63:32]}; 
         [0121]    at the end of p_dw_ram, 4 bytes of 0 are added; dat_ud_sel&lt;={sp_sel_dat_dly 2 [31:0], 32′d 0 }; 
         [0122]    in sys_up_ram which has been subjected to first roll, 8 bytes of 0 have been added before, i.e., delay by one beat, and dat_ud_sel&lt;=sp_sel_dat_dly 2 ; 
         [0123]    at the end of sys_up_ram which has been subjected to first roll, 2 bytes of 0 are added, and dat_ud_sel&lt;=sp_sel_dat_dly 2 [63:16], 16′d 0 }; 
         [0124]    in sys_dw_ram which has been subjected to first roll, 10 bytes of 0 have been added before, and dat_ud_sel&lt;=sp_sel_dat_dly 3 [15:0], sp_sel_dat_dly 2 [63:16]}; 
         [0125]    at the end of sys_dw_ram which has been subjected to first roll, 2 bytes of 0 shall be added here, but 4 bytes of 0 have been added in sp separation, therefore 0 is not required to be added, and dat_ud_sel&lt;={sp_sel_dat_dly 3 [15:0], sp_sel_dat_dly 2 [63:16]}; 8 bytes  0  are in total added herein; 
         [0126]    at the end of p_up_ram which has been subjected to first winding, 8 bytes of 0 have been added before, dat_ud_sel&lt;=sp_sel_dat_dly 2 . 
         [0127]    Then the above process is repeated; and one beat is added for each winding delay. 
         [0128]    In practice, k 0  is not necessarily in up_ram. However, in the above processing, even if beginning from dw_ram, data are completed by a number of bytes of 0 in case of beginning from up_ram; with a number of bytes of 0 supplemented for dat_remove_k 0  and dat_sp_sel, the data format of dat_ud_sel produced finally must be consistent with a data format stored in RAM. 
         [0129]    In step  1005 , a mark of valid data of dat_ud_sel denoted by dat_ud_sel valid is calculated. 
         [0130]    The number of bytes  0  added in the processing course of ud separation is indicated with a counter ud_add_dat_cnt. 
         [0131]    At the starting position, 0 is added only when data are in dw_ram. When k 0  is in sys_dw_ram, if ram_dat_sum[2:0]=2, 6 bytes of 0 are added at the starting position; and if ram_dat_sum[2:0]=6, 2 bytes of 0 are added at the starting position. When k 0  is in p_dw_ram, 4 byte of 0 are added at the starting position. 
         [0132]    In the data processing course, if ram_dat_sum[2:0]=2, 6 bytes of 0 are added at each end of sys_up_ram; 2 bytes of 0 are added at an end of sys_dw_ram; 4 bytes of 0 are added at the end of p_up_ram or p_dw_ram. If ram_dat_sum[2:0]=6, only 4 bytes of 0 are added at the end of p_up_ram or p_dw_ram. 
         [0133]    Valid data of each beat have 8 bytes. According to ud_add_dat_cnt/8, added beats of data of up_sel_dat relative to sp_sel_dat can be known. However, the number of added beats of data at dat_remove_k 0  and dat_sp_sel is respectively calculated in steps  1002  and  1003 , and dat_ud_sel_valid is obtained by accumulating the three. 
         [0134]    Steps  1006 - 1009  are used for calculating a position of data dat_ud_sel in RAM and reading data in RAM from the position. 
         [0135]    Data are stored in RAM by sub-blocks; a bit width of sub-RAMs is 8 symbols (8 bytes), and (k/2+2) valid symbols are stored. 8-byte parallel processing is adopted for data processing. The valid data in RAM are numbered beginning with sys_up_ram in every 8 bytes. For the system bits, a upper sub-RAM and a lower sub-RAM respectively store data of 
         [0000]    
       
         
           
             M 
             = 
             
               ⌈ 
               
                 
                   
                     k 
                     / 
                     2 
                   
                   + 
                   2 
                 
                 8 
               
               ⌉ 
             
           
         
       
     
         [0000]    units; for panty bits, p 1 /p 2  alternate processing exists; there are 4 bytes of p 1  and 4 bytes of p 2  in every 8 bytes, that is, there are data from two units in one address of each RAM. 
         [0136]    When lowest 3 bits of (k/2+2) are 2, (2M−1) processing units exist in one parity bit RAM, and a storage structure of addressing of all sub-RAMs according to a processing unit is shown in  FIG. 13 . 
         [0137]    When lowest 3 bits of (k/2+2) are 6, 2M processing units exist in one parity bit RAM, and a storage structure of addressing of all sub-RAMs according to a processing unit is shown in  FIG. 14 . 
         [0138]      FIG. 13  and  FIG. 14  reveals that sub-RAM of the data, addresses of data in sub-RAM and enabled bits can be calculated through number values. Finally, a datum of the storage structure in sub-RAM is adjusted as up_sel_dat, and a unit number value of up_sel_dat may be calculated, where the unit number is denoted by dat_ud_sel_cnt. Steps are as follows. 
         [0139]    In step  1006 , an initial number value of data dat_ud_sel is calculated. If data of full 8 bytes are stored in each sub-RAM, k 0  [14:3] may be regarded as an initial unit number of input data. But in the processing course, zero adding processing is made on dat_remove_k 0 , i.e., the data firstly written into RAM is data before dat_remove_k 0 , causing the number to move forward; on the other hand, valid data is not fully written in the valid address of sub-RAM; fewer 0 may be added to each end of sub-RAM and parts of data are delayed to a next unit, causing the number to move backward; a true starting unit number is determined in combination of two influences. There are several cases as follows. 
         [0140]    I. Starting from sys_up_ram, both the two influences do not exist and a starting number is k 0  [14:3]. 
         [0141]    II. Starting from sys_dw_ram, dat_ud_sel needs to add 
         [0000]    
       
         
           
             ( 
             
               8 
               - 
               
                 
                   { 
                   
                     
                       k 
                       2 
                     
                     + 
                     2 
                   
                   } 
                 
                  
                 
                   [ 
                   
                     2 
                      
                     
                       : 
                     
                      
                     0 
                   
                   ] 
                 
               
             
             ) 
           
         
       
     
         [0000]    bytes of 0 in front of dat_remove_k 0 , but because the last valid address of sys_up_ram is not fully occupied, data delays 
         [0000]    
       
         
           
             ( 
             
               8 
               - 
               
                 
                   { 
                   
                     
                       k 
                       2 
                     
                     + 
                     2 
                   
                   } 
                 
                  
                 
                   [ 
                   
                     2 
                      
                     
                       : 
                     
                      
                     0 
                   
                   ] 
                 
               
             
             ) 
           
         
       
     
         [0000]    bytes, so two influences are counteract by each other; and the starting number is k 0  [14:3]. 
         [0142]    III. Starting from p_up_ram, if ram_dat_sum[2:0]=2, 12 bytes are delayed in sys_ram; 4 bytes of 0 added by the first beat of data in sp separation offsets a part of delay, so a total of 8 bytes are delayed. Therefore, finally, the starting number is (k 0  [14:3]+1). 
         [0143]    If ram_dat_sum[2:0]=6, a total of 4 bytes are delayed in sys_ram; 4 bytes of 0 are added by the first beat of data in sp separation, and two influences are counteract by each other; and the starting number is k 0  [14:3]. 
         [0144]    IV. Starting from p_dw_ram, 4 beats are delayed at an end of p_up_ram compared with starting from p_up_ram, but 4 bytes of 0 are added, so the two influences are counteract by each other. Therefore, results of starting from p_dw_ram is the same as results of starting from p_up_ram, i.e., when ram_dat_sum[2:0]=2, the starting number is k 0  [14:3]+1 and when ram_dat_sum[2:0]=6, the starting number is k 0  [14:3]. 
         [0145]    In step  1007 , dat_ud_sel_cnt is calculated. An initial value is already obtained in step  1006 , and whenever dat_ud_sel is valid, i.e., when dat_ud_sel_valid is 1, the dat_ud_sel_cnt is added by 1. The value of dat_ud_sel_cnt returns zero when the value of dat_ud_sel_cnt reaches a maximum. When a mantissa of ram_dat_sum is 2, the maximum value of dat_ud_sel_cnt is (6M−3), otherwise, the maximum value of dat_ud_sel_cnt is (6M−1). 
         [0146]    In step  1008 , RAM numbers, addresses and enabled bits are calculated through ud_sel_dat_cnt. As mentioned previously, by comparing the unit number with 
         [0000]    
       
         
           
             M 
             = 
             
               ⌈ 
               
                 
                   
                     k 
                     / 
                     2 
                   
                   + 
                   2 
                 
                 8 
               
               ⌉ 
             
           
         
       
     
         [0000]    and combined with value of ram_dat_sum[2:0], a result is obtained from  FIG. 13  and  FIG. 14 . 
         [0147]    In step  1009 , data read from a RAM address obtained in step  1008  are denoted by dat_ram_rd. 
         [0148]    In step  1010 , dat_ram_rd and new data dat_ud_sel in an adjusted format are summed and a summing result is denoted by dat_comb_wb. 
         [0149]    In step  1011 , dat_comb_wb is written back to the RAM original position calculated in step  1008 . 
         [0150]    Above steps implement bit recovery and bit separation. A same method including the above method is only needed to process e data of a code block without differentiating de-repetition or de-punching or recovering NULL elements. 
         [0151]    In step  806 , an HARQ data input module acquires history data from outside and temporarily stores the history data. The data have been subjected to sub-block deinterleaving and include three branches which include system bits, first parity bit and second parity bit. The data do not include NULL elements. The HARQ input module can initiate a read request to a data bus when there is a spare space in an FIFO buffer, and read data of one packet every time. When an HARQ combination module needs data, the data are taken from the FIFO buffer, converted to data having a bit width having 3×2 symbols. The data having a bit width having 3×2 symbols are transmitted to the HARQ combination module. 
         [0152]    In step  807 , the sub-block deinterleaving module calculates a sequence of output data which have been subjected to sub-block interleaving, concurrently reads three branches of new data from a code block data memory, where each branch of new data has 2 symbols, and the data read from a code block data memory are transmitted to the HARQ combination module. 
         [0153]    Because the sub-block deinterleaving module has no buffer, sub-block deinterleaving reads data from the code block data through an index j in a one-to-one correspondence i⇄j between index addresses before and after sub-block interleaving. The data are output to the position of an index i before interleaving so as to finish sub-block deinterleaving, i.e., adopting an interleaving read mode. So a key of sub-block deinterleaving is to realize transformation of interleaving indexes of i→j. 
         [0154]    Specially, an i th element in a CB before interleaving is denoted by a serial number of the i th element in a matrix before interleaving after adding a NULL element. i′ can be obtained by i and then j is obtained. Apparently, i→i′ is determined by the number of NULL elements, i.e., i′=i +N D ; but i′→j is related to the total number of NULL elements before (and at) a column of i′. A correction factor S related to N D  is introduced, and j=f(i′, S) is denoted. 
         [0155]    Known from a sub-block interleaving algorithm: 
         [0000]        f ( i′, S )= P ( i′[ 4:0])* R+i′[ 12:5 ]−S ( P ( i′[ 4:0])) 
         [0156]    The correction factor S is related to N D . For interlaced matrixes, the NULL elements are mixed in each column. A relationship among system bits, the correction factor S and the column number of the first parity bit and N D  obtained from a column transformation relationship is shown in  FIG. 15 . 
         [0157]    For a second parity bit, a calculating process is consistent, but a relational expression may differ, wherein the relational expression is as follows: 
         [0000]        i′=i+N   D −1
 
         [0000]        j=P ( i′└ 4:0┘)* R+i′[ 12:5 ┘−S ′( P ( i′└ 4:0┘))
 
         [0158]    A relationship among the correction factor S and the column number of the second parity bit and N D  is shown in  FIG. 16 . 
         [0159]    An index transformation relationship of each branch of data i→j can be obtained from above steps. 
         [0160]    On the other hand, the system bits and the parity bit are independent. To accelerate processing speed, de-interleaving operations are executed parallel on three branches of data. In present embodiments, odd and even symbols of each branch are simultaneously processed. If odd and even symbols before interleaving exist in different sub-RAMs, degree of parallelism may be further increased. Each column of sub-block interleaving has 32 columns. Therefore, if the column number before interleaving is an even number, i is also an even number. Column transformation of LTE sub-block interlacing is shown in  FIG. 17 . As shown in  FIG. 17 , for the system bits and the first parity bit, when i is an even number, the column numbers are less than or equal to 15 after the interleaving, i.e., at a first half part of the matrix; when i is an odd number, the column numbers are greater than or equal to 16 after the interleaving, i.e., at a second half part of the matrix. 
         [0161]    For the second parity bit, operation of circular displacement exists, and the column transformation relationship is shown in  FIG. 18 . As shown in  FIG. 18 , for the second parity bit, when i is an even number, the column numbers are greater than or equal to 16 after the interleaving, i.e., at a second half part of the matrix; when i is an odd number, the column numbers are less than or equal to 15 after the interleaving, i.e., at a first half part of the matrix. 
         [0162]    As mentioned previously, each branch of data is stored in an upper part and a lower part in a sequence before sub-block interleaving. Therefore, parity parallel processing is possible, and finally, 6-symbol parallel processing is achieved. A corresponding relation between each branch of data and sub-RAM is: 
         [0163]    Even symbol of system bits is in sys_up_ram; 
         [0164]    Odd symbol of system bits is in sys_dw_ram; 
         [0165]    Even symbol of first parity bit is in p 1 _up_ram; 
         [0166]    Odd symbol of first parity bit is in p 1 _dw_ram; 
         [0167]    Even symbol of second parity bit is in p 2 _dw_ram; and 
         [0168]    Odd symbol of second parity bit in p 2 _up_ram. 
         [0169]    Data which have been subjected to sub-block deinterleaving are firstly combined with the history data of the code block, the combined data are transmitted to a Turbo decoder and written to the outside for a next HARQ process. The history data come from the data bus, and the combined data are also written out through the data bus. Reading data from the bus and writing data to the bus are not necessarily continuous. Therefore, a processing pipeline of sub-block deinterleaving may be suspended at any time. 
         [0170]    To simplify processing, the sub-block deinterleaving module adopts a data packet for unit operation, i.e., one sub-pack data are continuously taken from the code block memory every time and executed sub-block deinterleaving, and sub-packs are not suspended. After processing of the sub-pack, the HARQ combination module is checked for a data request, and then a next sub-pack is processed. The HARQ combination module is required to initiate a data processing request to the sub-block deinterleaving module only when at least data of one sub-pack exist in the HARQ data input module and at least a vacant space for accommodating data of one sub-pack exists in the HARQ data output module. To eliminate a bubble between two sub-packs, a request of a next sub-pack can be accepted when processing of one sub-pack is not finished. For matching with the mechanism, a history request counter is arranged for sub-block deinterleaving. Whenever a request is received, a length of the sub-pack is added. When the counter is not zero, an interleaving address can be calculated and data is read from the code block memory. When 3×2 symbols are processed once, the data counter decreases 1. 
         [0171]    In step  808 , the HARQ combination module reads the history data from the HARQ data input module, and combines the history data with output data of sub-block deinterleaving. Results are outputted to an external decoding module as well as the HARQ data output module. Whether applying HARQ combination and outputting combination results can be configured in task parameters for enhancing application flexibility of the apparatus in the system. 
         [0172]    In step  809 , the HARQ data output module temporarily stories the HARQ combination results and writes the HARQ combination results to the outside. The module converts data of bit width of 3×2 symbols inputted by the HARQ combination module into data of system bits width and writes the data into an FIFO buffer. The HARQ output module initiates a writing request to a data bus when there is adequate data in an FIFO buffer, and writes data of one packet every time; and when the FIFO buffer will be fully written, the HARQ combination module is notified to suspend operation for preventing FIFO overflow. 
         [0173]    In step  810 , when data of one code block is fully written, processing of the code block is finished. If the code block is a last code block in a rate dematching task, the task is finished; otherwise, a next code block continues to be processed. 
         [0174]    In conclusion, the rate dematching method of embodiments of the present invention can be summarized as a processing flow shown in  FIG. 19 . 
         [0175]    In step  1901 , new data to be processed are acquired, bit recovery/bit separation are performed on the new data to be processed, and data which have been subjected to bit recovery/bit separation are written into a code block data memory. 
         [0176]    In step  1902 , sub-block deinterleaving processing is applied to data stored in the code block data memory. 
         [0177]    In step  1903 , HARQ combination processing are applied to output data which have been subjected to sub-block deinterleaving processing and acquired history data to be processed, and HARQ combination results are outputted. 
         [0178]    In addition, embodiments of the present invention also provide a receiving-side device for data communication, including the rate dematching apparatus of any one of the above-mentioned embodiments. For a downlink traffic channel, the receiving-side device may be eNodeB; and for a uplink traffic channel, the receiving-side device may be UE. 
         [0179]    Embodiments of the present invention also provide a computer readable storage medium, including a set of computer executable instructions for executing the rate dematching method of any one of the above-mentioned embodiments of the present invention. 
         [0180]    The above only describes preferred embodiments of the present invention and is not intended to limit a protection scope of the present invention.