Disclosure of Invention
The embodiment of the invention provides a hybrid automatic repeat request (HARQ) merging and decoding method, device and system, which can ensure the performance of a decoder under a multi-carrier system environment.
The embodiment of the invention provides the following technical scheme:
a HARQ combining and decoding method comprises the following steps:
sampling data subjected to first quantization bit truncation and HARQ merging processing, calculating the statistical characteristics of the sampled data, and determining a scaling factor according to the statistical characteristics;
and carrying out second quantization bit truncation processing on the data subjected to the HARQ merging processing according to the scaling factor, and outputting a processing result for subsequent decoding processing.
Preferably, the step of sampling the data after the first quantization truncation and HARQ combining process and calculating the statistical property of the sampled data, and determining the scaling factor according to the statistical property includes:
calculating the statistical characteristics of the sampled data;
estimating the probability distribution of the sampled data according to the statistical characteristics;
and searching a preset simulation table according to a preset criterion to obtain a scaling factor.
Preferably, the statistical characteristic comprises a variance or a probability density distribution.
Preferably, the number of bits truncated in the first quantization truncation process is greater than the number of bits truncated in the second quantization truncation process.
Preferably, the step of outputting the processing result for subsequent decoding processing includes:
if the decoding is successful, discarding the bit data before the second quantization truncation;
if the decoding fails, reserving the bit data before the second quantization truncation for the data combined with the retransmission data during the HARQ combining processing again;
and if the retransmission times exceed the specified times, discarding the bit data before the second quantization truncation no matter whether the decoding result is successful or failed.
An HARQ combining decoding apparatus, comprising:
the first processing module is used for sampling the data subjected to the first quantization bit-cutting and HARQ merging processing, calculating the statistical property of the sampled data and determining a scaling factor according to the statistical property;
and the second processing module is used for carrying out second quantization bit truncation processing on the data subjected to the HARQ merging processing according to the scaling factor and outputting a processing result for subsequent decoding processing.
Preferably, the first processing module includes:
the sampling unit is used for sampling the data after the first quantization truncation and HARQ merging processing;
a calculation unit for calculating statistical characteristics of the sampled data;
an estimating unit for estimating a probability distribution of the sample data based on the statistical characteristic;
and the obtaining unit is used for searching a preset simulation table according to a preset criterion to obtain the scaling factor.
Preferably, the HARQ combining and decoding apparatus further includes:
a third processing module, configured to discard the bit data before the second quantization truncation if the decoding is successful, and retain the bit data before the second quantization truncation if the decoding is failed, where the retained bit data is used for data merged with retransmission data when HARQ merging processing is performed again; and determining that the retransmission times exceed the specified times, and discarding the bit data before the second quantization truncation no matter whether the decoding result is successful or failed.
An HARQ combining and decoding system includes the HARQ combining and decoding apparatus.
The HARQ merging and decoding method, device and system provided by the embodiment of the invention can ensure the performance of a decoder under the environment of a multi-carrier system. The scaling factor is dynamically selected for different input data to minimize the loss of soft bit data during quantization of the demodulated data. Meanwhile, the technical scheme provided by the invention can adapt to all reference channels, and has less performance loss compared with a floating point decoder.
Detailed Description
The embodiment of the invention provides a hybrid automatic repeat request (HARQ) merging and decoding method, device and system, which can ensure the performance of a decoder under a multi-carrier system environment. In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and examples.
Fig. 2 is a flowchart illustrating an HARQ combining and decoding method according to an embodiment of the present invention. The method comprises the following steps:
step 201, sampling data after first quantization truncation and HARQ merging processing, calculating statistical characteristics of the sampled data, and determining a scaling factor according to the statistical characteristics; it should be noted that the scaling factor is dynamic and variable.
Step 202, performing a second quantization truncation process on the data after the HARQ combining process according to the scaling factor, and outputting a processing result for a subsequent decoding process.
Fig. 3 is a detailed flowchart of a HARQ combining and decoding method according to an embodiment of the present invention.
The method specifically comprises the following steps:
step 301, performing first quantization truncation processing on the demodulated data;
specifically, the demodulated data is subjected to a first quantization truncation according to a fixed scaling factor, for example, M bits of quantization information are retained in the first quantization truncation. It should be noted that, the specific implementation of this step can refer to the prior art, that is, the same scaling factor is used under different data inputs and channels, and the specific process is not described herein too much.
Step 302, performing HARQ combining processing on the data subjected to the first quantization truncation processing;
specifically, the data subjected to the first quantization truncation process is merged with the data in the buffer, and the merged data is output and stored in the buffer for the next merging. It should be noted here that if the demodulated data is sent for the first time, the combining process is not needed, that is, there is no data in the buffer at this time.
Step 303, sampling the data after the first quantization truncation and HARQ combining processing;
step 304, calculating the statistical characteristics of the sampled data;
specifically, the statistical characteristic of the calculated sample data may be a variance, a probability density distribution (PDF), or a Cumulative Distribution (CDF) of the calculated sample data.
Step 305, estimating the probability distribution of the sampled data according to the statistical characteristics;
step 306, searching a preset simulation table according to a preset criterion to obtain a scaling factor;
specifically, the preset criterion may be set according to actual needs, for example, when 25% of the merged data is placed in the saturation region, the performance is better.
The preset simulation table can be obtained by performing simulation tests on the performance of the Turbo fixed-point decoder aiming at different data distributions, and comprises a limited number of index values and scaling factors corresponding to the index values. The determination process of the index value is determined by the data of the simulation, and the number of the index values can be increased according to different requirements so as to improve the accuracy of the selection of the scaling factor; or the number of index values is reduced to reduce the overhead of the memory space caused by the table.
The process of finding the table to obtain the scaling factor is to refer to the statistical characteristic obtained by calculating the sample data, find the index value closest to the statistical characteristic from the table, and select the corresponding scaling factor, for example, the scaling factor is 1/4.
307, performing second quantization truncation processing on the data subjected to the HARQ merging processing according to the obtained scaling factor;
specifically, N bits of quantization information are retained in the second quantization truncation process, where the N bits of quantization information truncated this time must be smaller than M bits of quantization information retained in the first quantization truncation process. This is limited because after the first quantization, the data may be merged for multiple retransmissions, so the number of bits N reserved for the first input quantization must be less than M, otherwise the decoding performance may be degraded due to the loss of information during merging.
And step 308, outputting the processing result for subsequent decoding processing.
Specifically, the decoded CRC result is fed back to the buffer, and if the decoding is successful, the bit data before the second quantization truncation is discarded, that is, the space occupied by the merged data in the buffer is released; if the decoding fails, the bit data before the second quantization truncation (i.e., the merged data) is temporarily reserved in the buffer for merging with the retransmission data during the HARQ merging process again. And if the retransmission times exceed the specified times, discarding the bit data before the second quantization truncation no matter whether the decoding result is successful or failed.
In order to better understand the technical scheme of the invention, the following is further explained by a specific example.
Fig. 4 is a block diagram illustrating an implementation example of the present invention. The specific process is as follows:
the demodulated input soft bit data is denoted as A0,A1,...,AkFor each AiBy quantisation truncation, retaining 6-bit data, e.g. AiAnd after the expansion is carried out by a plurality of times, rounding is carried out, the value which is larger than 31 is saturated into 31, and the value which is smaller than-32 is saturated into-32. The soft bit data after the first quantization truncation is marked as a1,a2,...akAnd outputting the data to the HARQ combining module.
Combining the soft bit data after the first quantization truncation with the data in the buffer memory in the HARQ combining module, and setting the data in the buffer memory as b1,b2...bkA is to1,a2,...akCombined therewith to obtain c1,c2...ckFor example, a can be directly substitutediAnd biAdd, let ci=ai+biK, and c is 1, 2,. k1,c2...ckStored in the buffer and output to the following modules. It should be noted that if the demodulated input soft bit data A0,A1,...,AkIs the first transmission, no merging is required here. For the same batch of transmitted data, if the decoding result of the last decoding module is wrong, the soft bit data before the decoding is kept in the buffer and is not discarded, and then the batch of transmitted data is retransmitted. Retransmitting receivedAnd the data is combined with the soft bit data failed in the previous decoding in the HARQ combining module and then decoding is tried, and the number of times of the retransmission process is specified.
For data c after HARQ combination
1,c
2...c
kSampling, extracting p sampled data
Calculating its variance σ and other statistical properties, and then estimating c according to σ or other statistical properties
1,c
2...c
kAccording to a predetermined criterion, for example, when 25% of the merged data is placed in the saturation region, the probability distribution of (c) is better, and the pair c is searched by referring to a table obtained by simulation data and using sigma as an index
1,c
2...c
kThe second quantization truncation is performed using a scaling factor, such as 1/4.
Scaling factor 1/4 pair c from the lookup table1,c2...ckIf processed, all c are retainediI.e. all c1,c2...ckRight shift by two bits to obtain d1,d2...dkI.e., all data is multiplied by 1/4. Will d1,d2...dkInput to a following decoding module to attempt decoding. If the decoding of the decoding module is successful, the transmission block is received completely, and c is released1,c2...ckThe space occupied in the cache; if the decoding of the decoding module fails, c is reserved in the cache1,c2...ckC reserved in the buffer memory the next time the transport block is processed1,c2...ckI.e. the cache data b used in the previous step to merge with the new data1,b2...bk. If the retransmission times exceed the specified times, the sampled data c will be discarded in the buffer no matter whether the decoding result of the decoding module is correct or not1,c2...ck. It should be noted that the decoding module usually employs a Turbo decoder.
Fig. 5 is a schematic structural diagram of an HARQ merging decoding apparatus according to an embodiment of the present invention. The device includes: a first processing module 510, a second processing module 520; wherein,
the first processing module 510 is configured to sample data after the first quantization truncation and HARQ combining processing, calculate statistical characteristics of the sampled data, and determine a scaling factor according to the statistical characteristics;
the second processing module 520 is configured to perform second quantization truncation processing on the data after the HARQ combining processing according to the scaling factor, and output a processing result for subsequent decoding processing.
Specifically, as shown in fig. 6, the first processing module 510 includes: a sampling unit 610, a calculating unit 620, an estimating unit 630 and an acquiring unit 640; wherein,
the sampling unit 610 samples the data after the first quantization truncation and HARQ combining process; the calculating unit 620 calculates statistical characteristics of the sample data; specifically, the statistical characteristic of the calculated sample data may be a variance, a probability density distribution (PDF), or a Cumulative Distribution (CDF) of the calculated sample data. The estimating unit 630 estimates a probability distribution of the sample data according to the statistical characteristics; the obtaining unit 640 searches a preset simulation table according to a preset criterion to obtain a scaling factor.
In addition, the HARQ combining decoding may further include: a third processing module 530, configured to discard the bit data before the second quantization truncation if the decoding is successful, and reserve the bit data before the second quantization truncation if the decoding is failed, where the bit data is used for data merged with retransmission data when HARQ merging processing is performed again; and determining that the retransmission times exceed the specified times, and discarding the bit data before the second quantization truncation no matter whether the decoding result is successful or failed.
It should be noted that the number of bits intercepted in the first quantization truncation process is greater than the number of bits intercepted in the second quantization truncation process.
An embodiment of the present invention further provides a HARQ combining and decoding system, including the HARQ combining and decoding apparatus described in the foregoing embodiment, for details, see the foregoing embodiment, and no further description is given here.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In summary, the present disclosure provides a HARQ combining decoding method, device and system, which can ensure the performance of a decoder in a multi-carrier system environment. The scaling factor is dynamically selected for different input data to minimize the loss of soft bit data during quantization of the demodulated data. Meanwhile, the technical scheme provided by the invention can adapt to all reference channels, and has less performance loss compared with a floating point decoder.
The HARQ merging decoding method, apparatus and system provided by the present invention are introduced in detail above, and a specific example is applied in the text to explain the principle and implementation of the present invention, and the description of the above embodiment is only used to help understanding the scheme of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.