Summary of the invention
In view of this, main purpose of the present invention is to provide downlink multi-path searching method in a kind of Wideband Code Division Multiple Access (WCDMA) communication system, can effectively reduce hardware resource and be easy to and realize.
Another object of the present invention is to provide downlink multi-path searcher in a kind of Wideband Code Division Multiple Access (WCDMA) communication system, can effectively reduce hardware resource.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides downlink multi-path searching method in a kind of Wideband Code Division Multiple Access (WCDMA) communication system, Multipath searching window to be measured is divided into two or more periods, each period is provided with one or more sampled point, and this method also comprises the steps:
A. successively each sampled point in each period is being done on the time shaft once or symbol level cumulative mean once, and the result of calculation of storing all sampled points;
B. after finishing the symbol level cumulative mean computing of each sampled point in all periods, each sampled point in the Multipath searching window is being done on the time shaft once or symbol level cumulative mean once, and the result of calculation of storing all sampled points.
Wherein, the number of the sampled point that is provided with of described each is the number of parallel correlator in the downlink multi-path searcher in the Wideband Code Division Multiple Access (WCDMA) communication system period.
Wherein, the period number that described Multipath searching window is divided into is: the merchant of the number N2 of the chip number of described Multipath searching window and the product of N1 and described parallel correlator, wherein N1 is more than or equal to 2.
Wherein, step a in described each period each sampled point on time shaft, do each sampled point in the number of times of symbol level cumulative mean and the described Multipath searching window of step b and on time shaft, do the number of times of symbol level cumulative mean and satisfy: the product of the two equals each sampled point in the whole Multipath searching window is done the symbol level cumulative mean on time shaft number of times.
Wherein, further comprise among the step a: add all break-ofves between per two adjacent periods of extended code generation module in each parallel correlator and the described Wideband Code Division Multiple Access (WCDMA) communication system in the downlink multi-path searcher, time out is parallel correlator several sampling clock cycles.
Wherein, step b described to each sampled point in the Multipath searching window on time shaft, do once or symbol level cumulative mean process once in, doing between the symbol level cumulative mean at every turn, described each parallel correlator break-off adds the extended code generation module simultaneously and quickens 256 sampling clock cycles of operation; The number in the sampling clock cycle of described time out obtains by following formula:
256 * N1-(M2-1) * N2, wherein, the period number that M2 is divided into for the Multipath searching window.
The present invention also provides downlink multi-path searcher in a kind of Wideband Code Division Multiple Access (WCDMA) communication system, comprising: correlator control signal generation module, parallel correlator pack module, add extended code generation module and correlated results memory module;
Described correlator control signal generation module is used to control described parallel correlator pack module and the described extended code generation module that adds, and its first output links to each other with described parallel correlator pack module, and second output links to each other with the described extended code generation module that adds;
Described parallel correlator pack module, be used for input signal is carried out the symbol level cumulative mean, its first input end receives through the data behind the N1 times of spreading rate clock sampling, and second input links to each other with the described extended code generation module that adds, and output links to each other with described correlated results memory module;
The described extended code generation module that adds is used for generation and adds extended code and export to described parallel correlator pack module;
Described correlated results memory module, the output result who is used to store described parallel correlator pack module.
Wherein, described correlator control signal generation module comprises: first counter, second counter, the 3rd counter and control signal generation unit;
Described first counter, each sampled point of period that is used for that the Multipath searching window is divided into is done the number of times of symbol level cumulative mean and is counted on time shaft, and its output links to each other with described control signal generation unit;
Described second counter, the period number that is used for the Multipath searching window is divided into is counted, and its output links to each other with described control signal generation unit;
Described the 3rd counter, the number of times that is used for each sampled point in the Multipath searching window is done the symbol level cumulative mean on time shaft is counted, and its output links to each other with described control signal generation unit;
Described control signal generation unit, be used for count value according to described first, second and the 3rd counter to described parallel correlator pack module and the described extended code generation module output control signal that adds, its first output links to each other with described parallel correlator pack module, and second output links to each other with the described extended code generation module that adds.
Wherein, described parallel correlator pack module comprises one or more parallel correlators, the first input end of each parallel correlator receives through the data behind the N1 times of spreading rate clock sampling, second input links to each other with the described extended code generation module that adds, and output links to each other with described correlated results memory module.
Wherein, the described extended code generation module that adds comprises and adds extended code generation unit and the delay unit corresponding with the number of parallel correlator; The described extended code generation unit that adds, comprise channel code maker and scrambled code maker, be used for the scalar of described channel code maker output and the complex vector of described scrambled code maker output are carried out XOR respectively, and operation result is exported to corresponding parallel correlator by described delay unit.
Wherein, described correlated results memory module comprises the identical memory of period number that is divided into the Multipath searching window; Each memory comprises the memory cell identical with the parallel correlator number, and described memory cell is used to store the result of the symbol level cumulative mean of its corresponding parallel correlator computing.
Wherein, all memory cell are divided into first random asccess memory and second random asccess memory, described first random asccess memory is used to store the operation result that sequence number is the parallel correlator of the odd number symbol level cumulative mean of carrying out, and described second random asccess memory is used to store the operation result that sequence number is the parallel correlator of the even number symbol level cumulative mean of carrying out.
Wherein, described random asccess memory is the single port random asccess memory.
The technique scheme according to the present invention, because Multipath searching window to be measured is divided into two or more periods, and each period setting sampled point identical with the parallel correlator number, reduced the parallel correlator hardware resource to greatest extent.Again since in adding the extended code generation module, utilize with the corresponding delay unit of the number of parallel correlator substituted number with parallel correlator identical add the extended code generation unit, also obtained the effect of reduction hardware resource.
Moreover, because all memory cell are divided into two single port random asccess memory (RAM), and the first single port RAM is used to store the operation result that sequence number is the parallel correlator of the odd number symbol level cumulative mean of carrying out, the second single port RAM is used to store the operation result that sequence number is the parallel correlator of the even number symbol level cumulative mean of carrying out, the problem of effectively having avoided single port RAM all to work on two edges of clock signal, thus, can reduce the difficulty of ASIC back end design greatly.
Embodiment
Below in conjunction with accompanying drawing, further specify technical characterictic of the present invention and function.
Referring to Fig. 1, the downlink multi-path searcher comprises correlator control signal generation module 101, parallel correlator pack module 102, adds extended code generation module 103 and correlated results memory module 104 in the Wideband Code Division Multiple Access (WCDMA) communication system of the present invention.Wherein, described correlator control signal generation module 101, be used to control described parallel correlator pack module 102 and the described extended code generation module 103 that adds, its first output links to each other with described parallel correlator pack module 102, and second output links to each other with the described extended code generation module 103 that adds; Described parallel correlator pack module 102, be used for input signal is carried out symbol (symbol) level cumulative mean, its first input end receives through the data behind the N1 times of spreading rate clock sampling, second input links to each other with the described extended code generation module 103 that adds, and output links to each other with described correlated results memory module 104; The described extended code generation module 103 that adds is used for generation and adds extended code and export to described parallel correlator pack module 102; Described correlated results memory module 104, the output result who is used to store described parallel correlator pack module 102.
Described correlator control signal generation module comprises: first counter 201, second counter 202, the 3rd counter 203 and control signal generation unit 204;
Described first counter is a symbol_No counter 201, be used for period (phase) that Multipath searching window (set) is divided into, each sampled point is done the number of times of symbol level cumulative mean and is counted on time shaft, its output links to each other with described control signal generation unit 204;
Described second counter is a phase_No counter 202, and the number that is used for phase that the Multipath searching window is divided into is counted, and its output links to each other with described control signal generation unit 204;
Described the 3rd counter is a set_No counter 203, and the number of times that is used for each sampled point in the Multipath searching window is done symbol level cumulative mean on time shaft is counted, and its output links to each other with described control signal generation unit 204;
Described control signal generation unit 204, be used for exporting control signals to described parallel correlator pack module 102 and the described extended code generation module 103 that adds according to the count value of described symbol_No counter 201, phase_No counter 202 and set_No counter 203, its first output links to each other with described parallel correlator pack module 102, and second output links to each other with the described extended code generation module 103 that adds.Wherein, symbol_No counter 201, phase_No counter 202 and set_No counter 203 can be down counter, also can be count-up counter.
Referring to Fig. 1, described parallel correlator pack module 102 comprises N2 parallel correlator 601, the first input end of each parallel correlator 601 receives through the data I/Q behind the N1 times of spreading rate clock sampling, second input links to each other with the described extended code generation module 103 that adds, and output links to each other with described correlated results memory module 104.
The described extended code generation module that adds comprises and adds extended code generation unit 103 and the delay unit 403 corresponding with the number of parallel correlator 601.Referring to shown in Figure 2, the described extended code generation unit 301 that adds, comprise channel code maker 402 and scrambled code maker 401, be used for the scalar of described channel code maker 402 outputs and the complex vector of described scrambled code maker 401 outputs are carried out XOR respectively, and operation result is exported to corresponding parallel correlator 601 by each described delay unit 403.
Why described adding will be provided with delay unit 403 reasons and be in the extended code generation module 103:
From the WCDMA communicating system descending link through the data I/Q behind N1 times of spreading rate clock sampling, serial is input in the Multipath searching module that is arranged in the travelling carriage baseband processing chip, promptly a sampling clock cycle is imported I/Q data, the I/Q that just is input to parallel correlator pack module 102 is a serial data stream, so the time started of this N2 parallel correlator 601 work is not from the same moment, i.e. the 0th sampling instant starts #0 parallel correlator 601, the 1st sampling instant starts #1 parallel correlator 601, and the like, N2 sampling instant starts the #N2 correlator.Referring to Fig. 3, constantly corresponding the 0th sampling instant of #0, constantly corresponding the 1st sampling instant of #1; The zero hour of #0 parallel correlator 601 is consistent with the zero hour that #0 adds extended code generation unit 301, corresponding #0 sampling instant constantly; The zero hour of #1 parallel correlator 601 is consistent with the zero hour that #1 adds extended code generation unit 301, corresponding #1 sampling instant constantly, and the like, last sampled point in Multipath searching window scope.
Can be easy to draw from top reckoning, it is corresponding with N2 parallel correlator 601 to need N2 to add extended code generation unit 301, for reducing hardware resource, in Wideband Code Division Multiple Access (WCDMA) communication system downlink multi-path searcher of the present invention, introduced delay unit 403, promptly utilize N2 delay unit 403 to replace N2 to add extended code generation unit 301, add extended code input with what realize that N2 parallel correlator 601 need.
Described correlated results memory module 104 comprises the identical memory 501 of phase number that is divided into the Multipath searching window; Described each memory 501 comprises the identical memory cell 502 with parallel correlator 601 number N2, and each memory cell 502 is used to store the result of the symbol level cumulative mean of its corresponding parallel correlator 601 computings.
In hardware is realized, adopt single port RAM as correlated results memory module 104 usually, its degree of depth is the number of all sampled points in the Multipath searching window.Under the situation that does not improve the RAM operating frequency, can consider to use a single port RAM, but this just requires single port RAM to must operate at two edges of clock signal, be that rising edge and trailing edge all will be worked, just edge reading of data from RAM, write data on next edge to RAM, can increase the difficulty of ASIC back end design so greatly, so in apparatus of the present invention, all memory cell are divided into two single port RAM, RAM 1 is used to store the operation result that sequence number is the parallel correlator 601 of the odd number symbol level cumulative mean of carrying out, and RAM 2 is used to store the operation result that sequence number is the parallel correlator 601 of the even number symbol level cumulative mean of carrying out.
Based on device illustrated in figures 1 and 2, downlink multi-path searching method is referring to Fig. 4 and Fig. 6 in the Wideband Code Division Multiple Access (WCDMA) communication system of the present invention.
The physical channel that the Multipath searching module is carried out Multipath searching is that transmission rate is that 30 bps and spreading factor are 256 Common Pilot Channel (CPICH, Common Pilot Channel).
Referring to Fig. 4, this method comprises the steps:
Step 401 Multipath searching window to be measured is divided into two or more phase, and each phase is provided with one or more sampled points.
The number of the sampled point that described each phase is provided with is the number N2 of parallel correlator 601 in the downlink multi-path searcher in the Wideband Code Division Multiple Access (WCDMA) communication system, and the phase number M 2 that described Multipath searching window is divided into is obtained by formula (1):
M2=(R×N1)/N2 (1)
Wherein, R is the chip number of Multipath searching window to be measured, and N2 is the number of parallel correlator 601, and N1 is according to Nyquist's theorem, more than or equal to 2.
Step 402 is being done on the time shaft once or symbol level cumulative mean once each sampled point among each phase successively, and the result of calculation of storing all sampled points.
Step 403, finish the symbol level cumulative mean computing of each sampled point among all phase after, each sampled point in the Multipath searching window is being done on the time shaft once or symbol level cumulative mean once, and the result of calculation of storing all sampled points.
Among described each phase of step 402 each sampled point on time shaft, do symbol level cumulative mean number of times M1, with the described Multipath searching window of step 403 in each sampled point on time shaft, do the product of the number of times M3 of symbol level cumulative mean, equal each sampled point in the whole Multipath searching window is done the symbol level cumulative mean on time shaft number of times S.
In step 402, described each parallel correlator 601 and add the 103 equal break-ofves of extended code generation module between per two adjacent phase, time out is N2 sampling clock cycle.
In step 403, do between the symbol level cumulative mean at every turn, described each parallel correlator 601 break-off, the number in the sampling clock cycle of time-out is obtained by formula (2):
256×N1-(M2-1)×N2 (2)
Meanwhile, adding extended code generation mould determines acceleration 256 sampling clock cycles of operation.
The concrete operation principle of apparatus of the present invention and method is such:
At first, determine the preset value of symbol_No counter 201, phase_No counter 202 and set_No counter 203 in the correlator control signal generation module 101 according to the size of Multipath searching window to be measured.
Being down counter with symbol_No counter 201, phase_No counter 202 and set_No counter 203 is example.Because parallel correlator pack module 102 is hardware resources, the number N2 of parallel correlator 601 determines in the module.As shown in Figure 6, each sampled point needs to do symbol level cumulative mean in the Multipath searching window on time shaft, just whole Multipath searching process need is done the number of times of symbol level cumulative mean, also is one of the factor that need consider when determining three down counter preset values.
The size of supposing Multipath searching window to be measured is R chip, the sampling rate of the I/Q data of parallel correlator 601 inputs is a N1 times of chip speed, N2 parallel correlator 601 hardware resources are arranged in the parallel correlator pack module 102, each sampled point is symbol level cumulative mean S time on time shaft in the whole Multipath searching window, and the preset value of symbol_No counter 201, phase_No counter 202 and set_No counter 203 is made as M1, M2 and M3 respectively.Referring to Fig. 5, apparatus of the present invention are that a complete Multipath searching window is divided into M2 phase, each phase comprises N2 sampled point, the symbol level cumulative mean of these sampled points need walk abreast and do, therefore in a phase with regard to a corresponding N2 parallel correlator 601, obtain formula (3) thus:
R×N1=M2×N2 (3)
The equation left side represents that the sampled point number in the Multipath searching window equals big or small R the chip of Multipath searching window and the product of N1 times of chip speed; Sampled point number in the equation the right expression Multipath searching window equals a complete Multipath searching window is divided into the product of the number N2 of parallel correlator 601 corresponding in M2 phase and the phase.Can obtain formula (1) formula (3) conversion once:
M2=(R×N1)/N2 (1)
From formula (1) as can be seen, the preset value M2 of phase_No counter 202 big or small R chip equaling the Multipath searching window multiply by after the N1 times of chip speed merchant with the number N2 of parallel correlator 601.
As shown in Figure 6, each sampled point needs to do symbol level cumulative mean in the Multipath searching window on time shaft, it comprises two symbol level cumulative means on the meaning: one is the symbol level cumulative mean that each sampled point is done on time shaft in the phase, and another one is the symbol level cumulative mean of between set all sampled points of whole search window being done on time shaft.Because each sampled point is symbol level cumulative mean S time in the hypothesis Multipath searching window to be measured on time shaft, obtains formula (4) thus:
(R×N1)×S=(N2×M1)×M2×M3 (4)
Can obtain formula (5) formula (4) conversion once:
M1×M3=((R×N1)×S)/(N2×M2) (5)
Since R * N1=M2 * N2, so can release formula (6):
M1×M3=S (6)
Be that the product of the preset value M3 of the preset value M1 of symbol_No counter 201 and set_No counter 203 equals each sampled point in the whole Multipath searching window is done the symbol level cumulative mean on time shaft number of times S.Such as, each sampled point needs to do symbol level cumulative mean 5 times in the whole Multipath searching window on time shaft, symbol_No counter 201 can be M1=1 and M3=5 with the preset value of set_No counter 203 so, also can be M1=5 and M3=1, the former is illustrated in interior each sampled point of each phase and does symbol level cumulative mean 1 time on time shaft, does symbol level cumulative mean 5 times at each sampled point between set on time shaft; The latter is illustrated in interior each sampled point of each phase and does symbol level cumulative mean 5 times on time shaft, does symbol level cumulative mean 1 time at each sampled point between set on time shaft.
Then, the preset value that goes out according to aforementioned calculation, down counter in the configuration correlator control signal generation module 101: preset value M1, M2 and the M3 of symbol_No counter 201, phase_No counter 202 and set_No counter 203, correlator control signal generation module 101 treatment in accordance with the present invention processes output control signal corresponding, to parallel correlator pack module 102 with add extended code generation module 103 and control, specific as follows:
Referring to Fig. 6, at first do the concurrent operation of N2 the parallel correlator 601 of #0phase, parallel and usually said the walking abreast here had any different slightly, be the time started difference of correlator, that is to say the starting point of a back correlator backward sampling clock cycle of starting point than previous correlator; The number of times that each sampled point is done symbol level cumulative mean in a phase can obtain by the preset value M1 of symbol_No counter 201 in the configuration correlator control signal generation module 101.Each sampled point just is stored in N2 operation result in the memory cell 502 of correspondence in the correlated results memory module 104 after finishing M1 symbol level cumulative mean on the time shaft in phase; The number of the phase that in a Multipath searching window, carries out related calculation, can obtain by the preset value M2 of phase_No counter 202 in the configuration correlator control signal generation module 101, be specially, after each sampled point is finished symbol level cumulative mean among the #0phase, just begin to do the symbol level cumulative mean of sampled point among the #1phase, and the like, be M2 altogether and multiply by N2 sampled point, just corresponding complete Multipath searching window; After finishing the symbol level cumulative mean computing of sampled points all in the Multipath searching window, can also on time shaft, do the computing of M3 symbol level cumulative mean to each sampled point in the Multipath searching window, wherein, M3 is the preset value of set_No counter 203 in the correlator control signal generation module 101.
Referring to Fig. 6, the symbol level cumulative mean computing of the 0th to N2-1 sampled point is done in #0phase in the Multipath searching window, the relevant cumulative mean computing of N2 to 2 in the Multipath searching window * N2-1 sampled point is done in #1phase, for a parallel correlator 601, need to suspend N2 sampling clock cycle after finishing the symbol level cumulative mean in the previous phase, just can correspond to the 0th sampled point of a back phase.For a parallel correlator 601, need to suspend 256 * N1-(M2-1) * N2 sampling clock cycle after finishing the symbol level cumulative mean of a set, just can correspond between set the 0th of the #0phase of symbol level cumulative mean the sampled point next time.
The used main scrambler of down link is that 38400 chip repeat once in the WCDMA communication system, after a phase finishes, the phase place of scrambled code generator 401 corresponds to the sampled point of current this phase, therefore the scrambled code of the sampled point of next phase and the sampled point of current this phase synchronously, adds that scrambled code generator 401 does not need acceleration in the extended code generation module 103 on phase place; After the symbol level cumulative mean of a set is finished, the phase place of scrambled code generator 401 corresponds to last sampled point of Multipath searching window to be measured, between set next time the 0th sampled point of the #0phase of symbol level cumulative mean correspond to the 0th sampled point of Multipath searching window to be measured again, both scrambled codes differ 256 chip on phase place, therefore need add 401 acceleration 256 sampling clock cycles of operation of scrambled code maker in the extended code generation module 103.
In sum, in the time of between phase and phase, each parallel correlator 601 needs to suspend N2 sampling clock cycle, during this period of time, adds also break-off of extended code generation module 103; In the time of between set and set, each parallel correlator 601 needs break-off 256 * N1-(M2-1) * N2 sampling clock cycle, during this period of time, adds extended code generation module 103 needs and quickens 256 sampling clock cycles of operation; Above-mentioned these control signals are all produced by correlator control signal generation module 101, Fig. 7 for correlator control signal generation module 101 produce to parallel correlator 601 and add the control signal sequential chart of extended code generation module 103, the signal among Fig. 7 is that high level is effective.
The core of correlator control signal generation module 101 is symbol_No counter 201, phase_No counter 202 and 203 3 down counters of set_No counter.Whether the control signal generation unit 204 in the module can be judged in the phase each sampled point according to the currency of symbol_No counter 201 and do symbol level cumulative mean finish on time shaft, just represent this counter will be next phase reload preset value because symbol_No counter 201 is decremented at 0 o'clock, therefore can determine the output of index signal between phase with this sign.Whether the control signal generation unit 204 in the module can be judged between a set all sampled points according to the currency of phase_No counter 202 and do symbol level cumulative mean finish on time shaft, just represent this counter will be next set reload preset value because phase_No is decremented at 0 o'clock, therefore just can determine the output of index signal between set with this sign.
Referring to Fig. 7, all control signals are benchmark output with index signal between index signal between phase and set all, when for example index signal is effective between phase, and parallel correlator 601 and add 103 equal break-off N2 the sampling clock cycles of extended code generation module; When index signal is effective between set, parallel correlator 601 break-ofves, because the time of parallel correlator 601 break-ofves is 256 * N1-(M2-1) * N2 sampling clock cycle, meanwhile, add extended code generation module 103 and quicken 256 sampling clock cycles of operation, the time that is parallel correlator 601 break-ofves will quicken earlier so add extended code generation module 103 greater than adding the time that extended code generation module 103 quickens operation, and the back is suspended.
After this, carry out the computing of symbol level cumulative mean, specific as follows:
This step needs parallel correlator pack module 102 and adds extended code generation module 103 to participate in.Referring to Fig. 2, each parallel correlator has two groups of inputs: one group is through the data I/Q behind N1 times of spreading rate clock sampling, and another group is that scalar that the complex vector that produces of scrambled code maker 401 and channel code maker 402 produce carries out the complex vector exported behind the XOR.
At last, carry out the operation result storage.
This step needs correlated results memory module 104 to participate in, and purpose is the operation result of the symbol level cumulative mean of all sampled point correspondences in the storage Multipath searching window.
In a kind of embodiment of apparatus of the present invention, described random asccess memory is the single port random asccess memory.
Above-mentioned embodiment describes the present invention with preferred embodiment, but the example of this visualization of just lifting for the ease of understanding should not be considered to be limitation of the scope of the invention.Equally, according to the description of technical scheme of the present invention and preferred embodiment thereof, can make various possible being equal to and change or replacement, and all these changes or replacement all should belong to the protection range of claim of the present invention.