Filter circuit, signal processing circuit and electronic equipment

By introducing a cascade compensation filter, inverse frequency response and adaptation transfer function into the multi-stage filter, the problem of large in-pass band attenuation of the multi-stage filter is solved, and the passband ripple performance and downsampling efficiency are improved.

CN119030498APending Publication Date: 2024-11-26SMARTER SILICON (SHANGHAI) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411190045.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The in-pass band attenuation of multi-stage filters is usually large, affecting the passband ripple performance, and it is difficult to maximize the passband ripple while meeting the stopband performance while ensuring the passband ripple flat.

Method used

Design a filter circuit, including a multi-stage target filter and a cascaded multi-stage compensation filter, the last-stage target filter is used for downsampling, and the first-stage compensation filter is used for the last-stage target filter in the target passband The attenuation of the previous target filter is compensated, and the subsequent compensation filter compensates the attenuation of the previous stage target filter, and attenuation compensation is achieved through inverse frequency response and adaptation transfer function.

Benefits of technology

The passband ripple performance of the filter circuit is improved, the sampling rate of the digital signal is reduced, the calculation complexity and hardware area are occupied, and the compensation efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030498A_ABST
    Figure CN119030498A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a filter circuit, a signal processing circuit and electronic equipment, and the filter circuit comprises multiple stages of target filters, and multiple stages of compensation filters cascaded behind the last stage of target filter. The last stage of target filter is used for downsampling filtering; the filter circuit is provided with a target pass band, and the first-stage compensation filter is used for compensating attenuation of the last-stage target filter in the target pass band. And at least one stage of compensation filter after the first stage of compensation filter is used for compensating attenuation of at least one stage of target filter before the last stage of target filter in the target passband.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of signal processing, and in particular to a filtering circuit, a signal processing circuit and an electronic device. Background Art

[0002] Multi-stage filters are commonly used tools in digital signal processing technology. They can remove noise and interference from signals and retain useful information in signals through multi-stage filtering and weighted summation. The passband ripple performance of the filter is an important indicator for evaluating the performance of the filter. While meeting the stopband performance, maximizing the passband ripple flatness is a two-way balance problem that filter design has always faced. However, in related technologies, the attenuation in the passband of multi-stage filters is usually large, which affects the passband ripple performance. Summary of the invention

[0003] In view of this, embodiments of the present application provide at least a filtering circuit, a signal processing circuit and an electronic device.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The embodiment of the present application provides a filter circuit, including:

[0006] A multi-stage target filter, and a multi-stage compensation filter cascaded after the last stage target filter;

[0007] The last target filter is used for downsampling filtering;

[0008] The filtering circuit has a target passband, the first-stage compensation filter is used to compensate for the attenuation of the last-stage target filter within the target passband, and at least one-stage compensation filter after the first-stage compensation filter is used to compensate for the attenuation of at least one-stage target filter before the last-stage target filter within the target passband.

[0009] In some embodiments, the frequency response of the first-stage compensation filter within the target passband is the inverse of the frequency response of the last-stage target filter within the target passband; the frequency response of the i-th-stage compensation filter within the target passband is the inverse of the frequency response of the i-th-last-stage target filter within the target passband, where i is a positive integer greater than 1.

[0010] In some embodiments, the transfer function of the first-stage compensation filter is adapted to the structure of the last-stage target filter; the transfer function of the i-th-stage compensation filter is adapted to the structure of the i-th-last-stage target filter and the structures of the target filters of each stage after the i-th-last-stage target filter.

[0011] In some embodiments, the target filter is a cascaded integrator comb filter; and the compensation filter is an interpolated second-order polynomial filter or a finite-length unit impulse response filter.

[0012] In some embodiments, the compensation filter is an interpolating second order polynomial filter; the interpolation factors of the first order compensation filter are matched to the target passband.

[0013] In some embodiments, the bandwidth range of the target passband is [0,π / I], where I is a real number greater than 1; the decimation factor of the last-stage target filter is 1, and the interpolation factor of the first-stage compensation filter is I; or, the decimation factor of the last-stage target filter is I, and the interpolation factor of the first-stage compensation filter is 1.

[0014] In some embodiments, the interpolation factor of the i-th stage compensation filter is a target value; the decimation factor or interpolation factor of the i-th stage target filter from the bottom is a first factor, the product of the decimation factors or interpolation factors of each target filter after the i-th stage target filter from the bottom is a second factor, and the target value is the ratio of the first factor to the second factor.

[0015] In some embodiments, the interpolation factors of each compensation filter are positive integers.

[0016] An embodiment of the present application provides a signal processing circuit, including the above-mentioned filtering circuit.

[0017] An embodiment of the present application provides an electronic device, comprising the above-mentioned signal processing circuit.

[0018] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0020] Figure 1 A schematic diagram of the structure of a filter circuit provided in an embodiment of the present application Figure 1 ;

[0021] Figure 2 It is a schematic diagram of a classic implementation structure of a first-order CIC decimation filter in the related art;

[0022] Figure 3 It is a schematic diagram of an improved implementation structure of a first-order CIC decimation filter in the related art;

[0023] Figure 4It is a schematic diagram of the implementation structure of a 1-stage N-order CIC decimation filter in the related art;

[0024] Figure 5 A schematic diagram comparing the amplitude-frequency responses of CIC filters of different orders provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of a filter circuit provided in an embodiment of the present application Figure 2 ;

[0026] Figure 7 A schematic diagram comparing the amplitude-frequency response of a filtering circuit provided in an embodiment of the present application and a solution in the related art that only compensates the last-stage CIC filter;

[0027] Figure 8 A schematic diagram of the structure of a signal processing circuit provided in an embodiment of the present application;

[0028] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0030] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0031] The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application. In addition, the technical features involved in the different embodiments and different implementations of this application described below can be combined with each other as long as they do not conflict with each other.

[0033] The embodiment of the present application provides a filter circuit. Figure 1 A schematic diagram of the structure of a filter circuit provided in an embodiment of the present application Figure 1 .like Figure 1 As shown, the filter circuit 10 includes:

[0034] A multi-stage target filter 11, and a multi-stage compensation filter 12 cascaded after the last stage target filter 11n;

[0035] The last stage target filter 11n is used for downsampling filtering;

[0036] The filtering circuit 10 has a target passband, the first-stage compensation filter 121 is used to compensate for the attenuation of the last-stage target filter 11n within the target passband, and at least one-stage compensation filter after the first-stage compensation filter 121 is used to compensate for the attenuation of at least one-stage target filter before the last-stage target filter 11n within the target passband.

[0037] Here, the multi-stage target filter 11 may include at least two target filters connected in cascade, and the multi-stage compensation filter 12 may include at least two compensation filters connected in cascade.

[0038] The last target filter 11n is used for downsampling filtering, and other target filters before the last target filter 11n can be used for downsampling filtering or upsampling filtering.

[0039] During implementation, the filter types used by each level of target filters and each level of compensation filters may be determined by those skilled in the art based on actual application scenarios, and the embodiments of the present application do not limit this.

[0040] In some embodiments, the last target filter 11n is a decimation filter for downsampling filtering, and the i-th target filter is a decimation filter for downsampling filtering or an interpolation filter for upsampling filtering, where i is a positive integer greater than 1. For example, the decimation filter may include but is not limited to a cascaded integrator-comb (CIC) decimation filter and / or a half-band decimation filter; the interpolation filter may include but is not limited to a CIC interpolation filter and / or a polynomial interpolation filter.

[0041] The filter circuit 10 has a target passband, that is, the filter circuit 10 is used to make the passband ripple in the target passband as flat as possible while satisfying a specific stopband ripple performance. The target passband can be a suitable passband range determined by those skilled in the art according to the actual application scenario of the filter circuit 10, and the embodiments of the present application are not limited to this.

[0042] In some implementations, the first stage compensation filter 121 is used to compensate for the attenuation of the last stage target filter 11n within the target passband, and the i-th stage compensation filter is used to compensate for the attenuation of the i-th last stage target filter within the target passband.

[0043] In some embodiments, the first-stage compensation filter 121 is used to compensate for the attenuation of the last-stage target filter 11n within the target passband, the i-th-stage compensation filter is used to compensate for the attenuation of the i-th-last-stage target filter within the target passband, and to compensate for the attenuation of each stage of target filters after the i-th-last-stage target filter within the target passband.

[0044] In an embodiment of the present application, a multi-stage compensation filter is cascaded after the last target filter in the multi-stage target filter, and the last target filter is used for downsampling filtering, the first compensation filter is used to compensate for the attenuation of the last target filter in the target passband of the filter circuit, and at least one compensation filter after the first compensation filter is used to compensate for the attenuation of at least one target filter before the last target filter in the target passband. In this way, on the one hand, the attenuation compensation within the target passband can be performed on the last target filter and at least one target filter before the last target filter, thereby improving the passband ripple performance of the filter circuit; on the other hand, since the last target filter is used for downsampling filtering, the sampling rate of the digital signal can be reduced. Therefore, all compensation filters at all levels are set after the last target filter, which can reduce the computational complexity of the compensation filters at all levels, reduce the hardware area occupied, and reduce the use of power consumption.

[0045] In some embodiments, the frequency response of the first-stage compensation filter within the target passband is the inverse of the frequency response of the last-stage target filter within the target passband; the frequency response of the i-th-stage compensation filter within the target passband is the inverse of the frequency response of the i-th-last-stage target filter within the target passband, where i is a positive integer greater than 1.

[0046] It can be understood that the frequency response of the first-stage compensation filter in the target passband is inverse to the frequency response of the last-stage target filter in the target passband, so that the first-stage compensation filter can achieve attenuation compensation for the last-stage target filter in the target passband; the frequency response of the i-th-stage compensation filter in the target passband is inverse to the frequency response of the i-th-to-last-stage target filter in the target passband, so that the i-th-stage compensation filter can achieve attenuation compensation for the i-th-to-last-stage target filter in the target passband.

[0047] It should be noted that the mutual inversion between the frequency responses described in the embodiments of the present application may refer to being completely mutual inversion or being close to being mutual inversion, and the embodiments of the present application are not limited to this.

[0048] In some implementations, the frequency response of the last target filter in the target passband may be inverted to obtain the frequency response of the first compensation filter in the target passband; the frequency response of the i-th target filter in the target passband may be inverted to obtain the frequency response of the i-th compensation filter in the target passband. During implementation, those skilled in the art may adopt any suitable method to invert the frequency response of each level of target filter in the target passband according to actual conditions, and the embodiments of the present application are not limited to this.

[0049] In some embodiments, the transfer function of the first-stage compensation filter is adapted to the structure of the last-stage target filter; the transfer function of the i-th-stage compensation filter is adapted to the structure of the i-th-last-stage target filter and the structures of the target filters of each stage after the i-th-last-stage target filter.

[0050] Here, the transfer function of the first-stage compensation filter can be any suitable transfer function adapted to the structure of the last-stage target filter to better achieve the inverse frequency response of the first-stage compensation filter within the target passband and the frequency response of the last-stage target filter within the target passband.

[0051] The transfer function of the i-th stage compensation filter can be any suitable transfer function that is adapted to the structure of the i-th stage target filter and the structures of the target filters of each stage after the i-th stage target filter, so as to better achieve that the frequency response of the i-th stage compensation filter within the target passband is inverse to the frequency response of the i-th stage target filter within the target passband.

[0052] It is understandable that the factors affecting the design of the transfer function of the first-stage compensation filter may include but are not limited to at least one of the order of the last-stage target filter, the downsampling structure, the delay ratio, etc.; the factors affecting the design of the transfer function of the i-th stage compensation filter may include but are not limited to at least one of the structure of the i-th-last stage target filter and the order, downsampling structure, the delay ratio, etc. of the target filters of each stage after the i-th-last stage target filter. During implementation, those skilled in the art may fully consider the structure of the last-stage target filter to design a suitable transfer function for the first-stage compensation filter, and fully consider the structure of the i-th-last stage target filter and the structure of the target filters of each stage after the i-th-last stage target filter to design a suitable transfer function for the i-th stage compensation filter, and the embodiments of the present application do not limit this.

[0053] In some embodiments, the transfer function of the first-stage compensation filter is adapted to the downsampling structure of the last-stage target filter; the transfer function of the i-th-stage compensation filter is adapted to the downsampling structure or upsampling structure of the i-th-last-stage target filter and the downsampling structure or upsampling structure of each stage of target filters after the i-th-last-stage target filter.

[0054] In some embodiments, when the target filter is a CIC filter and the compensation filter is an ISOP filter, based on the replacement principle of the CIC filter structure, a suitable interpolation factor can be set for the first-stage compensation filter according to the downsampling structure of the last-stage target filter, and a suitable interpolation factor can be set for the i-th stage compensation filter according to the downsampling structure or upsampling structure of the i-th stage target filter and the downsampling structure or upsampling structure of each stage target filter after the i-th stage target filter.

[0055] For example, when the downsampling structure of a target filter of a certain level is set to not perform decimation, the interpolation factor of the compensation filter used to compensate for the target filter of this level can be set to I1, so that the incremental frequency band interval corresponding to the transfer function of the compensation filter is consistent with the range of the target passband; when the downsampling structure of the target filter of this level is set to perform I2-fold decimation, the interpolation factor of the compensation filter used to compensate for the target filter of this level can be set to I3=I1 / I2, so that the incremental frequency band interval corresponding to the transfer function of the compensation filter is consistent with the range of the target passband; wherein I3 is greater than 1.

[0056] In this way, by setting a suitable interpolation factor for the first-stage compensation filter according to the downsampling structure of the last-stage target filter, and setting a suitable interpolation factor for the i-th stage compensation filter according to the downsampling structure or upsampling structure of the i-th stage target filter and the downsampling structure or upsampling structure of each stage target filter after the i-th stage target filter, the interpolation factor of each stage compensation filter can be reduced as much as possible under the condition that the incremental frequency band interval corresponding to the transfer function of each stage compensation filter is consistent with the range of the target passband, thereby simplifying the calculation process and further reducing the calculation complexity of each stage compensation filter.

[0057] In some implementations, the transfer functions of the compensation filters at various levels can also be adapted to the target passband, so that the incremental frequency band intervals corresponding to the transfer functions of the compensation filters at various levels are consistent with the target passband range. In this way, a better compensation effect can be obtained, further improving the passband ripple performance of the filter circuit.

[0058] In some embodiments, the target filter is a cascaded integrator comb filter; the compensation filter is an interpolated second-order polynomial (ISOP) filter or a finite-length unit impulse response (CFIR) filter.

[0059] In some embodiments, the compensation filter is an ISOP filter; and the interpolation factor of the first stage compensation filter is matched to the target passband.

[0060] In some implementations, a suitable value may be set for the interpolation factor in the transfer function of the first-stage compensation filter according to the target passband of the filter circuit so that the incremental frequency band interval corresponding to the transfer function of the first-stage compensation filter is consistent with the range of the target passband.

[0061] In some embodiments, appropriate values ​​can be set for the interpolation factors in the transfer functions of the compensation filters of each stage after the first stage according to the target passband of the filtering circuit, so that the incremental frequency band intervals corresponding to the transfer functions of the compensation filters of each stage after the first stage are consistent with the range of the target passband.

[0062] In this way, by making the incremental frequency band intervals corresponding to the transfer functions of the compensation filters at each level consistent with the target passband range, a better compensation effect can be obtained, and the passband ripple performance of the filter circuit can be further improved.

[0063] In some embodiments, the bandwidth range of the target passband is [0,π / I], where I is a real number greater than 1; the decimation factor of the last-stage target filter is 1, and the interpolation factor of the first-stage compensation filter is I; or, the decimation factor of the last-stage target filter is I, and the interpolation factor of the first-stage compensation filter is 1.

[0064] It can be understood that the bandwidth range of the target passband of the filter circuit is [0, π / I], indicating that the filter circuit is used for low-pass filtering. When the decimation factor of the last target filter is 1 and the interpolation factor of the first compensation filter is 1, or when the decimation factor of the last target filter is 1 and the interpolation factor of the first compensation filter is 1, when the signal frequency w∈[0, π / I], the ISOP filter exhibits a monotonically increasing characteristic, and therefore, the signal attenuation within the bandwidth range [0, π / I] of the target passband can be better compensated.

[0065] For example, the bandwidth range of the target passband of the filtering circuit is [0, π / I]. If the downsampling structure of the last-stage target filter is set to not perform decimation, that is, the decimation ratio of the last-stage target filter is 1, then the interpolation factor of the first-stage compensation filter can be set to 1, so that the incremental frequency band interval corresponding to the transfer function of the first-stage compensation filter is [0, π / I], which is consistent with the range of the target passband; if the downsampling structure of the last-stage target filter is set to perform 1-fold decimation, that is, the filtered output signal of the last-stage target filter has been decimated 1 times, then according to the substitution principle of the CIC filter structure, the interpolation factor of the first-stage compensation filter can be set to 1, so that the incremental frequency band interval corresponding to the transfer function of the first-stage compensation filter is [0, π / I], which is consistent with the range of the target passband, and since the interpolation factor of the first-stage compensation filter is 1, the computational complexity of the first-stage compensation filter can be simplified, the number of delay units in the first-stage compensation filter can be reduced, and the efficiency of the compensation filtering can be improved.

[0066] In some embodiments, the interpolation factor of the i-th stage compensation filter is a target value; the decimation factor or interpolation factor of the i-th stage target filter from the bottom is a first factor, the product of the decimation factors or interpolation factors of each target filter after the i-th stage target filter from the bottom is a second factor, and the target value is the ratio of the first factor to the second factor.

[0067] For example, the decimation rate or interpolation rate of the second-to-last target filter is D2, and the decimation rate of the last target filter is D1. Then the first rate is D2, the second rate is D1, and the interpolation factor of the second-stage compensation filter is the target value.

[0068] For example, the decimation ratio or interpolation ratio of the third-to-last target filter is D3, the decimation ratio or interpolation ratio of the second-to-last target filter is D2, and the decimation ratio of the last target filter is D1. Then the first ratio is D3, the second ratio is D1×D2, and the interpolation factor of the third-stage compensation filter is the target value

[0069] In this way, the attenuation compensation of the i-th order target filter by the i-th order compensation filter within the target passband can be realized simply and accurately.

[0070] In some embodiments, the interpolation factors of each compensation filter are positive integers.

[0071] Among them, the compensation filter is an ISOP filter. When the interpolation factor of the ISOP filter is a positive integer, a more accurate compensation effect can be obtained directly based on the signal data of multiple historical sampling moments at the current frequency stored in the delay unit in the ISOP filter. In addition, there is no need to obtain the signal data corresponding to other moments between two adjacent historical sampling moments at the current frequency through complex operations such as frequency increase, thereby simplifying the processing logic of the compensation filter and improving the efficiency of filtering compensation.

[0072] The following describes the application of the filter circuit provided in the embodiment of the present application in a practical scenario.

[0073] The rapid development of digital signal processing has made people's demand for high-performance analog-to-digital converters (ADCs) as analog-to-digital interfaces more urgent. ADCs based on Sigma-Delta (a method of implementing division by addition and subtraction) have been widely used in high-precision analog-to-digital conversion fields such as digital audio and data acquisition due to their unique sampling mechanism and noise shaping method. A fully functional Sigma-Delta ADC mainly includes modules such as anti-aliasing filter, pre-programmable amplifier, Sigma-Delta modulator and digital extraction filter.

[0074] The filter circuit provided in the embodiment of the present application can be applied to the digital extraction filter module in the Sigma-Delta ADC to convert the output signal of the micro-electromechanical system (MEMS) microphone from a high sampling rate pulse density modulation (Pulse Density Modulation, PDM) signal to a low sampling rate pulse code modulation (Pulse Code Modulation, PCM) signal, that is, to achieve downsampling filtering. In the downsampling process, aliasing noise will inevitably be generated, and it is necessary to design a reasonable digital extraction filter (corresponding to the filter circuit in the aforementioned embodiment) to obtain a PCM signal that meets the target signal-to-noise ratio.

[0075] The passband ripple (the difference between the maximum and minimum amplitudes of the passband in the filter's frequency response) performance of the PDM-to-PCM decimation filter is an important indicator of the filter's performance. While meeting the stopband ripple index, maximizing the passband ripple flatness is a problem that filter design has always faced in terms of bidirectional balance.

[0076] In order to achieve the above-mentioned stopband and passband performance, a finite impulse response (FIR) low-pass filter with a high-slope transition band can be designed. However, the high-slope transition band FIR filter has a large number of orders, which requires greater resource overhead in terms of computational complexity and storage space.

[0077] Since the CIC decimation filter has no multiplier, the circuit complexity is reduced and the power consumption is low. Therefore, the downsampling decimation filter is generally implemented using the CIC decimation filter. Figure 2 FIG. 1 is a schematic diagram of a classic implementation structure of a first-order CIC decimation filter in the related art, such as Figure 2 As shown, in the classic implementation structure of the 1st-order CIC decimation filter, the integral module 201 and the differential module 202 are located before the downsampling module 203, so that the integral module 201 and the differential module 202 both work at a high sampling frequency, the calculation complexity is high, which is not conducive to reducing power consumption, and the differential module 202 needs to undergo D times delay, and there are many delay units, so the area consumption is large, wherein D is the decimation ratio of the downsampling module 203, X(z) is the input signal, and Y(z) is the output signal. Figure 3 Schematic diagram of an improved implementation structure of a first-order CIC decimation filter in the related art, such as Figure 3 As shown, in the improved implementation structure of the first-order CIC decimation filter, the replacement principle of the CIC filter structure is used to replace Figure 2 The positions of the differential module 202 and the downsampling module 203 in the classical implementation structure shown in the figure are as follows: the replaced differential module 212 is located after the downsampling module 213; the input data X(z) is downsampled by D times after passing through the integration module 211 and the downsampling module 213; the frequency of the downsampled signal is reduced to 1 / D of the original signal; z in the differential module 212 is -D becomes z -1 , that is, the number of delay units in the differential module 212 is effectively reduced.

[0078] In actual product applications, a 1-stage N-order CIC filter or a 1-stage M-order CIC filter cascaded with a 1-stage N-order CIC filter is often used to form a multi-stage CIC filter to achieve better stopband characteristics, where N and M are both positive integers. Based on the 1-order CIC structure, the structure of a 1-stage N-order CIC filter can be obtained. Figure 4 FIG. 1 is a schematic diagram of a structure of a 1-stage N-order CIC decimation filter in the related art, as shown in FIG. Figure 4 As shown, in a 1-stage N-order CIC filter, N integration modules (such as 2211, ..., 221N) may be included before the downsampling module 223, and N differential modules (such as 2221, ..., 222N) may be included after the downsampling module 223.

[0079] The structure of the multi-stage CIC filter includes multiple cascaded 1-stage CIC filters, and the structure of each 1-stage CIC filter is the same as Figure 4 The structure of the 1-stage N-order CIC filter shown is similar.

[0080] Figure 5 A schematic diagram comparing the amplitude-frequency responses of CIC filters of different orders provided in an embodiment of the present application is shown in FIG. Figure 5 As shown in Figure 1, as the order N increases from 1 to 4, the stopband attenuation performance of the CIC filter is improved, but the amplitude attenuation in the passband is also aggravated. By introducing a compensation filter for the CIC filter, the attenuation of the signal amplitude in the passband can be improved.

[0081] In some schemes, a compensation filter can be cascaded after each stage of CIC filter to achieve compensation for the attenuation of each CIC filter in the target passband (referred to as Scheme 1). In Scheme 1, each stage of compensation filter is immediately followed by the corresponding CIC filter. Except for the compensation filter cascaded after the last stage of CIC filter, other compensation filters are still under high-frequency clock, so the calculation complexity is high, and the requirements for hardware area and power consumption are large.

[0082] In some schemes, a compensation filter can be cascaded after the last CIC filter to compensate only for the attenuation of the last CIC filter in the target passband (referred to as Scheme 2). In Scheme 2, only the attenuation of the last CIC filter is compensated, and the attenuation of other filters before the last CIC filter in the target passband cannot be compensated. If the decimation ratio of other filters is large, the signal attenuation in the target passband will also be large and cannot be compensated.

[0083] On this basis, an embodiment of the present application provides a filtering circuit, including multiple cascaded CIC filters, and after the last stage CIC filter in the cascaded multiple CIC filters, a compensation circuit including multiple supplementary filters is cascaded to compensate for the attenuation in the target passband caused by the multi-stage CIC filters.

[0084] Taking the filter circuit including two-stage CIC filter and two-stage compensation filter as an example, Figure 6 A schematic diagram of the structure of a filter circuit provided in an embodiment of the present application Figure 2 .like Figure 6 As shown, the filtering circuit includes a first-stage CIC filter CIC1, a second-stage CIC filter CIC2, a first-stage compensation filter CF1 and a second-stage compensation filter CF2 which are cascaded in sequence. Among them, the second-stage CIC filter CIC2 is a decimation filter, the first-stage CIC filter CIC1 can be a decimation filter or an interpolation filter, the first-stage compensation filter CF1 is used to compensate for the attenuation of the second-stage CIC filter CIC2 in the target passband, and the second-stage compensation filter CF2 is used to compensate for the attenuation of the first-stage CIC filter CIC1 in the target passband.

[0085] There are usually two types of compensation filters for a single-stage N-order CIC filter: CFIR filter and ISOP filter. In implementation, the first-stage compensation filter CF1 and the second-stage compensation filter CF2 may include but are not limited to CFIR filter or ISOP filter.

[0086] In some implementations, both the first-stage compensation filter CF1 and the second-stage compensation filter CF2 are ISOP filters. Since the ISOP filter requires fewer multiplication operations, the computational complexity is relatively low.

[0087] The transfer function of the ISOP filter is shown in Equation 1 below:

[0088]

[0089] Wherein, c is a real number less than -2, I is an interpolation factor, and z represents the complex frequency domain variable of the signal. It can be seen from Formula 1 that when w∈[0,π / I], the ISOP filter exhibits a monotonically increasing characteristic, and therefore has a compensation effect. c can be a suitable value set by those skilled in the art according to actual conditions. In some embodiments, by enumerating multiple values ​​of c and calculating the passband ripple of the filter circuit within the target passband under each value of c, the c value that minimizes the passband ripple of the filter circuit can be selected. The c values ​​in the transfer functions of the first-stage compensation filter CF1 and the second-stage compensation filter CF2 can be the same or different.

[0090] The value of the interpolation factor I of the first-stage compensation filter CF1 can be considered from two perspectives. One is that the value should ensure that the incremental frequency band of the ISOP filter is roughly consistent with the range of the target passband. The other is that the value should preferably fit the downsampling structure of the CIC filter to be compensated. The first point is easier to understand, as it is to achieve a better compensation effect; the second point is to simplify the calculation. It is observed that there is a common term z in the transfer function. -I , considering the permutation principle of the CIC filter structure, if the signal is decimated by 1 times before entering the ISOP filter, the transfer function of the ISOP can be expressed as follows:

[0091]

[0092] Therefore, when the bandwidth range of the target passband is [0,π / I], if the second-stage CIC filter CIC2 is not subjected to decimation, the interpolation factor of the first-stage compensation filter CF1 is I; if the decimation ratio of the second-stage CIC filter CIC2 is I, the interpolation factor of the first-stage compensation filter CF1 is 1.

[0093] For the second-stage compensation filter CF2, if the decimation ratio or interpolation ratio of the first-stage CIC filter CIC1 is D2 and the decimation ratio of the second-stage CIC filter CIC2 is D1, the transfer function of the second-stage compensation filter CF2 can be derived from the transfer function of the ISOP compensation filter as shown in the following formula 3:

[0094]

[0095] in, That is the interpolation factor of the second-stage compensation filter CF2.

[0096] When satisfied When K is an integer, accurate compensation effect can be obtained by storing the passband data at the previous K and 2K moments through the delay unit in the second-stage compensation filter CF2, and there is no need to perform frequency boosting and other processing, which makes the implementation simpler.

[0097] Figure 7 The figure is a schematic diagram comparing the amplitude-frequency response of a filtering circuit provided in an embodiment of the present application and a solution in the related art that only compensates the last-stage CIC filter. Figure 7 As shown, S1 is the amplitude-frequency response curve of the filter circuit provided in the embodiment of the present application, and S2 is the amplitude-frequency response curve of the solution in the related art in which only the last-stage CIC filter is compensated. Figure 7 It can be seen that the passband ripple of the filter circuit provided in the embodiment of the present application is better in attenuation compensation effect within the passband range and the passband ripple is flatter than the solution in the related art that only compensates for the last-stage CIC filter.

[0098] In the filter circuit provided in the embodiment of the present application, the compensation filter performs multiplication operations at a lower operating frequency, which can reduce the calculation complexity and obtain a good compensation effect at a lower calculation complexity. In addition, the cascaded multi-stage compensation filter can compensate for the attenuation within the passband of each stage of the CIC filter, and the passband ripple performance will be better.

[0099] An embodiment of the present application provides a signal processing circuit. Figure 8 A schematic diagram of the structure of a signal processing circuit provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the signal processing circuit 30 includes the above-mentioned filter circuit 10.

[0100] In some embodiments, the signal processing circuit can be used to perform audio signal processing, image signal processing, and / or video signal processing, etc. For example, the signal processing circuit can be used to implement a signal converter to convert an audio signal, an image signal, and / or a video signal from a high sampling rate PDM signal to a low sampling rate PCM signal.

[0101] An embodiment of the present application provides an electronic device. Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the electronic device 40 includes the above-mentioned signal processing circuit 30.

[0102] For example, the electronic device may include, but is not limited to, at least one of a server, a laptop computer, a tablet computer, a desktop computer, a smart TV, a set-top box, and / or a mobile device (e.g., a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device), etc.

[0103] The description of the above signal processing circuit embodiment and the electronic device embodiment is similar to the description of the above filter circuit embodiment, and has similar beneficial effects as the filter circuit embodiment. For technical details not disclosed in the processor embodiment of the present application, please refer to the description of the filter circuit embodiment of the present application for understanding.

[0104] It should be pointed out here that the above description of the various embodiments tends to emphasize the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other.

[0105] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0106] It should be noted that, in this article, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes one..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0107] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, the functional units in the embodiments of the present application may be all integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0108] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A filter circuit, comprising: A multi-stage target filter, and a multi-stage compensation filter cascaded after the last stage of the target filter; The target filter of the last stage is used for downsampling filtering; The filtering circuit has a target passband, the first-stage compensation filter is used to compensate for the attenuation of the last-stage target filter within the target passband, and at least one stage of the target filter after the first-stage compensation filter is used to compensate for the attenuation of at least one stage of the target filter before the last-stage target filter within the target passband.

2. The filter circuit according to claim 1, wherein the frequency response of the first-stage compensation filter in the target passband is the inverse of the frequency response of the last-stage target filter in the target passband; The frequency response of the i-th compensation filter in the target passband is the inverse of the frequency response of the i-th target filter in the target passband, where i is a positive integer greater than 1.

3. The filter circuit according to claim 2, wherein the transfer function of the first-stage compensation filter is adapted to the structure of the last-stage target filter; The transfer function of the compensation filter of the i-th stage is adapted to the structure of the target filter of the i-th stage from the last stage and the structures of target filters of each stage after the target filter of the i-th stage from the last stage.

4. The filter circuit according to claim 3, wherein the target filter is a cascaded integrator comb filter; The compensation filter is an interpolation second-order polynomial filter or a finite-length unit impulse response filter.

5. The filter circuit according to claim 4, wherein the compensation filter is an interpolated second-order polynomial filter; The interpolation factor of the first stage compensation filter is matched to the target passband.

6. The filter circuit according to claim 5, wherein the bandwidth range of the target passband is [0, π / I], where I is a real number greater than 1; The decimation factor of the target filter of the last stage is 1, and the interpolation factor of the compensation filter of the first stage is 1; or, The decimation factor of the target filter at the last stage is 1, and the interpolation factor of the compensation filter at the first stage is 1.

7. The filter circuit according to any one of claims 4 to 6, The interpolation factor of the compensation filter of the i-th stage is the target value; the decimation factor or interpolation factor of the target filter of the i-th stage from the bottom is the first factor, the product of the decimation factors or interpolation factors of each target filter after the i-th stage from the bottom is the second factor, and the target value is the ratio of the first factor to the second factor. 8 . The filter circuit according to claim 7 , wherein the interpolation factors of the compensation filters are all positive integers.

9. A signal processing circuit, comprising the filter circuit according to any one of claims 1 to 8. 10 . An electronic device comprising the signal processing circuit according to claim 9 .