WO2012151870A1 - Peak search method and device - Google Patents

Peak search method and device Download PDF

Info

Publication number
WO2012151870A1
WO2012151870A1 PCT/CN2011/081295 CN2011081295W WO2012151870A1 WO 2012151870 A1 WO2012151870 A1 WO 2012151870A1 CN 2011081295 W CN2011081295 W CN 2011081295W WO 2012151870 A1 WO2012151870 A1 WO 2012151870A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
energy data
comparison circuit
peak
register
Prior art date
Application number
PCT/CN2011/081295
Other languages
French (fr)
Chinese (zh)
Inventor
黎立煌
戴冠新
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012151870A1 publication Critical patent/WO2012151870A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/707Spread spectrum techniques using direct sequence modulation
    • H04B1/7097Interference-related aspects
    • H04B1/711Interference-related aspects the interference being multi-path interference
    • H04B1/7113Determination of path profile

Definitions

  • the present invention relates to a peak search technique, and more particularly to a peak search method and apparatus. Background technique
  • Peak search is often used in application scenarios such as cell search, multipath search, and slot synchronization.
  • the speed requirement is relatively high.
  • LTE Long-Term Evolution
  • when a cell is initially searched 15 4800 sequences are searched every 5 ms, and other processes require about 420 k clock cycles; when the neighbor search starts, 3 are performed every 5 ms.
  • the 4800 sequence search may also have other tasks such as downlink reception, measurement, and neighborhood search.
  • the existing peak search circuit reads a single energy data each time, and compares the read energy data with the previously obtained maximum energy data until the energy data is read one by one to obtain the maximum energy data. Value, and need to perform forward and reverse scans repeatedly, find other maximum values.
  • Chinese patent application No. 200510098701.4 proposes a peak search in Wideband Code Division Multiple Access (WCDMA) system.
  • WCDMA Wideband Code Division Multiple Access
  • the existing peak search method has low scanning efficiency and high power consumption, and cannot meet the requirements of a high amount of processor throughput. Summary of the invention
  • the present invention provides a peak search method, the method comprising:
  • Each adder of the first comparison circuit compares the energy data input to itself with the energy data currently stored in the data register connected to the first comparison circuit, and updates each data register in the first comparison circuit to save Energy data;
  • the second comparison circuit After performing the acquisition and comparison on all the energy data to be searched, the second comparison circuit acquires the energy data held by each data register in the first comparison circuit, and compares the acquired energy data to obtain a peak value.
  • the method before the obtaining the plurality of energy data, the method further includes: performing correlation operation processing and filtering operation processing on the acquired sampling data, and performing modulo operation processing, and the result of the modulo operation processing The real part is extracted, and the energy data is obtained and saved in a memory.
  • the memory stores a plurality of energy data per row
  • the acquiring a plurality of energy data is: reading a row of energy data from the memory.
  • the updating the energy data stored in each data register in the first comparison circuit includes:
  • the adder compares the input energy data to the energy data currently stored in the data register to which it is connected, the adder replaces the input energy data with the energy data stored in the self-connected data register.
  • the method further includes:
  • the adder compares and obtains that the input energy data is greater than the energy data currently stored in the register to which it is connected, the adder also replaces the address of the input energy data with the address register of the first comparison circuit connected to itself. The energy data address currently saved in .
  • the method before the obtaining the plurality of energy data, the method further comprises: clearing each of the data registers in the first comparison circuit and/or each address register in the first comparison circuit.
  • the second comparison circuit acquires each data in the first comparison circuit And storing the energy data, and comparing the obtained energy data to obtain a peak value, comprising: the adder in the second comparison circuit acquires energy data saved by each of the plurality of first comparison circuits, and The acquired energy data are compared with each other to obtain the largest energy data in the acquired energy data, and the obtained maximum energy data is taken as the peak value.
  • the method further includes:
  • the adder in the second comparison circuit saves the obtained peak value to a data register in the second comparison circuit, and saves the address of the peak value to an address register in the second comparison circuit.
  • the method further includes:
  • the present invention also provides a peak search device, the device comprising: a read data control circuit, a first comparison circuit, and a second comparison circuit;
  • the first comparison circuit includes a plurality of adders, a plurality of data registers, the plurality of adders being connected to the plurality of data registers one by one; a data register for storing energy data; and an adder for inputting the own Comparing the energy data with the energy data currently stored in the data register to which it is connected, and updating the energy data stored in each of the data registers;
  • a read data control circuit configured to acquire a plurality of energy data, and input to the plurality of adders of the first comparison circuit respectively;
  • a second comparison circuit configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and comparing the acquired energy data, Get the peak.
  • the device further includes: a memory and a vector processor, wherein the memory is configured to save all the energy data to be searched; a vector processor, configured to perform correlation operation processing and filtering operation processing on the acquired sampling data, perform modulo operation processing, extract a real part from a result of the modulo operation processing, obtain the energy data, and save the In memory.
  • the memory is further configured to store a plurality of energy data per row; and the read data control circuit is further configured to read a row of energy data from the memory.
  • each adder of the first comparison circuit is further configured to replace the input energy data with the data connected by itself when the input energy data is greater than the energy data currently stored in the data register connected thereto. Energy data saved in the register.
  • the first comparison circuit further includes a plurality of address registers, configured to store addresses of the energy data, and are connected to the adder one by one;
  • the adder is further configured to replace the address of the input energy data with the energy data address saved in the address register to which it is connected when the input energy data is greater than the energy data currently stored in the register.
  • the second comparison circuit includes an adder and a data register, wherein the adder of the second comparison circuit is configured to obtain, after the obtaining, and comparing all the energy data to be searched, Energy data stored in each data register of the first comparison circuit, and comparing the acquired energy data to obtain a peak value, and saving the obtained peak value to a data register of the second comparison circuit;
  • the data register of the second comparison circuit is configured to save the peak.
  • the second comparison circuit further includes an address register for storing the address obtained to the peak value
  • the adder of the second comparison circuit is further configured to save the address of the obtained peak value to an address register of the second comparison circuit.
  • the device further includes: a loop control circuit and a clear control circuit, wherein the loop control circuit is configured to verify whether the number of peaks obtained by the second comparison circuit reaches Go to a preset peak number threshold, if not, notify the clear control circuit to clear, and activate the read data control circuit, the first comparison circuit, and the second comparison circuit to repeat the peak search; otherwise, End the current peak search;
  • a clear control circuit configured to: when receiving the notification of the loop control circuit, clear a peak obtained by the second comparison circuit and one or more data of the left and right sides of the peak from the memory.
  • the clear control circuit is further configured to clear each address register in the first comparison circuit and/or each address register in the first comparison circuit.
  • the peak search method and device provided by the present invention reads a plurality of energy data every clock cycle, compares the read multiple energy data in parallel, and compares all the energy data in parallel, and compares them in parallel. The energy data is then compared to obtain the peak value, only the forward search is performed, and the forward and reverse directions are not required to be alternately performed, the pause is not required in the middle, the peak search speed is fast, and the vector processor high throughput rate can be applied, and The present invention finds one maximum value per scan, and finds n maximum values to cycle n times.
  • the algorithm is relatively simple and effective, and the control is simple and effective; in addition, the peak search device of the present invention only needs an adder and a register to implement Simple and easy to implement, small in size and low in cost.
  • FIG. 1 is a schematic structural diagram of a peak search system of the present invention
  • FIG. 3 is a schematic structural diagram of a data storage device in a peak search device according to an embodiment of the present invention
  • FIG. 4 is a schematic structural view of each column of a data memory in a peak search device according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a peak search module in a peak search device according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a first comparison circuit of a peak search module according to an embodiment of the present invention.
  • the basic idea of the present invention is: acquiring a plurality of energy data each time, and comparing by a plurality of adders, and updating the saved energy data according to the comparison result; until all the energy data are acquired and compared, The stored energy data are further compared to obtain a peak value.
  • the plurality of energy data are compared in parallel, the speed is fast, the peak search efficiency is high, and the vector processor high throughput rate can be adapted.
  • the peak search method of the present invention may mainly include the following steps: Step 101: Acquire a plurality of energy data, which are respectively input into a plurality of adders of the first comparison circuit;
  • Step 102 Each adder of the first comparison circuit compares energy data input to itself with energy data currently stored in a data register connected to itself, and updates energy data stored in each data register;
  • Step 103 After performing the obtaining and comparing the energy data to be searched, the second comparison circuit acquires energy data saved by each data register in the first comparison circuit, and compares the acquired energy data. Get the peak.
  • the method may further include: performing correlation operation processing and filtering operation processing on the acquired sampling data, and performing modulo operation processing, from the modulo operation processing The real part is extracted from the result, and the energy data is obtained and saved to the memory.
  • the memory can store a plurality of energy data in each row, and the plurality of energy data is obtained in step 101, specifically: reading a row of energy data from the memory.
  • each adder compares the input energy data with the energy data currently stored in the data register connected to the adder, and compares the input energy data with the self-connected Energy data currently stored in the data register
  • the adder replaces the input energy data with the energy data stored in the self-connected data register; when the adder compares that the input energy data is not greater than the energy data currently stored in the data register to which it is connected, Keep the energy data in the data register unchanged.
  • the adder compares that the input energy data is greater than the energy data currently stored in the register to which it is connected, the adder also replaces the address of the input energy data with the energy currently stored in the address register connected to itself. Data address.
  • each energy data has a corresponding address.
  • the energy data is stored at the address 0 ⁇ 999.
  • the method may further include: clearing each of the data registers in the first comparison circuit, and/or each address register in the first comparison circuit.
  • step 103 the adder in the second comparison circuit acquires energy data stored in each data register in the first comparison circuit, and compares the acquired energy data with each other to obtain the acquired energy data.
  • the largest energy data in the middle, the maximum energy data obtained is taken as the peak value.
  • the method may further include: the adder in the second comparison circuit saves the obtained peak value to a data register of the second comparison circuit, and saves the address of the peak to the location Said in the address register of the second comparison circuit.
  • the method may further include: verifying whether the number of peaks obtained reaches a preset peak number threshold, and if not, obtaining the peak value and one or more of the left and right sides of the peak.
  • the data is cleared from all the energy data to be searched, that is, from the memory of all the energy data to be subjected to the peak search processing, and then the above steps 101-103 are repeated until the number of peaks obtained reaches the preset peak value. Number threshold; otherwise, end Pre-peak search.
  • the present invention further provides a peak search device, the device comprising: a read data control circuit, a first comparison circuit and a second comparison circuit; wherein the first comparison circuit comprises a plurality of adders, a plurality of data registers The plurality of adders are connected to the plurality of data registers one by one; the data register is configured to store energy data; and the adder is configured to input the energy data of the input data and the energy data currently saved by the data register connected thereto Comparing and updating the energy data stored in each of the data registers;
  • a read data control circuit configured to acquire a plurality of energy data, and input to the plurality of adders of the first comparison circuit respectively;
  • a second comparison circuit configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and comparing the acquired energy data, Get the peak.
  • the device may further include: a memory and a vector processor, wherein the memory is configured to save all the energy data to be searched; and the vector processor is configured to perform correlation operation processing and filtering operation processing on the acquired sampling data. And performing a modulo operation process, extracting a real part from a result of the modulo operation process, and obtaining the energy data and storing the energy data in the memory;
  • the memory is further configured to store a plurality of energy data per row; the read data control circuit is further configured to read a row of energy data from the memory.
  • the adders of the first comparison circuit are further configured to replace the input energy data with the data register connected to the data register when the input energy data is greater than the energy data currently stored in the data register connected to the data. Energy data.
  • the first comparison circuit further includes a plurality of address registers for storing an address of the energy data, connected to the adder, and the adder is further configured to input the energy data larger than When the energy data currently stored in the register is described, the address of the input energy data is replaced with the energy data address stored in the address register to which it is connected.
  • the second comparison circuit includes an adder and a data register, where the adder of the second comparison circuit is configured to acquire the obtained after performing the obtaining and comparing all the energy data to be searched. Energy data stored in each data register of the first comparison circuit, and comparing the acquired energy data to obtain a peak value, and storing the obtained peak value in a data register of the second comparison circuit; A data register of the circuit for holding the peak.
  • the second comparison circuit may further include an address register for storing an address of the obtained peak value; the adder of the second comparison circuit may further be configured to save the address of the obtained peak value to the second comparison The address register of the circuit.
  • the first comparison circuit may be divided into a plurality of comparison units, each comparison unit includes an adder, a data register and an address register, wherein the adder in each comparison unit determines that the input energy data is greater than the When the energy data currently stored in the data register in the unit is compared, the energy data currently stored in the data register is updated to the input energy data, and the energy data address currently stored in the address register in the comparison unit is updated to Enter the address of the energy data.
  • the second comparison circuit can include a comparison unit including an adder, a data register, and an address register, and the adder saves the address of the obtained peak value to the address register of the comparison unit, and the obtained The peak value is saved to the data register of the comparison unit.
  • the device may further include: a loop control circuit and a clear control circuit, wherein the loop control circuit is configured to verify whether the number of peaks obtained by the second comparison circuit has reached a preset peak number threshold, If not, notifying the clear control circuit to clear, and starting the read data control circuit, the adder, the register, and the second comparison circuit, repeating the peak search; otherwise, ending the current peak search; clearing the control circuit And, when receiving the notification of the loop control circuit, clearing a peak obtained by the second comparison circuit and one or more data of the left and right sides of the peak from the memory.
  • the loop control circuit may include a register for recording the number of peaks currently obtained.
  • the clear control circuit may be further configured to clear each address register in the first comparison circuit and/or each address register in the first comparison circuit.
  • the pre-peak search task is performed by a vector processor, and the peak search process can be implemented by a hardware accelerator.
  • the peak search device may include: a radio frequency receiving module, a data memory, a vector processor, and a peak search module, wherein the radio frequency receiving module is configured to receive data sampled by the ADC, and store the obtained adoption data to a data processor; a vector processor, configured to read sample data from the data memory, process the read sample data, obtain energy data, and save the obtained energy data to a data memory; a peak search module, Used to read energy data from the data memory, perform peak search processing, find the required peaks, save the found peaks, and return to the vector processor.
  • the radio frequency receiving module receives the data sampled by the ADC in the radio frequency chip, and stores the sampled data into the data memory, and the vector processor reads the sampled data from the data memory, and performs related operations and filtering operations on the sampled data.
  • the modulo operation process the real part is extracted, energy data is obtained, and the obtained energy data is saved in the data memory; after the vector processor sets the parameter of the peak search module, the peak search module reads from the data memory. Take energy data, perform peak search processing, find peaks, and return to the vector processor.
  • the process of processing the sampled data by the vector processor may include: the vector processor reads the sampled data from the data memory in a pipeline manner, and performs the operations of correlating and filtering the downlink sampled data with the primary synchronization sequence (PSS). And storing the obtained operation result (including the correlation of the I channel, the filtered result, and the Q channel correlation, the filtered result) into the data memory, and performing the modulo operation processing, and then reading the correlation from the data memory And after filtering As a result, the modulo operation processing is performed, and then the real part is extracted from the result of the modulo operation processing to obtain energy data, and the obtained energy data is written in the data memory.
  • PSS primary synchronization sequence
  • the real part of the obtained result is energy data, and is stored in the lower 16 bits of the data memory, and the imaginary part of the obtained result is 0, and is stored in the data memory.
  • each bank stores p/2 data. After performing the compression processing of the real part, the vacancy of the imaginary part of the data is removed, and a bank of the data memory stores p energy data, thus not only compressing/saving data. The memory storage space, and in the subsequent peak search, the efficiency of reading energy data will be doubled, and the throughput of parallel search can be doubled.
  • the vector processor can perform the above-described processing of the extracted real part by an instruction to extract the real part.
  • the data memory has the following structural features:
  • the vector processor only performs operations such as correlation operations, filtering operations, etc., and does not extract the real part, and then writes the result back to the memory, then the result is still a column of memory with P*2 energy data, but each A 32-bit memory cell will hold the modulus of the complex energy, with the upper 16 bits being 0 and the lower 16 bits being the real part (not 0).
  • the peak search contains the operation of extracting the real part, ie in correlation.
  • the vector processor can access the same column of data of four banks of the memory at a time, and the peak search module can access one column of a bank of the memory at a time, that is, 16*P bits of data, that is, P energy data. (If the vector processor has not performed the operation of extracting the real part, then each time it is read or written is P/2 data).
  • the data memory may be a synchronous static memory (SSRAM).
  • the vector processor is further configured to perform parameter setting on the peak search module.
  • the peak search module performs peak search processing on the read energy data according to the parameter settings of the vector processor.
  • the peak search module can be implemented by a hardware accelerator, and can access the data memory, and each time 16*p bits of energy data is read out from the data memory, that is, p energy data is read, and each time, in a pipeline manner, The read energy data is subjected to a peak search. Finally, the results of each peak search are compared to find a peak, and in this cycle, n maximum values to be searched are found in the energy data, where n is an integer greater than zero.
  • the peak search module may mainly include: a software interface, a read data control circuit, a first comparison circuit, a second comparison circuit, a clear control circuit, and a loop control circuit.
  • the vector processor writes the parameters to be configured into the software interface to configure parameters to the peak search module.
  • the software interface can be one or more registers for holding the configured parameters.
  • the read data control circuit sends a read request and a read address signal to the data memory according to the data memory read/write sequence (protocol), and after receiving the p energy data returned by the data memory, respectively inputting the p energy data to the first Compare the p adders in the circuit.
  • the first comparison circuit may include p adders, p data registers, and p address registers, wherein an adder is respectively connected to a data register, and an address
  • the register, the adder and the data register are in one-to-one correspondence
  • the adder and the address register are in one-to-one correspondence
  • the data register and the address register are in one-to-one correspondence
  • each adder compares the energy data sent by the read data control circuit with the data register connected to the data register
  • the energy data in the comparison is compared, and based on the comparison result, it is determined whether to update the energy data in the data register and the address in the address register.
  • the first comparison circuit needs Contains p adders. It is also possible to adjust the number of adders in the first comparison circuit in accordance with the amount of energy data that is actually processed in parallel.
  • the second comparison circuit is configured to acquire p energy data from p data registers in the first comparison circuit, and obtain the p data from the p address registers.
  • the address of the energy data compares the obtained p energy data, finds the peak, finds the address corresponding to the peak, and saves the found peak and the address of the peak.
  • the second comparison circuit may include an adder, a data register, and an address register, wherein the adder is configured to acquire p energy data and an address of the p energy data from the first comparison circuit, and The acquired p energy data is compared to find a peak; the data register is used to store the peak found by the adder, and the address register is used to store the address of the found peak.
  • a control circuit configured to perform a clear operation on the data memory according to a result obtained by the second comparison circuit, specifically, to obtain a currently found peak, and m energy data of the left and right sides of the peak from the data memory Cleared in the middle.
  • the loop control circuit is configured to control the above-mentioned read data control circuit, the first comparison circuit, the second comparison circuit, and the clear control circuit to work cyclically to find a plurality of peaks.
  • the peak search module performs the process of peak search, and the specific process is as follows:
  • Step 0 The vector processor writes the peak search to be configured in the software interface of the peak search module. Cable parameters, configuring peak search parameters for the peak search module;
  • the peak search parameter configured by the vector processor may include: a source data address src_data_addr indicating an energy data address to be read, a data length data_len to read the energy data, a peak number threshold n, The number of data to be cleared/masked on the left and right sides of the peak, the address dest_data_addr in the data memory for storing the maximum value, the parameter dest-sel for indicating whether it is stored in the register or the data memory.
  • the number of data to be cleared/shielded on the left and right sides of the peak is the empirical parameter. If the filtering effect is good or the signal-to-noise ratio of the RF signal is high, a smaller value can be set.
  • Step 1 At startup, the clear control circuit clears the p data registers in the first compare circuit and the p address registers.
  • Step 2 The read data control circuit verifies whether there is still unread energy data in the data memory. If yes, the p energy data is read from the data memory storing the energy data every clock cycle, and respectively input to In the p adders in the first comparison circuit, otherwise, proceed to step 4;
  • the read data control circuit can verify whether the current read data cycle has reached data_len/p cycles, and if so, all energy data in the data memory has been read, otherwise, there is still no read. Energy data.
  • Step 3 p adders respectively compare the energy data received by themselves with the energy data currently stored in the data register to which they are connected, and if the received energy data is greater than the energy data in the data register, The received energy data replaces the energy data currently stored in the data register, and stores the address of the received energy data in an address register to which it is connected; if the received energy data is not greater than the data The energy data currently stored in the register is kept unchanged by the data currently stored in the data register connected thereto, and the address currently stored in the address register is kept unchanged, and the process returns to step 2;
  • Step 4 The second comparison circuit reads energy from p data registers in the first comparison circuit Data, obtaining an address of each read energy data from p address registers in the first comparison circuit; then, the second comparison circuit compares the read p energy data, and the p energy data The largest energy data is determined as a peak, the peak is found, and the address of the peak is found. Finally, the found peak and the address of the peak are saved to a specified position, such as saving the peak to the data for storing the peak. Register, save the peak address to the address register for storing the peak address, or save the found peak value and the address of the peak to the result area in the data memory for saving the peak, so that one round of scanning ends, Found 1 peak;
  • the searched peaks can be stored in the data memory. If the number of peaks to be searched is small, the searched peaks can be stored in the accessible result register. .
  • Step 5 Accumulate 1 and find the number of peaks found
  • the peak search module described above may further include: a register for holding a state parameter indicating a peak search process, and a register for saving the number of peaks found.
  • the register holding the state parameter indicating the peak search process increments the number of peaks it holds.
  • the register for saving the number of peaks found will accumulate the number of peaks saved by one after each cycle.
  • Step 6 The loop control circuit determines whether the saved peak number reaches the pre-configured "peak number threshold n", and if so, ends the current flow, otherwise proceeds to step 7;
  • the loop control circuit obtains the number of peaks currently found from the register for saving the number of found peaks, and determines whether the number of peaks found reaches a preset peak number threshold, and if so, The peak search is ended, otherwise, the read data control circuit, the first comparison circuit, the second comparison circuit, and the clear control circuit are controlled to continue searching for the peak value.
  • Step 7 Clear the control circuit to the peak in the data memory, and the m on both sides of the peak The energy data is cleared and returns to step 1 to repeat the above process.
  • the reading and comparison of the energy data is performed in a pipeline manner, and the p energy data are compared in columns and in parallel, without stopping in the middle, and the speed is fast; and, the main part of the peak search module is a plurality of adders, and more Data registers and multiple address registers, the circuit is simple, easy to implement, and takes up a small area.
  • the mobile terminal needs to synchronize with the base station through cell search, and the synchronization refers to aligning the local scrambling code of the mobile terminal with the scrambling code of the received signal, and thus, moving The terminal can demodulate the data from the received signal.
  • the process of performing cell search in WCDMA may include the following steps:
  • Step 1 The vector processor of the peak search device performs correlation operation and filtering on the PSC and the downlink sample data (that is, cumulatively averaging the correlation operations of a plurality of slots) to obtain energy values of a series of correlation operations. Storing the energy value of the correlation operation in a data memory of the peak search device, the peak search module of the peak search device reading the energy value of the correlation operation from the data memory, and finding the energy value of the correlation operation The peak in the middle, finally, the slot boundary is determined based on the found peak.
  • Step 2 The vector processor performs a correlation operation on the secondary synchronization sequence (SSC) and the downlink sampling data, and performs filtering (that is, cumulatively averaging the correlation operations of the plurality of frames) to obtain an energy value of the correlation operation.
  • the energy value of the correlation operation is stored in the data memory, and the peak search module reads the energy value of the correlation operation from the data memory to find a peak value in the energy value of the correlation operation. Determine the frame boundary and scrambling code group according to the slot boundary determined in step 1, and the peak found in this step and the position of the peak. Group ).
  • step 2 needs to be repeated 15 times, and each possible SSC (SSCo - SSC) 14 ) Perform correlation operations with the downsampled data, and perform peak search on the energy values of the obtained correlation operations.
  • SSCo - SSC SSC
  • the process of finding the peak from the result is the same as the process of performing the peak search in the first embodiment, and will not be described again.
  • Step 3 The vector processor uses a spread code of a common pilot channel (CPICH, Common Pilot Channel) and the determined scrambling code group, and each possible scrambling code and downlink in the scrambling code group
  • CPICH Common Pilot Channel
  • the sampled signal is further correlated and filtered to obtain a series of energy values of the correlation operation, and the energy value of the correlation operation is stored in the data memory, and the peak search module reads the correlation operation from the data memory.
  • the energy value, the peak value is found, the specific scrambling code and the phase of the scrambling code are determined, and thus the cell search in WCDMA is completed.
  • the process of performing cell search in LTE may include the following steps:
  • Step 1 The vector processor performs a sliding correlation operation and filtering on the PSC and the downlink sampling data to obtain a sequence of energy values of the correlation operation, and stores the energy value sequence of the correlation operation in the data memory, and the peak search module reads the correlation.
  • the energy value of the operation finds the peak value in the energy value of the correlation operation, and determines the slot boundary and the used PSC based on the found peak value.
  • Step 2 The vector processor will sequence each of the 168 SSCs (chip length is 62) Multiplying and summing the corresponding points of the 62 subcarrier data specified in the protocol, obtaining 168 results, storing the 168 results in the data memory, and the peak search module reading the 168 results to find the 168 The peak in the result. Based on the location of the peak found in this step and the used SSC, and the PSC used in step 1, the ID of the cell in which the mobile terminal is located is determined, and the scrambling code used by the cell is confirmed by the cell ID. At this point, the cell search process ends.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Measurement Of Current Or Voltage (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present invention is a peak search method comprising: a plurality of energy data is obtained and separately entered into multiple adders of a first comparator circuit; each adder of the first comparator circuit separately compares the entered energy data per se with energy data currently stored in a connected data register per se and updates said energy data stored in each data register; after having obtained and compared all the energy data to be searched, a second comparator circuit obtains the energy data stored in each data register within the first comparator circuit and compares said obtained energy data to get a peak value. Also provided in the present invention is a peak search device characterized by rapid peak searches, an ability to meet high throughput requirements of a vector processor, and simple and effective algorithms. In addition, the hardware is simple and easy to manufacture and the invention is small and low-cost.

Description

一种峰值搜索方法及装置 技术领域  Peak search method and device
本发明涉及峰值搜索技术, 尤其涉及一种峰值搜索方法及装置。 背景技术  The present invention relates to a peak search technique, and more particularly to a peak search method and apparatus. Background technique
峰值搜索常用于小区搜索、 多径搜索、 时隙同步等应用场景, 对于速 度的要求比较高。 例如, 在长期演进(LTE, Long-Term Evolution ) 中, 小 区初搜时, 每 5ms进行 15个 4800序列的搜索, 其它处理大概需要 420k个 时钟周期; 邻区搜索启动时, 每 5ms进行 3个 4800序列的搜索, 同时可能 还会有下行接收、 测量和邻区搜索等的其它任务。  Peak search is often used in application scenarios such as cell search, multipath search, and slot synchronization. The speed requirement is relatively high. For example, in Long-Term Evolution (LTE), when a cell is initially searched, 15 4800 sequences are searched every 5 ms, and other processes require about 420 k clock cycles; when the neighbor search starts, 3 are performed every 5 ms. The 4800 sequence search may also have other tasks such as downlink reception, measurement, and neighborhood search.
现有的峰值搜索电路, 每次读入单个能量数据, 并通过将读入的能量 数据与之前得到的最大能量数据进行比较, 直到各能量数据一一读取完毕 时, 才能得到能量数据的最大值, 并需要反复进行正向、 反向扫描, 找到 其他最大值, 如申请号为 200510098701.4的中国专利, 就提出了一种宽带 码分多址( WCDMA, Wideband Code Division Multiple Access )系统中峰值 搜索的方法, 现有的峰值搜索方法扫描效率低, 功耗高, 不能适应适量处 理器高吞吐率的要求。 发明内容  The existing peak search circuit reads a single energy data each time, and compares the read energy data with the previously obtained maximum energy data until the energy data is read one by one to obtain the maximum energy data. Value, and need to perform forward and reverse scans repeatedly, find other maximum values. For example, Chinese patent application No. 200510098701.4 proposes a peak search in Wideband Code Division Multiple Access (WCDMA) system. The existing peak search method has low scanning efficiency and high power consumption, and cannot meet the requirements of a high amount of processor throughput. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种峰值搜索方法及装置, 能 够适应矢量处理器高吞吐率的要求。  In view of the above, it is a primary object of the present invention to provide a peak search method and apparatus that can accommodate the high throughput requirements of vector processors.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种峰值搜索方法, 所述方法包括:  The present invention provides a peak search method, the method comprising:
获取多个能量数据, 分别输入到第一比较电路的多个加法器中; 所述 第一比较电路的各加法器分别将输入自身的能量数据、 与所述第一比较电 路中连接自身的数据寄存器当前保存的能量数据进行比较, 并更新所述第 一比较电路中各数据寄存器保存的能量数据; Obtaining a plurality of energy data, respectively input into a plurality of adders of the first comparison circuit; Each adder of the first comparison circuit compares the energy data input to itself with the energy data currently stored in the data register connected to the first comparison circuit, and updates each data register in the first comparison circuit to save Energy data;
在对所有需搜索的能量数据进行所述获取、 以及比较之后, 第二比较 电路获取所述第一比较电路中各数据寄存器保存的能量数据 , 并将所获取 的能量数据进行比较, 得到峰值。  After performing the acquisition and comparison on all the energy data to be searched, the second comparison circuit acquires the energy data held by each data register in the first comparison circuit, and compares the acquired energy data to obtain a peak value.
在上述方案中, 在所述获取多个能量数据之前, 所述方法还包括: 对获取的采样数据进行相关运算处理、 过滤运算处理后, 再进行取模 运算处理, 从取模运算处理的结果中提取实部, 得到所述能量数据并保存 到存储器中。  In the above solution, before the obtaining the plurality of energy data, the method further includes: performing correlation operation processing and filtering operation processing on the acquired sampling data, and performing modulo operation processing, and the result of the modulo operation processing The real part is extracted, and the energy data is obtained and saved in a memory.
在上述方案中, 所述存储器每行存储有多个能量数据;  In the above solution, the memory stores a plurality of energy data per row;
所述获取多个能量数据, 为: 从所述存储器中读取一行能量数据。 在上述方案中, 所述更新所述第一比较电路中各数据寄存器保存的能 量数据, 包括:  The acquiring a plurality of energy data is: reading a row of energy data from the memory. In the above solution, the updating the energy data stored in each data register in the first comparison circuit includes:
在所述加法器比较得到所输入的能量数据大于自身所连接数据寄存器 当前保存的能量数据时, 所述加法器将所输入的能量数据替换掉自身连接 数据寄存器中保存的能量数据。  When the adder compares the input energy data to the energy data currently stored in the data register to which it is connected, the adder replaces the input energy data with the energy data stored in the self-connected data register.
在上述方案中, 所述方法还包括:  In the above solution, the method further includes:
在所述加法器比较得到所输入的能量数据大于自身所连接寄存器当前 保存的能量数据时, 所述加法器还将所输入能量数据的地址替换掉所述第 一比较电路中连接自身的地址寄存器中当前保存的能量数据地址。  When the adder compares and obtains that the input energy data is greater than the energy data currently stored in the register to which it is connected, the adder also replaces the address of the input energy data with the address register of the first comparison circuit connected to itself. The energy data address currently saved in .
在上述方案中, 在所述获取多个能量数据之前, 所述方法还包括: 将所述第一比较电路中各数据寄存器、 和 /或第一比较电路中各地址寄 存器清零。  In the above solution, before the obtaining the plurality of energy data, the method further comprises: clearing each of the data registers in the first comparison circuit and/or each address register in the first comparison circuit.
在上述方案中, 所述第二比较电路获取所述第一比较电路中各数据寄 存器保存的能量数据, 并将所获取的能量数据进行比较, 得到峰值, 包括: 所述第二比较电路中的加法器获取多个第一比较电路中各数据寄存器 保存的能量数据, 并将所获取的能量数据进行相互比较, 得到所获取能量 数据中最大的能量数据 , 将所得到最大的能量数据作为所述峰值。 In the above solution, the second comparison circuit acquires each data in the first comparison circuit And storing the energy data, and comparing the obtained energy data to obtain a peak value, comprising: the adder in the second comparison circuit acquires energy data saved by each of the plurality of first comparison circuits, and The acquired energy data are compared with each other to obtain the largest energy data in the acquired energy data, and the obtained maximum energy data is taken as the peak value.
在上述方案中, 在得到峰值之后, 所述方法还包括:  In the above solution, after the peak is obtained, the method further includes:
所述第二比较电路中的加法器将所得到的峰值保存到所述第二比较电 路中的数据寄存器中, 将所述峰值的地址保存到所述第二比较电路中的地 址寄存器中。  The adder in the second comparison circuit saves the obtained peak value to a data register in the second comparison circuit, and saves the address of the peak value to an address register in the second comparison circuit.
在上述方案中, 在得到峰值之后, 所述方法还包括:  In the above solution, after the peak is obtained, the method further includes:
验证所得到峰值的个数是否达到预设的峰值个数阈值, 如果不是, 则 将所得到的峰值、 以及所述峰值左右两边的一个或多个数据从所述所有需 搜索的能量数据中清零后, 重复进行峰值搜索; 否则, 结束当前峰值搜索。  Verifying whether the number of peaks obtained reaches a preset peak number threshold, and if not, clearing the obtained peak value and one or more data of the left and right sides of the peak from all the energy data to be searched After zero, repeat the peak search; otherwise, end the current peak search.
本发明还提供了一种峰值搜索装置, 所述装置包括: 读数据控制电路、 第一比较电路和第二比较电路; 其中,  The present invention also provides a peak search device, the device comprising: a read data control circuit, a first comparison circuit, and a second comparison circuit;
第一比较电路包括多个加法器、 多个数据寄存器, 所述多个加法器与 所述多个数据寄存器一一连接; 数据寄存器, 用于保存能量数据; 加法器, 用于将输入自身的能量数据、 与自身所连接数据寄存器当前保存的能量数 据进行比较, 并更新所述各数据寄存器中保存的能量数据;  The first comparison circuit includes a plurality of adders, a plurality of data registers, the plurality of adders being connected to the plurality of data registers one by one; a data register for storing energy data; and an adder for inputting the own Comparing the energy data with the energy data currently stored in the data register to which it is connected, and updating the energy data stored in each of the data registers;
读数据控制电路, 用于获取多个能量数据, 并分别输入到所述第一比 较电路的多个加法器;  a read data control circuit, configured to acquire a plurality of energy data, and input to the plurality of adders of the first comparison circuit respectively;
第二比较电路, 用于在对所有需搜索的能量数据进行所述获取、 以及 比较之后, 获取所述第一比较电路中各数据寄存器保存的能量数据, 并将 所获取的能量数据进行比较, 得到峰值。  a second comparison circuit, configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and comparing the acquired energy data, Get the peak.
在上述方案中, 所述装置还包括: 存储器和矢量处理器, 其中, 存储器, 用于保存所述所有需搜索的能量数据; 矢量处理器, 用于对获取的采样数据进行相关运算处理、 过滤运算处 理后, 再进行取模运算处理, 从取模运算处理的结果中提取实部, 得到所 述能量数据并保存到所述存储器中。 In the above solution, the device further includes: a memory and a vector processor, wherein the memory is configured to save all the energy data to be searched; a vector processor, configured to perform correlation operation processing and filtering operation processing on the acquired sampling data, perform modulo operation processing, extract a real part from a result of the modulo operation processing, obtain the energy data, and save the In memory.
在上述方案中, 所述存储器, 还用于每行存储多个能量数据; 所述读数据控制电路, 还用于从所述存储器中读取一行能量数据。 在上述方案中, 所述第一比较电路的各加法器, 还用于在所输入的能 量数据大于自身所连接数据寄存器当前保存的能量数据时, 将所输入的能 量数据替换掉自身所连接数据寄存器中保存的能量数据。  In the above solution, the memory is further configured to store a plurality of energy data per row; and the read data control circuit is further configured to read a row of energy data from the memory. In the above solution, each adder of the first comparison circuit is further configured to replace the input energy data with the data connected by itself when the input energy data is greater than the energy data currently stored in the data register connected thereto. Energy data saved in the register.
在上述方案中, 所述第一比较电路还包括多个地址寄存器, 用于保存 所述能量数据的地址, 与所述加法器一一连接;  In the above solution, the first comparison circuit further includes a plurality of address registers, configured to store addresses of the energy data, and are connected to the adder one by one;
所述加法器, 还用于在所输入的能量数据大于所述寄存器当前保存的 能量数据时, 将所输入能量数据的地址替换掉自身所连接地址寄存器中保 存的能量数据地址。  The adder is further configured to replace the address of the input energy data with the energy data address saved in the address register to which it is connected when the input energy data is greater than the energy data currently stored in the register.
在上述方案中, 所述第二比较电路包括加法器和数据寄存器, 其中, 所述第二比较电路的加法器, 用于在对所有需搜索的能量数据进行所 述获取、 以及比较之后, 获取所述第一比较电路中各数据寄存器保存的能 量数据, 并将所获取的能量数据进行比较, 得到峰值, 并将所得到的峰值 保存到所述第二比较电路的数据寄存器中;  In the above solution, the second comparison circuit includes an adder and a data register, wherein the adder of the second comparison circuit is configured to obtain, after the obtaining, and comparing all the energy data to be searched, Energy data stored in each data register of the first comparison circuit, and comparing the acquired energy data to obtain a peak value, and saving the obtained peak value to a data register of the second comparison circuit;
所述第二比较电路的数据寄存器, 用于保存所述峰值。  The data register of the second comparison circuit is configured to save the peak.
在上述方案中, 所述第二比较电路还包括地址寄存器, 用于保存所得 到峰值的地址;  In the above solution, the second comparison circuit further includes an address register for storing the address obtained to the peak value;
所述第二比较电路的加法器, 还用于将所得到峰值的地址保存到所述 第二比较电路的地址寄存器中。  The adder of the second comparison circuit is further configured to save the address of the obtained peak value to an address register of the second comparison circuit.
在上述方案中, 所述装置还包括: 循环控制电路和清零控制电路, 其 中, 循环控制电路, 用于验证所述第二比较电路所得到峰值的个数是否达 到预设的峰值个数阈值, 如果不是, 则通知所述清零控制电路进行清零, 并启动所述读数据控制电路、 第一比较电路和第二比较电路, 重复进行峰 值搜索; 否则, 结束当前峰值搜索; In the above solution, the device further includes: a loop control circuit and a clear control circuit, wherein the loop control circuit is configured to verify whether the number of peaks obtained by the second comparison circuit reaches Go to a preset peak number threshold, if not, notify the clear control circuit to clear, and activate the read data control circuit, the first comparison circuit, and the second comparison circuit to repeat the peak search; otherwise, End the current peak search;
清零控制电路, 用于在接收到所述循环控制电路的通知时, 将所述第 二比较电路得到的峰值、 以及所述峰值左右两边的一个或多个数据从所述 存储器中清零。  And a clear control circuit, configured to: when receiving the notification of the loop control circuit, clear a peak obtained by the second comparison circuit and one or more data of the left and right sides of the peak from the memory.
在上述方案中, 所述清零控制电路, 还用于将所述第一比较电路中各 数据寄存器、 和 /或第一比较电路中各地址寄存器清零。  In the above solution, the clear control circuit is further configured to clear each address register in the first comparison circuit and/or each address register in the first comparison circuit.
本发明所提供的峰值搜索方法及装置, 每个时钟周期读出多个能量数 据, 并将所读取的多个能量数据进行并行比较, 在对所有能量数据进行并 行比较之后, 将并行比较得到的能量数据再进行比较, 来得到峰值, 只需 正向搜索, 不需要正向、 反向交替进行, 中间不需停顿, 峰值搜索速度快, 能够适用矢量处理器高吞吐率的要求, 并且, 本发明每轮扫描找到 1 个最 大值, 找 n个最大值就循环 n次, 算法相对简单、 有效, 控制也很简单有 效; 此外, 本发明的峰值搜索装置只需要加法器和寄存器即可实现, 简单 易实现, 面积小, 成本低。 附图说明  The peak search method and device provided by the present invention reads a plurality of energy data every clock cycle, compares the read multiple energy data in parallel, and compares all the energy data in parallel, and compares them in parallel. The energy data is then compared to obtain the peak value, only the forward search is performed, and the forward and reverse directions are not required to be alternately performed, the pause is not required in the middle, the peak search speed is fast, and the vector processor high throughput rate can be applied, and The present invention finds one maximum value per scan, and finds n maximum values to cycle n times. The algorithm is relatively simple and effective, and the control is simple and effective; in addition, the peak search device of the present invention only needs an adder and a register to implement Simple and easy to implement, small in size and low in cost. DRAWINGS
图 1为本发明峰值搜索方法的实现流程图;  1 is a flow chart showing the implementation of the peak search method of the present invention;
图 1为本发明的峰值搜索系统的组成结构示意图;  1 is a schematic structural diagram of a peak search system of the present invention;
图 3为本发明具体实施例峰值搜索装置中数据存储器的结构示意图; 图 4为本发明具体实施例峰值搜索装置中数据存储器每列的结构示意 图;  3 is a schematic structural diagram of a data storage device in a peak search device according to an embodiment of the present invention; FIG. 4 is a schematic structural view of each column of a data memory in a peak search device according to an embodiment of the present invention;
图 5 为本发明具体实施例峰值搜索装置中峰值搜索模块的组成结构示 意图;  FIG. 5 is a schematic structural diagram of a peak search module in a peak search device according to an embodiment of the present invention; FIG.
图 6为本发明具体实施例中峰值搜索模块的第一比较电路的组成结构 示意图。 具体实施方式 本发明的基本思想是: 每次获取多个能量数据, 并通过多个加法器进 行比较, 再根据比较结果更新所保存的能量数据; 直到所有能量数据均获 取并比较之后, 将所保存的各能量数据再进行比较, 得到峰值, 如此, 多 个能量数据并行进行比较, 速度快, 峰值搜索效率高, 能够适应矢量处理 器高吞吐率的要求。 6 is a structural diagram of a first comparison circuit of a peak search module according to an embodiment of the present invention; Schematic. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The basic idea of the present invention is: acquiring a plurality of energy data each time, and comparing by a plurality of adders, and updating the saved energy data according to the comparison result; until all the energy data are acquired and compared, The stored energy data are further compared to obtain a peak value. Thus, the plurality of energy data are compared in parallel, the speed is fast, the peak search efficiency is high, and the vector processor high throughput rate can be adapted.
本发明的峰值搜索方法, 参照图 1所示, 主要可以包括以下步驟: 步驟 101 : 获取多个能量数据, 分别输入到第一比较电路的多个加法器 中;  The peak search method of the present invention, as shown in FIG. 1 , may mainly include the following steps: Step 101: Acquire a plurality of energy data, which are respectively input into a plurality of adders of the first comparison circuit;
步驟 102: 所述第一比较电路的各加法器分别将输入自身的能量数据、 与连接自身的数据寄存器当前保存的能量数据进行比较, 并更新所述各数 据寄存器保存的能量数据;  Step 102: Each adder of the first comparison circuit compares energy data input to itself with energy data currently stored in a data register connected to itself, and updates energy data stored in each data register;
步驟 103 : 在对所有需搜索的能量数据进行所述获取、 以及比较之后, 第二比较电路获取所述第一比较电路中各数据寄存器保存的能量数据 , 并 将所获取的能量数据进行比较, 得到峰值。  Step 103: After performing the obtaining and comparing the energy data to be searched, the second comparison circuit acquires energy data saved by each data register in the first comparison circuit, and compares the acquired energy data. Get the peak.
具体地, 在步驟 101中获取多个能量数据之前, 所述方法还可以包括: 对已获取的采样数据进行相关运算处理、 过滤运算处理后, 再进行取模运 算处理, 从取模运算处理的结果中提取实部, 得到所述能量数据并保存到 存储器中。  Specifically, before acquiring the plurality of energy data in step 101, the method may further include: performing correlation operation processing and filtering operation processing on the acquired sampling data, and performing modulo operation processing, from the modulo operation processing The real part is extracted from the result, and the energy data is obtained and saved to the memory.
其中, 所述存储器每行能够存储多个能量数据, 步驟 101 中获取多个 能量数据, 具体为: 从所述存储器中读取一行能量数据。  The memory can store a plurality of energy data in each row, and the plurality of energy data is obtained in step 101, specifically: reading a row of energy data from the memory.
具体地, 步驟 102 中, 所述各加法器分别将输入自身的能量数据、 与 自身所连接数据寄存器当前保存的能量数据进行比较, 在所述加法器比较 得到所输入的能量数据大于自身所连接数据寄存器当前保存的能量数据 时, 所述加法器将所输入的能量数据替换掉自身连接数据寄存器中保存的 能量数据; 在所述加法器比较得到所输入的能量数据不大于自身所连接数 据寄存器当前保存的能量数据时 , 保持所述数据寄存器中能量数据不变。 Specifically, in step 102, each adder compares the input energy data with the energy data currently stored in the data register connected to the adder, and compares the input energy data with the self-connected Energy data currently stored in the data register When the adder replaces the input energy data with the energy data stored in the self-connected data register; when the adder compares that the input energy data is not greater than the energy data currently stored in the data register to which it is connected, Keep the energy data in the data register unchanged.
这里, 在所述加法器比较得到所输入的能量数据大于自身所连接寄存 器当前保存的能量数据时, 所述加法器还将所输入能量数据的地址替换掉 连接自身的地址寄存器中当前保存的能量数据地址。  Here, when the adder compares that the input energy data is greater than the energy data currently stored in the register to which it is connected, the adder also replaces the address of the input energy data with the energy currently stored in the address register connected to itself. Data address.
实际应用中, 每个能量数据都有一个对应的地址。 例如, 能量数据存 放在地址 0~999, 读取能量数据时, 会产生读地址, 如果一行存储 8个能量 数据, p=8, 则第一次从位于地址 0处的能量数据开始读取, 第二次从位于 地址 8处的能量数据开始读取, 第三次从地址 16处的能量数据开始读取, 依此类推, 因此, 在读取能量数据时, 就可以得到所读取能量数据的地址。  In practical applications, each energy data has a corresponding address. For example, the energy data is stored at the address 0~999. When the energy data is read, the read address is generated. If one row stores 8 energy data, p=8, the first time the energy data at the address 0 is read. The second time is read from the energy data at address 8, the third time from the energy data at address 16, and so on, so when reading the energy data, the read energy data can be obtained. the address of.
这里, 在获取能量数据之前, 所述方法还可以包括: 将所述第一比较 电路中各数据寄存器、 和 /或第一比较电路中各地址寄存器清零。  Here, before acquiring the energy data, the method may further include: clearing each of the data registers in the first comparison circuit, and/or each address register in the first comparison circuit.
具体地, 在步驟 103 中, 所述第二比较电路中的加法器获取所述第一 比较电路中各数据寄存器保存的能量数据, 并将所获取的能量数据进行相 互比较, 得到所获取能量数据中最大的能量数据, 将所得到最大的能量数 据作为所述峰值。  Specifically, in step 103, the adder in the second comparison circuit acquires energy data stored in each data register in the first comparison circuit, and compares the acquired energy data with each other to obtain the acquired energy data. The largest energy data in the middle, the maximum energy data obtained is taken as the peak value.
这里, 步驟 103之后, 所述方法还可以包括: 所述第二比较电路中的 加法器将所得到的峰值保存到所述第二比较电路的数据寄存器中, 将所述 峰值的地址保存到所述第二比较电路的地址寄存器中。  Here, after step 103, the method may further include: the adder in the second comparison circuit saves the obtained peak value to a data register of the second comparison circuit, and saves the address of the peak to the location Said in the address register of the second comparison circuit.
在得到峰值之后, 所述方法还可以包括: 验证所得到峰值的个数是否 达到预设的峰值个数阈值, 如果不是, 则将所得到的峰值、 以及所述峰值 左右两边的一个或多个数据从所有需搜索的能量数据中清零, 即从需进行 峰值搜索处理的所有能量数据的存储器中清零, 之后, 重复上述步驟 101-103 , 直到所得到峰值的个数达到预设的峰值个数阈值; 否则, 结束当 前峰值搜索。 After the peak is obtained, the method may further include: verifying whether the number of peaks obtained reaches a preset peak number threshold, and if not, obtaining the peak value and one or more of the left and right sides of the peak The data is cleared from all the energy data to be searched, that is, from the memory of all the energy data to be subjected to the peak search processing, and then the above steps 101-103 are repeated until the number of peaks obtained reaches the preset peak value. Number threshold; otherwise, end Pre-peak search.
相应的, 本发明还提供了一种峰值搜索装置, 所述装置包括: 读数据 控制电路、 第一比较电路和第二比较电路; 其中, 第一比较电路包括多个 加法器、 多个数据寄存器, 所述多个加法器与所述多个数据寄存器一一连 接; 数据寄存器, 用于保存能量数据; 加法器, 用于将输入自身的能量数 据、 与自身所连接数据寄存器当前保存的能量数据进行比较, 并更新所述 各数据寄存器中保存的能量数据;  Correspondingly, the present invention further provides a peak search device, the device comprising: a read data control circuit, a first comparison circuit and a second comparison circuit; wherein the first comparison circuit comprises a plurality of adders, a plurality of data registers The plurality of adders are connected to the plurality of data registers one by one; the data register is configured to store energy data; and the adder is configured to input the energy data of the input data and the energy data currently saved by the data register connected thereto Comparing and updating the energy data stored in each of the data registers;
读数据控制电路, 用于获取多个能量数据, 并分别输入到所述第一比 较电路的多个加法器;  a read data control circuit, configured to acquire a plurality of energy data, and input to the plurality of adders of the first comparison circuit respectively;
第二比较电路, 用于在对所有需搜索的能量数据进行所述获取、 以及 比较之后, 获取所述第一比较电路中各数据寄存器保存的能量数据, 并将 所获取的能量数据进行比较, 得到峰值。  a second comparison circuit, configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and comparing the acquired energy data, Get the peak.
其中, 所述装置还可以包括: 存储器和矢量处理器, 其中, 存储器用 于保存所述所有需搜索的能量数据; 矢量处理器, 用于对获取的采样数据 进行相关运算处理、 过滤运算处理后, 再进行取模运算处理, 从取模运算 处理的结果中提取实部 , 得到所述能量数据并保存到所述存储器中;  The device may further include: a memory and a vector processor, wherein the memory is configured to save all the energy data to be searched; and the vector processor is configured to perform correlation operation processing and filtering operation processing on the acquired sampling data. And performing a modulo operation process, extracting a real part from a result of the modulo operation process, and obtaining the energy data and storing the energy data in the memory;
这里, 所述存储器, 还用于每行存储多个能量数据; 所述读数据控制 电路, 还用于从所述存储器中读取一行能量数据。  Here, the memory is further configured to store a plurality of energy data per row; the read data control circuit is further configured to read a row of energy data from the memory.
其中, 所述第一比较电路的各加法器, 还用于在所输入的能量数据大 于自身所连接数据寄存器当前保存的能量数据时, 将所输入的能量数据替 换掉自身所连接数据寄存器中保存的能量数据。  The adders of the first comparison circuit are further configured to replace the input energy data with the data register connected to the data register when the input energy data is greater than the energy data currently stored in the data register connected to the data. Energy data.
这里, 所述第一比较电路还包括多个地址寄存器, 用于保存所述能量 数据的地址, 与所述加法器——连接; 所述加法器, 还用于在所输入的能 量数据大于所述寄存器当前保存的能量数据时, 将所输入能量数据的地址 替换掉自身所连接地址寄存器中保存的能量数据地址。 具体地, 所述第二比较电路包括加法器和数据寄存器, 其中, 所述第 二比较电路的加法器, 用于在对所有需搜索的能量数据进行所述获取、 以 及比较之后, 获取所述第一比较电路中各数据寄存器保存的能量数据, 并 将所获取的能量数据进行比较, 得到峰值, 并将所得到的峰值保存到所述 第二比较电路的数据寄存器中; 所述第二比较电路的数据寄存器, 用于保 存所述峰值。 Here, the first comparison circuit further includes a plurality of address registers for storing an address of the energy data, connected to the adder, and the adder is further configured to input the energy data larger than When the energy data currently stored in the register is described, the address of the input energy data is replaced with the energy data address stored in the address register to which it is connected. Specifically, the second comparison circuit includes an adder and a data register, where the adder of the second comparison circuit is configured to acquire the obtained after performing the obtaining and comparing all the energy data to be searched. Energy data stored in each data register of the first comparison circuit, and comparing the acquired energy data to obtain a peak value, and storing the obtained peak value in a data register of the second comparison circuit; A data register of the circuit for holding the peak.
这里, 所述第二比较电路还可以包括地址寄存器, 用于保存所得到峰 值的地址; 所述第二比较电路的加法器, 还可以用于将所得到峰值的地址 保存到所述第二比较电路的地址寄存器中。  Here, the second comparison circuit may further include an address register for storing an address of the obtained peak value; the adder of the second comparison circuit may further be configured to save the address of the obtained peak value to the second comparison The address register of the circuit.
实际应用中, 可以将第一比较电路分为多个比较单元, 每个比较单元 包括一个加法器、 一个数据寄存器和一个地址寄存器, 每个比较单元中加 法器在判断所输入的能量数据大于该比较单元中数据寄存器中当前保存的 能量数据时, 将所述数据寄存器中当前保存的能量数据更新为所输入的能 量数据, 并将该比较单元中地址寄存器中当前保存的能量数据地址更新为 所输入能量数据的地址。 同理, 第二比较电路可以包括一个比较单元, 该 比较单元包括一个加法器、 一个数据寄存器和一个地址寄存器, 加法器将 所得到峰值的地址保存到该比较单元的地址寄存器, 将所得到的峰值保存 到该比较单元的数据寄存器中。  In an actual application, the first comparison circuit may be divided into a plurality of comparison units, each comparison unit includes an adder, a data register and an address register, wherein the adder in each comparison unit determines that the input energy data is greater than the When the energy data currently stored in the data register in the unit is compared, the energy data currently stored in the data register is updated to the input energy data, and the energy data address currently stored in the address register in the comparison unit is updated to Enter the address of the energy data. Similarly, the second comparison circuit can include a comparison unit including an adder, a data register, and an address register, and the adder saves the address of the obtained peak value to the address register of the comparison unit, and the obtained The peak value is saved to the data register of the comparison unit.
其中, 所述装置还可以包括: 循环控制电路和清零控制电路, 其中, 循环控制电路, 用于验证所述第二比较电路所得到峰值的个数是否已达到 预设的峰值个数阈值, 如果不是, 则通知所述清零控制电路进行清零, 并 启动所述读数据控制电路、 加法器、 寄存器和第二比较电路, 重复进行峰 值搜索; 否则, 结束当前峰值搜索; 清零控制电路, 用于在接收到所述循 环控制电路的通知时, 将所述第二比较电路得到的峰值、 以及所述峰值左 右两边的一个或多个数据从所述存储器中清零。 实际应用中, 所述循环控制电路可以包括一个寄存器, 用于记录当前 已得到峰值的个数。 The device may further include: a loop control circuit and a clear control circuit, wherein the loop control circuit is configured to verify whether the number of peaks obtained by the second comparison circuit has reached a preset peak number threshold, If not, notifying the clear control circuit to clear, and starting the read data control circuit, the adder, the register, and the second comparison circuit, repeating the peak search; otherwise, ending the current peak search; clearing the control circuit And, when receiving the notification of the loop control circuit, clearing a peak obtained by the second comparison circuit and one or more data of the left and right sides of the peak from the memory. In practical applications, the loop control circuit may include a register for recording the number of peaks currently obtained.
这里, 所述清零控制电路, 还可以用于将所述第一比较电路中各数据 寄存器、 和 /或第一比较电路中各地址寄存器清零。  Here, the clear control circuit may be further configured to clear each address register in the first comparison circuit and/or each address register in the first comparison circuit.
实施例一  Embodiment 1
实际应用中, 峰值搜索前的计算任务由矢量处理器来完成, 峰值搜索 的过程可以由硬件加速器来实现。  In practical applications, the pre-peak search task is performed by a vector processor, and the peak search process can be implemented by a hardware accelerator.
如图 1所示, 峰值搜索装置可以包括: 射频接收模块、 数据存储器、 矢量处理器和峰值搜索模块, 其中, 射频接收模块, 用于接收 ADC采样的 数据, 并将所得到的采用数据存储到数据存储器; 矢量处理器, 用于从所 述数据存储器读取采样数据, 对所读取的采样数据进行处理后, 得到能量 数据, 并将所得到的能量数据保存到数据存储器; 峰值搜索模块, 用于从 数据存储器中读取能量数据, 进行峰值搜索处理, 找到需要的峰值, 将所 找到的峰值保存, 并返回给所述矢量处理器。  As shown in FIG. 1, the peak search device may include: a radio frequency receiving module, a data memory, a vector processor, and a peak search module, wherein the radio frequency receiving module is configured to receive data sampled by the ADC, and store the obtained adoption data to a data processor; a vector processor, configured to read sample data from the data memory, process the read sample data, obtain energy data, and save the obtained energy data to a data memory; a peak search module, Used to read energy data from the data memory, perform peak search processing, find the required peaks, save the found peaks, and return to the vector processor.
具体地, 射频接收模块接收射频芯片中的 ADC采样的数据, 并将采样 数据存储到数据存储器, 矢量处理器从所述数据存储器中读取采样数据, 并对采样数据进行相关运算、 过滤运算、 取模运算处理后, 提取实部, 得 到能量数据, 将所得到的能量数据再保存到所述数据存储器中; 在矢量处 理器对峰值搜索模块进行参数设置后, 峰值搜索模块从数据存储器中读取 能量数据, 进行峰值搜索处理, 找到峰值, 并返回给矢量处理器。  Specifically, the radio frequency receiving module receives the data sampled by the ADC in the radio frequency chip, and stores the sampled data into the data memory, and the vector processor reads the sampled data from the data memory, and performs related operations and filtering operations on the sampled data. After the modulo operation process, the real part is extracted, energy data is obtained, and the obtained energy data is saved in the data memory; after the vector processor sets the parameter of the peak search module, the peak search module reads from the data memory. Take energy data, perform peak search processing, find peaks, and return to the vector processor.
实际应用中, 矢量处理器对采样数据进行处理的过程可以包括: 矢量 处理器以流水线的方式从数据存储器中读取采样数据, 再进行下行采样数 据与主同步序列 (PSS )相关和滤波等运算, 将所得到的运算结果(包括 I 通道的相关、 滤波后的结果和 Q通道相关、 滤波后的结果)存储到数据存 储器中, 进行取模运算处理时, 再从数据存储器中读取上述相关和过滤后 的结果进行取模运算处理, 之后, 从取模运算处理的结果中再提取实部, 得到能量数据, 再将所得到的能量数据写入到数据存储器中。 In practical applications, the process of processing the sampled data by the vector processor may include: the vector processor reads the sampled data from the data memory in a pipeline manner, and performs the operations of correlating and filtering the downlink sampled data with the primary synchronization sequence (PSS). And storing the obtained operation result (including the correlation of the I channel, the filtered result, and the Q channel correlation, the filtered result) into the data memory, and performing the modulo operation processing, and then reading the correlation from the data memory And after filtering As a result, the modulo operation processing is performed, and then the real part is extracted from the result of the modulo operation processing to obtain energy data, and the obtained energy data is written in the data memory.
其中, 矢量处理器按照公式(1 )进行取模运算处理后, 所得到结果的 实部为能量数据, 保存于数据存储器的低 16比特, 所得到结果中的虚部为 0, 保存于数据存储器的高 16比特。  Wherein, after the vector processor performs the modulo operation processing according to the formula (1), the real part of the obtained result is energy data, and is stored in the lower 16 bits of the data memory, and the imaginary part of the obtained result is 0, and is stored in the data memory. The high 16 bits.
\ r \= r · ?* = Re2+ Im2 ( 1 ) 其中, 表示一个复数信号, Re为 的实部, Im为?的虚部。 原先每个 bank存储 p/2个数据, 执行提取实部的压缩处理后, 将数据虚部的空位去 掉, 则数据存储器的一个 bank就存储了 p个能量数据, 如此, 不仅压缩 / 节省了数据存储器的存储空间, 并且, 在后续进行峰值搜索时, 读取能量 数据的效率会相应提高一倍, 并行搜索的吞吐率也可以提高一倍。 实际应 用中, 矢量处理器可以通过一个提取实部的指令来进行上述的提取实部的 处理。 \r \= r · ?* = Re 2 + Im 2 ( 1 ) where, represents a complex signal, Re is the real part, Im is? The imaginary part. Originally, each bank stores p/2 data. After performing the compression processing of the real part, the vacancy of the imaginary part of the data is removed, and a bank of the data memory stores p energy data, thus not only compressing/saving data. The memory storage space, and in the subsequent peak search, the efficiency of reading energy data will be doubled, and the throughput of parallel search can be doubled. In practical applications, the vector processor can perform the above-described processing of the extracted real part by an instruction to extract the real part.
具体地, 为了适应矢量处理器的吞吐率, 所述数据存储器具有以下结 构特征: 数据存储格式为复数能量 F = Re Im , 用 32比特的单元来存储一 个复数能量数据, 其中低 16比特为实部, 高 16比特为虚部; 如图 3所示, 存储器宽度(width ) 为 16*P*4比特(P为大于 0的偶数), 分为 4个仓库 ( bank ), 每个 bank有 P/2个 32比特的存储单元, 矢量处理器能够一次读 取存储器的一列数据, 即 P*2个能量数据。 如果矢量处理器只进行相关运 算、 滤波运算等操作过后, 不进行提取实部的操作, 然后将结果写回存储 器中, 那么, 其结果还是存储器的一列有 P*2个能量数据, 但是每个 32比 特的存储单元将存放着复数能量的模值, 其高 16比特为 0,低 16比特为实 部(不为 0 ), 而实际上, 峰值搜索中包含提取实部的操作, 即在相关运算、 滤波运算后, 紧接着用提取实部的指令进行提取实部的操作, 然后将结果 写回存储器中, 那么存储器的一列存放 (16*P*4)/16=P*4个能量数据, 即一 个 32比特的单元存放着两个能量数据, 一个 bank能存放 P个能量数据, 如图 4所示。 Specifically, in order to adapt to the throughput of the vector processor, the data memory has the following structural features: The data storage format is a complex energy F = Re Im , and a 32-bit unit is used to store a complex energy data, wherein the lower 16 bits are real Part, the upper 16 bits are imaginary parts; as shown in Figure 3, the memory width (width) is 16*P*4 bits (P is an even number greater than 0), divided into 4 warehouses (banks), each bank has P /2 32-bit memory cells, the vector processor can read one column of data of the memory at a time, that is, P*2 energy data. If the vector processor only performs operations such as correlation operations, filtering operations, etc., and does not extract the real part, and then writes the result back to the memory, then the result is still a column of memory with P*2 energy data, but each A 32-bit memory cell will hold the modulus of the complex energy, with the upper 16 bits being 0 and the lower 16 bits being the real part (not 0). In fact, the peak search contains the operation of extracting the real part, ie in correlation. After the operation and the filtering operation, the operation of extracting the real part is performed by extracting the instruction of the real part, and then the result is written back to the memory, then one column of the memory is stored (16*P*4)/16=P*4 energy data. , that is, one A 32-bit unit stores two energy data, and a bank can store P energy data, as shown in FIG.
前面描述了矢量处理器能一次访问存储器的 4个 bank的同一列数据, 而峰值搜索模块则每次可以访问存储器的某一个 bank的一列, 即 16*P比 特的数据, 也即 P个能量数据(如果矢量处理器没有进行过提取实部的操 作, 那么每次读写的是 P/2个数据)。  The foregoing describes that the vector processor can access the same column of data of four banks of the memory at a time, and the peak search module can access one column of a bank of the memory at a time, that is, 16*P bits of data, that is, P energy data. (If the vector processor has not performed the operation of extracting the real part, then each time it is read or written is P/2 data).
实际应用中, 所述数据存储器可以是同步静态存储器(SSRAM )。 其中, 矢量处理器还用于对所述峰值搜索模块进行参数设置。 峰值搜 索模块根据所述矢量处理器的参数设置, 对读取到的能量数据进行峰值搜 索处理。  In practical applications, the data memory may be a synchronous static memory (SSRAM). The vector processor is further configured to perform parameter setting on the peak search module. The peak search module performs peak search processing on the read energy data according to the parameter settings of the vector processor.
其中, 峰值搜索模块可以由硬件加速器来实现, 可以访问数据存储器, 每次从数据存储器中读出 16*p比特的能量数据, 即读出 p个能量数据, 并 以流水线的方式, 对每次读取的能量数据进行峰值搜索, 最后, 将每次峰 值搜索的结果进行比较找到峰值, 如此循环, 在所述能量数据中找到要搜 索的 n个最大值, 其中, n为大于 0的整数。  The peak search module can be implemented by a hardware accelerator, and can access the data memory, and each time 16*p bits of energy data is read out from the data memory, that is, p energy data is read, and each time, in a pipeline manner, The read energy data is subjected to a peak search. Finally, the results of each peak search are compared to find a peak, and in this cycle, n maximum values to be searched are found in the energy data, where n is an integer greater than zero.
具体地, 如图 5 所示, 峰值搜索模块主要可以包括: 软件接口、 读数 据控制电路、 第一比较电路、 第二比较电路、 清零控制电路和循环控制电 路。  Specifically, as shown in FIG. 5, the peak search module may mainly include: a software interface, a read data control circuit, a first comparison circuit, a second comparison circuit, a clear control circuit, and a loop control circuit.
其中, 矢量处理器将要配置的参数写到软件接口中, 以向峰值搜索模 块配置参数。 该软件接口可以是一个或多个用于保存所配置参数的寄存器。  Wherein, the vector processor writes the parameters to be configured into the software interface to configure parameters to the peak search module. The software interface can be one or more registers for holding the configured parameters.
读数据控制电路是按照数据存储器读写时序 (协议) 向数据存储器发 出读请求和读地址信号, 在接收到数据存储器返回的 p个能量数据后, 将 所述 p个能量数据分别输入到第一比较电路中的 p个加法器中。  The read data control circuit sends a read request and a read address signal to the data memory according to the data memory read/write sequence (protocol), and after receiving the p energy data returned by the data memory, respectively inputting the p energy data to the first Compare the p adders in the circuit.
如图 6所示, 第一比较电路可以包括 p个加法器、 p个数据寄存器、 p 个地址寄存器, 其中, 一个加法器分别连接一个数据寄存器、 和一个地址 寄存器, 加法器与数据寄存器一一对应, 加法器和地址寄存器一一对应, 数据寄存器和地址寄存器一一对应, 各加法器将所述读数据控制电路发送 的能量数据、 与自身所连接数据寄存器中的能量数据进行比较, 根据比较 结果, 决定是否更新数据寄存器中的能量数据、 以及地址寄存器中的地址。 As shown in FIG. 6, the first comparison circuit may include p adders, p data registers, and p address registers, wherein an adder is respectively connected to a data register, and an address The register, the adder and the data register are in one-to-one correspondence, the adder and the address register are in one-to-one correspondence, the data register and the address register are in one-to-one correspondence, and each adder compares the energy data sent by the read data control circuit with the data register connected to the data register The energy data in the comparison is compared, and based on the comparison result, it is determined whether to update the energy data in the data register and the address in the address register.
实际应用中,如果数据存储器中一个 bank存储了 p个能量数据,其中, p为大于 0的整数,一次读入 p个能量数据到第一比较电路, 为实现并行比 较, 第一比较电路中需要包含 p个加法器。 也可以根据实际需要并行处理 的能量数据的数量, 调整第一比较电路中加法器的数量。  In practical applications, if a bank in the data memory stores p energy data, where p is an integer greater than 0, p energy data is read into the first comparison circuit at a time, in order to achieve parallel comparison, the first comparison circuit needs Contains p adders. It is also possible to adjust the number of adders in the first comparison circuit in accordance with the amount of energy data that is actually processed in parallel.
在第一比较电路对所有能量数据比较处理后, 第二比较电路用于从第 一比较电路中的 p个数据寄存器中获取 p个能量数据、 并从 p个地址寄存 器中获取到所述 p个能量数据的地址, 将所获取到的 p个能量数据再进行 比较, 找到峰值, 再找到该峰值所对应的地址, 并将所找到的峰值、 以及 该峰值的地址保存。  After the first comparison circuit compares all the energy data, the second comparison circuit is configured to acquire p energy data from p data registers in the first comparison circuit, and obtain the p data from the p address registers. The address of the energy data, compares the obtained p energy data, finds the peak, finds the address corresponding to the peak, and saves the found peak and the address of the peak.
其中, 所述第二比较电路可以包括一个加法器、 一个数据寄存器和一 个地址寄存器, 其中, 加法器用于从第一比较电路中获取 p个能量数据、 以及所述 p个能量数据的地址, 并将所获取的 p个能量数据进行比较, 找 到峰值; 数据寄存器用于保存所述加法器找到的峰值, 地址寄存器用于保 存所找到峰值的地址。  The second comparison circuit may include an adder, a data register, and an address register, wherein the adder is configured to acquire p energy data and an address of the p energy data from the first comparison circuit, and The acquired p energy data is compared to find a peak; the data register is used to store the peak found by the adder, and the address register is used to store the address of the found peak.
清零控制电路, 用于根据第二比较电路得到的结果, 对所述数据存储 器进行清零操作, 具体地, 将当前找到的峰值、 以及该峰值左右两边的 m 个能量数据从所述数据存储器中清零。  Clearing a control circuit, configured to perform a clear operation on the data memory according to a result obtained by the second comparison circuit, specifically, to obtain a currently found peak, and m energy data of the left and right sides of the peak from the data memory Cleared in the middle.
循环控制电路, 用于控制上述的读数据控制电路、 第一比较电路、 第 二比较电路、 清零控制电路循环工作, 以找到多个峰值。  The loop control circuit is configured to control the above-mentioned read data control circuit, the first comparison circuit, the second comparison circuit, and the clear control circuit to work cyclically to find a plurality of peaks.
峰值搜索模块进行峰值搜索的处理过程, 具体流程如下:  The peak search module performs the process of peak search, and the specific process is as follows:
步驟 0:矢量处理器在峰值搜索模块的软件接口中写入要配置的峰值搜 索参数, 为峰值搜索模块配置峰值搜索参数; Step 0: The vector processor writes the peak search to be configured in the software interface of the peak search module. Cable parameters, configuring peak search parameters for the peak search module;
具体地, 矢量处理器所配置的峰值搜索参数可以包括: 表示要读取能 量数据地址的源数据地址 src— data— addr、 要读取能量数据的数据长度 data— len、 峰值个数阈值 n、 峰值左右两边需清除 /屏蔽的数据个数 m、 数据 存储器中用于存放最大值的地址 dest— data— addr、 用于表示存储于寄存器还 是数据存储器的参数 dest— sel等。  Specifically, the peak search parameter configured by the vector processor may include: a source data address src_data_addr indicating an energy data address to be read, a data length data_len to read the energy data, a peak number threshold n, The number of data to be cleared/masked on the left and right sides of the peak, the address dest_data_addr in the data memory for storing the maximum value, the parameter dest-sel for indicating whether it is stored in the register or the data memory.
实际应用中, 峰值左右两边需清除 /屏蔽的数据个数 m为经验参数, 如 果滤波效果好、 或者射频信号的信噪比高, 可以设置较小的数值。  In practical applications, the number of data to be cleared/shielded on the left and right sides of the peak is the empirical parameter. If the filtering effect is good or the signal-to-noise ratio of the RF signal is high, a smaller value can be set.
步驟 1 :启动之时,清零控制电路将第一比较电路中的 p个数据寄存器、 以及 p个地址寄存器清零。  Step 1: At startup, the clear control circuit clears the p data registers in the first compare circuit and the p address registers.
步驟 2:读数据控制电路验证所述数据存储器中是否有还有未读取的能 量数据, 如果是, 则每时钟周期从保存有能量数据的数据存储器中读取 p 个能量数据, 分别输入到第一比较电路中的 p个加法器中, 否则, 继续步 驟 4;  Step 2: The read data control circuit verifies whether there is still unread energy data in the data memory. If yes, the p energy data is read from the data memory storing the energy data every clock cycle, and respectively input to In the p adders in the first comparison circuit, otherwise, proceed to step 4;
具体地, 读数据控制电路可以通过验证当前读取数据的周期是否已经 达到 data— len/p个周期,如果是,则数据存储器中所有的能量数据均已读取, 否则, 还有未读取的能量数据。  Specifically, the read data control circuit can verify whether the current read data cycle has reached data_len/p cycles, and if so, all energy data in the data memory has been read, otherwise, there is still no read. Energy data.
步驟 3: p个加法器, 分别将自身所接收到的能量数据与自身所连接数 据寄存器当前保存的能量数据进行比较, 如果所接收到的能量数据大于所 述数据寄存器中的能量数据, 则将所接收到的能量数据替换掉所述数据寄 存器中当前保存的能量数据, 并将所接收到能量数据的地址存入自身所连 接的地址寄存器中; 如果所接收到的能量数据不大于所述数据寄存器当前 保存的能量数据, 则保持自身所连接数据寄存器当前保存的数据不变, 并 保持所述地址寄存器中当前保存的地址不变, 返回步驟 2;  Step 3: p adders respectively compare the energy data received by themselves with the energy data currently stored in the data register to which they are connected, and if the received energy data is greater than the energy data in the data register, The received energy data replaces the energy data currently stored in the data register, and stores the address of the received energy data in an address register to which it is connected; if the received energy data is not greater than the data The energy data currently stored in the register is kept unchanged by the data currently stored in the data register connected thereto, and the address currently stored in the address register is kept unchanged, and the process returns to step 2;
步驟 4:第二比较电路从第一比较电路中的 p个数据寄存器中读取能量 数据, 从第一比较电路中的 p个地址寄存器中获取所读取各能量数据的地 址; 之后, 第二比较电路将所读取到的 p个能量数据进行比较, 将所述 p 个能量数据中最大的能量数据确定为峰值, 找到峰值, 并找到所述峰值的 地址, 最后, 将所找到的峰值、 以及该峰值的地址保存到指定的位置, 如 将峰值保存到用于存储峰值的数据寄存器、 将峰值的地址保存到用于存储 峰值地址的地址寄存器, 或者将所找到的峰值、 以及该峰值的地址保存到 数据存储器中用于保存峰值的结果区域中, 如此, 一轮扫描结束, 找到 1 个峰值; Step 4: The second comparison circuit reads energy from p data registers in the first comparison circuit Data, obtaining an address of each read energy data from p address registers in the first comparison circuit; then, the second comparison circuit compares the read p energy data, and the p energy data The largest energy data is determined as a peak, the peak is found, and the address of the peak is found. Finally, the found peak and the address of the peak are saved to a specified position, such as saving the peak to the data for storing the peak. Register, save the peak address to the address register for storing the peak address, or save the found peak value and the address of the peak to the result area in the data memory for saving the peak, so that one round of scanning ends, Found 1 peak;
实际应用中, 如果要搜索的峰值个数较多, 可以将搜索到的峰值存储 在数据存储器中, 如果要搜索的峰值个数较少, 可以将搜索到的峰值存放 于便于访问的结果寄存器中。  In practical applications, if the number of peaks to be searched is large, the searched peaks can be stored in the data memory. If the number of peaks to be searched is small, the searched peaks can be stored in the accessible result register. .
步驟 5: 对所找到的峰值个数进行累加 1并保存;  Step 5: Accumulate 1 and find the number of peaks found;
这里, 上述的峰值搜索模块还可以包括: 用于保存表示峰值搜索进程 的状态参数的寄存器、 和用于保存所找到峰值个数的寄存器。  Here, the peak search module described above may further include: a register for holding a state parameter indicating a peak search process, and a register for saving the number of peaks found.
每次第二比较电路找到一个峰值后, 所述保存表示峰值搜索进程的状 态参数的寄存器会将自身所保存的峰值个数加 1。 实际应用中, 所述用于保 存所找到峰值个数的寄存器会在每经过一个周期之后, 将所保存的峰值个 数累加 1。  Each time the second comparison circuit finds a peak, the register holding the state parameter indicating the peak search process increments the number of peaks it holds. In practical applications, the register for saving the number of peaks found will accumulate the number of peaks saved by one after each cycle.
步驟 6: 循环控制电路判断所保存的峰值个数是否达到了预先配置的 "峰值个数阈值 n" , 如果是, 则结束当前流程, 否则继续步驟 7;  Step 6: The loop control circuit determines whether the saved peak number reaches the pre-configured "peak number threshold n", and if so, ends the current flow, otherwise proceeds to step 7;
具体地, 循环控制电路从所述用于保存所找到峰值个数的寄存器中获 取当前所找到峰值的个数, 判断所找到峰值的个数是否达到预设的峰值个 数阈值, 如果是, 则结束峰值搜索, 否则, 控制所述读数据控制电路、 第 一比较电路、 第二比较电路、 清零控制电路继续搜索峰值。  Specifically, the loop control circuit obtains the number of peaks currently found from the register for saving the number of found peaks, and determines whether the number of peaks found reaches a preset peak number threshold, and if so, The peak search is ended, otherwise, the read data control circuit, the first comparison circuit, the second comparison circuit, and the clear control circuit are controlled to continue searching for the peak value.
步驟 7: 清零控制电路将数据存储器中的峰值、 以及峰值左右两边的 m 个能量数据清零, 并返回步驟 1 , 重复上述过程。 Step 7: Clear the control circuit to the peak in the data memory, and the m on both sides of the peak The energy data is cleared and returns to step 1 to repeat the above process.
在上述过程中, 能量数据的读取和比较以流水线方式进行, 且 p个能 量数据按列、 并行地比较, 中间不停顿, 速度快; 并且, 峰值搜索模块主 要部分是多个加法器、 多个数据寄存器和多个地址寄存器, 电路简单、 易 于实现, 占用的面积小。  In the above process, the reading and comparison of the energy data is performed in a pipeline manner, and the p energy data are compared in columns and in parallel, without stopping in the middle, and the speed is fast; and, the main part of the peak search module is a plurality of adders, and more Data registers and multiple address registers, the circuit is simple, easy to implement, and takes up a small area.
实施例二  Embodiment 2
本实施例, 对应用本发明所提供的峰值搜索方法及装置进行小区搜索 的过程做评细说明。  In this embodiment, a process of performing cell search by applying the peak search method and apparatus provided by the present invention is described in detail.
实际应用中, 在扩频通信领域, 都需要通过小区搜索使得移动终端与 基站同步, 同步是指将移动终端本地的扰码( scramble code )与所接收到信 号的扰码对准, 如此, 移动终端才能从所接收到的信号中解调出数据。  In practical applications, in the field of spread spectrum communication, the mobile terminal needs to synchronize with the base station through cell search, and the synchronization refers to aligning the local scrambling code of the mobile terminal with the scrambling code of the received signal, and thus, moving The terminal can demodulate the data from the received signal.
基于实施例一的峰值搜索方法, WCDMA 中进行小区搜索的过程可以 包括如下步驟:  Based on the peak search method of Embodiment 1, the process of performing cell search in WCDMA may include the following steps:
步驟 1 : 峰值搜索装置的矢量处理器将 PSC与下行采样数据进行相关 运算、 滤波(即, 对多个时隙 (slot ) 的相关运算结果累加取平均), 得到 一系列相关运算的能量值, 将所述相关运算的能量值存储在峰值搜索装置 的数据存储器中, 峰值搜索装置的峰值搜索模块从所述数据存储器中读取 所述相关运算的能量值, 并找到所述相关运算的能量值中的峰值, 最后, 基于所找到的峰值确定 slot边界。  Step 1: The vector processor of the peak search device performs correlation operation and filtering on the PSC and the downlink sample data (that is, cumulatively averaging the correlation operations of a plurality of slots) to obtain energy values of a series of correlation operations. Storing the energy value of the correlation operation in a data memory of the peak search device, the peak search module of the peak search device reading the energy value of the correlation operation from the data memory, and finding the energy value of the correlation operation The peak in the middle, finally, the slot boundary is determined based on the found peak.
步驟 2: 矢量处理器将辅同步序列 (SSC )与下行采样数据进行相关运 算, 滤波(即, 对多个帧(frame )的相关运算结果累加取平均), 得到相关 运算的能量值, 将所述相关运算的能量值存储到所述数据存储器中, 峰值 搜索模块从所述数据存储器中读取所述相关运算的能量值, 找到所述相关 运算的能量值中的峰值。 根据步驟 1所确定的 slot边界, 以及本步驟中找 到峰值及该峰值所在的位置, 确定 frame 边界和扰码组 (scramble code group )。 Step 2: The vector processor performs a correlation operation on the secondary synchronization sequence (SSC) and the downlink sampling data, and performs filtering (that is, cumulatively averaging the correlation operations of the plurality of frames) to obtain an energy value of the correlation operation, The energy value of the correlation operation is stored in the data memory, and the peak search module reads the energy value of the correlation operation from the data memory to find a peak value in the energy value of the correlation operation. Determine the frame boundary and scrambling code group according to the slot boundary determined in step 1, and the peak found in this step and the position of the peak. Group ).
这里, 由于 WCDMA的帧结构包括 15个时隙, PSC每个 slot会重复 一次, 而每个 slot的 SSC都不同, 因此, 步驟 2需要重复进行 15次, 将每 一个可能的 SSC ( SSCo - SSC14 )都与下行采样数据进行相关运算, 并对得 到的相关运算的能量值进行峰值搜索。 根据步驟 1所确定的 slot边界, 以 及本步驟中下行采样数据跟 SSC。 - SSC14中的一个序列进行相关运算后找 到的峰值及该峰值所在的位置, 确定 frame边界和扰码组。 Here, since the frame structure of WCDMA includes 15 time slots, each slot of the PSC is repeated once, and the SSC of each slot is different. Therefore, step 2 needs to be repeated 15 times, and each possible SSC (SSCo - SSC) 14 ) Perform correlation operations with the downsampled data, and perform peak search on the energy values of the obtained correlation operations. According to the slot boundary determined in step 1, and the downlink sampling data and SSC in this step. - A sequence in the SSC 14 is found after the correlation operation and the position of the peak, determining the frame boundary and the scrambling code group.
这里, 从所述结果中找到峰值的过程与实施例一中进行峰值搜索的过 程相同, 不再赘述。  Here, the process of finding the peak from the result is the same as the process of performing the peak search in the first embodiment, and will not be described again.
步驟 3:矢量处理器利用公共导频信道( CPICH, Common Pilot Channel ) 的扩频码(spread code )和所确定的扰码组, 将所述扰码组中的每一个可能 的扰码和下行采样信号再进行相关运算和滤波, 得到一系列相关运算的能 量值, 将所述相关运算的能量值存储到所述数据存储器中, 峰值搜索模块 再从所述数据存储器读取所述相关运算的能量值, 找到峰值, 确定具体的 扰码和该扰码的相位, 至此, WCDMA中的小区搜索完成。  Step 3: The vector processor uses a spread code of a common pilot channel (CPICH, Common Pilot Channel) and the determined scrambling code group, and each possible scrambling code and downlink in the scrambling code group The sampled signal is further correlated and filtered to obtain a series of energy values of the correlation operation, and the energy value of the correlation operation is stored in the data memory, and the peak search module reads the correlation operation from the data memory. The energy value, the peak value is found, the specific scrambling code and the phase of the scrambling code are determined, and thus the cell search in WCDMA is completed.
这里, 上述各个步驟搜索峰值的具体实现过程与实施例一中进行峰值 搜索的过程相同, 不再赘述。  Here, the specific implementation process of searching for the peak value in each step is the same as the process of performing the peak search in the first embodiment, and details are not described herein again.
LTE中进行小区搜索的过程可以包括如下步驟:  The process of performing cell search in LTE may include the following steps:
步驟 1 : 矢量处理器将 PSC与下行采样数据进行滑动相关运算、 滤波, 得到相关运算的能量值序列, 将所述相关运算的能量值序列存储到数据存 储器中, 峰值搜索模块读取所述相关运算的能量值, 找到相关运算的能量 值中的峰值, 基于所找到的峰值, 确定 slot边界和所使用的 PSC。  Step 1: The vector processor performs a sliding correlation operation and filtering on the PSC and the downlink sampling data to obtain a sequence of energy values of the correlation operation, and stores the energy value sequence of the correlation operation in the data memory, and the peak search module reads the correlation. The energy value of the operation, finds the peak value in the energy value of the correlation operation, and determines the slot boundary and the used PSC based on the found peak value.
这里, 由于有 3个 PSC序列, 具体使用哪个 PSC, 需要重复步驟 1三 次来确定。  Here, since there are 3 PSC sequences, which PSC is used specifically, it is necessary to repeat step 1 three times to determine.
步驟 2: 矢量处理器将 168种 SSC中的每一个序列 (码片长度为 62 ) 与协议中规定的 62个子载波数据对应点相乘并求和, 得到 168个结果, 将 所述 168个结果存储到数据存储器中, 峰值搜索模块读取所述 168个结果, 找到所述 168个结果中的峰值。 基于本步驟所找到峰值的位置和所使用的 的 SSC, 以及步驟 1中所确定使用的 PSC, 确定移动终端所在小区的 ID, 由小区 ID确认该小区使用的扰码。 至此, 小区搜索过程结束。 Step 2: The vector processor will sequence each of the 168 SSCs (chip length is 62) Multiplying and summing the corresponding points of the 62 subcarrier data specified in the protocol, obtaining 168 results, storing the 168 results in the data memory, and the peak search module reading the 168 results to find the 168 The peak in the result. Based on the location of the peak found in this step and the used SSC, and the PSC used in step 1, the ID of the cell in which the mobile terminal is located is determined, and the scrambling code used by the cell is confirmed by the cell ID. At this point, the cell search process ends.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种峰值搜索方法, 其特征在于, 所述方法包括:  A peak search method, the method comprising:
获取多个能量数据, 分别输入到第一比较电路的多个加法器中; 所述 第一比较电路的各加法器分别将输入自身的能量数据、 与连接自身的数据 寄存器当前保存的能量数据进行比较, 并更新所述各数据寄存器保存的能 量数据;  Obtaining a plurality of energy data, respectively input into a plurality of adders of the first comparison circuit; each adder of the first comparison circuit respectively inputs the energy data of the input and the energy data currently stored in the data register connected to itself Comparing and updating the energy data saved in each of the data registers;
在对所有需搜索的能量数据进行所述获取、 以及比较之后, 第二比较 电路获取所述第一比较电路中各数据寄存器保存的能量数据 , 并将所获取 的能量数据进行比较, 得到峰值。  After performing the acquisition and comparison on all the energy data to be searched, the second comparison circuit acquires the energy data held by each data register in the first comparison circuit, and compares the acquired energy data to obtain a peak value.
2、 根据权利要求 1所述峰值搜索方法, 其特征在于, 在所述获取多个 能量数据之前, 所述方法还包括:  2. The peak search method according to claim 1, wherein before the obtaining the plurality of energy data, the method further comprises:
对获取的采样数据进行相关运算处理、 过滤运算处理后, 再进行取模 运算处理, 从取模运算处理的结果中提取实部, 得到所述能量数据并保存 到存储器中。  After performing the correlation operation processing and the filter operation processing on the acquired sample data, the modulo operation processing is performed, and the real part is extracted from the result of the modulo operation processing, and the energy data is obtained and stored in the memory.
3、 根据权利要求 2所述峰值搜索方法, 其特征在于,  3. The peak search method according to claim 2, wherein
所述存储器每行存储有多个能量数据;  The memory stores a plurality of energy data per row;
所述获取多个能量数据, 为: 从所述存储器中读取一行能量数据。 The acquiring a plurality of energy data is: reading a row of energy data from the memory.
4、 根据权利要求 1所述峰值搜索方法, 其特征在于, 更新所述各数据 寄存器保存的能量数据, 包括: 4. The peak search method according to claim 1, wherein updating the energy data stored in each of the data registers comprises:
在所述加法器比较得到所输入的能量数据大于自身所连接数据寄存器 当前保存的能量数据时, 所述加法器将所输入的能量数据替换掉自身连接 数据寄存器中保存的能量数据。  When the adder compares the input energy data to the energy data currently stored in the data register to which it is connected, the adder replaces the input energy data with the energy data stored in the self-connected data register.
5、根据权利要求 4所述峰值搜索方法, 其特征在于, 所述方法还包括: 在所述加法器比较得到所输入的能量数据大于自身所连接寄存器当前 保存的能量数据时, 所述加法器还将所输入能量数据的地址替换掉所述第 一比较电路中连接自身的地址寄存器中当前保存的能量数据地址。 The peak search method according to claim 4, wherein the method further comprises: adding, when the adder compares that the input energy data is greater than energy data currently stored by a register connected thereto, the adder The address of the input energy data is also replaced by the number A comparison circuit stores the energy data address currently stored in its own address register.
6、 根据权利要求 5所述峰值搜索方法, 其特征在于, 在所述获取多个 能量数据之前, 所述方法还包括:  The peak search method according to claim 5, wherein before the obtaining the plurality of energy data, the method further comprises:
将所述第一比较电路中各数据寄存器、 和 /或第一比较电路中各地址寄 存器清零。  Each of the data registers in the first comparison circuit and/or each address register in the first comparison circuit is cleared.
7、 根据权利要求 1所述峰值搜索方法, 其特征在于, 所述第二比较电 路获取所述第一比较电路中各数据寄存器保存的能量数据 , 并将所获取的 能量数据进行比较, 得到峰值, 包括:  7. The peak search method according to claim 1, wherein the second comparison circuit acquires energy data stored in each data register in the first comparison circuit, and compares the acquired energy data to obtain a peak value. , including:
所述第二比较电路中的加法器获取多个第一比较电路中各数据寄存器 保存的能量数据, 并将所获取的能量数据进行相互比较, 得到所获取能量 数据中最大的能量数据 , 将所得到最大的能量数据作为所述峰值。  The adder in the second comparison circuit acquires energy data stored in each of the plurality of first comparison circuits, and compares the acquired energy data with each other to obtain maximum energy data in the acquired energy data. The largest energy data is obtained as the peak.
8、根据权利要求 7所述峰值搜索方法, 其特征在于,在得到峰值之后, 所述方法还包括:  The peak search method according to claim 7, wherein after the peak is obtained, the method further comprises:
所述第二比较电路中的加法器将所得到的峰值保存到所述第二比较电 路中的数据寄存器中, 将所述峰值的地址保存到所述第二比较电路中的地 址寄存器中。  The adder in the second comparison circuit saves the obtained peak value to a data register in the second comparison circuit, and saves the address of the peak value to an address register in the second comparison circuit.
9、 根据权利要求 1至 8任一项所述峰值搜索方法, 其特征在于, 在得 到峰值之后, 所述方法还包括:  The peak search method according to any one of claims 1 to 8, wherein after the peak is obtained, the method further comprises:
验证所得到峰值的个数是否达到预设的峰值个数阈值, 如果不是, 则 将所得到的峰值、 以及所述峰值左右两边的一个或多个数据从所述所有需 搜索的能量数据中清零后, 重复进行峰值搜索; 否则, 结束当前峰值搜索。  Verifying whether the number of peaks obtained reaches a preset peak number threshold, and if not, clearing the obtained peak value and one or more data of the left and right sides of the peak from all the energy data to be searched After zero, repeat the peak search; otherwise, end the current peak search.
10、 一种峰值搜索装置, 其特征在于, 所述装置包括: 读数据控制电 路、 第一比较电路和第二比较电路; 其中,  10. A peak search device, the device comprising: a read data control circuit, a first comparison circuit, and a second comparison circuit;
第一比较电路包括多个加法器、 多个数据寄存器, 所述多个加法器与 所述多个数据寄存器一一连接; 数据寄存器, 用于保存能量数据; 加法器, 用于将输入自身的能量数据、 与自身所连接数据寄存器当前保存的能量数 据进行比较, 并更新所述各数据寄存器中保存的能量数据; The first comparison circuit includes a plurality of adders, a plurality of data registers, the plurality of adders being connected to the plurality of data registers one by one; a data register for storing energy data; an adder, For comparing the energy data of the input itself with the energy data currently saved by the data register connected thereto, and updating the energy data stored in the data registers;
读数据控制电路, 用于获取多个能量数据, 并分别输入到所述第一比 较电路的多个加法器;  a read data control circuit, configured to acquire a plurality of energy data, and input to the plurality of adders of the first comparison circuit respectively;
第二比较电路, 用于在对所有需搜索的能量数据进行所述获取、 以及 比较之后, 获取所述第一比较电路中各数据寄存器保存的能量数据, 并将 所获取的能量数据进行比较, 得到峰值。  a second comparison circuit, configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and comparing the acquired energy data, Get the peak.
11、 根据权利要求 10所述峰值搜索装置, 其特征在于, 所述装置还包 括: 存储器和矢量处理器, 其中,  The peak search device according to claim 10, wherein the device further comprises: a memory and a vector processor, wherein
存储器, 用于保存所述所有需搜索的能量数据;  a memory, configured to save all the energy data to be searched;
矢量处理器, 用于对获取的采样数据进行相关运算处理、 过滤运算处 理后, 再进行取模运算处理, 从取模运算处理的结果中提取实部, 得到所 述能量数据并保存到所述存储器中。  a vector processor, configured to perform correlation operation processing and filtering operation processing on the acquired sampling data, perform modulo operation processing, extract a real part from a result of the modulo operation processing, obtain the energy data, and save the In memory.
12、 根据权利要求 10所述峰值搜索装置, 其特征在于,  12. The peak search device according to claim 10, wherein:
所述存储器, 还用于每行存储多个能量数据;  The memory is further configured to store a plurality of energy data per row;
所述读数据控制电路, 还用于从所述存储器中读取一行能量数据。 The read data control circuit is further configured to read a row of energy data from the memory.
13、 根据权利要求 10所述峰值搜索装置, 其特征在于, 所述第一比较 电路的各加法器, 还用于在所输入的能量数据大于自身所连接数据寄存器 当前保存的能量数据时, 将所输入的能量数据替换掉自身所连接数据寄存 器中保存的能量数据。 The peak search device according to claim 10, wherein each adder of the first comparison circuit is further configured to: when the input energy data is greater than energy data currently stored in a data register connected thereto, The input energy data replaces the energy data stored in the data register to which it is connected.
14、 根据权利要求 13所述峰值搜索装置, 其特征在于, 所述第一比较 电路还包括多个地址寄存器, 用于保存所述能量数据的地址, 与所述加法 器一一连接;  The peak search device according to claim 13, wherein the first comparison circuit further comprises a plurality of address registers for storing an address of the energy data, and being connected to the adder one by one;
所述加法器, 还用于在所输入的能量数据大于所述寄存器当前保存的 能量数据时, 将所输入能量数据的地址替换掉自身所连接地址寄存器中保 存的能量数据地址。 The adder is further configured to replace the address of the input energy data with the address register of the connected address when the input energy data is greater than the energy data currently saved by the register. The stored energy data address.
15、 根据权利要求 10所述峰值搜索装置, 其特征在于, 所述第二比较 电路包括加法器和数据寄存器, 其中,  The peak search device according to claim 10, wherein the second comparison circuit comprises an adder and a data register, wherein
所述第二比较电路的加法器, 用于在对所有需搜索的能量数据进行所 述获取、 以及比较之后, 获取所述第一比较电路中各数据寄存器保存的能 量数据, 并将所获取的能量数据进行比较, 得到峰值, 并将所得到的峰值 保存到所述第二比较电路的数据寄存器中;  An adder of the second comparison circuit, configured to acquire energy data saved by each data register in the first comparison circuit after performing the obtaining and comparing the energy data to be searched, and acquiring the acquired The energy data is compared to obtain a peak value, and the obtained peak value is saved in a data register of the second comparison circuit;
所述第二比较电路的数据寄存器, 用于保存所述峰值。  The data register of the second comparison circuit is configured to save the peak.
16、 根据权利要求 10所述峰值搜索装置, 其特征在于, 所述第二比较 电路还包括地址寄存器, 用于保存所得到峰值的地址;  The peak search device according to claim 10, wherein the second comparison circuit further comprises an address register for storing an address of the obtained peak value;
所述第二比较电路的加法器, 还用于将所得到峰值的地址保存到所述 第二比较电路的地址寄存器中。  The adder of the second comparison circuit is further configured to save the address of the obtained peak value to an address register of the second comparison circuit.
17、 根据权利要求 10至 16任一项所述峰值搜索装置, 其特征在于, 所述装置还包括: 循环控制电路和清零控制电路, 其中,  The peak search device according to any one of claims 10 to 16, wherein the device further comprises: a loop control circuit and a clear control circuit, wherein
循环控制电路, 用于验证所述第二比较电路所得到峰值的个数是否达 到预设的峰值个数阈值, 如果不是, 则通知所述清零控制电路进行清零, 并启动所述读数据控制电路、 第一比较电路和第二比较电路, 重复进行峰 值搜索; 否则, 结束当前峰值搜索;  a loop control circuit, configured to verify whether the number of peaks obtained by the second comparison circuit reaches a preset peak number threshold, and if not, notify the clear control circuit to clear, and start the read data The control circuit, the first comparison circuit, and the second comparison circuit repeat the peak search; otherwise, the current peak search is ended;
清零控制电路, 用于在接收到所述循环控制电路的通知时, 将所述第 二比较电路得到的峰值、 以及所述峰值左右两边的一个或多个数据从所述 存储器中清零。  And a clear control circuit, configured to: when receiving the notification of the loop control circuit, clear a peak obtained by the second comparison circuit and one or more data of the left and right sides of the peak from the memory.
18、 根据权利要求 17所述峰值搜索装置, 其特征在于, 所述清零控制 电路, 还用于将所述第一比较电路中各数据寄存器、 和 /或第一比较电路中 各地址寄存器清零。  The peak search device according to claim 17, wherein the clear control circuit is further configured to clear each address register in the first comparison circuit and/or each address register in the first comparison circuit. zero.
PCT/CN2011/081295 2011-05-06 2011-10-25 Peak search method and device WO2012151870A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110116686.7 2011-05-06
CN201110116686.7A CN102769893B (en) 2011-05-06 2011-05-06 A kind of peak value searching method and device

Publications (1)

Publication Number Publication Date
WO2012151870A1 true WO2012151870A1 (en) 2012-11-15

Family

ID=47097113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081295 WO2012151870A1 (en) 2011-05-06 2011-10-25 Peak search method and device

Country Status (2)

Country Link
CN (1) CN102769893B (en)
WO (1) WO2012151870A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104614588B (en) * 2015-01-27 2017-03-29 北京奥普维尔科技有限公司 Peak value searching system and method based on frequency spectrograph

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766833A (en) * 2000-09-28 2006-05-03 英特尔公司 Array search operation
CN101192847A (en) * 2007-08-13 2008-06-04 中兴通讯股份有限公司 A peak search and sorting device and peak sorting method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3031351B2 (en) * 1998-09-24 2000-04-10 日本電気株式会社 CDMA receiving apparatus, path detecting method used therefor, and recording medium recording control program therefor
WO2007018497A1 (en) * 2005-07-26 2007-02-15 Thomson Licensing Correlator for primary cell search using memory architecture
CN101106394B (en) * 2007-08-10 2010-11-10 中兴通讯股份有限公司 Method for searching downlink pilot frequency slot in TD-SCDMA system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1766833A (en) * 2000-09-28 2006-05-03 英特尔公司 Array search operation
CN101192847A (en) * 2007-08-13 2008-06-04 中兴通讯股份有限公司 A peak search and sorting device and peak sorting method

Also Published As

Publication number Publication date
CN102769893A (en) 2012-11-07
CN102769893B (en) 2017-09-22

Similar Documents

Publication Publication Date Title
KR100281094B1 (en) Cell navigation method in mobile communication system
CN102026342B (en) WCDMA (wideband code division multiple access) cell search method and device
EP2680518B1 (en) Method and apparatus of cross-correlation with application to channel estimation and detection
WO2012151869A1 (en) Peak searching method and device
WO2017036325A1 (en) Signal synchronization method and device
CN102100049A (en) Concurrent sync channel searching
JP2006501775A (en) System and method for directly detecting sequence spread spectrum signals using pipelined vector processing
WO2014074356A1 (en) Synchronizing receive data over a digital radio frequency (rf) interface
JP2020532239A (en) Random access detection method and device
WO2012151868A1 (en) Peak search method and device
CN104735773A (en) Methods For Communication Apparatus To Align A Frame Boundary With A Cell
CN105847212A (en) Detection method and device of downlink primary synchronization signals in LTE system
WO2016206231A1 (en) Quick frequency sweep method and apparatus, terminal, and storage medium
WO2012151870A1 (en) Peak search method and device
EP2667531B1 (en) Method and apparatus for detecting synchronization position of LTE cell
JP4386176B2 (en) Method and apparatus for cell search in WCDMA system
JP3802025B2 (en) Initial synchronization search apparatus and method for mobile communication system
JP6262861B2 (en) Position determination method, apparatus, and computer storage medium
EP1738255A1 (en) Methods and apparatus for detecting local maximums in a two-dimensional data set
JP5525905B2 (en) Cell search apparatus and method, and radio communication terminal
WO2011127728A1 (en) Method and device for coarse synchronization of sub-frame
WO2010028564A1 (en) Multi-path searching apparatus and method supporting transmission diversity mode detection
TW490981B (en) Method and device for code group identification and frame boundary synchronization
JP2003283371A (en) Synchronism establishing device of receiver and its method
CN105704644B (en) Method and apparatus for signal synchronization

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11865346

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11865346

Country of ref document: EP

Kind code of ref document: A1