Embodiment
The embodiment of the invention provides a kind of data processing method and device; Adjust the PDR of the unit in the RAKE receiver in order to realization in real time according to bus bandwidth, thereby realize the Dynamic matching of the transmission rate of each unit in bus actual bandwidth and the RAKE receiver.
The embodiment of the invention relates to 3-G (Generation Three mobile communication system), specifically, relates to the hardware resource management scheme of the multi-path demodulation and the MRC of Adaptable System bus bandwidth in a kind of WCDMA band processing system.
Referring to Fig. 2; The 2nd columns is according to providing the interface transmission symbol speed between multi-path demodulation unit and the MRC unit in the table, and the relation of spreading factor SF, multipath number N, clock frequency F1 (being the minimum interval of transmission symbol between multi-path demodulation unit and the MRC unit).From table, can find out; If the multipath number that band processing system is supported is many more, the interface transmission symbol rate variations scope between multi-path demodulation unit and the MRC unit is big more, and hardware must can be handled large-scale rate variation; Tackle paroxysmal two-forty, guarantee the stability of system.
In the table shown in Figure 2, the 3rd columns is according to having provided the interface transmission symbol speed between the multipath merge cells and bus in the MRC unit, with the relation of SF, N, F1.Equally, from table, can find out that also there is paroxysmal two-forty problem in the interface transmission symbol speed between multipath merge cells and the bus.Suppose bus working clock frequency F2, hardware is when design, and requiring bus coideal symbol transmission speed is that the bus optimum wideband is 32F2.
Interface transmission rate in the comparison diagram 1 between each unit can be found out, when clock F1=F2, can meet the demands in the ideal case, and hardware can stream treatment.But; In practical application, because factors such as the arbitration of bus multi-source, external cache unit readwrite bandwidth can influence the actual bandwidth of bus, actual bandwidth relative ideal bandwidth can decay to some extent; Piling up can appear in the multipath symbol that is transferred to the MRC unit so from the multi-path demodulation unit; Suppose that the bus bandwidth decay factor is a, in the table shown in Figure 2, the 4th columns is according to the relation that provides multipath symbol accumulation rate and SF, N, a, F1, F2.
Real system requires very high to the data integrity and the real-time of multi-path demodulation, multipath assembling section; And the estimation difficulty of bus bandwidth decay factor a is big, and this has brought challenge for the estimation multipath data volume that symbol is piled up, and the size of piling up the symbol data amount directly has influence on the spatial cache that the MRC unit is opened up; If it is too little that spatial cache is provided with; Then cause symbol data to be lost easily, being provided with too greatly then wastes hardware resource, increases the area of circuit.If the mode through improving bus working clock frequency F2 reduces accumulation rate, then can in design, introduce different clock-domains, in design, need to increase the processing of cross clock domain, increased the complexity of design.
In addition, be through the mode of length-specific memory space in the circulation read-write external cache unit between MRC unit and the symbol level processing unit, realize the transmission of user data.Under the local uneven situation of bus actual bandwidth, if the MRC processing speed is higher than the processing speed of symbol level processing unit, the problem of the data that the data cover symbol level processing unit that the mode of this circulation read-write can cause the MRC unit to be write does not read.
Therefore, for the Dynamic matching of the transmission rate that realizes bus actual bandwidth and each unit of RAKE receiver system.The technical scheme that the embodiment of the invention provides; Real-time monitoring bus bandwidth and according to monitoring result control multi-path demodulation and MRC cell processing speed; Reach the Dynamic matching of keeping transmission rate between each unit interface of RAKE receiver system, guarantee that upstream data service speed is not restricted by hardware resource.
Referring to Fig. 3, a kind of data processing method that the embodiment of the invention provides comprises step:
S101, confirm the multi-path demodulation task groups, and obtain antenna data according to the multi-path demodulation task groups.
S102, satisfy the multi-path demodulation demand when the antenna data amount of obtaining, and, when the multipath merged data amount of current cache surpasses presetting first threshold, antenna data is carried out multi-path demodulation.
Preferably, saidly obtain antenna data, comprising according to the multi-path demodulation task groups:
According to the idle information of antenna data buffer unit, be unit with the multi-path demodulation task groups, obtain antenna data, and be cached in the antenna data buffer unit.
Preferably, said antenna data is carried out multi-path demodulation, comprising:
Confirm the minimum demodulating task of each multi-path demodulation task groups;
With the minimum demodulating task is unit, and antenna data is carried out multi-path demodulation.
Preferably, this method also comprises:
The multipath symbol that multi-path demodulation is obtained carries out the multipath merging, obtains and the buffer memory multipath merged data;
When the multipath merged data amount of buffer memory surpasses presetting first threshold, stop antenna data being carried out multi-path demodulation.
Preferably, this method also comprises:
When the multipath merged data of all RAKE of the same Transmission Time Interval TTI that obtains same user, many RAKE data that buffer memory is corresponding with this user merge task;
When maximum rate merges the externally write address in the buffer unit of MRC unit, with the symbol level processing unit difference of reading the address in the buffer unit externally, during greater than preset second threshold value, many RAKE data of carrying out buffer memory merge task.
Preferably, this method also comprises:
When many RAKE of buffer memory data merging task surpasses the 3rd preset threshold value, stop antenna data being carried out multi-path demodulation.
That is to say; Preferably, step S102 is: when the antenna data amount of obtaining satisfies the multi-path demodulation demand, and; The multipath merged data amount of current cache does not surpass presetting first threshold; And, when many RAKE merging tasks of current cache surpass the 3rd preset threshold value, antenna data is carried out multi-path demodulation.
The data processing equipment that the embodiment of the invention provides can comprise multi-path demodulation dispatch unit and MRC dynamic management unit.
In the multi-path demodulation dispatch unit, the multi-path demodulation task of software package scheduling channel, hardware is unit application antenna data with the group, and in group, task is sub-divided into the minimum demodulating task.Antenna data application and task are segmented, and directly influence the overall performance of system.The antenna data application only receives the influence of spatial cache; Its application separates with bus monitoring control; In the time of can guaranteeing to allow multi-path demodulation in the MRC unit; There have been enough antenna datas to use, reduced bus monitoring control, and be the utilance that unit application antenna data can improve antenna data with the group to the multi-path demodulation velocity effect.Task is segmented, and can reduce the complexity of bus monitoring control flow, and the granularity of minimum demodulating task can require according to different systematic functions to be provided with, for example a channel time slot.
In MRC dynamic management unit, adopt multipath symbol memory space buffer memory threshold value and the mode of safeguarding external cache unit read/write address, monitoring bus bandwidth are set.According to the influence degree of different units interface transmission rate, bus monitoring control is divided into Two monitor levels to systematic function.First order monitoring is monitored short time internal bus bandwidth to the transmission path of multi-path demodulation, multipath merging, bus, external cache unit; Second level monitoring is to the transmission path of many RAKE merging, symbol level processing, bus, external cache unit, with the bus bandwidth in the monitoring long period.
MRC dynamic management unit is according to monitoring result, and judging whether needs to produce the flow control order that is used to stop multi-path demodulation, informs that the multi-path demodulation dispatch unit stops multi-path demodulation.When first order monitoring display short time internal bus bandwidth is low, directly produce flow control order and control multi-path demodulation, reduce the multi-path demodulation processing speed; When second level monitoring display long period internal bus bandwidth is low; The many RAKE of buffer memory of elder generation merge task; Reduce MRC cell processing speed, directly do not control multi-path demodulation, have only when many RAKE of buffer memory merging task surpasses threshold value, just to produce the flow control order that is used to stop multi-path demodulation.
The multi-path demodulation dispatch unit according to the flow control order that receives, is that unit stops perhaps starting multi-path demodulation with the minimum demodulating task.
Particularly; Referring to Fig. 4, a kind of data processing equipment that the embodiment of the invention provides comprises: divide task segmentation unit 103 in group task buffer unit 101, antenna data application unit 102, the group, antenna data buffer unit 104, multi-path demodulation unit 105, multipath merge cells 106, merging symbol buffer unit 107, EBI and monitoring means 108, many RAKE to merge task buffer unit 109, many RAKE merge cells 110.
Wherein, can be with dividing task segmentation unit 103 in group task buffer unit 101, antenna data application unit 102, the group, antenna data buffer unit 104 and multi-path demodulation unit 105 composition multi-path demodulation dispatch unit; Multipath merge cells 106, merging symbol buffer unit 107, EBI and monitoring means 108, many RAKE are merged task buffer unit 109 and many RAKE merge cells 110 composition MRC dynamic management unit.
Divide group task buffer unit 101, be used for confirming the multi-path demodulation task groups.
Antenna data application unit 102 is used for obtaining antenna data according to the multi-path demodulation task groups.
Task segmentation unit 103 is used to judge whether the current antenna data amount of obtaining satisfies the multi-path demodulation demand in the group, and whether the multipath merged data amount of current cache surpasses presetting first threshold.
Antenna data buffer unit 104 is used for the antenna data that buffer memory antenna data application unit 102 obtains.
Said antenna data application unit 102 according to the idle information of antenna data buffer unit 104, is a unit with the multi-path demodulation task groups, obtains antenna data, and is cached in the antenna data buffer unit 104.
Multi-path demodulation unit 105 is used for satisfying the multi-path demodulation demand when the antenna data amount of obtaining, and, when the multipath merged data amount of current cache does not surpass presetting first threshold, antenna data is carried out multi-path demodulation.
Preferably, said group of interior task segmented unit 103, is further used for confirming the minimum demodulating task of each multi-path demodulation task groups.
Said multi-path demodulation unit 105 is a unit with the minimum demodulating task, and antenna data is carried out multi-path demodulation.
Multipath merge cells 106, the multipath symbol that is used for that multi-path demodulation is obtained carry out multipath and merge.
Merge symbol buffer unit 107, be used for the multipath merged data that buffer memory multipath merge cells 106 obtains, and, when the multipath merged data amount of buffer memory surpasses presetting first threshold, generate the control information that stops antenna data being carried out multi-path demodulation.
EBI and monitoring means 108 are used for merging the control information that stops antenna data being carried out multi-path demodulation that symbol buffer unit 107 generates, and send to said group of interior task segmentation unit 103.
Many RAKE merge task buffer units 109, when being used for the multipath merged data as all RAKE of the same Transmission Time Interval TTI that obtains same user, and many RAKE data merging task that buffer memory is corresponding with this user.
Many RAKE merge cells 110; Be used for merging the externally write address of buffer unit of MRC unit when maximum rate; With the symbol level processing unit difference of reading the address in the buffer unit externally, during greater than preset second threshold value, many RAKE data of carrying out buffer memory merge task.Thereby the data of avoiding the MRC unit to write, the problem of the data that cover symbol level processing unit does not read.
Wherein, described external cache unit, its functional equivalent are used for the single RAKE multipath of buffer memory and merge symbol data, the many RAKE merging of same user symbol data in the external cache unit shown in Fig. 1.
The multipath union operation of single RAKE, the many RAKE merging of same user symbol manipulation are mainly accomplished in the MRC unit shown in Fig. 1 in described MRC unit, its functional equivalent.
Described symbol level processing unit, its functional equivalent are in the symbol level processing unit shown in Fig. 1, and main the completion separated operations such as rate-matched, turbo decoding.
Preferably, said many RAKE merge task buffer unit 109, are further used for when many RAKE of buffer memory data merging task surpasses the 3rd preset threshold value, generating the control information that stops antenna data being carried out multi-path demodulation.
Said EBI and monitoring means 108 are further used for said many RAKE are merged the control information that stops antenna data being carried out multi-path demodulation that task buffer unit 109 generates, and send to said group of interior task segmentation unit 103.
Provide a concrete embodiment below.
Referring to Fig. 5; Divide the group task buffer unit to receive branch group task and buffer memory that upper application software issues; Comprise M bar channel in one group task, every channel needs the multipath symbol of a demodulation K time slot, and upper application software is when issuing the branch group task; Need not go to monitor the situation of hardware resource and bus bandwidth, the flow control of hardware is sightless to software.
Divide the group task buffer unit when hardware is idle, the software arrangements task is handed down to antenna data application unit and the interior task segmentation of group unit.
Antenna data application unit; According to the idle information of the storage of antenna buffer unit feedback; With the task groups is unit application antenna data, and the memory space of antenna data adopts the mode of recycle between the different task group, promptly when the current task group is accomplished the minimum demodulating task of M bar channel; The memory space that discharges length-specific guarantees the continuity of demodulation between the different task group to next task group application antenna data.
Task segmentation unit in the group segments the task of software arrangements and reorder, and task subdivided into the minimum demodulating task: the k of each a channel time slot.Then, reset task with the mode of channel polling, promptly first minimum demodulating task of article one channel ..., first minimum demodulating task of M bar channel; Article one second of channel minimum demodulating task ..., second minimum demodulating task of M bar channel ..., by that analogy.Task is segmented and is reordered, and is the successful committed step of flow control.
The antenna data buffer unit is responsible for the buffer memory antenna data; And safeguard the operating position of memory space; The antenna data buffer memory is fed back to task segmentation unit in the group; When the antenna data enough were used for multi-path demodulation, task segmentation unit judged whether that according to the flow control information of MRC dynamic management unit feedback beginning is that unit carries out multi-path demodulation with the minimum demodulating task in the group.Therefore, merging the symbol buffer unit, to need the maximum amount of data of buffer memory can be 1 times, 1.5 times or 2 times of k the time slot data volume of spreading factor when being 2*2.
Wherein, said antenna data enough is used for multi-path demodulation, can be that the antenna data length that minimum demodulating required by task of demodulation is wanted is k+d time slot when the maximum delay skew is for d time slot between the user of task in the group.The value of said d and k can be provided with according to actual needs, for example: the span of d can be (0,1], the span of k can be (0,15].
In MRC dynamic management unit; The multipath merge cells receives the multipath symbol from the output of multi-path demodulation dispatch unit; Accomplishing channel compensation and multipath merges; Merge the symbol buffer unit and be responsible for the buffer memory multipath merged data, and initiate write data requests to outside buffer unit, just corresponding data is sent when it writes request when the external cache cell response through bus.
Memory space to the buffer memory multipath merged data is provided with rational threshold value; Promptly merge presetting first threshold in the symbol buffer unit; For example, suppose that storage size is L, then first threshold is preset as 1.5 times of k time slot data volume that L deducts spreading factor 2*2.When buffer data size surpasses first threshold, then feed back flow control information and give EBI and monitoring means.When all RAKE data of the intact user's of hardware acquisition a TTI; RAKE merging task is cached to many RAKE merges the task buffer unit; And read address (promptly externally the data address during read data in the buffer unit) according to the symbol level of symbol level processing unit feedback; Judge whether that allowing to carry out many RAKE merges task; The difference of reading the address when write address of MRC unit (promptly externally the data address during write data in the buffer unit) and symbol level is during less than preset second threshold value; Do not allow to carry out many RAKE and merge tasks, wherein, said second threshold value is predeterminable to be 2*2+2*4 and the unique user symbol data amount that is modulated to the 16QAM mode 1 times, 1.5 times or 2 times for spreading factor.Merge tasks if allow to carry out many RAKE, then from the external cache unit, read the symbol of corresponding RAKE through bus, accomplish many RAKE and merge, and amalgamation result is write in the external cache unit by many RAKE merge cells.When many RAKE of buffer memory merging task surpasses the 3rd preset threshold value; Many RAKE merge buffer unit feedback flow control information and give EBI and monitoring means; Wherein, said the 3rd threshold value can be supported number of users setting according to system, the system that for example is set to support number of users 80% (for example; System supports that number of users is at 100 o'clock, and the 3rd threshold value is 80).
The operation that EBI and monitoring means are carried out comprises: the read-write operation of bus; Realize that each unit is to the read and write access of outside buffer unit in the embodiment of the invention device; Receive the flow control information that merges symbol buffer unit and many RAKE merging task buffer unit, and feed back to the multi-path demodulation dispatch unit, reach the flow control purpose, the speed of each interface of system realizes Dynamic matching.
In sum; The technical scheme that the embodiment of the invention provides; Can be through real-time monitoring bus bandwidth, dynamic management multi-path demodulation and MRC resource, the speed that reaches each interface of system realizes Dynamic matching; The size of the memory (RAM) of buffer memory multipath symbol data be can reduce effectively, circuit area and hardware resource significantly reduced; Can effectively handle local sudden heavy traffic condition, reduce data and cover risk, improve the stability of system; Make full use of the bus width resource.Simultaneously, allow to adopt the clock of same frequency between each unit and the bus, avoid occurring different clock zones, hardware just need not increase the processing of cross clock domain like this, reduces the complexity of design.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device; Make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computer or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.