WO2019127918A1 - Digital filter and data processing method - Google Patents

Digital filter and data processing method Download PDF

Info

Publication number
WO2019127918A1
WO2019127918A1 PCT/CN2018/079262 CN2018079262W WO2019127918A1 WO 2019127918 A1 WO2019127918 A1 WO 2019127918A1 CN 2018079262 W CN2018079262 W CN 2018079262W WO 2019127918 A1 WO2019127918 A1 WO 2019127918A1
Authority
WO
WIPO (PCT)
Prior art keywords
input signal
signal data
input
digital filter
module
Prior art date
Application number
PCT/CN2018/079262
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 WO2019127918A1 publication Critical patent/WO2019127918A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0223Computation saving measures; Accelerating measures
    • H03H17/0225Measures concerning the multipliers

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a digital filter and a data processing method.
  • WIMAX Worldwide Interoperability for Microwave Access
  • LTE Long Term Evolution
  • 3G and 4G The application of 3G and 4G is increasing.
  • WIMAX, LTE and 2G Global System for Mobile Communication (GSM) One difference between WIMAX, LTE and 2G Global System for Mobile Communication (GSM) is that the signal bandwidth of GSM is fixed at 200KHz, while the signal bandwidth of WIMAX and LTE has many possibilities.
  • LTE includes 3MHz and 5MHz. , 10MHz, 15MHz, 20MHz, etc.
  • WIMAX includes 5MHz, 7MHz, 10MHz, 20MHz and so on.
  • digital filters are used mainly for processing signals with fixed bandwidth and fixed data rate input.
  • multiple digital filters need to be integrated, which increases the complexity of the system, etc., and may even cause the system to fail.
  • There is also a part of the digital filter although it can cope with the input signal bandwidth and variable data rate, but every time the input signal bandwidth changes, you need to replace the filter processing clock, and reset the system, this way to use the system Stability has a large impact and is more complicated.
  • the embodiment of the invention provides a digital filter and a data processing method for solving the technical problem of high complexity when the digital filter of the prior art processes the input digital signal.
  • an embodiment of the present invention provides a digital filter, including:
  • control module for storing at least an access address and a filter coefficient address of the input signal data
  • Serially connected M DPRAM modules wherein a first one of the M DPRAM modules is connected to the control module, at least for receiving input signal data;
  • a first adder module connects two DPRAM modules in a symmetric position of the M DPRAM modules
  • multiplier module is coupled to a first adder module, the number of the multiplier modules being related to a digital filter order, each multiplier multiplexing number, each multiplication
  • the number of times of multiplexing of the module is related to the number of channels corresponding to the digital filter clock, the channel mode of the digital filter, and the sampling rate of the input signal data, and the number of channels is determined by a bandwidth combination corresponding to the input data stream;
  • a storage module is coupled to a multiplier module for storing filter coefficients, and the number of filter coefficients stored in each storage module is determined by the number of multiplexing of the multiplier module;
  • a delay module for delaying the digital filter is
  • the input sampling rate of the single channel is F
  • an input sampling rate of each channel in the dual channel is F/2;
  • the channel mode of the digital filter is a three-channel mode, an input sampling rate of one of the three channels is F/2, and an input sampling rate of each of the other two channels is F/4; or
  • the input sampling rate of each of the four channels is F/4.
  • the bandwidth combination corresponding to the input data stream includes at least one of 5 MHz, 10 MHz, 15 MHz, and 20 MHz.
  • an embodiment of the present invention provides a data processing method, which is applied to a digital filter, where the digital filter includes M dual-port random access memory DPRAMs, which are sequentially connected, and M is an integer greater than or equal to 2.
  • the data processing methods include:
  • the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM, where N is greater than or equal to An integer of 1, j is an integer less than or equal to N;
  • the preset rule is: placing the M DPRAMs in a symmetrical position The input values of the input signal data having the same filter coefficients in the two DPRAMs are added, and multiplied by the corresponding filter coefficients;
  • An output signal corresponding to the jth input signal data is determined and output based on the plurality of output signal components.
  • the obtaining rule of each input signal data of the N input signal data included in the input data stream is: acquiring and sequentially storing one input signal data every predetermined number of clocks, wherein The preset number is determined by the number of channels and the sampling rate of the corresponding input signal data, the number of channels being determined by the bandwidth combination corresponding to the input data stream, and the total bandwidth of each bandwidth combination is equal.
  • the reading by using the preset bandwidth configuration mode, the plurality of input signal data received before the jth input signal data from the M DPRAMs, including:
  • the plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
  • the processing by using the preset rule, the jth input signal data and the multiple input signal data to obtain a plurality of output signal components, including:
  • the determining, according to the plurality of output signal components, an output signal corresponding to the jth input signal data including:
  • the plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
  • an embodiment of the present invention provides a digital filter, including:
  • M dual-port random access memory DPRAMs connected in sequence, the M being an integer greater than or equal to 2;
  • An acquiring module configured to read the jth input signal from the M DPRAMs based on a preset bandwidth configuration mode when acquiring the jth input signal data of the N input signal data included in the input data stream a plurality of input signal data received before the data, wherein the preset bandwidth configuration mode is associated with at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM , N is an integer greater than or equal to 1, and j is an integer less than or equal to N;
  • a processing module configured to process the jth input signal data and the plurality of input signal data according to a preset rule, to obtain a plurality of output signal components, where the preset rule is: The input values of the input signal data having the same filter coefficients in the two DPRAMs in the symmetrical position in the DPRAM are added, and multiplied by the corresponding filter coefficients;
  • an output module configured to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
  • the obtaining module acquires an acquisition rule of each input signal data of the N input signal data included in the input data stream: acquiring and sequentially storing one input every predetermined number of clocks The signal data, wherein the preset number is determined by a channel number and a sampling rate of the corresponding input signal data, the channel number being determined by a bandwidth combination corresponding to the input data stream, and a total bandwidth of each bandwidth combination is equal.
  • the obtaining module is used to:
  • Reading according to the preset bandwidth configuration mode storage order, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the first (Mn) And sequentially reading a second set of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode,
  • the order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n is taken from 0 to (M-1) in turn.
  • the plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
  • the processing module is specifically configured to:
  • the output module is specifically configured to:
  • the plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
  • an embodiment of the present invention provides a computer apparatus, including:
  • At least one processor and
  • a memory, communication interface communicatively coupled to the at least one processor
  • the memory stores instructions executable by the at least one processor, the at least one processor performing the method of the second aspect with the communication interface by executing the instructions stored by the memory.
  • an embodiment of the present invention provides a computer readable storage medium, including:
  • the computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of the second aspect.
  • the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, and then the jth input signal data and the plurality of input signals according to a preset rule.
  • the data is processed to obtain a plurality of output signal components, thereby determining and outputting an output signal corresponding to the jth input signal data. That is, the data processing method provided by the embodiment of the present invention can simultaneously process input signals of at least two kinds of bandwidths, which reduces the complexity of processing the input signals by the digital filters.
  • FIG. 1 is a schematic structural diagram of a digital filter commonly used in the prior art
  • FIG. 2 is a schematic structural diagram of another digital filter in the prior art
  • FIG. 3 is a schematic structural diagram of a digital filter according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of connection and reading of two DPRAM modules in an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of a data processing method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another digital filter according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a digital filter commonly used in the prior art, wherein Z -1 represents a delay, that is, an input signal data is acquired every interval.
  • x 8 can represent the received ninth input signal data
  • the received first eight input signal data are x 7 , x 6 , x 5 , x 4 , x 3 , x 2 , x 1 , x 0 , respectively.
  • c 0 , c 1 , ..., c 8 denote filter coefficients.
  • the corresponding output signal can be expressed as:
  • Y8 x 0 *c 8 +x 1 *c 7 +x 2 *c 6 +x 3 *c 5 +x 4 *c 4 +x 5 *c 3 +x 6 *c 2 +x 7 *c 1 + x 8 *c 0 .
  • FIG. 2 is a structural diagram of another digital filter in the prior art.
  • x(n) is the input signal data
  • y(n) is the corresponding output signal
  • a 0 , a 1 , a 2 , a 3 and a 4 are filter coefficients.
  • the configurable bandwidth digital filter in the embodiment of the present invention may use a Field-Programmable Gate Array (FPGA) platform, and may adopt a pulsating finite-length Systolic Finite Impulse Response (SFIR) filter.
  • FPGA Field-Programmable Gate Array
  • SFIR Systolic Finite Impulse Response
  • the architecture is digitally filtered using a high-rate filter clock, which sets the filter clock based on the actual maximum bandwidth required and does not change during the digital filtering process.
  • the digital filter in the embodiment of the present invention can process channel signals of the type such as LTE and Wideband Code Division Multiple Access (WCDMA).
  • WCDMA Wideband Code Division Multiple Access
  • the digital filter may include a control module 31 and M dual-port random access memory (DPRAM) connected in series.
  • the function is to accumulate the results obtained by the plurality of second adder modules 37.
  • X(n) in the figure is the input data stream corresponding to the input signal
  • Y(n) is the corresponding output signal
  • n can be taken as 0 in sequence.
  • the control module 31 can be configured to store an access address of each input signal data in the input data stream, wherein the access address includes a write address and a read address; and can also be used to store a filter coefficient address, and a filter coefficient address can indicate Corresponding filter coefficients are in corresponding storage locations in the storage module; the enabling unit included in the control module 31 has two states, which can be represented by 0 or 1, respectively, that is, when the enable is 1, the digital filter can be input to the input. Signal data, when enabled is 0, the digital filter can be disabled from writing input signal data.
  • the DPRAM module 32 can include two ports, one port can be used for write timing, another port can be used for reading data, and the depth at which the DPRAM module 32 stores data can be determined by the amount of data of the input data stream that the digital filter needs to process. Decide.
  • ten DPRAM modules 32 are shown as an example. As can be seen from FIG. 3, the ten DPRAM modules 32 are serial connections, wherein the DPRAM module 1 of the 10 DPRAM modules 32 is connected to the control module 31 and can be used to receive input signal data.
  • Two DPRAM modules 32 in symmetrical positions among the ten DPRAM modules 32 are connected to the same first adder module 33, such as the DPRAM module 1 and the DPRAM module 10, the DPRAM module 2, and the DPRAM module 9.
  • FIG. 4 is a schematic diagram of the connection between the two DPRAM modules 32 in the embodiment of the present invention, with the DPRAM module 1 and the DPRAM module.
  • the connection of 2 is an example.
  • the DPRAM module 1 when the state of the enabling unit in the control module 32 is 1, that is, the digital filter can be instructed to write the input signal data, the DPRAM module 1 writes an input signal data, and can pass the port 1 according to the preset bandwidth configuration mode.
  • the input signal data is stored to the corresponding write address, and then the previous input signal data (represented by the output signal data in FIG. 4) adjacent to the aforementioned one input signal data is read from the read address through the port 2 as the DPRAM module 2 Input signal data is written.
  • the input signal data is sequentially stored in 10 DPRAMs, different bandwidth configuration modes, the input signal data sequentially written belong to different channels, and the data reading must be read according to the corresponding bandwidth configuration mode.
  • the five first adder modules 33 are shown in FIG. 3 as an example. As can be seen from FIG. 3, a first adder module 33 can connect two DPRAM modules 32 in symmetric positions of the M DPRAM modules 32, and can be used to correspond to input values of input signal data output by the two DPRAM modules 32. Add together.
  • the output values of the DPRAM module 1 and the DPRAM module 10, the DPRAM module 2 and the DPRAM module 9, the DPRAM module 3 and the DPRAM module 8, the DPRAM module 4 and the DPRAM module 7, the DPRAM module 5, and the DPRAM module 6 can be connected through corresponding
  • the first adder module 33 is directly added.
  • the multiplier module 35 can be used at a high load, that is, the high-order digital filtering can be realized using the resources of a few multiplier modules 35.
  • the number of times of multiplexing of one multiplier module 35 can be calculated by the following formula, namely:
  • Multiplex filter clock / (number of channels * channel rate)
  • the number of channels may be related to the bandwidth combination of the input data stream and to the channel mode of the digital filter.
  • the input sampling rate of the single channel is F
  • the input sampling rate of each channel in the dual channel is F/2; or
  • the input sampling rate of one channel of the three channels is F/2, and the input sampling rate of each channel of the other two channels is F/4; or
  • the input sample rate of each of the four channels is F/4.
  • Table 1 is a channel configuration table corresponding to the channel mode of the digital filter in the embodiment of the present invention.
  • the number of channels of the multi-channel digital filter can be configured to be 4, and when the channel mode of the digital filter is single channel mode, the number of channels that can be accommodated is 1, and the input sampling rate is 1 times the sampling rate. For example, the input sampling rate is F.
  • the bandwidth combination corresponding to the input data stream can be indicated by the channel resource working mode 0000 as 20 MHz.
  • the channel mode of the digital filter When the channel mode of the digital filter is dual channel mode, the number of channels it can accommodate is 2, and the bandwidth combination can include 3/4 sampling rate, that is, 3 MHz/4 15 MHz and 1/4 sampling rate, ie F/ The 5 MHz of 4, the bandwidth combination can be indicated by the channel resource operating mode 0001. Or, when the channel mode of the digital filter is dual channel mode, the number of channels that can be accommodated is 2, and the bandwidth combination can include two 1/4 sampling rates, that is, 10 MHz of 3F/4, and the bandwidth combination can be Channel resource working mode 0101 indicates. Among them, the channel resource working mode can be customized.
  • the digital filter in the embodiment of the present invention can implement multiple different bandwidth combinations, each bandwidth is within the protocol range, and the total bandwidth of each bandwidth combination is equal.
  • the channel rate is related or equal to the sampling rate of the input signal data.
  • the number of multiplier modules 35 is related to the number of digital filter stages and the number of times each multiplier module 35 is multiplexed. Therefore, the symmetry of the digital filter coefficients can be utilized, and the number of multiplier modules 35 required in the digital filter can be determined by the following formula, namely:
  • Number of multiplier modules 35 order of digital filters / (2 * number of multiplexing)
  • the "2" in the formula is determined by the symmetry of the digital filter coefficients.
  • the obtained number is taken as the number of the multiplier modules 35; if the calculation result is a decimal number, the number obtained by subtracting the fractional part and adding 1 is taken as the multiplier module 35. The number.
  • the digital filter clock is 245.76MHz (in megahertz), and the designed digital filter has an order of 79 steps. It implements a 4-channel filter with an input rate of 7.68Msps per channel (unit: 100 10,000 samples/second).
  • the memory module 34 is shown in FIG. 3 as a Read-Only Memory (ROM).
  • ROM Read-Only Memory
  • a memory module 34 is connected to a multiplier module 35 for storing filter coefficients, and the number of filter coefficients stored in each memory module 34 can be determined by the number of times of multiplexing by the multiplier module 35, or It can also be determined by the bit width of the filter coefficients, such as 16 bits, where the bit width is related to the input signal data.
  • the filter coefficients can be in odd symmetrical form.
  • the filter coefficients that the digital filter needs to store can be determined by the following formula:
  • Each of the storage modules 34 can sequentially store the filter coefficients in order.
  • a digital filter with a degree of digital filter of 79 requires 40 filter coefficients to be implemented, and each memory module 34 can store 8 filter coefficients.
  • ROM1 to ROM5 sequentially store filter coefficients in order: ROM 1 stores coefficients 0 to 7, ROM 2 stores coefficients 8 to 15, ROM 3 stores coefficients 16 to 23, and ROM 4 stores coefficients 24 to 31, ROM. 5 storage coefficient 32 ⁇ 39.
  • the second adder module 37 in the embodiment of the present invention may be the same as or different from the first adder module 33. As shown in Fig. 3, the second adder module 37 is connected to the multiplier module 35, and the plurality of output signal components obtained by the plurality of multiplier modules 35 can be accumulated to obtain an output signal Y(n).
  • the delay module 36 can be used for delays in the digital filter during digital filtering.
  • the delay unit can control one clock clock to write an input signal data to the DPRAM module 32, and the number of divisions can be determined by the number of channels and the input data sampling rate.
  • the control module 31 can control to sequentially read two of the symmetric positions.
  • a plurality of output signal components are obtained by multiplication by the multiplier module 35; the plurality of output signal components are further accumulated by the second adder module 37 to obtain a corresponding output signal Y(n).
  • the digital filter in the embodiment of the present invention can support the processing of multiple standard signals, and can support real-time online configuration, which is flexible and convenient to use, has a significant filtering effect, and is convenient for maintenance.
  • the digital filter in the embodiment of the present invention adopts digital processing, no unnecessary cost is required, and a digital filter is compatible with a plurality of bandwidth combinations, and the effect is stable and the FPGA resources can be saved, that is, the cost is reduced.
  • an embodiment of the present invention provides a data processing method, which can be applied to the digital filter according to the first embodiment.
  • the process of the data processing method can be described as follows:
  • S501 When acquiring the jth input signal data of the N input signal data included in the input data stream, reading, by the preset bandwidth configuration mode, the plurality of inputs received before the jth input signal data from the M DPRAMs Signal data, wherein the preset bandwidth configuration mode is related to at least two bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, N is an integer greater than or equal to 1, and j is less than or equal to An integer of N;
  • S502 processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: having two DPRAMs in the symmetric positions of the M DPRAMs After the input values of the input signal data of the same filter coefficient are added, multiplied by the corresponding filter coefficients;
  • S503 Determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
  • the obtaining rule of each input signal data of the N input signal data included in the input data stream is: acquiring a preset number of clocks and sequentially storing one input signal data, wherein, preset The number is determined by the number of channels and the sampling rate of the corresponding input signal data.
  • the number of channels is determined by the bandwidth combination corresponding to the input data stream, and the total bandwidth of each bandwidth combination is equal.
  • the bandwidth combination may include at least one of 5 MHz, 10 MHz, 15 MHz, 20 MHz.
  • the input signal data includes N input signal data, which can be represented as x0, x1, x2, x3, x4, ..., x28, x29, x30, x31, etc., wherein each of the four input signal data can correspond to one cycle, such as x0. , x1, x2 are different input signal data on the 15MHz bandwidth, and x3 is the input signal data on the 5MHz bandwidth, that is, x0, x1, x2, x3 can correspond to one cycle.
  • the DPRAM can include 32 addresses for storing data, which can be represented by 0, 1, 2, 3, 4, ..., 28, 29, 30, 31, respectively.
  • the bandwidth is combined into 15MHz and 5MHz input data streams.
  • an input signal data can correspond to a storage address, that is, an input signal of 15MHz bandwidth.
  • the data can be stored in DPRAM as 0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26 28, 29, 30; correspondingly, the input signal data of the 5 MHz bandwidth is stored in the DPRAM at addresses 3, 7, 11, 15, 19, 23, 27, 31.
  • the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream.
  • the bandwidth corresponding to the input data stream includes 15 MHz and 5 MHz.
  • the corresponding channel in the bandwidth combination may be used to save the data in the DPRAM.
  • the address is divided into two parts, one for storing input signal data on a 15MHz bandwidth, one for storing input signal data on a 5MHz bandwidth, and the preset bandwidth configuration mode indicating that each input signal data is in the DPRAM.
  • the storage address it should be noted that the storage address and the corresponding read address are the same address.
  • the plurality of received data before the jth input signal data may be read from the M DPRAMs according to the preset bandwidth configuration mode. Input signal data.
  • obtaining the 33rd input signal data through the first DPRAM that is, x32
  • First store x32 to the storage address 0 corresponding to x0.
  • a plurality of input signal data received before the 33rd input signal data can be read from the M DPRAMs according to the preset bandwidth configuration mode.
  • reading the plurality of input signal data received before the jth input signal data from the M DPRAMs based on the preset bandwidth configuration mode may be performed by, but not limited to, the following manner.
  • the principle of reading the input signal data in the DPRAM may include: the same channel, that is, the input signal data in the same bandwidth needs to be read in the storage order, and the last stored data should be read first; sequentially read and store each The filter coefficients stored by module 34 correspond to the number of input signal data.
  • the reverse reading from the (1+n)th DPRAM is in the same bandwidth as the jth input signal data based on the preset bandwidth configuration mode.
  • the first set of input signal data, and the second set of input signal data in the same bandwidth as the jth input signal data are sequentially read from the (Mn) DPRAM.
  • the addresses of the first set of input signal data read from the DRRAM module 1 are: 0, 30, 29, 28, 26, 25, 24, and 22; and from the DRRAM module 10
  • the addresses of the read second set of input signal data are: 21, 22, 24, 25, 26, 28, 29, and 30, respectively.
  • the addresses of the first set of input signal data read from the DPRAM module 2 are: 1, 0, 30, 29, 28, 26, 25, and 24; the second set of input signal data read from the DPRAM module 9
  • the addresses are: 22, 24, 25, 26, 28, 29, 30, 0.
  • the output of other DPRAM modules is similar, and will not be described in detail in the embodiments of the present invention.
  • a plurality of input signal data is composed of a plurality of first sets of input signal data and a plurality of second sets of input signal data.
  • the process may go to S502, that is, processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: placing the M DPRAMs in a symmetrical position The input values of the input signal data having the same filter coefficients in the two DPRAMs are added and multiplied by the corresponding filter coefficients.
  • the processing of the jth input signal data and the plurality of input signal data based on the preset rule to obtain the plurality of output signal components may include:
  • the input values of the input signal data corresponding to 0, 30, 29, 28, 26, 25, 24, and 22, respectively, and 21, 22, 24, 25, 26, 28, 29 The input values of the input signal data corresponding to 30 and 30 are respectively added, and then multiplied by the corresponding filter coefficients to obtain a plurality of output signal components.
  • the input value of the input signal data corresponding to the address 0 is added to the input value of the input signal data corresponding to the address 21, and multiplied by the filter coefficient corresponding to the filter coefficient address 0 stored in the ROM 1, an output signal component can be obtained; Further, if the input value of the input signal data corresponding to the address 30 is added to the input value of the input signal data corresponding to the address 22, and multiplied by the filter coefficient corresponding to the filter coefficient address 1 stored in the ROM 1, an output signal component can be obtained. .
  • the calculation of the remaining input signal data is similar, and is not described in detail in the embodiments of the present invention.
  • the determining, according to the plurality of output signal components, the output signal corresponding to the jth input signal data may include accumulating the plurality of output signal components, determining the data with the jth input signal Corresponding output signal.
  • the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, and then the jth input signal data and the plurality of input signals according to a preset rule.
  • the data is processed to obtain a plurality of output signal components, thereby determining and outputting an output signal corresponding to the jth input signal data. That is, the data processing method provided by the embodiment of the present invention can simultaneously process input signals of at least two kinds of bandwidths, which reduces the complexity of processing the input signals by the digital filters.
  • the embodiment of the present invention provides a digital filter, and the data processing method as described in Embodiment 2 can be applied.
  • the digital filter includes M dual port random access memory DPRAMs, an acquisition module 61, a processing module 62, and an output module 63, which are sequentially connected, and the M is an integer greater than or equal to 2.
  • the obtaining module 61 is configured to, when acquiring the jth input signal data of the N input signal data included in the input data stream, read from the M DPRAMs in the jth based on a preset bandwidth configuration mode. a plurality of input signal data received before the input signal data, wherein the preset bandwidth configuration mode is related to at least two bandwidths corresponding to the input data stream, and is used to indicate that each input signal data is in the DPRAM Access address, N is an integer greater than or equal to 1, and j is an integer less than or equal to N;
  • the processing module 62 is configured to process the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, where the preset rule is: The input values of the input signal data having the same filter coefficients in the two DPRAMs in the symmetric position in the DPRAM are added, and multiplied by the corresponding filter coefficients;
  • the output module 63 is configured to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
  • the acquiring module 61 acquires an acquisition rule of each input signal data of the N input signal data included in the input data stream: acquiring and sequentially storing one clock every predetermined number of clocks Input signal data, wherein the preset number is determined by the number of channels and a sampling rate of the corresponding input signal data, the number of channels being determined by a combination of bandwidths corresponding to the input data streams, and the total bandwidth of each bandwidth combination is equal.
  • the obtaining module 61 is configured to:
  • Reading according to the preset bandwidth configuration mode storage order, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the first (Mn) And sequentially reading a second set of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode,
  • the order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n is taken from 0 to (M-1) in turn.
  • the plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
  • processing module 62 is specifically configured to:
  • the output module 63 is specifically configured to:
  • the plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
  • a computer apparatus including at least one processor 71, and a memory 72 and a communication interface 73 communicatively coupled to the at least one processor 71, in FIG.
  • a processor 71 is shown as an example.
  • the memory 72 stores instructions executable by the at least one processor 71, and the at least one processor 71 performs the operation of the memory 72 by using the communication interface 73 as in the second embodiment. Said method.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores computer instructions, when the computer instructions are run on a computer, causing the computer to execute as described in Embodiment 2 Methods.
  • the computer readable storage medium includes: a universal serial bus flash drive (USB), a mobile hard disk, a read-only memory (Read-OMly PePory, ROP), a random access memory ( RaMdoP Access PePory, RAP), a disk or a disc, and other storage media that can store program code.
  • USB universal serial bus flash drive
  • ROP read-only memory
  • RaMdoP Access PePory RAP
  • disk or a disc and other storage media that can store program code.
  • the device embodiments described above are merely illustrative, wherein the units/modules described as separate components may or may not be physically separate, and the components displayed as units/modules may or may not be physical units/modules. , can be located in one place, or can be distributed to multiple network units/modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Abstract

Provided in an embodiment of the present invention are a digital filter and a data processing method, which are used for solving the technical problem in the existing technology wherein the complexity of a digital filter processing digital signals is high. A digital filter may be dynamically configured to be in different channel modes according to a sampling rate of input signal data, and may support input data flows corresponding to various digital signals having different bandwidth combinations in a communication system, which solves the technical problem in the existing technology wherein the complexity of a digital filter processing digital signals is high, thus improving the efficiency of processing digital signals.

Description

一种数字滤波器及数据处理方法Digital filter and data processing method
本申请要求于2017年12月29日提交中国专利局、申请号为201711481116.1、发明名称为“一种数字滤波器及数据处理方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200911481116.1, entitled "A Digital Filter and Data Processing Method", filed on Dec. 29, 2017, the entire contents of which is incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及移动通信领域,尤其涉及一种数字滤波器及数据处理方法。The present invention relates to the field of mobile communications, and in particular, to a digital filter and a data processing method.
背景技术Background technique
随着移动通信的发展,移动通信的用户逐渐增多,对数据业务的要求也越来越高,全球微波互联接入(Worldwide Interoperability for Microwave Access,WIMAX)、长期演进(Long Term Evolution,LTE)等3G、4G的应用日渐增多。WIMAX、LTE与2G的全球移动通信系统(Global System for Mobile Communication,GSM)的一个区别在于GSM的信号带宽是固定的200KHz,而WIMAX、LTE的信号带宽有多种可能,如LTE包括3MHz、5MHz、10MHz、15MHz、20MHz等,WIMAX包括5MHz、7MHz、10MHz、20MHz等。With the development of mobile communication, the number of mobile communication users is increasing, and the requirements for data services are getting higher and higher. Worldwide Interoperability for Microwave Access (WIMAX), Long Term Evolution (LTE), etc. The application of 3G and 4G is increasing. One difference between WIMAX, LTE and 2G Global System for Mobile Communication (GSM) is that the signal bandwidth of GSM is fixed at 200KHz, while the signal bandwidth of WIMAX and LTE has many possibilities. For example, LTE includes 3MHz and 5MHz. , 10MHz, 15MHz, 20MHz, etc., WIMAX includes 5MHz, 7MHz, 10MHz, 20MHz and so on.
在数字通信系统中,常常要求一个软件版本支持多种制式多种带宽的数字信号处理。目前,应用较多的数字滤波器,主要是对固定带宽、固定数据速率输入的信号进行处理。当输入信号的带宽和数据速率存在多种可能的情况下,需要集成多个数字滤波器,这样会增加系统复杂度等,甚至有可能导致系统无法实现。还有一部分数字滤波器,虽然可以应对输入信号带宽以及数据速率可变的情况,但是每当输入信号的带宽变化时,都需要更换滤波器的处理时钟,并复位系统,这种使用方式对系统稳定性有较大影响,较为复杂。In digital communication systems, a software version is often required to support digital signal processing in multiple formats and multiple bandwidths. At present, digital filters are used mainly for processing signals with fixed bandwidth and fixed data rate input. When there are many possibilities for the bandwidth and data rate of the input signal, multiple digital filters need to be integrated, which increases the complexity of the system, etc., and may even cause the system to fail. There is also a part of the digital filter, although it can cope with the input signal bandwidth and variable data rate, but every time the input signal bandwidth changes, you need to replace the filter processing clock, and reset the system, this way to use the system Stability has a large impact and is more complicated.
综上可知,现有技术中数字滤波器处理输入数字信号时的复杂度较高。In summary, the complexity of the prior art digital filter processing input digital signals is high.
发明内容Summary of the invention
本发明实施例提供一种数字滤波器及数据处理方法,用以解决现有技术中的数字滤波器处理输入数字信号时的复杂度较高的技术问题。The embodiment of the invention provides a digital filter and a data processing method for solving the technical problem of high complexity when the digital filter of the prior art processes the input digital signal.
第一方面,本发明实施例提供一种数字滤波器,包括:In a first aspect, an embodiment of the present invention provides a digital filter, including:
控制模块,至少用于存储输入信号数据的存取地址、滤波器系数地址;a control module for storing at least an access address and a filter coefficient address of the input signal data;
串行连接的M个DPRAM模块,其中,所述M个DPRAM模块中的第一DPRAM模块与所述控制模块连接,至少用于接收输入信号数据;Serially connected M DPRAM modules, wherein a first one of the M DPRAM modules is connected to the control module, at least for receiving input signal data;
多个第一加法器模块,其中,一个第一加法器模块连接所述M个DPRAM模块中处于对称位置的两个DPRAM模块;a plurality of first adder modules, wherein a first adder module connects two DPRAM modules in a symmetric position of the M DPRAM modules;
多个乘法器模块,其中,一个乘法器模块与一个第一加法器模块连接,所述乘法器模块的个数与数字滤波器阶数、每个乘法器复用次数相关,所述每个乘法器模块的复用次数与数字滤波器时钟、数字滤波器的通道模式对应的通道数和所述输入信号数据的采样率相关,所述通道数由输入数据流对应的带宽组合确定;a plurality of multiplier modules, wherein a multiplier module is coupled to a first adder module, the number of the multiplier modules being related to a digital filter order, each multiplier multiplexing number, each multiplication The number of times of multiplexing of the module is related to the number of channels corresponding to the digital filter clock, the channel mode of the digital filter, and the sampling rate of the input signal data, and the number of channels is determined by a bandwidth combination corresponding to the input data stream;
多个存储模块,其中,一个存储模块与一个乘法器模块连接,用于存储滤波器系数,每个存储模块存储的滤波器系数的个数由所述乘法器模块的复用次数确定;a plurality of storage modules, wherein a storage module is coupled to a multiplier module for storing filter coefficients, and the number of filter coefficients stored in each storage module is determined by the number of multiplexing of the multiplier module;
多个第二加法器模块,与所述多个乘法器模块连接;a plurality of second adder modules connected to the plurality of multiplier modules;
延时模块,用于所述数字滤波器的延时。A delay module for delaying the digital filter.
在一种可能的实现方式中,若所述数字滤波器的通道模式为单通道模式,则所述单通道的输入采样率为F;或,In a possible implementation manner, if the channel mode of the digital filter is a single channel mode, the input sampling rate of the single channel is F; or
若所述数字滤波器的通道模式为双通道模式,则所述双通道中每个通道的输入采样率为F/2;或,If the channel mode of the digital filter is a dual channel mode, an input sampling rate of each channel in the dual channel is F/2; or
若所述数字滤波器的通道模式为三通道模式,则所述三通道中一个通道的输入采样率为F/2、另两个通道中每个通道的输入采样率为F/4;或,If the channel mode of the digital filter is a three-channel mode, an input sampling rate of one of the three channels is F/2, and an input sampling rate of each of the other two channels is F/4; or
若所述数字滤波器的通道模式为四通道模式,则所述四通道中每个通道的输入采样率为F/4。If the channel mode of the digital filter is a four channel mode, the input sampling rate of each of the four channels is F/4.
在一种可能的实现方式中,输入数据流对应的带宽组合包括5MHz、10MHz、15MHz、20MHz中的至少一项。In a possible implementation manner, the bandwidth combination corresponding to the input data stream includes at least one of 5 MHz, 10 MHz, 15 MHz, and 20 MHz.
第二方面,本发明实施例提供一种数据处理方法,应用于数字滤波器,所述数字滤波器包括依次连接的M个双端口随机存储器DPRAM,M为大于等于2的整数。其中,数据处理方法包括:In a second aspect, an embodiment of the present invention provides a data processing method, which is applied to a digital filter, where the digital filter includes M dual-port random access memory DPRAMs, which are sequentially connected, and M is an integer greater than or equal to 2. Among them, the data processing methods include:
在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,其中,所述预设带宽配置模式与所述输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在所述DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;When acquiring the jth input signal data among the N input signal data included in the input data stream, reading from the M DPRAMs before receiving the jth input signal data based on a preset bandwidth configuration mode Input signal data, wherein the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM, where N is greater than or equal to An integer of 1, j is an integer less than or equal to N;
基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,其中,所述预设规则为:将所述M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输入信号数据的输入值相加后,与相应的所述滤波器系数相乘;Processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: placing the M DPRAMs in a symmetrical position The input values of the input signal data having the same filter coefficients in the two DPRAMs are added, and multiplied by the corresponding filter coefficients;
基于所述多个输出信号分量,确定并输出与所述第j个输入信号数据对应的输出信号。An output signal corresponding to the jth input signal data is determined and output based on the plurality of output signal components.
在一种可能的实现方式中,获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟获取并顺序存储一个输入信号数据,其中,所述预设个数由通道数和相应输入信号数据的采样率确定,所述通道数由所述输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。In a possible implementation, the obtaining rule of each input signal data of the N input signal data included in the input data stream is: acquiring and sequentially storing one input signal data every predetermined number of clocks, wherein The preset number is determined by the number of channels and the sampling rate of the corresponding input signal data, the number of channels being determined by the bandwidth combination corresponding to the input data stream, and the total bandwidth of each bandwidth combination is equal.
在一种可能的实现方式中,所述基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,包括:In a possible implementation manner, the reading, by using the preset bandwidth configuration mode, the plurality of input signal data received before the jth input signal data from the M DPRAMs, including:
基于所述预设带宽配置模式从所述第(1+n)个DPRAM中倒序读取与所述第j个输入信号数据处于同一带宽的第一组输入信号数据时,且从第(M-n)个DPRAM中顺序读取与所述第j个输入信号数据处于同一带宽的第二组输入 信号数据,其中,所述倒序读取的顺序与所述预设带宽配置模式对应的存储顺序相反,所述顺序读取的顺序与所述存储顺序相同,所述第(1+n)个DPRAM与所述第(M-n)个DPRAM处于对称位置,所述n依次取0到(M-1)的整数;And reading, according to the preset bandwidth configuration mode, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the (Mn) And sequentially reading, in the DPRAM, the second group of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode. The order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n sequentially takes an integer from 0 to (M-1) ;
由多个所述第一组输入信号数据和多个所述第二组输入信号数据构成所述多个输入信号数据。The plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
在一种可能的实现方式中,所述基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,包括:In a possible implementation manner, the processing, by using the preset rule, the jth input signal data and the multiple input signal data to obtain a plurality of output signal components, including:
将所述第j个输入信号数据、多个所述第一组输入信号数据和多个所述第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的所述滤波器系数相乘,获得多个输出信号分量。Adding the input values of the jth input signal data, the plurality of the first set of input signal data, and the input signal data having the same filter coefficient among the plurality of the second set of input signal data, and correspondingly The filter coefficients are multiplied to obtain a plurality of output signal components.
在一种可能的实现方式中,所述基于所述多个输出信号分量,确定与所述第j个输入信号数据对应的输出信号,包括:In a possible implementation manner, the determining, according to the plurality of output signal components, an output signal corresponding to the jth input signal data, including:
对所述多个输出信号分量进行累加,确定与所述第j个输入信号数据对应的输出信号。The plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
第三方面,本发明实施例提供一种数字滤波器,包括:In a third aspect, an embodiment of the present invention provides a digital filter, including:
依次连接的M个双端口随机存储器DPRAM,所述M为大于等于2的整数;M dual-port random access memory DPRAMs connected in sequence, the M being an integer greater than or equal to 2;
获取模块,用于在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,其中,所述预设带宽配置模式与所述输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在所述DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;An acquiring module, configured to read the jth input signal from the M DPRAMs based on a preset bandwidth configuration mode when acquiring the jth input signal data of the N input signal data included in the input data stream a plurality of input signal data received before the data, wherein the preset bandwidth configuration mode is associated with at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM , N is an integer greater than or equal to 1, and j is an integer less than or equal to N;
处理模块,用于基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,其中,所述预设规则为:将所述M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输 入信号数据的输入值相加后,与相应的所述滤波器系数相乘;a processing module, configured to process the jth input signal data and the plurality of input signal data according to a preset rule, to obtain a plurality of output signal components, where the preset rule is: The input values of the input signal data having the same filter coefficients in the two DPRAMs in the symmetrical position in the DPRAM are added, and multiplied by the corresponding filter coefficients;
输出模块,用于基于所述多个输出信号分量,确定并输出与所述第j个输入信号数据对应的输出信号。And an output module, configured to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
在一种可能的实现方式中,所述获取模块获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟clock获取并顺序存储一个输入信号数据,其中,所述预设个数由通道数和相应输入信号数据的采样率确定,所述通道数由所述输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。In a possible implementation manner, the obtaining module acquires an acquisition rule of each input signal data of the N input signal data included in the input data stream: acquiring and sequentially storing one input every predetermined number of clocks The signal data, wherein the preset number is determined by a channel number and a sampling rate of the corresponding input signal data, the channel number being determined by a bandwidth combination corresponding to the input data stream, and a total bandwidth of each bandwidth combination is equal.
在一种可能的实现方式中,所述获取模块用于:In a possible implementation manner, the obtaining module is used to:
基于所述预设带宽配置模式存储顺序从所述第(1+n)个DPRAM中倒序读取与所述第j个输入信号数据处于同一带宽的第一组输入信号数据,且从第(M-n)个DPRAM中顺序读取与所述第j个输入信号数据处于同一带宽的第二组输入信号数据,其中,所述倒序读取的顺序与所述预设带宽配置模式对应的存储顺序相反,所述顺序读取的顺序与所述存储顺序相同,所述第(1+n)个DPRAM与所述第(M-n)个DPRAM处于对称位置,所述n依次取0到(M-1)的整数;Reading, according to the preset bandwidth configuration mode storage order, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the first (Mn) And sequentially reading a second set of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode, The order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n is taken from 0 to (M-1) in turn. Integer
由多个所述第一组输入信号数据和多个所述第二组输入信号数据构成所述多个输入信号数据。The plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
在一种可能的实现方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:
将所述第j个输入信号数据、多个所述第一组输入信号数据和多个所述第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的所述滤波器系数相乘,获得多个输出信号分量。Adding the input values of the jth input signal data, the plurality of the first set of input signal data, and the input signal data having the same filter coefficient among the plurality of the second set of input signal data, and correspondingly The filter coefficients are multiplied to obtain a plurality of output signal components.
在一种可能的实现方式中,所述输出模块具体用于:In a possible implementation manner, the output module is specifically configured to:
对所述多个输出信号分量进行累加,确定与所述第j个输入信号数据对应的输出信号。The plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
第四方面,本发明实施例提供一种计算机装置,包括:In a fourth aspect, an embodiment of the present invention provides a computer apparatus, including:
至少一个处理器,以及At least one processor, and
与所述至少一个处理器通信连接的存储器、通信接口;a memory, communication interface communicatively coupled to the at least one processor;
其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,利用所述通信接口执行如第二方面所述的方法。Wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of the second aspect with the communication interface by executing the instructions stored by the memory.
第五方面,本发明实施例提供一种计算机可读存储介质,包括:In a fifth aspect, an embodiment of the present invention provides a computer readable storage medium, including:
所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如第二方面所述的方法。The computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of the second aspect.
本发明实施例中在获取输入数据流包括的N个输入信号数据的第j个输入信号数据时,基于预设带宽配置模式读取在第j个输入信号数据之前接收的多个输入数据,而预设带宽配置模式与输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在DPRAM内的存取地址,然后根据预设规则对第j个输入信号数据及多个输入信号数据进行处理,获得多个输出信号分量,进而确定并输出与第j个输入信号数据对应的输出信号。即本发明实施例提供的数据处理方法能够同时处理至少两种带宽的输入信号,降低了数字滤波器处理输入信号的复杂度。In the embodiment of the present invention, when acquiring the jth input signal data of the N input signal data included in the input data stream, reading the plurality of input data received before the jth input signal data according to the preset bandwidth configuration mode, and The preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, and then the jth input signal data and the plurality of input signals according to a preset rule. The data is processed to obtain a plurality of output signal components, thereby determining and outputting an output signal corresponding to the jth input signal data. That is, the data processing method provided by the embodiment of the present invention can simultaneously process input signals of at least two kinds of bandwidths, which reduces the complexity of processing the input signals by the digital filters.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所介绍的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly described below. It is obvious that the following drawings are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为现有技术中常用的数字滤波器的结构简图;1 is a schematic structural diagram of a digital filter commonly used in the prior art;
图2为现有技术中另一种数字滤波器的结构简图;2 is a schematic structural diagram of another digital filter in the prior art;
图3为本发明实施例提供的一种数字滤波器的结构示意图;3 is a schematic structural diagram of a digital filter according to an embodiment of the present invention;
图4为本发明实施例中两个DPRAM模块连接读写原理图;4 is a schematic diagram of connection and reading of two DPRAM modules in an embodiment of the present invention;
图5为本发明实施例提供的一种数据处理方法的流程示意图;FIG. 5 is a schematic flowchart diagram of a data processing method according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种数字滤波器的结构示意图;FIG. 6 is a schematic structural diagram of another digital filter according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种计算机装置的结构示意图。FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the drawings in the embodiments of the present invention.
首先,对现有技术中常用的数字滤波器进行介绍如下。First, the digital filters commonly used in the prior art are described as follows.
图1为现有技术中常用的数字滤波器的结构简图,其中,Z -1表示延时,即每间隔一定时间获取一个输入信号数据。图1中,x 8可以表示接收的第9个输入信号数据,接收的前8个输入信号数据分别为x 7、x 6、x 5、x 4、x 3、x 2、x 1、x 0;c 0、c 1、……、c 8表示滤波器系数。 1 is a schematic structural diagram of a digital filter commonly used in the prior art, wherein Z -1 represents a delay, that is, an input signal data is acquired every interval. In FIG. 1, x 8 can represent the received ninth input signal data, and the received first eight input signal data are x 7 , x 6 , x 5 , x 4 , x 3 , x 2 , x 1 , x 0 , respectively. ; c 0 , c 1 , ..., c 8 denote filter coefficients.
因此,当接收输入信号数据为x 8,对应的输出信号可以表示为: Therefore, when the received input signal data is x 8 , the corresponding output signal can be expressed as:
y8=x 0*c 8+x 1*c 7+x 2*c 6+x 3*c 5+x 4*c 4+x 5*c 3+x 6*c 2+x 7*c 1+x 8*c 0Y8=x 0 *c 8 +x 1 *c 7 +x 2 *c 6 +x 3 *c 5 +x 4 *c 4 +x 5 *c 3 +x 6 *c 2 +x 7 *c 1 + x 8 *c 0 .
由于滤波器系数具有对称性,即c 0和c 8、c 1和c 7、c 2和c 6、c 3和c 5相等。因此,请参见图2,为现有技术中另一种数字滤波器的结构简图。图2中,x(n)为输入信号数据,y(n)为相应的输出信号,a 0、a 1、a 2、a 3和a 4为滤波器系数。 Since the filter coefficients have symmetry, that is, c 0 and c 8 , c 1 and c 7 , c 2 and c 6 , c 3 and c 5 are equal. Therefore, please refer to FIG. 2, which is a structural diagram of another digital filter in the prior art. In Fig. 2, x(n) is the input signal data, y(n) is the corresponding output signal, and a 0 , a 1 , a 2 , a 3 and a 4 are filter coefficients.
下面结合附图对本发明优选的实施方式进行详细说明。Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
实施例一 Embodiment 1
本发明实施例中的可配置带宽数字滤波器,可以使用现场可编程门阵列(Field-Programmable Gate Array,FPGA)平台,可以采用脉动型有限长单位冲激响(Systolic Finite Impulse Response,SFIR)滤波器架构,使用高速率的滤波器时钟进行数字滤波,即可以根据实际所需的最大带宽进行设定滤波器时钟,并且在进行数字滤波的过程中不变。The configurable bandwidth digital filter in the embodiment of the present invention may use a Field-Programmable Gate Array (FPGA) platform, and may adopt a pulsating finite-length Systolic Finite Impulse Response (SFIR) filter. The architecture is digitally filtered using a high-rate filter clock, which sets the filter clock based on the actual maximum bandwidth required and does not change during the digital filtering process.
本发明实施例中的数字滤波器可以处理LTE、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)等类型的通道信号。The digital filter in the embodiment of the present invention can process channel signals of the type such as LTE and Wideband Code Division Multiple Access (WCDMA).
请参见图3,为本发明实施例的可配置带宽数字滤波器的结构示意图,该数字滤波器可包括控制模块31、串行连接的M个双端口随机存储器(Double  Port Random Access Memory,DPRAM)模块32、多个第一加法器模块33、多个存储模块34、多个乘法器模块35、多个延时模块36、多个第二加法器模块37和累加器38,其中,累加器38的作用为对多个第二加法器模块37得到的结果进行累加,图中的X(n)为输入信号对应的输入数据流,Y(n)为相应的输出信号,n可以依次取0到N的整数,N为大于等于1的整数。3 is a schematic structural diagram of a configurable bandwidth digital filter according to an embodiment of the present invention. The digital filter may include a control module 31 and M dual-port random access memory (DPRAM) connected in series. The module 32, the plurality of first adder modules 33, the plurality of storage modules 34, the plurality of multiplier modules 35, the plurality of delay modules 36, the plurality of second adder modules 37, and the accumulator 38, wherein the accumulator 38 The function is to accumulate the results obtained by the plurality of second adder modules 37. X(n) in the figure is the input data stream corresponding to the input signal, and Y(n) is the corresponding output signal, and n can be taken as 0 in sequence. An integer of N, where N is an integer greater than or equal to 1.
控制模块31可以用于存储输入数据流中的各个输入信号数据的存取地址,其中,存取地址包括写地址和读地址;还可以用于存储滤波器系数地址,一个滤波器系数地址可以指示相应的滤波器系数在存储模块中的相应存储位置;控制模块31包括的使能单元存在两种状态,分别可以用0或1表示,即当使能为1时可以指示数字滤波器写入输入信号数据,当使能为0时可以禁止数字滤波器写入输入信号数据。The control module 31 can be configured to store an access address of each input signal data in the input data stream, wherein the access address includes a write address and a read address; and can also be used to store a filter coefficient address, and a filter coefficient address can indicate Corresponding filter coefficients are in corresponding storage locations in the storage module; the enabling unit included in the control module 31 has two states, which can be represented by 0 or 1, respectively, that is, when the enable is 1, the digital filter can be input to the input. Signal data, when enabled is 0, the digital filter can be disabled from writing input signal data.
DPRAM模块32可以包括两个端口,一个端口可以用于写时序,另一个端口可以用于读数据,并且DPRAM模块32存储数据的深度可以由数字滤波器所需处理的输入数据流的数据量来决定。图3中以示出10个DPRAM模块32为例。由图3可知,10个DPRAM模块32为串行连接,其中,10个DPRAM模块32中的DPRAM模块1与控制模块31连接,可以用于接收输入信号数据。10个DPRAM模块32中处于对称位置的两个DPRAM模块32与同一个第一加法器模块33连接,如DPRAM模块1和DPRAM模块10、DPRAM模块2和DPRAM模块9等。The DPRAM module 32 can include two ports, one port can be used for write timing, another port can be used for reading data, and the depth at which the DPRAM module 32 stores data can be determined by the amount of data of the input data stream that the digital filter needs to process. Decide. In Fig. 3, ten DPRAM modules 32 are shown as an example. As can be seen from FIG. 3, the ten DPRAM modules 32 are serial connections, wherein the DPRAM module 1 of the 10 DPRAM modules 32 is connected to the control module 31 and can be used to receive input signal data. Two DPRAM modules 32 in symmetrical positions among the ten DPRAM modules 32 are connected to the same first adder module 33, such as the DPRAM module 1 and the DPRAM module 10, the DPRAM module 2, and the DPRAM module 9.
为便于本领域技术人员理解两两DPRAM模块32之间的连接关系,请参见图4,为本发明实施例中两个DPRAM模块32之间的连接读写原理图,以DPRAM模块1和DPRAM模块2的连接为例。其中,当控制模块32中的使能单元的状态为1,即可以指示数字滤波器写入输入信号数据时,DPRAM模块1写入一个输入信号数据,并可以按照预设带宽配置模式通过端口1将该输入信号数据存到相应的写地址,然后通过端口2从读地址读取与前述一个输入信号数据临近的前一个输入信号数据(图4中用输出信号数据表示),作为DPRAM模块2的输入信号数据写入。To facilitate the understanding of the connection between the two DPRAM modules 32, please refer to FIG. 4, which is a schematic diagram of the connection between the two DPRAM modules 32 in the embodiment of the present invention, with the DPRAM module 1 and the DPRAM module. The connection of 2 is an example. Wherein, when the state of the enabling unit in the control module 32 is 1, that is, the digital filter can be instructed to write the input signal data, the DPRAM module 1 writes an input signal data, and can pass the port 1 according to the preset bandwidth configuration mode. The input signal data is stored to the corresponding write address, and then the previous input signal data (represented by the output signal data in FIG. 4) adjacent to the aforementioned one input signal data is read from the read address through the port 2 as the DPRAM module 2 Input signal data is written.
由于输入信号数据是顺序性的存放在10个DPRAM中的,不同的带宽配置模式,依次写入的输入信号数据属于不同的通道,数据的读取须按照对应的带宽配置模式进行读取。Since the input signal data is sequentially stored in 10 DPRAMs, different bandwidth configuration modes, the input signal data sequentially written belong to different channels, and the data reading must be read according to the corresponding bandwidth configuration mode.
图3中以示出5个第一加法器模块33为例。由图3可知,一个第一加法器模块33可以连接M个DPRAM模块32中处于对称位置的两个DPRAM模块32,可以用于对该两个DPRAM模块32输出的输入信号数据的输入值进行对应相加。The five first adder modules 33 are shown in FIG. 3 as an example. As can be seen from FIG. 3, a first adder module 33 can connect two DPRAM modules 32 in symmetric positions of the M DPRAM modules 32, and can be used to correspond to input values of input signal data output by the two DPRAM modules 32. Add together.
比如,DPRAM模块1和DPRAM模块10、DPRAM模块2和DPRAM模块9、DPRAM模块3和DPRAM模块8、DPRAM模块4和DPRAM模块7、DPRAM模块5和DPRAM模块6输出的输出值可以通过连接的相应的第一加法器模块33直接相加。For example, the output values of the DPRAM module 1 and the DPRAM module 10, the DPRAM module 2 and the DPRAM module 9, the DPRAM module 3 and the DPRAM module 8, the DPRAM module 4 and the DPRAM module 7, the DPRAM module 5, and the DPRAM module 6 can be connected through corresponding The first adder module 33 is directly added.
本发明实施例中可以高负荷的使用乘法器模块35,即可以使用少数乘法器模块35的资源实现高阶数的数字滤波。可以通过以下公式计算得到一个乘法器模块35的复用次数,即:In the embodiment of the present invention, the multiplier module 35 can be used at a high load, that is, the high-order digital filtering can be realized using the resources of a few multiplier modules 35. The number of times of multiplexing of one multiplier module 35 can be calculated by the following formula, namely:
复用次数=滤波器时钟/(通道数*通道速率)Multiplex = filter clock / (number of channels * channel rate)
其中,通道数可以与输入数据流的带宽组合相关、且与数字滤波器的通道模式对应。The number of channels may be related to the bandwidth combination of the input data stream and to the channel mode of the digital filter.
在一种可能的实现方式中,若数字滤波器的通道模式为单通道模式,则单通道的输入采样率为F;或,In a possible implementation manner, if the channel mode of the digital filter is a single channel mode, the input sampling rate of the single channel is F; or
若数字滤波器的通道模式为双通道模式,则双通道中每个通道的输入采样率为F/2;或,If the channel mode of the digital filter is dual channel mode, the input sampling rate of each channel in the dual channel is F/2; or,
若数字滤波器的通道模式为三通道模式,则三通道中一个通道的输入采样率为F/2、另两个通道中每个通道的输入采样率为F/4;或,If the channel mode of the digital filter is three-channel mode, the input sampling rate of one channel of the three channels is F/2, and the input sampling rate of each channel of the other two channels is F/4; or
若数字滤波器的通道模式为四通道模式,则四通道中每个通道的输入采样率为F/4。If the channel mode of the digital filter is four-channel mode, the input sample rate of each of the four channels is F/4.
比如,可以参见表1,为本发明实施例中数字滤波器的通道模式对应的通道配置表。For example, refer to Table 1, which is a channel configuration table corresponding to the channel mode of the digital filter in the embodiment of the present invention.
表1Table 1
Figure PCTCN2018079262-appb-000001
Figure PCTCN2018079262-appb-000001
表1中,多通道的数字滤波器的通道数可以配置为4,而当数字滤波器的通道模式为单通道模式时,其可以容纳的通道数为1,输入采样率为1倍采样率,例如输入采样率为F,这时,输入数据流对应的带宽组合可以由通道资源工作模式0000指示为20MHZ。In Table 1, the number of channels of the multi-channel digital filter can be configured to be 4, and when the channel mode of the digital filter is single channel mode, the number of channels that can be accommodated is 1, and the input sampling rate is 1 times the sampling rate. For example, the input sampling rate is F. At this time, the bandwidth combination corresponding to the input data stream can be indicated by the channel resource working mode 0000 as 20 MHz.
当数字滤波器的通道模式为双通道模式时,其可以容纳的通道数为2,这时带宽组合可以包括3/4采样率,即3F/4的15MHZ和1/4采样率,即F/4的5MHZ,该带宽组合可以由通道资源工作模式0001指示。或者,当数字滤波器的通道模式为双通道模式时,其可以容纳的通道数为2,这时带宽组合可以包括两个1/4采样率,即3F/4的10MHZ,该带宽组合可以由通道资源工作模式0101指示。其中,通道资源工作模式可以自定义设置。When the channel mode of the digital filter is dual channel mode, the number of channels it can accommodate is 2, and the bandwidth combination can include 3/4 sampling rate, that is, 3 MHz/4 15 MHz and 1/4 sampling rate, ie F/ The 5 MHz of 4, the bandwidth combination can be indicated by the channel resource operating mode 0001. Or, when the channel mode of the digital filter is dual channel mode, the number of channels that can be accommodated is 2, and the bandwidth combination can include two 1/4 sampling rates, that is, 10 MHz of 3F/4, and the bandwidth combination can be Channel resource working mode 0101 indicates. Among them, the channel resource working mode can be customized.
而数字滤波器的通道模式的其他情况可以参见表1,本发明实施例不作赘述。For other cases of the channel mode of the digital filter, refer to Table 1, which is not described in detail in the embodiment of the present invention.
本发明实施例中的数字滤波器可以实现多个不同带宽组合,各个带宽都是协议范围内的,每种带宽组合的总带宽相等。通道速率与输入信号数据的采样率相关或者相等。The digital filter in the embodiment of the present invention can implement multiple different bandwidth combinations, each bandwidth is within the protocol range, and the total bandwidth of each bandwidth combination is equal. The channel rate is related or equal to the sampling rate of the input signal data.
乘法器模块35的个数与数字滤波器阶数、每个乘法器模块35复用次数相关。因此,可以利用数字滤波器系数的对称性,可以通过以下公式计算确定数字滤波器中所需乘法器模块35的个数,即:The number of multiplier modules 35 is related to the number of digital filter stages and the number of times each multiplier module 35 is multiplexed. Therefore, the symmetry of the digital filter coefficients can be utilized, and the number of multiplier modules 35 required in the digital filter can be determined by the following formula, namely:
乘法器模块35的个数=数字滤波器的阶数/(2*复用次数)Number of multiplier modules 35 = order of digital filters / (2 * number of multiplexing)
其中,公式中的“2”由数字滤波器系数的对称性确定。Among them, the "2" in the formula is determined by the symmetry of the digital filter coefficients.
需要说明的时,若通过上述公式得到的计算结果为整数,则取所得数作为乘法器模块35的个数;若计算结果为小数,则去掉小数部分再加1后所得数作为乘法器模块35的个数。In the case where the calculation result obtained by the above formula is an integer, the obtained number is taken as the number of the multiplier modules 35; if the calculation result is a decimal number, the number obtained by subtracting the fractional part and adding 1 is taken as the multiplier module 35. The number.
举例来说,数字滤波器时钟为245.76MHz(单位:兆赫兹),所设计的数字滤波器的阶数为79阶,实现4通道滤波器,每个通道的输入速率为7.68Msps(单位:百万抽样/秒)。For example, the digital filter clock is 245.76MHz (in megahertz), and the designed digital filter has an order of 79 steps. It implements a 4-channel filter with an input rate of 7.68Msps per channel (unit: 100 10,000 samples/second).
由数字滤波器时钟和通道数,以及每个通道的通道速率可算得每个乘法器的复用次数为245.76/(4*7.68)=8;利用滤波器系数的对称性,可算得需要的乘法器模块为79/(2*8)=4.9375,即需要使用5个乘法器模块35,请仍参见图3所示。The number of multiplexing of each multiplier is calculated by the number of digital filter clocks and channels, and the channel rate of each channel is 245.76/(4*7.68)=8; using the symmetry of the filter coefficients, the required multiplication can be calculated. The module is 79/(2*8)=4.9375, which requires the use of 5 multiplier modules 35, please still see Figure 3.
本发明实施例中存储模块34在图3中以只读存储器(Read-Only Memory,ROM)示出。由图3可知,一个存储模块34与一个乘法器模块35连接,用于存储滤波器系数,每个存储模块34存储的滤波器系数的个数可以由乘法器模块35的复用次数确定,或者也可以由滤波器系数的位宽,如16bit确定,其中,位宽与输入信号数据相关。In the embodiment of the present invention, the memory module 34 is shown in FIG. 3 as a Read-Only Memory (ROM). As can be seen from FIG. 3, a memory module 34 is connected to a multiplier module 35 for storing filter coefficients, and the number of filter coefficients stored in each memory module 34 can be determined by the number of times of multiplexing by the multiplier module 35, or It can also be determined by the bit width of the filter coefficients, such as 16 bits, where the bit width is related to the input signal data.
在实际应用中,滤波器系数可以采用奇对称形式。这时,数字滤波器需要存储的滤波器系数可以由以下公式确定:In practical applications, the filter coefficients can be in odd symmetrical form. At this time, the filter coefficients that the digital filter needs to store can be determined by the following formula:
滤波器系数的个数=(数字滤波器的阶数+1)/2Number of filter coefficients = (order of digital filter + 1) / 2
而每个存储模块34可以按照顺序依次存储这些滤波器系数。Each of the storage modules 34 can sequentially store the filter coefficients in order.
比如,数字滤波器的阶数为79的数字滤波器,需要40个滤波器系数实现,每个存储模块34可以存储8个滤波器系数。如图3所示,ROM1~ROM5依次按顺序存放滤波器系数:ROM 1存放系数0~7,ROM 2存放系数8~15,ROM 3存放系数16~23,ROM 4存放系数24~31,ROM 5存放系数32~39。For example, a digital filter with a degree of digital filter of 79 requires 40 filter coefficients to be implemented, and each memory module 34 can store 8 filter coefficients. As shown in FIG. 3, ROM1 to ROM5 sequentially store filter coefficients in order: ROM 1 stores coefficients 0 to 7, ROM 2 stores coefficients 8 to 15, ROM 3 stores coefficients 16 to 23, and ROM 4 stores coefficients 24 to 31, ROM. 5 storage coefficient 32 ~ 39.
本发明实施例中第二加法器模块37可以与第一加法器模块33相同或者不同。如图3所示,第二加法器模块37与乘法器模块35相连接,可以对通 过多个乘法器模块35获得的多个输出信号分量进行累加,获得输出信号Y(n)。The second adder module 37 in the embodiment of the present invention may be the same as or different from the first adder module 33. As shown in Fig. 3, the second adder module 37 is connected to the multiplier module 35, and the plurality of output signal components obtained by the plurality of multiplier modules 35 can be accumulated to obtain an output signal Y(n).
延时模块36可以用于数字滤波器在进行数字滤波的过程中的延时。比如,延时单元可以控制相隔数个时钟clock写入一个输入信号数据到DPRAM模块32,其相隔的数可以由通道数和输入数据采样率决定。The delay module 36 can be used for delays in the digital filter during digital filtering. For example, the delay unit can control one clock clock to write an input signal data to the DPRAM module 32, and the number of divisions can be determined by the number of channels and the input data sampling rate.
本发明实施例中,延时模块36控制每8个clock写入输入信号X(n)对应的一个输入信号数据到DPRAM模块32中时,控制模块31可以控制依次读取处于对称位置的两个DPRAM模块32中的历史存入的输入信号数据;然后,两两DPRAM模块32的输出信号数据可以通过相应的第一加法器模块33相加,并与相应的存放与存储模块34的滤波器系数通过乘法器模块35相乘,获得多个输出信号分量;再由第二加法器模块37对上述多个输出信号分量进行累加,获得相应的输出信号Y(n)。In the embodiment of the present invention, when the delay module 36 controls one input signal data corresponding to each of the 8 clock write input signals X(n) to the DPRAM module 32, the control module 31 can control to sequentially read two of the symmetric positions. The input signal data stored in the history of the DPRAM module 32; then, the output signal data of the two DPRAM modules 32 can be added by the corresponding first adder module 33, and the filter coefficients of the corresponding storage and storage module 34 A plurality of output signal components are obtained by multiplication by the multiplier module 35; the plurality of output signal components are further accumulated by the second adder module 37 to obtain a corresponding output signal Y(n).
综上所述,本发明实施例的一个或者多个技术方案,具有如下技术效果或者优点:In summary, one or more technical solutions of the embodiments of the present invention have the following technical effects or advantages:
第一、本发明实施例中的数字滤波器可以支持多种制式信号的处理,并且可以支持实时在线配置,使用灵活便捷,滤波效果显著,方便维护。First, the digital filter in the embodiment of the present invention can support the processing of multiple standard signals, and can support real-time online configuration, which is flexible and convenient to use, has a significant filtering effect, and is convenient for maintenance.
第二、由于本发明实施例中的数字滤波器采用数字化处理,无需多余的成本,一个数字滤波器兼容多种的带宽组合,效果稳定并且可节省FPGA资源,即降低成本。Second, since the digital filter in the embodiment of the present invention adopts digital processing, no unnecessary cost is required, and a digital filter is compatible with a plurality of bandwidth combinations, and the effect is stable and the FPGA resources can be saved, that is, the cost is reduced.
实施例二Embodiment 2
基于同一发明构思,请参见图5,本发明实施例提供一种数据处理方法,可以应用于如实施例一所述的数字滤波器中。其中,数据处理方法的过程可以描述如下:Based on the same inventive concept, referring to FIG. 5, an embodiment of the present invention provides a data processing method, which can be applied to the digital filter according to the first embodiment. The process of the data processing method can be described as follows:
S501:在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从M个DPRAM中读取在第j个输入信号数据之前接收的多个输入信号数据,其中,预设带宽配置模式与输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;S501: When acquiring the jth input signal data of the N input signal data included in the input data stream, reading, by the preset bandwidth configuration mode, the plurality of inputs received before the jth input signal data from the M DPRAMs Signal data, wherein the preset bandwidth configuration mode is related to at least two bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, N is an integer greater than or equal to 1, and j is less than or equal to An integer of N;
S502:基于预设规则对第j个输入信号数据及多个输入信号数据进行处理,获得多个输出信号分量,其中,预设规则为:将M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输入信号数据的输入值相加后,与相应的滤波器系数相乘;S502: processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: having two DPRAMs in the symmetric positions of the M DPRAMs After the input values of the input signal data of the same filter coefficient are added, multiplied by the corresponding filter coefficients;
S503:基于多个输出信号分量,确定并输出与第j个输入信号数据对应的输出信号。S503: Determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
本发明实施例中,获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟获取并顺序存储一个输入信号数据,其中,预设个数由通道数和相应输入信号数据的采样率确定,通道数由输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。带宽组合可以包括5MHz、10MHz、15MHz、20MHz中的至少一项。In the embodiment of the present invention, the obtaining rule of each input signal data of the N input signal data included in the input data stream is: acquiring a preset number of clocks and sequentially storing one input signal data, wherein, preset The number is determined by the number of channels and the sampling rate of the corresponding input signal data. The number of channels is determined by the bandwidth combination corresponding to the input data stream, and the total bandwidth of each bandwidth combination is equal. The bandwidth combination may include at least one of 5 MHz, 10 MHz, 15 MHz, 20 MHz.
假设输入数据流对应的带宽组合为15MHz和5MHz,则对应的通道数为2。输入数据流包括的N个输入信号数据可以表示为x0,x1,x2,x3,x4,……,x28,x29,x30,x31等,其中,每4个输入信号数据可以对应一个周期,如x0,x1,x2为15MHz带宽上的不同的输入信号数据,x3为5MHz带宽上的输入信号数据,即x0,x1,x2,x3可以对应一个周期。Assuming that the bandwidth combination corresponding to the input data stream is 15 MHz and 5 MHz, the corresponding channel number is 2. The input signal data includes N input signal data, which can be represented as x0, x1, x2, x3, x4, ..., x28, x29, x30, x31, etc., wherein each of the four input signal data can correspond to one cycle, such as x0. , x1, x2 are different input signal data on the 15MHz bandwidth, and x3 is the input signal data on the 5MHz bandwidth, that is, x0, x1, x2, x3 can correspond to one cycle.
若DPRAM的深度为32,即DPRAM可以包括用于存放数据的地址有32个,可以分别用0,1,2,3,4,……,28,29,30,31表示。则带宽组合为15MHz和5MHz的输入数据流,在每间隔预设个数的时钟,如8clock获取并顺序存储一个输入信号数据后,一个输入信号数据可以对应一个存放地址,即15MHz带宽的输入信号数据在DPRAM中的存放地址可以为0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26,28,29,30;相应地,5MHz带宽的输入信号数据在DPRAM中的存放地址为3,7,11,15,19,23,27,31。If the depth of the DPRAM is 32, that is, the DPRAM can include 32 addresses for storing data, which can be represented by 0, 1, 2, 3, 4, ..., 28, 29, 30, 31, respectively. The bandwidth is combined into 15MHz and 5MHz input data streams. After a predetermined number of clocks, such as 8clock, acquires and sequentially stores an input signal data, an input signal data can correspond to a storage address, that is, an input signal of 15MHz bandwidth. The data can be stored in DPRAM as 0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,20,21,22,24,25,26 28, 29, 30; correspondingly, the input signal data of the 5 MHz bandwidth is stored in the DPRAM at addresses 3, 7, 11, 15, 19, 23, 27, 31.
本发明实施例中,每获取一个输入信号数据,在经过数字滤波器的处理后,可以相应得到一个与该输入信号数据对应的输出信号。In the embodiment of the present invention, each time an input signal data is acquired, after processing by the digital filter, an output signal corresponding to the input signal data may be correspondingly obtained.
在S501中,预设带宽配置模式与输入数据流对应的至少两种带宽相关, 比如输入数据流对应的带宽包括15MHz和5MHz,这时,可以根据上述带宽组合对应的通道,将DPRAM内的存取地址分为两个部分,一个部分用于存储15MHz带宽上的输入信号数据,一部分可以用于存储5MHz带宽上的输入信号数据,而预设带宽配置模式可以指示每个输入信号数据在DPRAM内的存放地址,需要说明的是,存放地址与相应的读取地址为同一地址。In S501, the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream. For example, the bandwidth corresponding to the input data stream includes 15 MHz and 5 MHz. In this case, the corresponding channel in the bandwidth combination may be used to save the data in the DPRAM. The address is divided into two parts, one for storing input signal data on a 15MHz bandwidth, one for storing input signal data on a 5MHz bandwidth, and the preset bandwidth configuration mode indicating that each input signal data is in the DPRAM. The storage address, it should be noted that the storage address and the corresponding read address are the same address.
因此,在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,可以根据预设带宽配置模式从M个DPRAM中读取在第j个输入信号数据之前接收的多个输入信号数据。Therefore, when acquiring the jth input signal data among the N input signal data included in the input data stream, the plurality of received data before the jth input signal data may be read from the M DPRAMs according to the preset bandwidth configuration mode. Input signal data.
比如,在依次获取并顺序存放x0,x1,x2,x3,x4,……,x28,x29,x30,x31输入数据之后,通过第一个DPRAM获取第33个输入信号数据,即x32时,可以先将x32存放到x0原来对应的存放地址0上。然后,可以根据预设带宽配置模式,从M个DPRAM中读取在第33个输入信号数据之前接收的多个输入信号数据。For example, after sequentially acquiring and sequentially storing x0, x1, x2, x3, x4, ..., x28, x29, x30, x31 input data, obtaining the 33rd input signal data through the first DPRAM, that is, x32, First store x32 to the storage address 0 corresponding to x0. Then, a plurality of input signal data received before the 33rd input signal data can be read from the M DPRAMs according to the preset bandwidth configuration mode.
在一种可能的实现方式中,基于预设带宽配置模式从M个DPRAM中读取在第j个输入信号数据之前接收的多个输入信号数据,可以通过但不仅限于以下方式进行。In a possible implementation manner, reading the plurality of input signal data received before the jth input signal data from the M DPRAMs based on the preset bandwidth configuration mode may be performed by, but not limited to, the following manner.
读取DPRAM中输入信号数据的原则可以包括:同一通道,即处于同一带宽的输入信号数据需要按照存储顺序进行读取,最后存入的数据应该最先读取出来;依次读取与每个存储模块34存储的滤波器系数对应个数的输入信号数据。The principle of reading the input signal data in the DPRAM may include: the same channel, that is, the input signal data in the same bandwidth needs to be read in the storage order, and the last stored data should be read first; sequentially read and store each The filter coefficients stored by module 34 correspond to the number of input signal data.
即若通过M个DPRAM中的第1个DPRAM获取第j个输入信号数据,则基于预设带宽配置模式从第(1+n)个DPRAM中倒序读取与第j个输入信号数据处于同一带宽的第一组输入信号数据,且从第(M-n)个DPRAM中顺序读取与第j个输入信号数据处于同一带宽的第二组输入信号数据。That is, if the jth input signal data is acquired through the first DPRAM of the M DPRAMs, the reverse reading from the (1+n)th DPRAM is in the same bandwidth as the jth input signal data based on the preset bandwidth configuration mode. The first set of input signal data, and the second set of input signal data in the same bandwidth as the jth input signal data are sequentially read from the (Mn) DPRAM.
上述例子继续,请同时参见图3,假设在依次获取并顺序存放x0,x1,x2,x3,x4,……,x28,x29,x30,x31输入数据之后,通过第一个DPRAM获取第33个输入信号数据时,即x32时,可以先将x32存放到x0原来对应 的存放地址0上。The above example continues. Please refer to FIG. 3 at the same time. Suppose that after sequentially acquiring and sequentially storing x0, x1, x2, x3, x4, ..., x28, x29, x30, x31 input data, obtain the 33rd through the first DPRAM. When inputting signal data, that is, x32, you can first store x32 to the storage address 0 corresponding to x0.
针对带宽为15MHz的输入信号数据,从DRRAM模块1中读出的第一组输入信号数据的地址分别为:0、30、29、28、26、25、24和22;而从DRRAM模块10中读出的第二组输入信号数据的地址分别为:21、22、24、25、26、28、29和30。从DPRAM模块2中读出的第一组输入信号数据的地址分别为:1、0、30、29、28、26、25和24;从DPRAM模块9中读出的第二组输入信号数据的地址分别为:22、24、25、26、28、29、30、0。其他的DPRAM模块的输出类似,本发明实施例不再赘述。For input signal data having a bandwidth of 15 MHz, the addresses of the first set of input signal data read from the DRRAM module 1 are: 0, 30, 29, 28, 26, 25, 24, and 22; and from the DRRAM module 10 The addresses of the read second set of input signal data are: 21, 22, 24, 25, 26, 28, 29, and 30, respectively. The addresses of the first set of input signal data read from the DPRAM module 2 are: 1, 0, 30, 29, 28, 26, 25, and 24; the second set of input signal data read from the DPRAM module 9 The addresses are: 22, 24, 25, 26, 28, 29, 30, 0. The output of other DPRAM modules is similar, and will not be described in detail in the embodiments of the present invention.
由多个第一组输入信号数据和多个第二组输入信号数据构成多个输入信号数据。A plurality of input signal data is composed of a plurality of first sets of input signal data and a plurality of second sets of input signal data.
然后,可以进入S502,即基于预设规则对第j个输入信号数据及多个输入信号数据进行处理,获得多个输出信号分量,其中,预设规则为:将M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输入信号数据的输入值相加后,与相应的所述滤波器系数相乘。Then, the process may go to S502, that is, processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: placing the M DPRAMs in a symmetrical position The input values of the input signal data having the same filter coefficients in the two DPRAMs are added and multiplied by the corresponding filter coefficients.
在一种可能的实现方式中,基于预设规则对第j个输入信号数据及多个输入信号数据进行处理,获得多个输出信号分量,可以包括:In a possible implementation, the processing of the jth input signal data and the plurality of input signal data based on the preset rule to obtain the plurality of output signal components may include:
将第j个输入信号数据、多个第一组输入信号数据和多个第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的滤波器系数相乘,获得多个输出信号分量。Adding input values of the jth input signal data, the plurality of first sets of input signal data, and the input signal data of the plurality of second sets of input signal data having the same filter coefficient, and multiplying by the corresponding filter coefficients , obtaining multiple output signal components.
上述例子继续,请仍参见图3,将0、30、29、28、26、25、24和22分别对应的输入信号数据的输入值,与21、22、24、25、26、28、29和30分别对应的输入信号数据的输入值相加,然后与相应的滤波器系数相乘,可以获得多个输出信号分量。如地址0对应的输入信号数据的输入值与地址21对应的输入信号数据的输入值相加,与ROM1中存储的滤波器系数地址0对应的滤波器系数相乘,可以得到一个输出信号分量;又如地址30对应的输入信号数据的输入值与地址22对应的输入信号数据的输入值相加,与ROM1中存储的滤波器系数地址1对应的滤波器系数相乘,可以得到一个输出信号分量。 其余输入信号数据的计算方式类似,本发明实施例中不再赘述。The above example continues, please still refer to FIG. 3, the input values of the input signal data corresponding to 0, 30, 29, 28, 26, 25, 24, and 22, respectively, and 21, 22, 24, 25, 26, 28, 29 The input values of the input signal data corresponding to 30 and 30 are respectively added, and then multiplied by the corresponding filter coefficients to obtain a plurality of output signal components. If the input value of the input signal data corresponding to the address 0 is added to the input value of the input signal data corresponding to the address 21, and multiplied by the filter coefficient corresponding to the filter coefficient address 0 stored in the ROM 1, an output signal component can be obtained; Further, if the input value of the input signal data corresponding to the address 30 is added to the input value of the input signal data corresponding to the address 22, and multiplied by the filter coefficient corresponding to the filter coefficient address 1 stored in the ROM 1, an output signal component can be obtained. . The calculation of the remaining input signal data is similar, and is not described in detail in the embodiments of the present invention.
在通过上述方式获得多个输出信号分量之后,可以进入S503,即基于多个输出信号分量,确定并输出与第j个输入信号数据对应的输出信号。After obtaining a plurality of output signal components in the above manner, it is possible to proceed to S503, that is, to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
在一种可能的实现方式中,所述基于多个输出信号分量,确定与第j个输入信号数据对应的输出信号,可以包括对多个输出信号分量进行累加,确定与第j个输入信号数据对应的输出信号。In a possible implementation manner, the determining, according to the plurality of output signal components, the output signal corresponding to the jth input signal data may include accumulating the plurality of output signal components, determining the data with the jth input signal Corresponding output signal.
综上所述,本发明实施例的一个或者多个技术方案,具有如下技术效果或者优点:In summary, one or more technical solutions of the embodiments of the present invention have the following technical effects or advantages:
本发明实施例中在获取输入数据流包括的N个输入信号数据的第j个输入信号数据时,基于预设带宽配置模式读取在第j个输入信号数据之前接收的多个输入数据,而预设带宽配置模式与输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在DPRAM内的存取地址,然后根据预设规则对第j个输入信号数据及多个输入信号数据进行处理,获得多个输出信号分量,进而确定并输出与第j个输入信号数据对应的输出信号。即本发明实施例提供的数据处理方法能够同时处理至少两种带宽的输入信号,降低了数字滤波器处理输入信号的复杂度。In the embodiment of the present invention, when acquiring the jth input signal data of the N input signal data included in the input data stream, reading the plurality of input data received before the jth input signal data according to the preset bandwidth configuration mode, and The preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, is used to indicate an access address of each input signal data in the DPRAM, and then the jth input signal data and the plurality of input signals according to a preset rule. The data is processed to obtain a plurality of output signal components, thereby determining and outputting an output signal corresponding to the jth input signal data. That is, the data processing method provided by the embodiment of the present invention can simultaneously process input signals of at least two kinds of bandwidths, which reduces the complexity of processing the input signals by the digital filters.
实施例三Embodiment 3
基于同一发明构思,请参见图6,本发明实施例提供一种数字滤波器,可以应用如实施例二所述的数据处理方法。数字滤波器包括依次连接的M个双端口随机存储器DPRAM、获取模块61、处理模块62和输出模块63,所述M为大于等于2的整数。Based on the same inventive concept, referring to FIG. 6, the embodiment of the present invention provides a digital filter, and the data processing method as described in Embodiment 2 can be applied. The digital filter includes M dual port random access memory DPRAMs, an acquisition module 61, a processing module 62, and an output module 63, which are sequentially connected, and the M is an integer greater than or equal to 2.
其中,获取模块61,用于在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,其中,所述预设带宽配置模式与所述输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在所述DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;The obtaining module 61 is configured to, when acquiring the jth input signal data of the N input signal data included in the input data stream, read from the M DPRAMs in the jth based on a preset bandwidth configuration mode. a plurality of input signal data received before the input signal data, wherein the preset bandwidth configuration mode is related to at least two bandwidths corresponding to the input data stream, and is used to indicate that each input signal data is in the DPRAM Access address, N is an integer greater than or equal to 1, and j is an integer less than or equal to N;
处理模块62,用于基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,其中,所述预设规则为:将所述M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输入信号数据的输入值相加后,与相应的所述滤波器系数相乘;The processing module 62 is configured to process the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, where the preset rule is: The input values of the input signal data having the same filter coefficients in the two DPRAMs in the symmetric position in the DPRAM are added, and multiplied by the corresponding filter coefficients;
输出模块63,用于基于所述多个输出信号分量,确定并输出与所述第j个输入信号数据对应的输出信号。The output module 63 is configured to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
在一种可能的实现方式中,所述获取模块61获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟clock获取并顺序存储一个输入信号数据,其中,所述预设个数由通道数和相应输入信号数据的采样率确定,所述通道数由所述输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。In a possible implementation manner, the acquiring module 61 acquires an acquisition rule of each input signal data of the N input signal data included in the input data stream: acquiring and sequentially storing one clock every predetermined number of clocks Input signal data, wherein the preset number is determined by the number of channels and a sampling rate of the corresponding input signal data, the number of channels being determined by a combination of bandwidths corresponding to the input data streams, and the total bandwidth of each bandwidth combination is equal.
在一种可能的实现方式中,所述获取模块61用于:In a possible implementation, the obtaining module 61 is configured to:
基于所述预设带宽配置模式存储顺序从所述第(1+n)个DPRAM中倒序读取与所述第j个输入信号数据处于同一带宽的第一组输入信号数据,且从第(M-n)个DPRAM中顺序读取与所述第j个输入信号数据处于同一带宽的第二组输入信号数据,其中,所述倒序读取的顺序与所述预设带宽配置模式对应的存储顺序相反,所述顺序读取的顺序与所述存储顺序相同,所述第(1+n)个DPRAM与所述第(M-n)个DPRAM处于对称位置,所述n依次取0到(M-1)的整数;Reading, according to the preset bandwidth configuration mode storage order, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the first (Mn) And sequentially reading a second set of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode, The order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n is taken from 0 to (M-1) in turn. Integer
由多个所述第一组输入信号数据和多个所述第二组输入信号数据构成所述多个输入信号数据。The plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
在一种可能的实现方式中,所述处理模块62具体用于:In a possible implementation, the processing module 62 is specifically configured to:
将所述第j个输入信号数据、多个所述第一组输入信号数据和多个所述第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的所述滤波器系数相乘,获得多个输出信号分量。Adding the input values of the jth input signal data, the plurality of the first set of input signal data, and the input signal data having the same filter coefficient among the plurality of the second set of input signal data, and correspondingly The filter coefficients are multiplied to obtain a plurality of output signal components.
在一种可能的实现方式中,所述输出模块63具体用于:In a possible implementation manner, the output module 63 is specifically configured to:
对所述多个输出信号分量进行累加,确定与所述第j个输入信号数据对应 的输出信号。The plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
实施例四Embodiment 4
请参见图7,基于同一发明构思,本发明实施例中提供一种计算机装置,包括至少一个处理器71,以及与所述至少一个处理器71通信连接的存储器72和通信接口73,图7中以示出一个处理器71为例。Referring to FIG. 7, based on the same inventive concept, a computer apparatus is provided in an embodiment of the present invention, including at least one processor 71, and a memory 72 and a communication interface 73 communicatively coupled to the at least one processor 71, in FIG. A processor 71 is shown as an example.
其中,所述存储器72存储有可被所述至少一个处理器71执行的指令,所述至少一个处理器71通过执行所述存储器72存储的指令,利用所述通信接口73执行如实施例二中所述的方法。The memory 72 stores instructions executable by the at least one processor 71, and the at least one processor 71 performs the operation of the memory 72 by using the communication interface 73 as in the second embodiment. Said method.
实施例五 Embodiment 5
基于同一发明构思,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如实施例二所述的方法。Based on the same inventive concept, an embodiment of the present invention provides a computer readable storage medium, where the computer readable storage medium stores computer instructions, when the computer instructions are run on a computer, causing the computer to execute as described in Embodiment 2 Methods.
在具体的实施过程中,计算机可读存储介质包括:通用串行总线闪存盘(UMiversal Serial Bus flash drive,USB)、移动硬盘、只读存储器(Read-OMly PePory,ROP)、随机存取存储器(RaMdoP Access PePory,RAP)、磁碟或者光盘等各种可以存储程序代码的存储介质。In a specific implementation process, the computer readable storage medium includes: a universal serial bus flash drive (USB), a mobile hard disk, a read-only memory (Read-OMly PePory, ROP), a random access memory ( RaMdoP Access PePory, RAP), a disk or a disc, and other storage media that can store program code.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元/模块可以是或者也可以不是物理上分开的,作为单元/模块显示的部件可以是或者也可以不是物理单元/模块,即可以位于一个地方,或者也可以分布到多个网络单元/模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units/modules described as separate components may or may not be physically separate, and the components displayed as units/modules may or may not be physical units/modules. , can be located in one place, or can be distributed to multiple network units/modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROP/RAP、磁碟、光盘等,包括若干指令用以使得一台计 算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROP/RAP, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

  1. 一种数字滤波器,其特征在于,包括:A digital filter, comprising:
    控制模块,至少用于存储输入信号数据的存取地址、滤波器系数地址;a control module for storing at least an access address and a filter coefficient address of the input signal data;
    串行连接的M个DPRAM模块,其中,所述M个DPRAM模块中的第一DPRAM模块与所述控制模块连接,至少用于接收所述输入信号数据;Serially connected M DPRAM modules, wherein a first one of the M DPRAM modules is connected to the control module, at least for receiving the input signal data;
    多个第一加法器模块,其中,一个第一加法器模块连接所述M个DPRAM模块中处于对称位置的两个DPRAM模块;a plurality of first adder modules, wherein a first adder module connects two DPRAM modules in a symmetric position of the M DPRAM modules;
    多个乘法器模块,其中,一个乘法器模块与一个第一加法器模块连接,所述乘法器模块的个数与数字滤波器阶数、每个乘法器复用次数相关,所述每个乘法器模块的复用次数与数字滤波器时钟、数字滤波器的通道模式对应的通道数和所述输入信号数据的采样率相关,所述通道数由输入数据流对应的带宽组合确定;a plurality of multiplier modules, wherein a multiplier module is coupled to a first adder module, the number of the multiplier modules being related to a digital filter order, each multiplier multiplexing number, each multiplication The number of times of multiplexing of the module is related to the number of channels corresponding to the digital filter clock, the channel mode of the digital filter, and the sampling rate of the input signal data, and the number of channels is determined by a bandwidth combination corresponding to the input data stream;
    多个存储模块,其中,一个存储模块与一个乘法器模块连接,用于存储滤波器系数,每个存储模块存储的滤波器系数的个数由所述乘法器模块的复用次数确定;a plurality of storage modules, wherein a storage module is coupled to a multiplier module for storing filter coefficients, and the number of filter coefficients stored in each storage module is determined by the number of multiplexing of the multiplier module;
    多个第二加法器模块,与所述多个乘法器模块连接;a plurality of second adder modules connected to the plurality of multiplier modules;
    延时模块,用于所述数字滤波器的延时。A delay module for delaying the digital filter.
  2. 如权利要求1所述的数字滤波器,其特征在于,若所述数字滤波器的通道模式为单通道模式,则所述单通道的输入采样率为F;或,The digital filter according to claim 1, wherein if the channel mode of the digital filter is a single channel mode, the input sampling rate of the single channel is F; or
    若所述数字滤波器的通道模式为双通道模式,则所述双通道中每个通道的输入采样率为F/2;或,If the channel mode of the digital filter is a dual channel mode, an input sampling rate of each channel in the dual channel is F/2; or
    若所述数字滤波器的通道模式为三通道模式,则所述三通道中一个通道的输入采样率为F/2、另两个通道中每个通道的输入采样率为F/4;或,If the channel mode of the digital filter is a three-channel mode, an input sampling rate of one of the three channels is F/2, and an input sampling rate of each of the other two channels is F/4; or
    若所述数字滤波器的通道模式为四通道模式,则所述四通道中每个通道的输入采样率为F/4。If the channel mode of the digital filter is a four channel mode, the input sampling rate of each of the four channels is F/4.
  3. 如权利要求2所述的数字滤波器,其特征在于,所述输入数据流对应 的带宽组合包括5MHz、10MHz、15MHz、20MHz中的至少一项。The digital filter of claim 2 wherein the bandwidth combination corresponding to the input data stream comprises at least one of 5 MHz, 10 MHz, 15 MHz, 20 MHz.
  4. 一种数据处理方法,应用于数字滤波器,其特征在于,所述数字滤波器包括依次连接的M个双端口随机存储器DPRAM,所述M为大于等于2的整数,所述方法包括:A data processing method is applied to a digital filter, wherein the digital filter comprises M dual-port random access memory DPRAMs connected in sequence, and the M is an integer greater than or equal to 2, the method comprising:
    在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,其中,所述预设带宽配置模式与所述输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在所述DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;When acquiring the jth input signal data among the N input signal data included in the input data stream, reading from the M DPRAMs before receiving the jth input signal data based on a preset bandwidth configuration mode Input signal data, wherein the preset bandwidth configuration mode is related to at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM, where N is greater than or equal to An integer of 1, j is an integer less than or equal to N;
    基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,其中,所述预设规则为:将所述M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输入信号数据的输入值相加后,与相应的所述滤波器系数相乘;Processing the jth input signal data and the plurality of input signal data according to a preset rule to obtain a plurality of output signal components, wherein the preset rule is: placing the M DPRAMs in a symmetrical position The input values of the input signal data having the same filter coefficients in the two DPRAMs are added, and multiplied by the corresponding filter coefficients;
    基于所述多个输出信号分量,确定并输出与所述第j个输入信号数据对应的输出信号。An output signal corresponding to the jth input signal data is determined and output based on the plurality of output signal components.
  5. 如权利要求4所述的方法,其特征在于,获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟获取并顺序存储一个输入信号数据,其中,所述预设个数由通道数和相应输入信号数据的采样率确定,所述通道数由所述输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。The method according to claim 4, wherein the obtaining rule of each input signal data of the N input signal data included in the input data stream is: acquiring and sequentially storing an input signal every predetermined number of clocks. Data, wherein the preset number is determined by a number of channels and a sampling rate of corresponding input signal data, the number of channels being determined by a bandwidth combination corresponding to the input data stream, and a total bandwidth of each bandwidth combination is equal.
  6. 如权利要求4或5所述的方法,其特征在于,所述基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,包括:The method according to claim 4 or 5, wherein said reading a plurality of input signal data received before said jth input signal data from said M DPRAMs based on a preset bandwidth configuration mode, include:
    基于所述预设带宽配置模式从所述第(1+n)个DPRAM中倒序读取与所述第j个输入信号数据处于同一带宽的第一组输入信号数据时,且从第(M-n)个DPRAM中顺序读取与所述第j个输入信号数据处于同一带宽的第二组输入信号数据,其中,所述倒序读取的顺序与所述预设带宽配置模式对应的存储 顺序相反,所述顺序读取的顺序与所述存储顺序相同,所述第(1+n)个DPRAM与所述第(M-n)个DPRAM处于对称位置,所述n依次取0到(M-1)的整数;And reading, according to the preset bandwidth configuration mode, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the (Mn) And sequentially reading, in the DPRAM, the second group of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode. The order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n sequentially takes an integer from 0 to (M-1) ;
    由多个所述第一组输入信号数据和多个所述第二组输入信号数据构成所述多个输入信号数据。The plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
  7. 如权利要求6所述的方法,其特征在于,所述基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,包括:The method according to claim 6, wherein the processing of the jth input signal data and the plurality of input signal data based on a preset rule to obtain a plurality of output signal components comprises:
    将所述第j个输入信号数据、多个所述第一组输入信号数据和多个所述第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的所述滤波器系数相乘,获得多个输出信号分量。Adding the input values of the jth input signal data, the plurality of the first set of input signal data, and the input signal data having the same filter coefficient among the plurality of the second set of input signal data, and correspondingly The filter coefficients are multiplied to obtain a plurality of output signal components.
  8. 如权利要求7所述的方法,其特征在于,所述基于所述多个输出信号分量,确定与所述第j个输入信号数据对应的输出信号,包括:The method of claim 7, wherein the determining an output signal corresponding to the jth input signal data based on the plurality of output signal components comprises:
    对所述多个输出信号分量进行累加,确定与所述第j个输入信号数据对应的输出信号。The plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
  9. 一种数字滤波器,其特征在于,所述数字滤波器包括:A digital filter, characterized in that the digital filter comprises:
    依次连接的M个双端口随机存储器DPRAM,所述M为大于等于2的整数;M dual-port random access memory DPRAMs connected in sequence, the M being an integer greater than or equal to 2;
    获取模块,用于在获取输入数据流包括的N个输入信号数据中的第j个输入信号数据时,基于预设带宽配置模式从所述M个DPRAM中读取在所述第j个输入信号数据之前接收的多个输入信号数据,其中,所述预设带宽配置模式与所述输入数据流对应的至少两种带宽相关、用于指示每个输入信号数据在所述DPRAM内的存取地址,N为大于等于1的整数,j为小于等于N的整数;An acquiring module, configured to read the jth input signal from the M DPRAMs based on a preset bandwidth configuration mode when acquiring the jth input signal data of the N input signal data included in the input data stream a plurality of input signal data received before the data, wherein the preset bandwidth configuration mode is associated with at least two types of bandwidths corresponding to the input data stream, and is used to indicate an access address of each input signal data in the DPRAM , N is an integer greater than or equal to 1, and j is an integer less than or equal to N;
    处理模块,用于基于预设规则对所述第j个输入信号数据及所述多个输入信号数据进行处理,获得多个输出信号分量,其中,所述预设规则为:将所述M个DPRAM中处于对称位置的两个DPRAM中具有相同滤波器系数的输 入信号数据的输入值相加后,与相应的所述滤波器系数相乘;a processing module, configured to process the jth input signal data and the plurality of input signal data according to a preset rule, to obtain a plurality of output signal components, where the preset rule is: The input values of the input signal data having the same filter coefficients in the two DPRAMs in the symmetrical position in the DPRAM are added, and multiplied by the corresponding filter coefficients;
    输出模块,用于基于所述多个输出信号分量,确定并输出与所述第j个输入信号数据对应的输出信号。And an output module, configured to determine and output an output signal corresponding to the jth input signal data based on the plurality of output signal components.
  10. 如权利要求9所述的数字滤波器,其特征在于,所述获取模块获取输入数据流包括的N个输入信号数据中每个输入信号数据的获取规则为:每间隔预设个数的时钟clock获取并顺序存储一个输入信号数据,其中,所述预设个数由通道数和相应输入信号数据的采样率确定,所述通道数由所述输入数据流对应的带宽组合确定,每种带宽组合的总带宽相等。The digital filter according to claim 9, wherein the obtaining module acquires an acquisition rule of each of the N input signal data included in the input data stream: a predetermined number of clocks per interval Acquiring and sequentially storing an input signal data, wherein the preset number is determined by a channel number and a sampling rate of the corresponding input signal data, the channel number being determined by a bandwidth combination corresponding to the input data stream, each bandwidth combination The total bandwidth is equal.
  11. 如权利要求9或10所述的数字滤波器,其特征在于,所述获取模块用于:The digital filter according to claim 9 or 10, wherein the acquisition module is configured to:
    基于所述预设带宽配置模式存储顺序从所述第(1+n)个DPRAM中倒序读取与所述第j个输入信号数据处于同一带宽的第一组输入信号数据,且从第(M-n)个DPRAM中顺序读取与所述第j个输入信号数据处于同一带宽的第二组输入信号数据,其中,所述倒序读取的顺序与所述预设带宽配置模式对应的存储顺序相反,所述顺序读取的顺序与所述存储顺序相同,所述第(1+n)个DPRAM与所述第(M-n)个DPRAM处于对称位置,所述n依次取0到(M-1)的整数;Reading, according to the preset bandwidth configuration mode storage order, the first group of input signal data in the same bandwidth as the jth input signal data from the (1+n)th DPRAM, and from the first (Mn) And sequentially reading a second set of input signal data in the same bandwidth as the jth input signal data, wherein the order of the reverse reading is opposite to the storage order corresponding to the preset bandwidth configuration mode, The order of sequential reading is the same as the storage order, the (1+n)th DPRAM and the (Mn)th DPRAM are in a symmetrical position, and the n is taken from 0 to (M-1) in turn. Integer
    由多个所述第一组输入信号数据和多个所述第二组输入信号数据构成所述多个输入信号数据。The plurality of input signal data is composed of a plurality of the first set of input signal data and a plurality of the second set of input signal data.
  12. 如权利要求11所述的数字滤波器,其特征在于,所述处理模块具体用于:The digital filter according to claim 11, wherein the processing module is specifically configured to:
    将所述第j个输入信号数据、多个所述第一组输入信号数据和多个所述第二组输入信号数据中具有相同滤波器系数的输入信号数据的输入值相加,并与相应的所述滤波器系数相乘,获得多个输出信号分量。Adding the input values of the jth input signal data, the plurality of the first set of input signal data, and the input signal data having the same filter coefficient among the plurality of the second set of input signal data, and correspondingly The filter coefficients are multiplied to obtain a plurality of output signal components.
  13. 如权利要求12所述的数字滤波器,其特征在于,所述输出模块具体用于:The digital filter according to claim 12, wherein said output module is specifically configured to:
    对所述多个输出信号分量进行累加,确定与所述第j个输入信号数据对应 的输出信号。The plurality of output signal components are accumulated to determine an output signal corresponding to the jth input signal data.
  14. 一种计算机装置,其特征在于,所述计算机装置包括:A computer device, comprising:
    至少一个处理器,以及At least one processor, and
    与所述至少一个处理器通信连接的存储器、通信接口;a memory, communication interface communicatively coupled to the at least one processor;
    其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述至少一个处理器通过执行所述存储器存储的指令,利用所述通信接口执行如权利要求4-8中任一项所述的方法。Wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the memory interface to perform any of the claims 4-8 by executing the memory stored instructions Said method.
  15. 一种计算机可读存储介质,其特征在于:A computer readable storage medium characterized by:
    所述计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如权利要求4-8中任一项所述的方法。The computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method of any of claims 4-8.
PCT/CN2018/079262 2017-12-29 2018-03-16 Digital filter and data processing method WO2019127918A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711481116.1A CN108228480B (en) 2017-12-29 2017-12-29 Digital filter and data processing method
CN201711481116.1 2017-12-29

Publications (1)

Publication Number Publication Date
WO2019127918A1 true WO2019127918A1 (en) 2019-07-04

Family

ID=62646254

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/079262 WO2019127918A1 (en) 2017-12-29 2018-03-16 Digital filter and data processing method

Country Status (2)

Country Link
CN (1) CN108228480B (en)
WO (1) WO2019127918A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116636215A (en) * 2021-12-21 2023-08-22 京东方科技集团股份有限公司 Data processing circuit, data processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101351791A (en) * 2005-09-02 2009-01-21 奎克菲尔特技术公司 Shared memory and shared multiplier programmable digital-filter implementation
CN104467739A (en) * 2014-12-15 2015-03-25 天津大学 Bandwidth-adjustable and center-frequency-adjustable digital filter and implementation method thereof
CN104579242A (en) * 2014-12-15 2015-04-29 天津大学 Frequency selecting filter for configurable bandwidths and configurable frequency points and implementation method thereof
WO2017007519A1 (en) * 2015-07-06 2017-01-12 Xilinx, Inc. Variable bandwidth filtering
CN107104659A (en) * 2017-03-01 2017-08-29 广州慧睿思通信息科技有限公司 A kind of digital filtering method and device for LTE carrier waves

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5574825A (en) * 1994-03-14 1996-11-12 Lucent Technologies Inc. Linear prediction coefficient generation during frame erasure or packet loss
US6411117B1 (en) * 1998-11-13 2002-06-25 Broadcom Corporation Dynamic register with IDDQ testing capability
US7039138B2 (en) * 2001-06-05 2006-05-02 Qualcomm Incorporated Method and apparatus for bandwidth estimation
EP1808962A1 (en) * 2004-11-05 2007-07-18 Neuro Solution Corp. Digital filter and its designing method, desiging apparatus, and program for designing digital filter
JP2009232426A (en) * 2008-03-25 2009-10-08 Toshiba Corp Sample rate converter and receiver using same
CN102035502B (en) * 2009-09-28 2013-04-03 联芯科技有限公司 Implementation structure of finite impulse response (FIR) filter
US8195972B2 (en) * 2009-12-01 2012-06-05 Texas Instruments Incorporated Jitter precorrection filter in time-average-frequency clocked systems
CN102621562B (en) * 2012-03-20 2013-09-18 东南大学 Field programmable gate array (FPGA)-based multi-channel real-time global position system (GPS) tracking method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101351791A (en) * 2005-09-02 2009-01-21 奎克菲尔特技术公司 Shared memory and shared multiplier programmable digital-filter implementation
CN104467739A (en) * 2014-12-15 2015-03-25 天津大学 Bandwidth-adjustable and center-frequency-adjustable digital filter and implementation method thereof
CN104579242A (en) * 2014-12-15 2015-04-29 天津大学 Frequency selecting filter for configurable bandwidths and configurable frequency points and implementation method thereof
WO2017007519A1 (en) * 2015-07-06 2017-01-12 Xilinx, Inc. Variable bandwidth filtering
CN107104659A (en) * 2017-03-01 2017-08-29 广州慧睿思通信息科技有限公司 A kind of digital filtering method and device for LTE carrier waves

Also Published As

Publication number Publication date
CN108228480B (en) 2020-11-03
CN108228480A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
US9424033B2 (en) Modified balanced throughput data-path architecture for special correlation applications
CN101944364B (en) Voice frequency processing method and voice frequency system
EP0905890B1 (en) Filter structure
WO2016070668A1 (en) Method, device, and computer storage medium for implementing data format conversion
KR20080053327A (en) Shared memory and shared multiplier programmable digital-filter implementation
WO2019127918A1 (en) Digital filter and data processing method
Mehrnia et al. Optimal factoring of FIR filters
WO2017148221A1 (en) Transmission control method, apparatus and system for serial peripheral interface
CN102279728B (en) Data storage device and method for computing data
JP2013101617A5 (en)
WO2019104639A1 (en) Calculation unit, calculation system and control method for calculation unit
CN100550622C (en) The digital signal filtering apparatus and the method that have down sampling function
TWI539742B (en) Digital filter-decimator-tuner
CN100511980C (en) Sampling speed converter and method thereof
CN102684644B (en) Sample rate conversion filter and sample rate conversion implementation method
JP2019503136A (en) Method and apparatus for accurate and efficient spectral estimation using improved sliding DFT
CN104579239B (en) A kind of filter method of filtering system
WO2021114907A1 (en) Fir filter-based filtering method, apparatus, and device, and storage medium
US9148239B2 (en) Systems and methods for programmatically filtering frequency signals
Ketha et al. Design & FPGA implementation of reconfigurable fir filter architecture for DSP applications
Romero High-speed multiplierless Frequency Response Masking (FRM) FIR filters with reduced usage of hardware resources
CN116910456B (en) Filtering method, device, electronic equipment and computer readable storage medium
CN202406100U (en) High-precision digital-to-analog converter for band-limited signals
US20230421137A1 (en) Polyphase filter for a dynamically reconfigurable oversampled channelizer
RU2649799C2 (en) Device for changing frequency of discreteization in multichannel digital receivers

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: 18894916

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18894916

Country of ref document: EP

Kind code of ref document: A1