Summary of the invention
Technical problem to be solved by this invention is, how to make the hardware logic of compensate of frequency deviation scheme consume less and realizes simply, therefore, a kind of multi-user's frequency bias compensation method and device is provided.
In order to address the above problem, the embodiment of the invention provides a kind of multi-user's compensate of frequency deviation device, comprising:
Buffer unit is used for the entry-into-force time point of buffer memory frequency deviation parameter and frequency deviation parameter, and said frequency deviation parameter comprises the frequency deviation phase place initial value of configuration and the step value that the frequency deviation phase place need change;
Compensate of frequency deviation phase value computing unit according to the entry-into-force time point of said frequency deviation parameter and said frequency deviation parameter, calculates the current frequency deviation phase value that should use;
Compensate of frequency deviation value lookup unit, according to the current frequency deviation phase value that should use that calculates, finding current multi-path demodulation needs the compensating for frequency offset value constantly;
Multipath compensate of frequency deviation module according to the current multi-path demodulation moment needs compensating for frequency offset value of finding, is carried out compensate of frequency deviation to the data of multi-path demodulation.
Preferably, in the said apparatus, in the said buffer unit, according to the entry-into-force time point of the frequency deviation parameter and the frequency deviation parameter of addressing buffer memory between user number and parameter region to search.
Wherein, the entry-into-force time of frequency deviation parameter point refers to come into effect in this user's time slot head frequency deviation parameter in the said buffer unit.
Preferably, in the said apparatus, said multipath compensate of frequency deviation module is carried out compensate of frequency deviation to the data of multi-path demodulation, and plurality of antennas data and plural offset is carried out complex multiplication, the plurality of antennas data after being compensated according to the compensate of frequency deviation value of finding.
The invention also discloses a kind of multi-user's frequency bias compensation method, comprising:
Entry-into-force time point according to the frequency deviation parameter and the frequency deviation parameter of institute's buffer memory; Calculate the current frequency deviation phase value that should use, according to the current frequency deviation phase value that should use that calculates, finding current multi-path demodulation needs the compensating for frequency offset value constantly again; According to the current multi-path demodulation moment needs compensating for frequency offset value of being found; Data to multi-path demodulation are carried out compensate of frequency deviation, and wherein, said frequency deviation parameter comprises the frequency deviation phase place initial value of configuration and the step value that the frequency deviation phase place need change.
Preferably, in the said method, according to the entry-into-force time point of the frequency deviation parameter and the frequency deviation parameter of addressing buffer memory between user number and parameter region to search.
Wherein, the entry-into-force time of frequency deviation parameter puts and refers to come into effect in this user's time slot head frequency deviation parameter.
Preferably, in the said method, according to the compensate of frequency deviation value of being found, the data of multi-path demodulation are carried out compensate of frequency deviation, and plurality of antennas data and plural offset are carried out complex multiplication, the plurality of antennas data after being compensated.
Adopt the embodiment of the invention, can carry out compensate of frequency deviation to the dedicated channel demodulation flexibly and effectively.And the mode that offset initial value that adopts in the embodiment of the invention and offset can adopt software to join so relatively flexibly, can adapt to the variation of WCDMA application scenarios, can adjust flexibly through software, need not design hardware again.In addition; Embodiments of the invention do not adopt the phase-accumulated value of storage compensate of frequency deviation; Write down frequency deviation parameter update entry-into-force time point mode and adopt; Like this can be after multi-path location squint, the compensate of frequency deviation value of calculating can be adjusted to the tram automatically, need not to reconfigure the compensate of frequency deviation parameter.The embodiment of the invention can also make the multipath of a user on a link can both shared one group of parameter, to save memory space.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment technical scheme of the present invention is explained further details.Need to prove that under the situation of not conflicting, embodiment among the application and the characteristic among the embodiment be combination in any each other.
Embodiment 1
Applicant of the present invention finds in the WCDMA system side, because receiver will be handled a plurality of users' information, and interference, decline that each user's signal receives are inequality, and residing time of reception point is also inequality, so the compensate of frequency deviation value that needs is also inequality; And each user of receiving of receiver maybe an also more than multipath, and every multi-path location is also incomplete same, and the compensate of frequency deviation value that needs is also inequality.If a user is in a plurality of sub-districts, the compensate of frequency deviation value that needs in each sub-district is also inequality.Therefore, applicant of the present invention provides a kind of multi-user's compensate of frequency deviation device based on the flowing water design in the present embodiment, and this apparatus structure is as shown in Figure 1, comprising:
Buffer unit, buffer memory the entry-into-force time point of frequency deviation parameter and frequency deviation parameter;
In the present embodiment, buffer unit can be divided into two parts, and a part is used for buffer memory frequency deviation parameter, and the entry-into-force time point of another part buffer memory frequency deviation parameter is as shown in Figure 1.
Wherein, the frequency deviation parameter of buffer memory comprises at least in the buffer unit, the step value that the frequency deviation phase place initial value of configuration and frequency deviation phase place need change;
Frequency deviation phase place initial value can be a configured in advance, also can be software arrangements, and the frequency deviation phase place initial value of configuration is generally a span.In order to reach the effect of flexible processing, adopt software arrangements in the preferred version.
In the present embodiment, in the buffer unit memory space of the frequency deviation parameter of institute's buffer memory according to coming addressing between user number and parameter region.Frequency deviation supplemental characteristic storage organization can be as shown in Figure 2.Wherein N represents in the practical application number that needs user's number of supporting, M to represent the sublink that each user need support.M and N can get any positive integer theoretically.In the application of reality, can confirm suitable M and N value according to the actual requirements.
The entry-into-force time of the frequency deviation parameter of institute's buffer memory point is just each in the buffer unit upgrades which processing cycle that occurs in.Its memory space can be according to coming addressing between user number and parameter region.The storage organization of the entry-into-force time of frequency deviation parameter point can be like Fig. 3 in the present embodiment.
Compensate of frequency deviation phase value computing unit according to the entry-into-force time point of frequency deviation parameter in the buffer unit and frequency deviation parameter, calculates the current frequency deviation phase value that should use;
Compensate of frequency deviation value lookup unit, according to the current frequency deviation phase value that should use that calculates, finding current multi-path demodulation needs the compensating for frequency offset value constantly;
Wherein, the hardware implementation mode of compensate of frequency deviation value lookup unit can be as shown in Figure 4.
Multipath compensate of frequency deviation module according to the current multi-path demodulation moment needs compensating for frequency offset value of finding, is carried out compensate of frequency deviation to the data of multi-path demodulation.
In the present embodiment, multipath compensate of frequency deviation module then according to the compensate of frequency deviation value of finding, is carried out compensate of frequency deviation to the data of multi-path demodulation.At last plurality of antennas data (Q road antenna data and I road antenna data) and plural offset (SIN value of finding and COS value) are carried out complex multiplication, the plurality of antennas data after promptly can compensating by the time, its hardware configuration can be as shown in Figure 5.Because whole process all is the flowing water design, can improve multiplexing efficient.
Embodiment 2
Multi-user's compensate of frequency deviation device that the present embodiment introduction proposes based on embodiment 1 and realize the method for multi-user's compensate of frequency deviation.This method comprises following operation:
Entry-into-force time point according to the frequency deviation parameter and the frequency deviation parameter of institute's buffer memory; Calculate the current frequency deviation phase value that should use, according to the current frequency deviation phase value that should use that calculates, finding current multi-path demodulation needs the compensating for frequency offset value constantly again; According to the current multi-path demodulation moment needs compensating for frequency offset value of being found; Data to multi-path demodulation are carried out compensate of frequency deviation, and wherein, the frequency deviation parameter comprises the frequency deviation phase place initial value of configuration and the step value that the frequency deviation phase place need change.
Particularly, handle 32 chip data with an IP, per 64 chips of compensate of frequency deviation phase value change a step value, and it is that example is explained that 2 IP are divided into 1024 equal portions.Such time slot just has 80 IP, promptly needs just can handle for 80 times the data of a time slot of a user, and per two IP need compensate as new phase place the initial phase step value that adds up to multipath.
And compensate of frequency deviation is to compensate by link, and a link can shared one group of compensating parameter.Because a user possibly be in a plurality of links simultaneously, so will be to the compensate of frequency deviation parameter different to each different link configuration.And possibly have a more than multipath in each link, and multipath between possibly have skew, so the update time of every multipath of each user point maybe be different, promptly point is different the entry-into-force time of the frequency deviation parameter of every multipath of each user.So switching the time point of frequency deviation parameter can be inequality; Each user will be provided with between 2 parameter regions; Like this that time of frequency deviation parameter update every multipath can both read correct compensate of frequency deviation parameter; Software arrangements is also simpler, and the moment configuration parameter that does not upgrade in frequency deviation just is as long as just passable under the configuration in a period of time before the multipath frequency deviation parameter update the earliest.And then notify the entry-into-force time point of a frequency deviation parameter, the entry-into-force time between hardware automatic switchover compensate of frequency deviation parameter region, is read the current compensate of frequency deviation parameter that should use after having put.
Because a user comprises many multipaths, there is skew between the multipath, in the process that the frequency deviation parameter comes into force, the demodulation of some multipath possibly get into new time slot, and some multipath is also in the data of the last time slot of demodulation, so need just two intervals come buffer memory; The first-born effect of entry-into-force time point only mutatis mutandis family time slot of frequency deviation parameter is set, can satisfies application.With the number of user's chip of single treatment data, locate a processing cycle (IP).Owing to stipulated that each renewal can only occur in user's time slot head, so just be in which IP without recording user, can save the part of cache space.If practical application need can with the update cycle be provided with littler, need only like this and note each renewal more to occur in which processing cycle (IP) just passable.
In order to prevent the entry-into-force time point cache read/write conflict of user's frequency deviation parameter; Only when the frequency deviation parameter comes into force; And active user IP 0 just can write buffer memory, and write signal will postpone a period of time and just can write, and so just can not carry out read-write operation to same address simultaneously.
It is example that present embodiment is divided into 1024 equal portions with 2PI, so the span of K value is 0~1023.
The frequency deviation phase value of k for calculating also is allocation index sinusoidal, cosine look-up table, and according to periodicity sinusoidal, cosine function, k is calculated by following formula: k=mod (k+ Δ k, 1024), wherein mod is a delivery.The K value calculating method is: every at a distance from 64 chips, on the basis of previous K value, add the new K value of a Δ K (Δ K is the compensate of frequency deviation step value that the embedded soft caryogamy of chip is put) as this compensation usefulness.
Present embodiment is that renewal is the position and the multipath position at this moment of multipath according to frequency deviation, directly calculates this and does the K value that compensate of frequency deviation will be used.The concrete realization is described below: because the data of design single treatment 32 chips; Per like this two IP will add a Δ K; The position that can upgrade according to the position of current demodulated channel and frequency deviation poor; Decide the how many times Δ K that to add up, and then add the initial frequency deviation phase place that soft caryogamy was put when last time, frequency deviation was upgraded, just can calculate the K value that this moment, compensate of frequency deviation will be used.Computing formula is: K=T* Δ K+K (the initial frequency deviation phase place that soft caryogamy was put when frequency deviation was upgraded).Wherein T upgrades need the add up number of times of Δ K of position for the current location relative frequency deviation.So the T span, can be handled by T=mod (T, 1024) greater than 1024 o'clock also so long as 0~1023.The calculating of T value: simple analysis can know that every 2IP T will add once certainly, zero clearing when frequency deviation is upgraded.User time obtained when the frequency deviation that so just can deduct record with user's current time was upgraded, according to User IP (IP_ID), and time slot (SOLT_ID), the relation of user's frame (CFN_ID) can be known the computing formula of T:
if((IP_ID[6:1]+SLOT_ID*40+CFN_ID*15*40)>(IP_ID_ini[6:1]+SLOT_ID_ini*40+CFN_ini_ID*15*40))
T=((IP_ID[6:1]+SLOT_ID*40+CFN_ID*15*40)-(IP_ID_ini[6:1]+SLOT_ID_ini*40+CFN_ID_ini*15*40)).
else
T=76800+((IP_ID[6:1]+SLOT_ID*40+CFN_ID*15*40)-(IP_ID_ini[6:1]+SLOT_ID_ini*40+CFN_ID_ini*15*40))
User time when the frequency deviation of wherein representing to write down with suffix ini is upgraded does not have current time of the expression user of suffix ini.
Owing to do not deposit each intermediate object program that adds up, can avoid the situation that the frequency deviation phase place adds up less or adds up more occurring owing to multipath shifts to an earlier date or lags behind.Aforesaid operations is promptly realized by compensate of frequency deviation phase value computing unit.
Realize principle according to algorithm; In the descrambling and de-spreading process; Need be that step-length is implemented compensate of frequency deviation to integral result with 64 chips to the result of chip data, algorithm carries out 1024 five equilibriums with the 2*PI cycle in realizing, the SIN function and the COS function value of each Along ent (each Along ent is designated as k) is solidificated in the buffer memory; In order to save memory space; The present invention only stores the value of the SIN function and the COS function in 1/4 cycle, and the SIN function in other 3/4 cycles and the value of COS function are derived out by the value in this 1/4 cycle, and derivation formula is following.
According to the character and the theorem of top formula and trigonometric function, tabling look-up obtains the compensate of frequency deviation value.
According to the compensate of frequency deviation value of tabling look-up and obtaining, the data of multi-path demodulation are carried out compensate of frequency deviation again.At last plurality of antennas data (Q road antenna data and I road antenna data) and plural offset (SIN value of finding and COS value) are carried out complex multiplication, the plurality of antennas data after promptly can compensating by the time.Because whole process all is the flowing water design, can improve multiplexing efficient.
Can find out from the foregoing description, embodiments of the invention make the hardware logic of compensate of frequency deviation scheme consume less, realize simply, and solved in the multi-path demodulation process that the multipath phase place changes and there is the problem of deviation in the multipath compensate of frequency deviation that causes.
The above is merely preferred embodiments of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.