Background technology
At Long Term Evolution (LTE, Long Term Evolution) defined subscriber equipment (UE in the agreement, User Equipment) size of the pairing HARQ buffer of ability rating is that the size of 3 the UE HARQ buffer that need support is 1237248 memory cell such as: definition ability rating; In order to improve the Turbo decoder capabilities, communication control processor generally adopts log-likelihood ratio (LLR, a Log-Likelihood Ratio) expression bit (bit), like this, can make the turbo decoder approximately improve the decoding performance of 3dB.The LLR bit wide of industry main flow is 8bit or 6bit at present, and corresponding, that stores HARQ buffer into can be 4bit.If each memory cell is stored according to 4bit, the ability rating of UE is 3, and the buffer size that then needs is 4 * 1237248bit, is about 5Mbit, how to manage the HARQ buffer of 5Mbit size, becomes technological difficulties.
At third generation partner program (3GPP, Third Generation Partnership Projects) in 36.212 agreement, stipulated time division duplex (TDD, Time Division Duplexing) the HARQ process number of Zhi Chiing, particularly, dispose difference according to last/descending (UL/DL), the following form of being supported of HARQ process number:
The configuration of TDD UL/DL |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
Maximum HARQ process number |
4 |
7 |
10 |
9 |
12 |
15 |
6 |
In addition, in order to guarantee code check, the 3GPP36.212 agreement has also been stipulated M
Limit=8 restriction, that is: when HARQ process number smaller or equal to 8 the time, can guarantee code check.Motion according to Nokia (Nokia) and two companies of Nokia's Siemens Communications (Nokia Siemens Networks) among 3GPP meeting-3GPP TSG-RAN WorkingGroup 1#53 R1-081072 Kansas City is provided with M
Limit=8 foundation is: find through test, surpass M simultaneously
LimitThe likelihood ratio that individual HARQ process makes a mistake is lower.Simultaneously, the motion of these two companies has also proposed the thinking that following two kinds of HARQ merge:
1, according to K
MIMO* M
DL_HARQThe whole HARQ buffer of individual process uniform distribution, wherein, K
MIMOThe coefficient of expression transmission mode correspondence is if transmission mode is spatial reuse transmission mode, then K
MIMOEqual 2, if transmission mode is other transmission mode except that the spatial reuse transmission mode, then K
MIMOEqual 1; M
DL_HARQJust be meant the maximum HARQ process number in the above table.Behind the whole HARQ buffer of uniform distribution, can support maximum HARQ process number, that is: when HARQ process number be maximum HARQ process number, can guarantee that still each HARQ process all can be assigned to certain HARQ buffer, but, because the unit that adopts during HARQ process storage data is transmission block (TB, Transfer Block), and the size of TB may be greater than the size of the HARQ buffer that distributes to this HARQ process, so, can cause as the TB of this transmission cyclic redundancy check (CRC) (CRC, Cyclic Redundancy Check) after the failure, can only preserve the partial data of this TB, in other words, can abandon the partial data of this TB, after receiving this TB next time, owing to only preserved the partial data of this TB, therefore, the partial data of this TB of the preserving data with this TB that receives next time can only be merged, and the data of the TB of this transmission data with this TB that receives next time can not be completely integrated, therefore, the data that can not effectively utilize this TB after the merging obtain the correct data of this TB, so, can cause receptivity to descend.
2, according to K
MIMO* M
LimitIndividual process is carried out the whole HARQ buffer of uniform distribution, behind the whole HARQ buffer of uniform distribution, though the data of the TB of each HARQ process can both be completely integrated, but, owing to support that maximum process number is 8, when the HARQ process more than 9 need merge, HARQ will take place block, can cause receptivity to descend so, equally.
In sum, the technical scheme that does not also have reasonable distribution and management HARQ buffer at present.
Summary of the invention
In view of this, main purpose of the present invention is to provide method and the device of a kind of HARQ of management buffer, can realize the reasonable distribution of HARQ buffer.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides the method for a kind of HARQ of management buffer, this method comprises:
(CB, Code Bulk) is unit with code block, deposit the data that receive in HARQ buffer and/or from HARQ buffer sense data and/or from HARQ buffer deleted data.
In the such scheme, this method further comprises:
HARQ buffer is set comprises sheet stored district and sheet external memory district, the capacity in described stored district is N CB, and described external memory district supports A HARQ process.
In the such scheme, described is unit with CB, deposits the data that receive in HARQ buffer, comprising:
After receiving the data of CB, whether the data of judging the CB that receives are the new biography data, when being defined as the new biography data, judge whether sheet stored district has the clear area, when defining the clear area, with the storage of the CB of the described reception clear area to sheet stored district, and the CB of data that will store the CB of described reception is designated occupied;
When determining that sheet stored district does not have the clear area, with the storage of the CB of described reception to sheet external memory district.
In the such scheme, the storage of described CB with described reception is to sheet external memory district, for:
According to the process number and the code word of the data correspondence of the CB of described reception, with the storage of the CB of described reception zone to sheet external memory district correspondence.
In the such scheme, this method further comprises:
When the data of determining the CB of described reception are data retransmission, with the storage of the CB of described reception position to the data correspondence of last revision CB.
In the such scheme, described is unit with CB, and deleted data from HARQ buffer comprises:
After the data CRC of the CB in sheet stored district success, remove the occupied sign of described CB.
In the such scheme, this method further comprises:
When the occupancy of determining described stored district during more than or equal to default thresholding, the data that time interval of current time in the described stored district and the time that next time receives surpassed the CB of default thresholding migrate to described external memory district.
In the such scheme, deposit HARQ buffer in and/or from HARQ buffer before the deleted data, this method further comprises in the data that will receive:
The bus of HARQ buffer and receiver is articulated.
The present invention also provides the device of a kind of HARQ of management buffer, and this device comprises: administrative unit and HARQ buffer; Wherein,
Administrative unit, being used for CB is unit, deposit the data that receive in HARQ buffer and/or from HARQ buffer sense data and/or from HARQ buffer deleted data;
HARQ buffer is used to store the data of reception.
In the such scheme, this device further comprises:
The unit is set, is used to be provided with HARQ buffer and comprises sheet stored district and sheet external memory district, the capacity in described stored district is N CB, and described external memory district supports A HARQ process.
In the such scheme, the bus of described HARQ buffer and receiver articulates.
Method and the device of reason HARQ buffer provided by the invention, with CB is unit, deposit the data that receive in HARQ buffer and/or from HARQ buffer sense data and/or from HARQbuffer deleted data, so, can realize the reasonable distribution of HARQ buffer, and then guarantee the receptivity of receiver.
In addition, HARQ buffer is set comprises sheet stored district and sheet external memory district, after the data CRC of the CB in sheet stored district success, remove the occupied sign of described CB, remove the occupied sign of described CB after, described CB can deposit data once more in; And, when the occupancy of determining described stored district during more than or equal to default thresholding, the data that the current time in the described stored district and the time interval that next time receives are surpassed the CB of default thresholding migrate to described external memory district, so, can improve the utilance of HARQ buffer.
In addition, HARQ buffer is articulated on the bus of receiver, other application program can be visited HARQ buffer, so, can further improve the utilance of HARQ buffer; And can make full use of burst (burst) operating characteristic of bus, that is: can from HARQ buffer, read or write the data of a plurality of addresses successively, thereby can improve the efficient of handling.
Embodiment
Basic thought of the present invention is: be unit with CB, deposit the data that receive in HARQ buffer and/or from HARQ buffer sense data and/or from HARQ buffer deleted data.
The present invention is further described in more detail below in conjunction with accompanying drawing.
The present invention manages the method for HARQ buffer, as shown in Figure 1, may further comprise the steps:
Step 101: HARQ buffer is set comprises sheet stored district and sheet external memory district, the capacity in described stored district is N CB, and described external memory district supports A HARQ process, and execution in step 102 afterwards;
Here, described stored district specifically can be random asccess memory (RAM, Random Access Memory); Sheet external memory district specifically can be Double Data Rate synchronous DRAM (DDR-SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory).
When being provided with, the number of the memory cell of the HARQ buffer of LTE agreement regulation is provided with stored in blocks district and sheet external memory district; Wherein, because the cost in sheet stored district is higher, and the power consumption when utilizing sheet external memory district is bigger, therefore, when sheet stored district and sheet external memory district big or small is set, take all factors into consideration cost and power consumption, give an example, the ability rating of LTE agreement regulation UE is 3 o'clock, the memory cell of HARQ buffer is 1237248, takes all factors into consideration cost and power consumption, and the size that sheet stored district can be set is 16CB, that is: the size of 16 CB of size in sheet stored district, the size in sheet external memory district is 28Mbit; The value of A is given an example for the twice of the maximum HARQ process number of LTE agreement regulation, and the maximum HARQ process number of LTE agreement regulation is 15, and then the value of A is 30; Wherein, because transfer of data is 2 code words, each code word has identical maximum HARQ process number, therefore, the twice of the value of A for the maximum HARQ process number of LTE agreement regulation is set; And, be each HARQ course allocation corresponding memory space of each code word.
Step 102: with CB is unit, deposit the data that receive in HARQ buffer and/or from HARQbuffer deleted data and/or from HARQ buffer deleted data.
Here, described data are redundancy versions (RV, Redundancy Version) information.
Described is unit with CB, deposits the data that receive in HARQ buffer, as shown in Figure 2, may further comprise the steps:
Step 102a: after receiving the data of CB, whether the data of the CB that judge to receive are the new biography data, if, execution in step 102b then, otherwise, execution in step 102e;
Here, know reception CB data for the new biography data still be the concrete processing procedure of data retransmission be prior art, repeat no more here.
Step 102b: judge whether sheet stored district has the clear area, if, execution in step 102c then, otherwise, execution in step 102d;
Here, when practical application, can adopt N the CB in the register-stored sheet stored district of N position is occupied or the free time, that is: the storage N CB user mode, particularly, adopt 0 expression idle, adopt 1 expression occupied, can know by the value of checking register N position whether sheet stored district has the clear area, particularly, if the value of N position is 1, show that then sheet stored district does not have the clear area, if the value of N position not all is 1, show that then there is the clear area in sheet stored district.
Step 102c: with the storage of the CB of the described reception clear area to sheet stored district, and the CB of data that will store the CB of described reception is designated occupied;
Here, if when adopting the user mode of N CB in register-stored sheet stored district of N position, the CB of the data of the described CB that will store described reception is designated occupied specific implementation and is: with the bit position of correspondence in the register of N position is 1.
Wherein, because LTE agreement regulation: the data to each CB are all carried out CRC check, therefore, can be unit with CB, deposit the data that receive in HARQ buffer and/or from HARQ buffer sense data and/or from HARQ buffer deleted data.
Step 102d: with the storage of the CB of described reception to sheet external memory district;
Particularly, according to the process number and the code word of the data correspondence of the CB of described reception, with the storage of the CB of described reception zone to sheet external memory district correspondence; Wherein, the data of the CB of described reception comprise corresponding process number and code word.
Here, because the capacity in sheet external memory district is bigger, and receiver generally has DDR-SDRAM, and the capacity in the Capacity Ratio sheet external memory district of DDR-SDRAM is a lot of greatly, therefore, when from sheet external memory district reading of data, only taken from the seldom part of the total time of the DDR-SDRAM reading of data of receiver, that is to say, only taken little by little bandwidth, therefore, little to the production cost influence of receiver.
Step 102e: with the storage of the CB of described reception position to the data correspondence of last revision CB;
Here, after the storage of last revision CB, can store the particular location that the data of described last revision CB are stored, that is: be in sheet stored district or sheet external memory district, in view of the above, can know the particular location that the data of the CB of described reception will be stored; Particularly, the particular location that can store by the data of a CB on the form stores, the value in this form is 0~N, and wherein, 0~N-1 represents to be stored in the numbering of the CB of sheet stored district correspondence, and N represents to be stored in sheet external memory district.
The storage of the CB of described reception behind the position of the data correspondence of last revision CB, is shown and realized merging.
Described is unit with CB, and deleted data from HARQ buffer specifically comprises:
After the data CRC of the CB in sheet stored district success, remove the occupied sign of described CB;
Here, after the occupied sign of described CB is eliminated, show that then described CB can deposit data once more in, so, can improve the utilance in sheet stored district.
After the data CRC of the CB in sheet external memory district success, the data that can delete described CB also can not carried out any action, keep the data of described CB that is:; Here, because the capacity in sheet external memory district is very big, therefore, can keep the data of described CB.
Method of the present invention can further include:
When the occupancy of determining described stored district during more than or equal to default thresholding, the data that time interval of current time in the described stored district and the time that next time receives surpassed the CB of default thresholding migrate to described external memory district;
Wherein, according to the thresholding of occupancy need be set, be 75% or 80% etc. such as thresholding can be set; According to the thresholding that need set interval.
The occupancy of determining described stored district when driver can migrate to described external memory district with the data that the current time in the described stored district and the time interval that receives surpass the CB of default thresholding next time during more than or equal to default thresholding;
Here, described driver is meant the driver of receiver, and described receiver can be UE or base station etc.; It is identical with the specific implementation process that deposits the new biography data in that the data that the current time in the described stored district and the time interval that next time receives are surpassed the CB of default thresholding migrate to the specific implementation process in described external memory district, repeats no more here.
This method can further include:
HARQ buffer is articulated on the bus of receiver, described bus specifically can be: bus on chip (AXI, Advanced eXtensible Interface) etc.; After HARQ buffer being articulated on the bus of receiver, other application program also can be visited HARQ buffer, so, can improve the utilance of HARQ buffer.
When practical application, as shown in Figure 3, HARQ buffer can be articulated on the bus of receiver, wherein, the sheet stored district of HARQ buffer directly and bus articulate, the sheet external memory district of HARQ buffer articulates by DDR controller and bus, the HARQ consolidation procedure of receiver can be transported to the data of HARQ buffer and read first-in first-out (Read FIFO, First Input First Output) in the buffer, reading of data merges from Read FIFO buffer afterwards, and the data after will merging write first-in first-out (Write FIFO, First Input First Output) in the buffer, again the data that write are transported among the HARQ buffer afterwards, so, can utilize the burst operating characteristic of bus fully, that is: can read or write data from a plurality of addresses of HARQ buffer by bus.
For realizing said method, the present invention also provides the device of a kind of HARQ of management buffer, and as shown in Figure 4, this device comprises: administrative unit 41 and HARQ buffer 42; Wherein,
Administrative unit 41, being used for CB is unit, deposit the data that receive in HARQ buffer 22 and/or from HARQ buffer sense data and/or from HARQ buffer 42 deleted data;
HARQ buffer 42 is used to store the data of reception.
Wherein, this device can further include unit 43 is set, and is used to be provided with HARQ buffer42 and comprises sheet stored district and sheet external memory district, and the capacity in described stored district is N CB, and described external memory district supports A HARQ process.
Here, when practical application, described HARQ buffer 22 can be articulated on the bus of receiver; Described bus specifically can be AXI etc.
Wherein, the concrete processing procedure of the administrative unit in the described device of the present invention describes in detail hereinbefore, repeats no more.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.