The peak value searching of energy signal and collator
Technical field
The present invention relates to field of mobile communication, relate in particular to a kind of hardware circuit device of realizing energy peak search and ordering.
Background technology
In the band processing system of 3G (Third Generation) Moblie, the peak value searching and the ranking function that generally contain energy signal, after the detection of preamble link of band processing system as shown in Figure 1, antenna sample data are accumulated through relevant matches filtering, derotation and symbol, obtain the reception data of symbol level.Then, symbol data by fast hadamard transform and energy accumulators after, obtain 16 preamble signature energy distribution state on each phase place in search window, according to the Energy distribution of each signature in search window, the detection of preamble system just can determine the peak value decision threshold of each signature, which just can determine to exist in the received signal sign by the peak energy of each signature in search window being distributed adjudicate, and find out the multipath phase place of these signatures.Next base station system just can notify the user who captures to send message body, and on corresponding multipath phase place the message body that receives is carried out demodulation, merging, finishes multipath diversity.Because the demodulator resource in the band processing system is limited, thus system be merely able to the multipath signal on the strongest several paths of energy is carried out demodulation, for this reason, band processing system need be in search window search peak energy and it is sorted; Could on several multipath phase places of energy maximum, distribute the demodulator resource to carry out demodulation then.At present, the peak value searching of energy signal and ranking function mainly are to finish in software, like this, the hardware of band processing system just need together send to software together with their phase value with the energy value on 16 signatures all phase places in search window, this has just proposed very high requirement to the message transmission rate and the transmission quantity of interface between software and hardware, and existing equipment can't effectively be realized this point at present, and software also needs to consume a large amount of memory resources in order to store these data.
Summary of the invention
Technical problem to be solved by this invention is the message transmission rate of prior art existence and requirement, the system resource waste important disadvantages that transmission quantity can't reach peak value searching and ordering.Peak value searching and collator in the hope of the energy signal that proposes a kind of requirement that can effectively satisfy peak value searching and ordering, conserve system resources.
The peak value searching of energy signal of the present invention and collator comprise 1 search window counter, 1 adaptive multiplexer, a n delay unit and n level and described delay unit corresponding peaks detector;
Described search window counter is counted the data that are input in the device of the present invention, and controls the output timing and the reset operation of device of the present invention according to the search window width parameter of input; It receives outside search window width parameter and counting clock, and the output reset signal is given delay units at different levels and adaptive multiplexer;
A described n delay unit carries out the time-delay of unit clock to the reset signal of input, the reset signal that is input as described search window counter generation of delay unit 1, output is connected to adaptive multiplexer and the 1st grade of peak detector, delay unit 2 is to the reset signal that is input as the output of upper level delay unit of delay unit n-1, output is connected to the 2nd grade of corresponding peak detector to n-1 level peak detector, simultaneously, the output of each delay unit is as the input signal of corresponding adaptive multiplexer, the reset signal of delay unit n input time delay unit n-1 output, output only connect corresponding n level peak detector;
Described peak detector screening and the bigger data of preservation energy, the less data of output energy, the 1st grade of peak detector imported the reset signal of energy datum to be detected and delay unit 1 output, and its A mouth outputs to the next stage peak detector, and the B mouth outputs to adaptive multiplexer; The 2nd grade of peak detector imported the A mouth output of upper level peak detector and the output reset signal that delay unit 2 arrives delay unit n-1 correspondence respectively to n-1 level peak detector, the A mouth outputs to the input of next stage peak detector, the output of B mouth is directly connected on the adaptive multiplexer, the A mouth output that is input as n-1 level peak detector of n level peak detector and the output of delay unit n, and the A mouth of this grade peak detector is not exported, and the B mouth outputs to adaptive multiplexer;
Described adaptive multiplexer inside is provided with a counter, in order to the reset signal of outside input is counted, when the count value of this counter is " 0 " state, adaptive multiplexer is selected " 0 " output, otherwise adaptive multiplexer will be exported the peak-data that peak detectors at different levels are preserved in this locality according to the concrete count status serial of this counter.Its input is connected with the output of B mouth and the reset signal at different levels of peak detectors at different levels, these reset signals come from the output of search window counter and delay unit 1 to delay unit n-1 respectively, the output of adaptive multiplexer is directly connected on the interface channel between the software and hardware, for external system (dsp software) reading of data as the output of device of the present invention.
Because device of the present invention adopts the mode of handling in real time to data, it is data cached not need a large amount of memories, thereby has saved a large amount of memory resources.And device configuration of the present invention is very flexible, the peak value number that can detect as required and sort, the cascade deep of increase arbitrarily or minimizing peak detector.Device control of the present invention is very simple, can control the output timing of ordering back peak value by the size of control adjustment search window.In addition, because device of the present invention adopts serial output result's mode,, thereby alleviated the transfer of data burden at interface between software and hardware place greatly according to descending each peak-data of output of time order and function order.
Description of drawings
Fig. 1 is the detection of preamble subsystem diagram in the 3G (Third Generation) Moblie band processing system.
Fig. 2 is the peak value searching and the collator structure chart of energy signal of the present invention.
Fig. 3 is the hardware structure diagram of search window counter in the device of the present invention.
Fig. 4 is the hardware structure diagram of peak detector in the device of the present invention.
Fig. 5 is the hardware structure diagram of background noise accumulator in the device of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments device of the present invention is described further.
Device of the present invention considers to realize by hardware the peak value searching and the ranking function of energy signal, like this, hardware system in leading detecting unit is when reporting testing result, only need select the multipath phase place of a few energy maximum according to the resource situation of demodulator for each signature, testing result on these phase places is offered software get final product, thereby on the basis that does not influence systematic function, reduce the transmission quantity and the memory space of data greatly.
The operation principle of device of the present invention is very simple, it selects peak-data by the mode of filtering step by step, accompanying drawing 2 has provided a kind of hardware implementation structure of device of the present invention, under configuration as Fig. 2, device of the present invention can be searched for n peak-data, and the peak-data that searches is sorted.
As shown in Figure 2, device of the present invention is made up of promptly four components: search window counter, delay unit, peak detector and adaptive multiplexer, wherein, the major function of search window counter is that the data that are input in the device of the present invention are counted, and control the output timing and the reset operation of device of the present invention according to the search window width parameter of input, outside search window width parameter and the counting clock of search window counter input, the output reset signal is given delay units at different levels and adaptive multiplexer unit; The delay unit major function is that the reset signal of importing is carried out the time-delay of unit clock, the reset signal that is input as the generation of search window counter of delay unit 1, output is connected to the 1st grade of peak detector and adaptive multiplexer, delay unit 2 is to the reset signal that is input as the output of upper level delay unit of delay unit n-1, output is connected to the 2nd grade of corresponding peak detector to n-1 level peak detector, simultaneously, the output of each delay unit also will be as the input signal of adaptive multiplexer, the reset signal of delay unit n input time delay unit n-1 output, output only connect corresponding n level peak detector; The major function of peak detector is screening and preserves the bigger data of energy, the less data of output energy, the 1st grade of peak detector imported the reset signal of energy datum to be detected and delay unit 1 output, the A mouth outputs to the next stage peak detector, the B mouth outputs to adaptive multiplexer, the 2nd grade of peak detector imported the A mouth output of upper level peak detector and the output reset signal that delay unit 2 arrives delay unit n-1 correspondence respectively to n-1 level peak detector, and the A mouth outputs to the input of next stage peak detector, the output of B mouth is directly connected on the adaptive multiplexer, the A mouth output that is input as n-1 level peak detector of n level peak detector and the output of delay unit n, and the A mouth of this one-level peak detector is not exported, and the B mouth outputs to adaptive multiplexer; The major function of adaptive multiplexer is that the peak-data that peak detectors at different levels are preserved in this locality is exported in serial under the control of search window counter, the adaptive multiplexer input is connected with the output of B mouth and the reset signal at different levels of peak detectors at different levels, these reset signals come from the output of search window counter and delay unit 1 to delay unit n-1 respectively, the output of adaptive multiplexer is directly connected on the interface channel between the software and hardware, for the dsp software reading of data as the output of device of the present invention.
In energy signal peak value searching and collator, the search window counter is main control unit, its hardware implementation structure as shown in Figure 3, it comprises that mainly two functional units are counter 1 and comparator 1, wherein, the major function of comparator 1 is the count results of comparison search window width parameter sum counter 1, when both are equal, produce reset signal, the function of counter 1 is to carry out zero clearing or counting operation according to reset signal and clock signal, count results is input to comparator 1, as seen, the input signal of comparator 1 is the count results of search window width parameter sum counter 1, the reset signal of output sends to other functional unit of counter 1 and device of the present invention, and the input signal of counter 1 is clock signal and reset signal, and the output count results is given comparator 1; The delay unit major function is that input signal is delayed time, each delay unit produces the time-delay of 1 clock cycle, the input of delay unit is the reset signal of search window counter output, and the output signal after the time-delay is as the input signal of peak detector and multiplexer.
Peak detector is the functional unit of device screening energy peak of the present invention, its hardware implementation structure as shown in Figure 4, peak detector is mainly by comparing selector A, compare selector B, register A and register B form, wherein the major function of comparator selector A is relatively to select less data in two input data, relatively the major function of selector B is relatively to select bigger data in two input data, the function of register A is to preserve the relatively output result of selector A, the major function of register B is to preserve the relatively output result of selector B, relatively selector A is identical with the input signal that compares selector B, all be the data that energy input signal and peak detector register B preserve in this locality, the signal that comparison selector A outputs to register A is the less data of numerical value in the comparative result, the signal that comparison selector B outputs to register B is the bigger data of numerical value in the comparative result, the input of register A is the less data that comparison selector A selects, its signal that outputs to the next stage peak detector is local data of preserving, the input signal of register B is the bigger data that comparison selector B selects, and its data that output to adaptive multiplexer are local data of preserving.
Adaptive multiplexer is the output unit of device of the present invention, its hardware implementation structure as shown in Figure 5, adaptive multiplexer is by comparator 2, counter 2 and selector are formed, wherein, the major function of comparator 2 is count results of the cascade progression sum counter 2 of device more of the present invention, when both are equal to counter 2 output counter reset signals, the major function of counter 2 is to count according to the reset signal of outside, and finish corresponding clear operation according to the counter O reset signal that comparator 2 sends, the major function of selector is that the data that are kept in the peak detector B mouths at different levels are exported in time-multiplexed serial according to the count results of counter 2, the input signal of comparator 2 is count results of the cascade progression n sum counter 2 of device of the present invention, the counter O reset signal that produces outputs to counter 2, the input signal of counter 2 is reset signals of external search window counter and delay unit at different levels output, the count results of output is the input signal of device 2 and selector as a comparison, the input signal of selector is to be kept at the 1st grade of data and the signal zero in the n level peak detector B mouth, peak signal after the ordering is outputed to by serial on the interface channel of software and hardware, reads for dsp software.