CN106134514B - Sampling rate converting method based on Farrow Structure Filter and device - Google Patents
Sampling rate converting method based on Farrow Structure Filter and deviceInfo
- Publication number
- CN106134514B CN106134514B CN201010048483.4A CN201010048483A CN106134514B CN 106134514 B CN106134514 B CN 106134514B CN 201010048483 A CN201010048483 A CN 201010048483A CN 106134514 B CN106134514 B CN 106134514B
- Authority
- CN
- China
- Prior art keywords
- signal
- conversion
- sample rate
- filter
- rate conversion
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Abstract
Based on the sampling rate converting method of Farrow Structure Filter, the sample rate conversion that need to complete data signal for multi-sampling rate system for signal processing, adopt second order power function and four sampled points to build the expression formula of signal after sample rate conversion, sample conversion device adopts 9 delayers, 9 adders, 2 subtracters and 8 multipliers to build sampling filter. With respect to traditional Lagrangian Farrow Structure Filter sampling rate converting method, the multiplier that the inventive method can reduce half uses, in the time that FPGA realizes, can utilize 1/2 hardware resource to realize sample rate conversion, and there is good anti-spectral image and the ability of spectral aliasing, ensure the integrality of signal frequency spectrum after sampling rate conversion.
Description
Technical field
The present invention relates to a kind of conversion method of digital signal samples rate and adopt the sample rate of the method design to turnChanging device.
Background technology
At present, mainly utilize CIC filtering and Farrow filtering to realize sample rate conversion. Wherein CIC filterThe flexibility of wave method is poor, and it is more to take resource, and in engineering practice, application can cause higher hardwareCost, be unfavorable for developing of product, and the sample rate conversion technology of Farrow Structure Filter not onlyThere is flexibility, the more important thing is in the utilization of resources and account for and have great advantage, therefore study FarrowThe sample rate conversion technology of Structure Filter has great engineering practice meaning.
Normally used Farrow Structure Filter as shown in Figure 1, utilizes 12 filter coefficients to do 14Individual multiplying completes sample rate conversion, and its design of filter often utilizes linear interpolation, or cubic spline is insertedValue, or the method for Lagrange's interpolation designs, so that wave filter has good filtering performance. For exampleApplication number is CN00807033.4, and name is called " the continuous variable delay filter of use and multiphase filter combinationThe image interpolation of ripple device and extraction " Chinese patent, and application number is CN200710037143.X, nameBe called the disclosed technical side of Chinese patent of " a kind of Doppler simulation implementation method based on digital interpolative "In case, all use multistage multinomial design Farrow wave filter, Chen Weidong, Sun Dong, Zhang Hua are punched in 2009On year the 6th phase the 35th volume " radio communication technology ", deliver " based on interpolation filter sign synchronizationRealize " use cubic function design Farrow wave filter in a literary composition. A large amount of emulation facts have proved, utilizeAbove-mentioned these interpolation method designing filters, have the ability of good anti-spectral aliasing, but for by samplingThe inhibition ability of the image spectra that rate conversion produces is not also very desirable, in addition, and owing to utilizing above-mentioned these to insertThe filter coefficient of value method design is fixed, and is unfavorable for follow-up optimization.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, provide a kind of filtering performance good,The sampling rate converting method based on Farrow Structure Filter and device that resource utilization is high.
Technical solution of the present invention is: based on the sampling rate converting method of Farrow Structure Filter,Adopt second order power function and four sampled points to represent the signal y (kT after sample rate conversioni),
Wherein, TiFor the signal sampling period after conversion, k is integer,
TsFor the signal sampling period before conversion, mkFor kTi/TsInteger part, ukFor kTi/TsFractional partPoint, x () is sampled signal, cnAnd c (0)n(1), n=0,1,2 is and passband and the stopband of sample rate conversion wave filterRelevant undetermined coefficient, mk,ukInitial value is 0, ukWith increment, Ti/Ts increases progressively, ukRate of change be
1/Ti; Work as ukU when > 1k=uk-1,mk=mk+1。
Described cnAnd c (0)n(1), n=0,1,2 meets relational expression with sample rate conversion wave filter h (t):
Sample rate conversion device based on Farrow Structure Filter, comprise 9 delayers, 9 adders,2 subtracters and 8 multipliers; Wherein every 3 delayers are one group, for to certain fixed timeSampled signal is carried out delay process, obtains three groups of bursts that form by four identical sampled points; Work as nDuring for even number, v (n) adopts 3 adders and 2 multipliers to realize, and in the time that n is odd number, v (n) adopts2 subtracters, 1 adder and 2 multipliers are realized; V (2) first utilizes 1 multiplier and ukMultiply each other1 adder of rear recycling and v (1) are added, and the result of addition is utilized 1 multiplier and ukRecycling after multiplying each other1 adder and v (0) are added, and finally obtain y (kTi) and output.
The present invention's advantage is compared with prior art:
1, the inventive method utilizes the low pass filter of power function design to have good anti-spectral image and frequency spectrumThe ability of aliasing, in the time that Practical Project antagonism spectral image has different requirement from aliasing ability, can be by adjusting6 parameter c 0 (k) and c1 (k), k=0,1,2 size, adjusts pass band and Stopband Performance flexiblyWith meet Practical Project demand;
2, with respect to the wave filter of identical interpolation knot, the Farrow structure of the inventive method based on power functionThe filter coefficient that wave filter uses becomes original half, when coefficient storage, takies storageCapacity has been saved half, in addition, by increasing add operation, the number of multiplier has also been saved than originalHalf, and in engineering practice, while utilizing FPGA to realize, the shared resource of multiplier is high far awayGo out the shared resource of adder, therefore, utilize adder to reduce the method for multiplier, greatly reduceSample rate conversion technology takies resource. In the time utilizing FPGA to carry out signal processing, because of FPGA insideResource-constrained, therefore, in the time of algorithm for design, maximum Consideration is resource utilization issue, the inventive methodUnder the prerequisite of performance that ensures signal processing, reduce to greatest extent resource use, thereby reduced hardPart cost, has great practical value in research and development of products and in producing.
Brief description of the drawings
Fig. 1 is the schematic diagram of traditional Farrow Structure Filter;
Fig. 2 is sample rate conversion Principle of Process figure;
Fig. 3 is the schematic diagram that the present invention is based on the Farrow Structure Filter of power function;
Fig. 4 is the time domain waveform figure of sample rate conversion front signal in the embodiment of the present invention;
Fig. 5 is the spectrogram of signal shown in Fig. 4;
Fig. 6 is the time domain waveform figure of signal after sample rate conversion in the embodiment of the present invention;
Fig. 7 is the spectrogram of signal shown in Fig. 6.
Detailed description of the invention
The present invention proposes a kind of method of utilizing power function to design low pass filter, utilize power function structurePiecewise polynomial represents filter function, utilizes the controllability of each piecewise polynomial coefficient, adjusts flexibly systemNumber size, to change passband and the Stopband Performance of wave filter, make wave filter have good anti-spectral aliasing withSuppress the performance of spectral image.
Sample rate conversion process as shown in Figure 2, its essence is a resampling process, first utilizes low pass filteredRipple device (sample rate conversion wave filter) h (t) is T to sample ratesInput signal sequence x (n) be reconstructed,And then with sample rate TiThe signal of reconstruct is carried out to double sampling and obtain output sequence y (k). Said process canShow with following formula table:
Wherein mkFor kTi/TsInteger part, ukFor kTi/TsFractional part, hm((m+uk)TsFor
h((m+uk)TsHeterogeneous component, N participates in the interpolation knot number of computing.
According to the character of power function, any one function can utilize the method representation of power function summation,This definition power function gn(t) as follows
Filter function h (t) can be expressed from the next
Wherein L is power series gn(t) top step number. Coefficient cn(k) adjustable, can be according to Practical Project to frequency spectrumRequirement (passband and stopband characteristic) design different cn(k), make the frequency spectrum of the wave filter being represented by h (t)Meet the demands, reach good spectral characteristic.
Can design according to following requirement for h (t):
A), in order not introduce interpolated error at interpolation knot, require h (t) to meet following restrictive condition:
B), in order to make interpolation filter there is linear phase, require the h (t) should be about t=0 even symmetry, therefore
Require coefficient cn(k) there is symmetry,
Therefore wave filter h (t) can be expressed as
Wherein
fn(t-k)=gn(t-k)+(-1)ngn(t+(k+1)) (7)
(6) formula is carried out to frequency domain conversion, obtain
Wherein, Fn(n, k, f) is fn(t-k) Fourier transformation. By flexible design cn(k) can makeH (f) meets the demands respectively in passband and stopband.
The sample rate conversion implementation method based on Farrow Structure Filter that the present invention proposes, described in utilizationThe symmetry of the low-pass filter coefficients based on power function, is only used the coefficient of half to carry out computing, will storeThe space of filter coefficient subtracts and is a half. By the sampled point buffer memory with the same product factor is added,The method multiplying each other with Product-factor again, makes multiplication computation amount also subtract and be a half, thereby makes of the present inventionThe realization of Farrow wave filter is used resource to reduce to the half of traditional structure.
The present invention is based on the Farrow Structure Filter of power function, as shown in Figure 3. In figure, D is delayer,For adder,For subtracter,For multiplier, its derivation is as follows:
According to formula (2) and formula (3), between any two input sample points
(9) formula substitution (1) formula can be obtained
Exchange summation sequentially with after multiplication order can obtain
In the present invention, use power function lowest-order L=2 to carry out computing, according to the principle of curve, utilize 2Rank multinomial carries out curve fitting to sampled point, at least needs four sampled points, the power letter using in the present inventionNumber top step number is 2, can select N=4. By simulating, verifying, the present invention's 2 rank power function design filteringDevice can be realized the identical spectral performance of 3 rank Lagrange, due to the controllability of power function filter coefficient,By a large amount of simulating, verifyings, design one group of preferably filter coefficient, as shown in table 1. Utilize this filterRipple device coefficient can be realized than better spectral performance of 3 rank Lagranges.
Table 1 is based on power function Farrow Structure Filter optimization coefficient
In the time that Practical Project has different requirement to filter passband from the performance of stopband, can be according to following formula to filteringDevice coefficient magnitude is suitably adjusted.
All can increase operand if increase the value of L or N, thereby the resource can increase hardware and realize time is heldPin. In the time that hardware is realized, except being required to meet suitable performance, the utilization of resources be also an important consideration because ofElement, therefore the final purpose of design is to meet performance requirement, farthest reduce again resource and use,Consider final N=4, the L=2 of selecting in the present invention.
According to the symmetry of describing in formula (5), can obtain
mk,ukInitial value is 0, due to x (Ts) in actual signal, do not exist, can think that it is 0;
ukWith increment, Ti/Ts increases progressively, the sample rate f of its rate of change and outputiIdentical (is 1/Ti). Work as ukWhen > 1
uk=uk-1, m simultaneouslykFrom adding 1, due to mkVariation, make to participate in four sampled point m of computingk-2,
mk-1,mk,mk+ 1 becomes one group of new sampled point.
Can obtain structure shown in Fig. 3 according to formula (11) and formula (12).
Embodiment
Get interpolation knot number N=4, power function top step number L=2.
1) utilize sinc function, with sample rate fs=3M/s (is Ts=3.3ms) one group of input letter of generationNumber sequence x (n), as shown in Figure 4, frequency spectrum as shown in Figure 5 for its signal waveform.
2)ukInitial value is made as 0, then increases progressively with increment Ti/Ts, works as ukWhen > 1, subtract 1, ukEvery changeChange the sample rate sequence that once just can obtain an output, therefore ukWith sample rate TiBecomeChange, and participate in multiply-add operation.
3) [the m in list entriesk-1,mk,mk+1,mk+ 2] four sampled points participate in computing, its workWorking frequency is Ts, works as ukWhen > 1, mk+ 1, produce one group of new sampled point sequence ginsengWith computing, work as ukWhen < 1, the sampled point that participates in computing remains unchanged, with ukTake advantage ofThe intermediate variable that adds computing also remains unchanged, and now can save part amount of calculation
By controlling uk,mkVariation, output that can control signal, it is new that Fig. 6 and Fig. 7 are respectively outputSample rate fi=4M/s (is Ti=2.5ms) under signal waveform and frequency spectrum, comparison diagram 4 and Fig. 6, from time domainWaveform is seen, the envelope approximately equal of input signal and output signal, but sample rate is carried to some extent than original sample rateHeight, can think that output signal is to be redeveloped into analog signal by input signal to sample and obtain again, comparison diagram 5 HesFig. 7, from spectrum component, the spectral bandwidth of input signal is between normalized frequency [0.2,0.2], and logicalBe with smooth, the passband of output signal with input signal spectrum consistent, illustrate signal do not have after treatment frequency spectrum mixFolded, not being both of input/output signal frequency spectrum, there is mirror image outward in output signal band, but image spectra all decaysBelow 0db, illustrate that the Farrow Structure Filter that adopts the inventive method to build is well anti-except havingSpectral aliasing ability, also has good anti-spectral image ability.
The content not being described in detail in description of the present invention belongs to those skilled in the art's known technology.
Claims (3)
1. the sampling rate converting method based on Farrow Structure Filter, is characterized in that: adopt second order powerFunction and four sampled points represent the signal y (kT after sample rate conversioni),
Wherein, TiFor the signal sampling period after conversion, k is integer,
TsFor the signal sampling period before conversion, mkFor kTi/TsInteger part, ukFor kTi/TsFractional partPoint, x () is sampled signal, cnAnd c (0)n(1), n=0,1,2 is and passband and the stopband of sample rate conversion wave filterRelevant undetermined coefficient, mk,ukInitial value is 0, ukWith increment, Ti/Ts increases progressively, ukRate of change be
1/Ti; Work as ukU when > 1k=uk-1,mk=mk+1。
2. the sampling rate converting method based on Farrow Structure Filter according to claim 1, itsBe characterised in that: described cnAnd c (0)n(1), n=0,1,2 meets relational expression with sample rate conversion wave filter h (t):
3. the sample rate conversion device based on Farrow Structure Filter, is characterized in that comprising: 9 are prolongedTime device, 9 adders, 2 subtracters and 8 multipliers; Wherein every 3 delayers are one group, useIn the sampled signal of certain fixed time is carried out to delay process, obtain three groups by four identical sampled point structuresThe burst becoming; In the time that n is even number, v (n) adopts 3 adders and 2 multipliers to realize, whenWhen n is odd number, v (n) adopts 2 subtracters, 1 adder and 2 multipliers to realize; V (2) is profit firstWith 1 multiplier and ukAfter multiplying each other, recycle 1 adder and v (1) and be added, the result of addition utilizes 1 to take advantage ofMusical instruments used in a Buddhist or Taoist mass and ukAfter multiplying each other, recycle 1 adder and v (0) and be added, finally obtain y (kTi) and output,
TiFor the signal sampling period after conversion, k is integer, TsFor the signal sampling period before conversion, mkFor kTi/TsInteger part, ukFor kTi/TsFractional part, x () is sampled signal,
cnAnd c (0)n(1), n=0,1,2 is the undetermined coefficient relevant with stopband to the passband of sample rate conversion wave filter, mk,
ukInitial value is 0, ukWith increment, Ti/Ts increases progressively, ukRate of change be 1/Ti; Work as ukU when > 1k=uk-1,
mk=mk+1。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010048483.4A CN106134514B (en) | 2010-05-14 | 2010-05-14 | Sampling rate converting method based on Farrow Structure Filter and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010048483.4A CN106134514B (en) | 2010-05-14 | 2010-05-14 | Sampling rate converting method based on Farrow Structure Filter and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106134514B true CN106134514B (en) | 2013-10-23 |
Family
ID=57251415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010048483.4A Active CN106134514B (en) | 2010-05-14 | 2010-05-14 | Sampling rate converting method based on Farrow Structure Filter and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106134514B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088617A (en) * | 2018-09-20 | 2018-12-25 | 电子科技大学 | Ratio variable number resampling filter |
CN109361377A (en) * | 2018-10-17 | 2019-02-19 | 深圳锐越微技术有限公司 | Filtering method, device, filter and the storage medium of filter |
CN109905100A (en) * | 2019-02-19 | 2019-06-18 | 深圳市极致汇仪科技有限公司 | A kind of FPGA implementation method and system of FARROW type filter |
CN115083427A (en) * | 2022-06-09 | 2022-09-20 | 珠海海奇半导体有限公司 | Audio resampling method, audio processing equipment and storage medium |
-
2010
- 2010-05-14 CN CN201010048483.4A patent/CN106134514B/en active Active
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109088617A (en) * | 2018-09-20 | 2018-12-25 | 电子科技大学 | Ratio variable number resampling filter |
CN109088617B (en) * | 2018-09-20 | 2021-06-04 | 电子科技大学 | Ratio variable digital resampling filter |
CN109361377A (en) * | 2018-10-17 | 2019-02-19 | 深圳锐越微技术有限公司 | Filtering method, device, filter and the storage medium of filter |
CN109905100A (en) * | 2019-02-19 | 2019-06-18 | 深圳市极致汇仪科技有限公司 | A kind of FPGA implementation method and system of FARROW type filter |
CN115083427A (en) * | 2022-06-09 | 2022-09-20 | 珠海海奇半导体有限公司 | Audio resampling method, audio processing equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107636965B (en) | Sparse cascaded integration comb filter | |
CN106134514B (en) | Sampling rate converting method based on Farrow Structure Filter and device | |
CA2861299C (en) | Low delay real-to-complex conversion in overlapping filter banks for partially complex processing | |
CN107241107A (en) | A kind of digital channelizing wave filter group implementation method | |
CN109525256B (en) | Channelized transmitting structure of narrow-transition-band filter bank based on FPGA | |
CN101257482A (en) | Method and device for realizing digital baseband variable velocity to convert modulating system | |
CN102025377B (en) | Improved cascaded integral comb interpolation filter | |
CN102412806A (en) | Farrow filter based on logic circuit and implementation method for Farrow filter | |
CN104202016A (en) | Any times variable signal up-sampling implementation method and system based on look-up table method | |
CN102624357B (en) | Implementation structure of fractional delay digital filter | |
CN106059530A (en) | Half-band filter structure with frequency response weakly correlated with coefficient quantization digit | |
CN102946229B (en) | A kind of implementation method of Digital Down Convert | |
CN107342750B (en) | Fractional delay optimization method suitable for multiple Nyquist zones and implementation structure thereof | |
CN101540749B (en) | Implementation method and device of pretreatment unit capable of being configured with length-variable DFT | |
CN107332539B (en) | High-speed parallel multi-path fractional delay filter implementation method | |
CN110957996B (en) | Multiplier-free FRM filter bank optimal design method based on ABC algorithm | |
CN101242168A (en) | A realization method and device for FIR digital filter direct-connection | |
CN102891662A (en) | Universal device and method for down conversion and up conversion of rate | |
CN109921764A (en) | 4 times of interpolation Integrator-Comb cic filter parallel high-speed algorithms | |
WO2012122908A1 (en) | Method and system for generating analogue radio frequency signal | |
Ferdi | Impulse invariance-based method for the computation of fractional integral of order 0< α< 1 | |
CN102420611B (en) | Sampling rate conversion method and device of digital signal | |
CN113783549A (en) | Interpolation filtering method and interpolation filtering device | |
CN109921763B (en) | FIR filter for reducing multipliers and output calculation method thereof | |
Dai et al. | FPGA Realization of Hardware-Flexible Parallel Structure FIR Filters Using Combined Systolic Arrays |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR03 | Grant of secret patent right | ||
GRSP | Grant of secret patent right | ||
DC01 | Secret patent status has been lifted | ||
DCSP | Declassification of secret patent |