I. Field
The present disclosure relates generally to electronics, and more specifically to filters.
II. Background
Filters are commonly used to filter signals to pass desired signal components and to attenuate undesired signal components. Filters are widely used for various applications such as communication, computing, networking, consumer electronics, etc. For example, in a wireless communication device such as a cellular phone, filters may be used to filter a received signal to pass a desired signal on a specific frequency channel and to attenuate out-of-band undesired signals and noise. For many applications, filters that occupy small area and consume low power are highly desirable.
Passive switched-capacitor (PSC) filters that may occupy smaller area and consume less power are described herein. In one design, a PSC filter may implement a second-order infinite impulse response (IIR) filter with two complex first-order IIR sections. The second-order IIR filter may not meet a power constraint whereas each complex first-order IIR section may meet the power constraint. The coefficients for the two complex first-order IIR sections may be determined based on the coefficients for the second-order IIR filter, as described below. Each complex first-order IIR section may be implemented with a PSC filter section comprising multiple capacitors and multiple switches.
In another design, a PSC filter may implement one or more complex filter sections (e.g., two complex first-order IIR sections) coupled in series. Each complex filter section includes first, second, and third sets of capacitors. The first set of capacitors (e.g., capacitors 1024a and 1034a in
In yet another design, a PSC filter may implement a finite impulse response (FIR) section coupled to an IIR section, which may be for a complex first-order IIR filter. The FIR section receives and filters a complex input signal and provides a complex filtered signal. The IIR section receives and filters the complex filtered signal and provides a complex output signal. The FIR and IIR sections may be implemented with two PSC filter sections. Each PSC filter section may include a bank of complex filter sections that may be enabled in different clock cycles.
In yet another design, a PSC filter section includes first and second complex filter sections and may be used for the FIR or IIR section described above. The first complex filter section receives and filters a complex input signal and provide a complex output signal every M clock cycles, where M is greater than one. The second complex filter section receives and filters the complex input signal and provides the complex output signal every M clock cycles. The first and second complex filter sections may be enabled in different clock cycles. For example, with M=2, the first complex filter section may be enabled in even-numbered clock cycles, and the second complex filter section may be enabled in odd-numbered clock cycles.
Various aspects and features of the disclosure are described in further detail below.
The PSC filters described herein may be used for various types of filters such as FIR filters, IIR filters, auto regressive moving average (ARMA) filters composed of FIR and IIR sections, etc. The PSC filters may also implement a filter of any order, e.g., first, second, third or higher order. Multiple PSC filter sections may be used to form more complex filters. For clarity, PSC filters for second-order FIR filter and for first-order and second-order IIR filters are described in detail below.
A PSC filter may be implemented with only capacitors and switches, without using active circuits. This may provide certain advantages described below. However, due to the passive nature of the PSC filter, not all filter transfer functions may be directly implementable with the PSC filter. The PSC filter can implement a filter transfer function that meets a power constraint. Various schemes to meet the power constraint are described below and are based on observation that the total electrical charges before and after each charge sharing operation in the PSC circuit should be keep constant. This implies that a FIR filter is implementable if its coefficients are scaled so that they sum to 1. For an IIR filter, several schemes for meeting the power constraint are described below and include coefficient scaling, complex filter section decomposition, filter bank transformation, and pole repositioning.
The output sample y(n) from FIR filter 100 may be expressed as:
y(n)=b0·x(n)+b1·x(n−1)+b2·x(n−2). Eq (1)
A transfer function HFIR(z) for FIR filter 100 in the z-domain may be expressed as:
H
FIR(z)=b0+b1·z−1+b2·z−2, Eq (2)
where z−k denotes a delay of k clock cycles.
The filter coefficients may be defined to meet the following power constraint for FIR filter:
|b0|+|b1|+|b2|=1. Eq (3)
If coefficients b0, b1 and b2 do not meet the power constraint in equation (3), then the coefficients may be scaled as follows:
The scaling in equation set (4) results in the scaled coefficients meeting the power constraint, as follows:
|b0′|+|b1′|+|b2′|=1. Eq (5)
Any set of FIR filter coefficients may be scaled to meet the power constraint in equation (5). The power constraint may also be referred to as an absolute magnitude sum constraint. The FIR filter may be implemented with the scaled coefficients and may generate scaled output sample y′(n), which may be expressed as:
y′(n)=b0′·x(n)+b1′·x(n−1)+b2′·x(n−2)=KFIR·y(n). Eq (6)
In many cases, y′(n) may be used in place of y(n). However, in cases where signal level plays a non-trivial role (e.g., to avoid signal saturation), the KFIR scaling factor may be increased or decreased. Active devices such as amplifiers may be used to increase KFIR. A switching pattern may be adjusted to reduce KFIR.
Input section 220 includes an input capacitor 224 coupled between the summing node and circuit ground. Tap section 230 includes two switches 232a and 232b coupled in series with two capacitors 234a and 234b, respectively. Both series combinations of switch 232 and capacitor 234 are coupled between the summing node and circuit ground. Tap section 240 includes three switches 242a, 242b and 242c coupled in series with three capacitors 244a, 244b and 244c, respectively. All three series combinations of switch 242 and capacitor 244 are coupled between the summing node and circuit ground.
All capacitor(s) in each section have the same capacitance/size, which is determined by the corresponding filter coefficient. The capacitances of the capacitors in the three sections of PSC filter 200 may be given as:
C
00
=K·b
0′, Eq (7a)
C
10
=C
11
=K·b
1′, and Eq (7b)
C
20
=C
21
=C
22
=K·b
2′, Eq (7c)
where Cij is the capacitance of the j-th capacitor in the section for FIR tap i, and
K is a scaling constant.
As shown in equation set (7), the size of each capacitor Cij is proportional to the corresponding scaled coefficient bi′. K may be selected based on various factors such as switching settling time, capacitor size, power dissipation, noise, etc. A negative capacitor for a negative coefficient may be obtained by switching the polarity of the capacitor between a read phase and a charge sharing phase.
In each clock cycle, switch 212 is closed for a brief period of time to charge one capacitor in each section with the Vin signal. The capacitor selected for charging in each tap section is determined by switches 232 and 242, as described below. The total input capacitance observed by the Vin signal for the charge operation may be expressed as:
C
in
=C
00
+C
1u
+C
2v, Eq (8)
where u ε {0, 1} is an index of the capacitor selected for charging in tap section 230, and
v ε {0, 1, 2} is an index of the capacitor selected for charging in tap section 240.
Since the capacitors in each tap section have the same capacitance, the total input capacitance Cin is constant for each clock cycle.
In each clock cycle, an appropriate capacitor in each tap section is used to generate the Vout signal. For FIR tap L, the capacitor charged L clock cycles earlier and storing x(n−L) is selected for use via its associated switch. The two selected capacitors in tap sections 230 and 240 and input capacitor 224 are used in a charge sharing operation that implements the multiplications with filter coefficients b0′ through b2′ and the summing of the multiplier outputs in equation (6).
The charge sharing operation uses capacitor size to achieve multiplication with a filter coefficient and current summing to achieve summing of the multiplier outputs. For each capacitor within PSC filter 200, the voltage Vij across that capacitor is determined by the Vin signal at the time the capacitor is charged, or Vij=Vin. The electrical charge Qij stored by each capacitor is determined by the voltage Vij across that capacitor and the capacitance Cij of the capacitor, or Qij=Vij·Cij. In each clock cycle, one capacitor storing the proper sample x(n−i) from each tap section is selected, and the charges from all selected capacitors as well as input capacitor 224 are shared. The charge sharing for the FIR filter may be expressed as:
where p ε {0, 1} is an index of the capacitor storing x(n−1) in tap section 230, and
q ε {0, 1, 2} is an index of the capacitor storing x(n−2) in tap section 240.
Since the capacitors in each tap section have the same capacitance, the total output capacitance Cout observed by the Vout signal is constant for each clock cycle and is equal to the total input capacitance, or Cout=Cin.
Index p can cycle between 0 and 1, so that in each clock cycle one capacitor 234 in tap section 230 is charged, and the other capacitor 234 is used for charge sharing. Index q can cycle from 0 through 2, so that in each clock cycle one capacitor 244 in tap section 240 is charged, and another capacitor 244 is used for charge sharing. PSC filter 200 may be considered as having six states for the six different (p, q) combinations.
In the design shown in
Two delay elements 412 and 414 are coupled in series, with each delay element providing a delay of one clock cycle. Delay element 412 receives the output sample y(n) and provides a delayed sample y(n−1). Delay element 414 receives delayed sample y(n−1) and provides a delayed sample y(n−2). IIR filter 400 includes two IIR taps 1 and 2 for second order. A multiplier 422 for IIR tap 1 is coupled to the output of delay element 412. A multiplier 424 for IIR tap 2 is coupled to the output of delay element 414. Multipliers 422 and 424 multiply their samples with filter coefficients c1 and c2, respectively, for the two IIR taps. Summer 432 sums the outputs of multipliers 422 and 424 and provides its output to summer 430.
The output sample y(n) from IIR filter 400 may be expressed as:
y(n)=c0·x(n)−c1·y(n−1)−c2·y(n−2). Eq (10)
A transfer function HIIR(z) for IIR filter 400 may be expressed as:
Input section 520 includes a capacitor 524 coupled between the summing node and circuit ground. Tap section 530 includes a switch 532 coupled in series with a capacitor 534, the combination of which is coupled between the summing node and circuit ground. Tap section 540 includes two switches 542a and 542b coupled in series with two capacitors 544a and 544b, respectively. Both series combinations of switch 542 and capacitor 544 are coupled between the summing node and circuit ground. Capacitors 534 and 544 in tap sections 530 and 540 may be reset at the start of filtering operation.
All capacitor(s) in each section of PSC filter 500 have the same capacitance, which is determined by the corresponding filter coefficient. The capacitances of the capacitors in the three sections of PSC filter 500 may be given as:
C
00
=K·c
0, Eq (12a)
C
10
=K·c
1, and Eq (12b)
C
20
=C
21
=K·c
2. Eq (12c)
As shown in equation set (12), the size of each capacitor Cij is proportional to the magnitude of the corresponding filter coefficient ci. A negative capacitor for a negative coefficient may be obtained by switching the polarity of the capacitor between the read phase and the charge sharing phase.
In each clock cycle, switch 512 is closed for a brief period of time to charge capacitor 524 in section 520 with the Vin signal. The total input capacitance observed by the Vin signal is thus Cin=C00, and no extra capacitors are needed for Cin.
In each clock cycle, an appropriate capacitor in each tap section is used to generate the Vout signal. For IIR tap L, the capacitor charged L clock cycles earlier and storing y(n−L) is selected for use via its associated switch. Two selected capacitors in tap sections 530 and 540 as well as input capacitor 524 are used in a charge sharing operation that implements the multiplications with filter coefficients c0 through c2 and the summing of the multiplier outputs in equation (10). The charge sharing for the IIR filter may be expressed as:
where k ε {0, 1} is an index of the capacitor storing y(n−2) in tap section 540.
After completing the charge sharing, the voltage across capacitors C00, C10 and C2k corresponds to y(n). Capacitors C10 and C2k may store y(n) for use in subsequent clock cycles. Capacitor C00 may provide y(n) for the Vout signal. The total output capacitance observed by the Vout signal is Cout=C00, and no extra capacitors are needed for Cout.
Index k can cycle between 0 and 1, so that each capacitor 544 in tap section 540 is used for charge sharing in alternating clock cycle. PSC filter 500 may be considered as having two states for the two possible values of k.
In the design shown in
The coefficients for the second-order IIR filter may be defined to meet the following power constraint for IIR filter:
|c0|+|c1|+|c2|=1. Eq (14)
If coefficients c0, c1 and c2 do not meet the power constraint in equation (14), then several schemes may be used meet the power constraint.
In a first scheme for meeting the power constraint for IIR filter, if |c1|+|c2|<1, then a scaled coefficient c0′ may be computed as follows:
c
0′=1−|c1|−|c2|. Eq (15)
The coefficients c0′, c1 and c2 meet the power constraint for IIR filter, as follows:
|c0′|+|c1|+|c2|=1. Eq (16)
The IIR filter may be implemented with coefficients c0′, c1 and c2 and may generate output sample y′(n), which may be expressed as:
y′(n)=c0′·x(n)−c1·y(n−1)−c2·y(n−2). Eq (17)
The transfer function with coefficients c0′, c1 and c2 may be expressed as:
In one design, the filter transfer function may be for a FIR filter, e.g., a second-order FIR filter having the power constraint shown in equation (3). In this design, a scaling factor KFIR may be determined based on the magnitude of each of the multiple coefficients, e.g., as shown in equation (4d). Each of the multiple coefficients may then be scaled based on the scaling factor to obtain a corresponding scaled coefficient, e.g., as shown in equations (4a) through (4c).
In another design, the filter transfer function may be for an IIR filter, e.g., a second-order IIR filter having the power constraint shown in equation (14). In this design, one of the multiple coefficients may be replaced with a new coefficient determined based on magnitude of each remaining coefficient, e.g., as shown in equation (15).
In a second scheme for meeting the power constraint for IIR filter, if |c1|+|c2|≧1, then the second-order IIR filter may be decomposed into two first-order IIR sections. Lower-order IIR sections often (but not always) result in smaller coefficients, which may allow the power constraint to be met.
The decomposition of a second-order FIR section may be expressed as:
where p=pre+j pim is a complex coefficient, c1=−2pre, c2=pre2+pim2, and “*” denotes a complex conjugate.
As shown in equation (19), the decomposition of a second-order FIR section typically produces two complex first-order FIR sections with conjugated coefficients p and p*.
The complex coefficient may be tested for the following power constraint condition:
|pre|+|pim|<1. Eq (20)
If the condition in equation (20) is satisfied, then the second-order IIR filter in equation (10) may be implemented with two concatenated complex first-order IIR sections, both of which meet the power constraint. A complex output sample y′(n) from the first complex first-order IIR section may be expressed as:
y
re′(n)={tilde over (c)}0·xre(n)+pre·yre′(n−1)−pim·yim′(n−1), and Eq (21a)
y
im′(n)={tilde over (c)}0·xim(n)+pre·yim′(n−1)+pim·yre′(n−1), Eq (21b)
where x(n)=xre(n)+j xim(n) is a complex input sample,
y′(n)=yre′(n)+j yim′(n) is a complex output sample from the first section, and
{tilde over (c)}0 is a scaled coefficient that may be given as:
{tilde over (c)}
0=1−|pre|−|pim|. Eq (22)
A complex output sample y″(n) from the second complex first-order IIR section may be expressed as:
y
re″(n)={tilde over (c)}0·yre′(n)+pre·yre″(n−1)+pim·yim″(n−1), and Eq (23a)
y
im″(n)={tilde over (c)}0·yim′(n)+pre·yim″(n−1)−pim·yre″(n−1), Eq (23b)
where y″(n)=yre″(n)+j yim″(n) is a complex output sample from the second section.
As shown in equation sets (21) and (23), the first and second complex first-order IIR sections have the same coefficients. The only difference in the two complex first-order IIR sections is the sign of the samples scaled by pim.
As an example, a second-order IIR filter may have coefficients c0=1, c1=−0.25 and c2=0.75. Since |c1|+|c2|=1, the first scheme for scaling coefficients does not apply. Using the second scheme, second-order IIR filter may be decomposed into two complex first-order IIR sections with pre=0.125, pim=0.857, and {tilde over (c)}0=0.018. Since |pre|+|pim|<1, the two complex first-order IIR sections meet the power constraint.
For IIR filter 830, the complex input samples xre(n) and xim(n) may be filtered with a complex first-order IIR section 840a, e.g., as shown in equation set (21), to obtain complex filtered samples yre′(n) and yim′(n). The complex filtered samples may be further filtered with a complex first-order IIR section 840b, e.g., as shown in equation set (23), to obtain complex output samples yre″(n) and yim″(n).
IIR filter 810 composed of two real second-order IIR filters 820a and 820b for the real and imaginary parts is equivalent to IIR filter 830 composed of two complex first-order IIR sections 840a and 840b. The complex output samples yre″(n) and yim″(n) from IIR filter 830 are equivalent to the complex output samples yre(n) and yim(n) from IIR filter 810. However, complex first-order IIR sections 840a and 840b may be implementable whereas real second-order IIR filters 820a and 820b may not be implementable.
IIR section 910b includes all of the elements in IIR section 910a. The elements in IIR section 910b are coupled in the same way as the elements in IIR section 910a with the following differences. A multiplier 922b for IIR tap C and a multiplier 924b for IIR tap D multiply the imaginary delayed sample yim′(n−1) from a delay element 912b with filter coefficients pre and pim, respectively. A summer 932b sums the output of multiplier 924a in IIR section 910a with the output of multiplier 922b in IIR section 910b and provides its output to a summer 930b.
Complex first-order IIR section 840b in
Within path 1010a, an input switch 1012a has one end receiving a real input signal Vin,re and the other end coupled to a summing node A. A reset switch 1014a is coupled between summing node A and circuit ground. An output switch 1016a has one end coupled to summing node A and the other end providing a real output signal Vout,re. Switches 1012b, 1014b and 1016b in path 1010b are coupled in similar manner as switches 1012a, 1014a and 1016a, respectively, in path 1010a.
Input section 1020a includes a capacitor 1024a coupled between summing node A and circuit ground. Tap section 1030a includes a switch 1032a coupled in series with a capacitor 1034a, the combination of which is coupled between summing node A and circuit ground. Input section 1020b and tap section 1030b are coupled in similar manner between summing node B and circuit ground. Tap section 1040 includes two switches 1042a and 1052a having one end coupled to summing node A and the other end coupled to capacitors 1044 and 1054, respectively. Tap section 1040 further includes two switches 1042b and 1052b having one end coupled to summing node B and the other end coupled to capacitors 1044 and 1054, respectively. The other ends of capacitors 1044 and 1054 are coupled to circuit ground.
The capacitances of the capacitors in PSC filter 1000 may be given as:
C
00
=C
01
=K·{tilde over (c)}
0, Eq (24a)
C
10
=C
11
=K·p
re, and Eq (24b)
C
20
=C
21
=K·p
im. Eq (24c)
For the example above with pre=0.125, pim=0.857, and {tilde over (c)}0=0.018, the capacitance ratios may be given as follows:
In each clock cycle, switches 1012a and 1012b are closed for a brief period of time to charge capacitor 1024a in section 1020a with the Vin,re signal and to charge capacitor 1024b in section 1020b with the Vin,im signal. In each clock cycle, capacitor 1024a in section 1020a, capacitor 1034a in section 1030b, and either capacitor 1044 or 1054 in section 1040 are used in a charge sharing operation that implements the multiplications with filter coefficients {tilde over (c)}0, pre and pim and the summing of the multiplier outputs in equation (21a). In each clock cycle, capacitor 1024b in section 1020b, capacitor 1034b in section 1030b, and either capacitor 1054 or 1044 in section 1040 are used in a charge sharing operation that implements equation (21b). The charge sharing for the real and imaginary parts may be expressed as:
where k ε {0, 1} is an index of the capacitor storing yim′(n−1) in tap section 1040, and
After completing the charge sharing, the voltage on summing node A corresponds to yre′(n), and the voltage on summing node B corresponds to yim′(n). Capacitor 1024a may provide yre′(n) for the Vout,re signal, and capacitor 1024b may provide yim′(n) for the Vout,im signal. Capacitors 1034a may store yre′(n) and capacitor 1034b may store yim′(n) for use in the next clock cycle. Capacitors 1044 and 1054 are used in an interleaved manner to store yre′(n) and yim′(n) in each clock cycle. In each even-numbered clock cycle, capacitor 1044 may be coupled to summing node A, perform charge sharing, and store the yre′(n), while capacitor 1054 may be coupled to summing node B, perform charge sharing, and store the yim′(n). In each odd-numbered clock cycle, capacitor 1044 may be coupled to summing node B, perform charge sharing, and store the yim′(n), while capacitor 1054 may be coupled to summing node A, perform charge sharing, and store the yre′(n). Capacitor 1044 may thus be coupled to summing nodes A and B in alternating clock cycles, and capacitor 1054 may be coupled to summing nodes B and A in alternating clock cycles. Capacitors 1044 and 1054 have the same size but are interleaved in time.
For cycle 0, input capacitor C00 is charged with the Vin,re signal and capacitor C01 is charged with the Vin,im signal when the Sin control signal is asserted during the read phase. The S10, S11, S20 and S23 control signals are asserted during the charge sharing phase, capacitors C00, C10 and C20 are used to generate the Vout,re signal, and capacitors C01, C11 and C21 are used to generate the Vout,im signal. Capacitors C10 and C20 store the Vout,re signal and capacitors C11 and C21 store the Vout,im signal at the end of the charge sharing phase.
For cycle 1, input capacitor C00 is charged with the Vin,re signal and capacitor C01 is charged with the Vin,im signal during the read phase. The S10, S11, S21 and S22 control signals are asserted during the charge sharing phase, capacitors C00, C10 and C21 are used to generate the Vout,re signal, and capacitors C01, C11 and C20 are used to generate the Vout,im signal. Capacitors C10 and C21 store the Vout,re signal and capacitors C11 and C20 store the Vout,im signal at the end of the charge sharing phase.
For PSC filter 1000, capacitors C00 and C01 are charged with the Vin,re and Vin,im signals in each clock cycle and are also used for charge sharing in the same clock cycle. Capacitors C10 and C11 are used for charge sharing in each clock cycle and store yre′(n) and yim′(n) for use in the next clock cycle. For tap section 1040, index k toggles between 0 and 1, capacitors C20 and C21 are used for charge sharing at nodes A and B in one clock cycle, at nodes B and A in the following clock cycle, etc.
Table 2 summarizes the action performed by each capacitor in PSC filter 1000 in each clock cycle.
The two complex first-order IIR sections obtained by decomposing a second-order IIR filter may not meet the power constraint. The complex pole obtained from the decomposition may be expressed as:
p=p
re
+j p
in
=r·e
jθ, Eq (26)
where r is the magnitude of the pole and θ is the phase of the pole.
The sum of the magnitude of the real and imaginary parts of the pole may be expressed as:
|pre|+|pim|=r·(|cos θ|+|sin θ|). Eq (27)
A necessary and sufficient condition for stability of an IIR filter is r<1. The power constraint may be met with |pre|+|pim|<1. The term (|cos θ|+|sin θ|) may be greater than one depending on the value of θ. Thus, it is possible to have |pre|+|pim|≧1 even with r<1, in which case the IIR filter is stable but not directly implementable.
In a third scheme for meeting the power constraint for IIR filter, which may be used when the complex first-order IIR sections do not meet the power constraint, a complex first-order IIR section may be implemented with an interleaved filter bank. From equation set (21), the complex filtered samples from complex first-order IIR section 840a may be expressed as:
Two consecutive filtered samples from complex first-order IIR section 840a may be expressed as:
y′(n)={tilde over (c)}0·x(n)+p·{tilde over (c)}0·x(n−1)+p2·y′(n−2), and Eq (29a)
y′(n+1)={tilde over (c)}0·x(n+1)+p·{tilde over (c)}0·x(n)+p2·y′(n−1). Eq (29b)
Equation set (29) may be partitioned into an IIR part and a FIR part. The IIR part may also be referred to as a recursive part or an autoregressive part. The FIR part may also be referred to as a non-recursive part. The IIR part may be expressed as:
y′(n)={hacek over (c)}0·{hacek over (x)}(n)+p2·y′(n−2), and Eq (30a)
y′(n+1)={hacek over (c)}0·{hacek over (x)}(n+1)+p2·y′(n−1), Eq (30b)
where {hacek over (c)}0=1−|real(p2)|−|imag(p2)| and {hacek over (x)}(n) is the output of the FIR part.
The FIR part may be expressed as:
{hacek over (x)}(n)={hacek over (c)}0−1·{tilde over (c)}0·x(n)+{hacek over (c)}0−1·{tilde over (c)}0·p·x(n−1), and Eq (31a)
{hacek over (x)}(n+1)={hacek over (c)}0−1·{tilde over (c)}0·x(n+1)+{hacek over (c)}0−1·{tilde over (c)}0·p·x(n). Eq (31b)
A real input signal Vin,re is provided to both a switch 1512a in IIR section 1510a and a switch 1512c in IIR section 1510b. An imaginary input signal Vin,im is provided to both a switch 1512b in IIR section 1510a and a switch 1512d in IIR section 1510b. A switch 1516a in IIR section 1510a and a switch 1516c in IIR section 1510b are coupled together and provide a real output signal Vout,re. A switch 1516b in IIR section 1510a and a switch 1516d in IIR section 1510b are coupled together and provide an imaginary output signal Vout,im. The other elements within IIR sections 1510a and 1510b are coupled as described above for
IIR section 1510a operates in each even-numbered clock cycle, filters the Vin,re and Vin,im signals, and provides the Vout,re and Vout,im signals. IIR section 1510a is disabled during each odd-numbered clock cycle. Conversely, IIR section 1510b operates in each odd-numbered clock cycle, filters the Vin,re and Vin,im signals, and provides the Vout,re and Vout,im signals. IIR section 1510b is disabled during each even-numbered clock cycle. IIR sections 1510a and 1510b thus operate in an interleaved manner, with IIR section 1510a operating in one clock cycle, then IIR section 1510b operating in the next clock cycle, then IIR section 1510a operating in the following clock cycle, etc. IIR section 1510a operates on {hacek over (x)}(n) and provides y′(n), as shown in equation (30a). IIR section 1510b operates on {hacek over (x)}(n+1) and provides y′(n+1), as shown in equation (30b).
In one design, a PSC filter for FIR filter bank 1410 in
Equation sets (30) and (31) show filter bank transformation for a case in which IIR filter bank 1420 includes two IIR sections. In general, the filter bank transformation may be performed for any value of m or M=2m to obtain a complex pole at p2
y′(n+i)={hacek over (c)}0·{hacek over (x)}(n+i)+pM·y′(n−M+i), for i=0, . . . , M−1, Eq (32)
where {hacek over (c)}0=1−|real(pM)|−|imag(pM)|. Eq (33)
A filter bank may thus include M IIR sections. Each IIR section may be implemented as shown in
The pole due to filter bank transformation with M=2 may be expressed as:
p
2
=r
2
·e
j20
≡{hacek over (p)}={hacek over (p)}
re
+j {hacek over (p)}
im. Eq (34)
The power constraint for the IIR part may then be expressed as:
|{hacek over (p)}re|+|{hacek over (p)}im|=r2·(|cos 2θ|+|sin 2θ|)≦1. Eq (35)
Since r<1 for a stable IIR filter, r2<r and it may be more possible to meet the power constraint. As an example, a complex first-order IIR section with pole of p=0.625+j 0.625 does not meet the power constraint. However, a filter bank with pole of p2=j 0.78 meets the power constraint.
Equation (35) is for a 2-way interleaved filter bank with M=2. In general, the power constraint for an M-way interleaved filter bank may be expressed as:
|{hacek over (p)}re|+|{hacek over (p)}im|=rM·(|cos M·θ|+|sin M·θ|)≦1. Eq (36)
In theory, the power constraint can always be satisfied if M is sufficiently large. However, a larger M also corresponds to greater complexity for the IIR part.
In a fourth scheme for meeting the power constraint for IIR filter, pole repositioning may be performed, and a pole may be moved to a more suitable location in order to meet the power constraint. The second part of the right hand side of equation (22) may be expressed as:
f(θ)=(|cos θ|+|sin θ|). Eq (37)
For the fourth scheme, the pole location may be varied in a systematic or pseudo-random manner. The pole at each new location may be evaluated to determine whether (i) a desired filter response can be obtained with the new pole location and (ii) the power constraint is met with the new pole location.
Otherwise, each complex first-order IIR section may be implemented with a filter bank starting with m=1 (block 1920). A determination is made whether the pole for the filter bank meets the power constraint, e.g., whether |{hacek over (p)}re|+|{hacek over (p)}im|<1 (block 1922). If the answer is ‘Yes’ for block 1922, then coefficient scaling may be performed to obtain coefficient {hacek over (c)}0 as shown in equation (33) (block 1924). Otherwise, a determination is made whether m is equal to a maximum value (block 1926). If the answer is ‘No’, then m may be incremented (block 1928), and the process may then return to block 1920. Otherwise, pole repositioning may be performed in order to meet the power constraint (block 1930).
For clarity, much of the description above is for second-order FIR filter and first-order and second-order IIR filters. The PSC filters described herein may be used for FIR filters and IIR filters of any order.
The PSC filters described herein may provide certain advantages. First, the PSC filters do not utilize amplifiers within the PSC filters, which may reduce size and power consumption. Amplifiers may be used for input/output buffering. Second, the PSC filters may be able to provide an accurate frequency response, which is determined by capacitor ratios that can be more accurately achieved in an integrated circuit (IC). Third, the PSC filters may have high adaptability since it uses an array of capacitors that may be configured during operation, e.g., to obtain different filter responses.
The PSC filters described herein may be used for various applications such as wireless communication, computing, networking, consumer electronics, etc. The PSC filters may also be used for various devices such as wireless communication devices, cellular phones, broadcast receivers, personal digital assistants (PDAs), handheld devices, wireless modems, laptop computers, cordless phones, Bluetooth devices, wireless local loop (WLL) stations, consumer electronics devices, etc. For clarity, the use of the PSC filters in a wireless communication device, which may be a cellular phone or some other device, is described below. The PSC filters may be used to pass a desired signal, to attenuate jammers and out-of-band noise and interference, and/or to perform other functions in the wireless device.
In the receive path, an antenna 2012 may receive radio frequency (RF) modulated signals transmitted by base stations and provide a received RF signal, which may be routed through an RF unit 2014 and provided to receiver 2020. RF unit 2014 may include an RF switch and/or a duplexer that can multiplex RF signals for the transmit and receive paths. Within receiver 2020, a low noise transconductance amplifier (LNTA) 2022 may amplify the received RF signal (which may be a voltage signal) and provide an amplified RF signal (which may be a current signal). A passive sampler 2024 may sample the amplified RF signal, perform frequency downconversion via a sampling operation, and provide analog samples. An analog sample is an analog value for a discrete time instant. A filter/decimator 2026 may filter the analog samples, perform decimation, and provide filtered samples at a lower sample rate. Filter/decimator 2026 may be implemented with the PSC filters described herein.
The filtered samples from filter/decimator 2026 may be amplified by a variable gain amplifier (VGA) 2028, filtered by a filter 2030, further amplified by an amplifier (AMP) 2032, further filtered by a filter 2034, and digitized by an analog-to-digital converter (ADC) 2036 to obtain digital samples. Filter 2030 and/or 2034 may be implemented with the PSC filters described herein. VGA 2028 and/or amplifier 2032 may be implemented with switched-capacitor amplifiers that can amplify the analog samples from filters 2026 and 2030. A digital processor 2050 may process the digital samples to obtain decoded data and signaling. A control signal generator 2038 may generate a sampling clock for passive sampler 2024 and control signals for filters 2026, 2030 and 2034.
In the transmit path, transmitter 2040 may process output samples from digital processor 2050 and provide an output RF signal, which may be routed through RF unit 2014 and transmitted via antenna 2012. For simplicity, details of transmitter 2040 are not shown in
Digital processor 2050 may include various processing units for data transmission and reception as well as other functions. For example, digital processor 2050 may include a digital signal processor (DSP), a reduced instruction set computer (RISC) processor, a central processing unit (CPU), etc. A controller/processor 2060 may control the operation at wireless device 2000. A memory 2062 may store program codes and data for wireless device 2000. Data processor 2050, controller/processor 2060, and/or memory 2062 may be implemented on one or more application specific integrated circuits (ASICs) and/or other ICs.
The received RF signal from antenna 2012 may contain both a desired signal and jammers. A jammer is a large amplitude undesired signal close in frequency to a desired signal. The jammers may be attenuated prior to ADC 2036 in order to avoid saturation of the ADC. Filters 2026, 2030 and/or 2034 may attenuate the jammers and other out-of-band noise and interference and may each be implemented with any of the PSC filters described herein.
The PSC filters described herein may be implemented on an IC, an analog IC, an RFIC, a mixed-signal IC, an ASIC, a printed circuit board (PCB), an electronics device, etc. The PSC filters may also be fabricated with various IC process technologies such as complementary metal oxide semiconductor (CMOS), N-channel MOS (NMOS), P-channel MOS (PMOS), bipolar junction transistor (BJT), bipolar-CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
An apparatus implementing the PSC filters described herein may be a stand-alone device or may be part of a larger device. A device may be (i) a stand-alone IC, (ii) a set of one or more ICs that may include memory ICs for storing data and/or instructions, (iii) an RFIC such as an RF receiver (RFR) or an RF transmitter/receiver (RTR), (iv) an ASIC such as a mobile station modem (MSM), (v) a module that may be embedded within other devices, (vi) a receiver, cellular phone, wireless device, handset, or mobile unit, (vii) etc.
In one or more exemplary designs, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computers Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.