Академический Документы
Профессиональный Документы
Культура Документы
x(k)
y(k)
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
This filter is a very simple low pass characteristic.
Developed by:
Top
Differentiator 7.3
x(k)
1 -1
y(k)
–1
Y(z) = X(z) – X ( z )z – 1 ⇒ Y(z) = X(z)[1 – z ]
Y(z)
H ( z ) = ------------ = 1 – z – 1
X(z)
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Inputing a constant value, ie. DC or 0 Hz will result in no output appearing after an initial transient. Hence there
is a spectral zero at 0Hz, i.e. a spectral zero is where the gain is precisely 0 in a linear scale, and if we attempt
to represent in a log scale: 20 log 0 = – ∞ .
Developed by:
Top
Integrator 7.4
+
p(k) q(k)
+
–1
Q(z) = P(z) + Q(z – 1) ⇒ Q(z)[1 – z ] = P(z)
( z ) = ----------------
G(z) = Q 1 -
------------
P(z) 1 – z –1
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
If a feedback weight of b is introduced, where b < 1 this is often refered to as a leaky integrator. Generally
speaking for DSP for FPGAs/ASICs we will not be concerned with leaky integrators. If b > 1 then the filter
would have a pole outside of the unit circle and would be diverging or unstable. .
p(k) q(k)
b
An integrator and a differentiator are clearly perfect inverses of each other. From a spectral point of view it is
interesting to note that the differentiator has infinite attenuation at 0 Hz and the integrator has infinite gain at 0
Hz,.... and any engineer knows infinity multiplied by zero, might just be 1 in many cases!
G ( z )H ( z ) = ⎛ ------------------⎞ ( 1 – z – 1 ) = 1
1
⎝ 1 – z – 1⎠
q(k)
p(k)
1 -1
y(k)
x(k)
1 -1
y(k)
x(k) z-8
1 -1
y(k)
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
A comb filter with N sample delays (or N+1 weights) will have N evenly spaced spectral zeroes from 0 to fs/2.
Therefore the 8 delay comb filter above will have 4 spectral zeroes from 0 to 5 MHz, at spacings of 1.25MHz,
when the sample rate is set to fs = 10MHz.
6
0
Gain/dB
-20
-40
-60
Developed by:
Top
Eight Weight Moving Average 7.6
x(k)
y(k)
1/8
1
H ( z ) = 1 + z – 1 + z – 2 + z –3 + z –4 + z – 5 + z –6 + z –7 ---
8
1
• True moving average if we scale the output by --- (left shift 3 places)-
equivalent to all weights being 1/8. 8
• In the spectrum the moving average filter has N-1 spectral zeroes from
0 to f s . In our case N = 8 , we can see 4 spectral zeroes from 0 to f s ⁄ 2 .
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
To allow a numerical representation, we choose f s = 10, 000, 000
We can see four spectral zeroes between 0 and f s ⁄ 2 , i.e. 8-1=7 spectral zeroes between 0 and f s .
SystemView
0dB 0
-10
-20dB-20
Magnitude dB
-30
-40
-50
-60
x(k)
y(k)
1/9
1
H ( z ) = ( 1 + z –1 + z –2 + z –3 + z – 4 + z –5 + z –6 + z –7 + z – 8 ) ---
9
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
For ease of numerical representation, we choose f s = 10, 000, 000
We can see 4 spectral zeroes between 0 and f s ⁄ 2 , i.e. 9-1=8 spectral zeroes between 0 and f s .
SystemView
0dB 0
-10
-20dB-20
Magnitude dB
-30
-40
-50
-60
x(k)
b=1
1 -1
y(k)
1/8
Integrator Comb
⎛ 1 ⎞
H ( z ) = ---------------- 1 – z –8
- ( 1 – z ) = -----------------
– 8
⎝ 1 – z –1⎠ 1 – z –1
1 – z –8
• Note that: ----------------- = 1 + z –1 + z –2 + z – 3 + z –4 + z –5 + z –6 + z – 7
1 – z –1
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
1 – z –8
----------------- = 1 + z –1 + z –2 + z –3 + z – 4 + z –5 + z –6 + z – 7
1 – z –1
1 – z –8 = ( 1 + z –1 + z –2 + z –3 + z –4 + z –5 + z –6 + z –7 ) ( 1 – z –1 )
1 – z –8 = 1 + z –1 + z –2 + z –3 + z –4 + z –5 + z –6 + z –7
– z –1 – z –2 – z –3 – z –4 – z –5 – z –6 – z –7 – z –8
It is interesting to note that the integrator has infinite gain at DC and the comb filter has zero gain an DC!
CIC Advantages: CIC has Only two additions compare to 8 additions in MA.
CIC Disadvantages: CIC requires 9 storage registers, and MA requires only 7 storage register.
Developed by:
Top
Integrator Overflow 7.9
z(k)
3
2
1
x(k) z(k)
u(k) b=1
1 -1
y(k)
Developed by:
Top
Cascade of CICs 7.10
CIC
x(k)
b=1
1 -1
1/8
baseband “droop”
Overlay w2: 20 Log |FFT| of Sink 2 (dB), w3: 20 Log |FFT| of Sink 6 (dB)
0dB 0
-40dB-40
Magnitude dB
-60
-80
-100
200e+3 1.2e+6 2.2e+6 3.2e+6 4.2e+6
Frequency in Hz (dF = 2.441e+3 Hz)
1MHz 2MHz 3MHz 4MHz 5MHz
frequency
Developed by:
Top
Recovery of an IF modulated Signal 7.11
frequency
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
This bandpass signal has been created by simple amplitude modulation:
Amplitude of a “high” frequency carrier sinusoid is varied in proportion to the amplitude of signal with lower
frequency components.
Magnitude
Magnitude
f( t)
Developed by:
Top
Recovery of an IF modulated Signal 7.12
• When the signal is received, the spectrum outside of the 50kHz band
of interest is likely to be occupied with other signals and noise:
100kHz
Magnitude
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Developed by:
Top
Demodulation of Signal 7.13
Anti
Alias ADC
f s = 10MHz
2.5MHz cosine
Magnitude
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Developed by:
Top
Demodulation of Signal 7.14
Magnitude
0 1MHz 2MHz 3MHz 4MHz 5MHz
frequency
Anti
Low Pass
Alias ADC Digital Filter
2701 weights
f s = 10MHz
2.5MHz cosine
Magnitude
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Cost of Digital Filter
Developed by:
Top
But remember the Downsampling...! 7.15
Magnitude
0 1MHz 2MHz 3MHz 4MHz 5MHz
frequency
Anti
Low Pass
Alias ADC Digital Filter 40
2701 weights
f s = 10MHz
2.5MHz cosine f s = 250kHz
Magnitude
0 50kHz
frequency
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
In this example the final required sample rate is 250kHz and hence as we have bandlimited we can now
downsample by a factor of 40.
Developed by:
Top
CIC stage for Decimation 7.16
• Consider now designing the low pass filter to extract 0 to 50kHz using
a cascade of low cost simpler filters. Is there a cost saving?
0dB
-100dB
50kHz 1MHz 2MHz 3MHz 4MHz 5MHz
50kHz frequency
• If we low pass filter the signal of interest with the 5th order CIC then
downsample by 2 to 5MHz, then the aliasing of higher frequency
signals comes from frequency regions where the energy is very low.
5th Order 2
CIC
fs=10MHz fs=5MHz
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
The output spectrum almost leaves the 0 to 50kHz signal untouched in and attentuates the signal energy above
50kHz as below.
0dB
Aliasing region
5th Order CIC
-100dB
50kHz 1MHz 2MHz 3MHz 4MHz 5MHz
50kHz frequency
Developed by:
Top
Final Stage Decimation 7.17
-100dB
1MHz 2MHz 3MHz 4MHz 5MHz
frequency
-100dB
1MHz 2MHz 3MHz 4MHz 5MHz
frequency
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
5th Order 4
CIC
fs=10MHz fs=2.5MHz
5th Order 8
CIC
fs=10MHz fs=1.25MHz
Developed by:
Top
Downsampling Values 7.18
50kHz 0.625MHz
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Developed by:
Top
Cost Comparison 7.19
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Developed by:
Top
CIC Droop 7.20
baseband “droop”
-40dB-40
Magnitude dB
-60
-80
-100
200e+3 1.2e+6 2.2e+6 3.2e+6 4.2e+6
1MHz 2MHz
Frequency in Hz (dF = 2.441e+3 Hz)
3MHz 4MHz 5MHz
frequency
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Careful viewing of the spectrum shows that the droop is around 0.5dB:
0dB
0.45dB
Gain
100kHz frequency
Developed by:
Top
Correcting the Droop 7.21
0.5dB
50kHz 0.625MHz
• ....therefore the decision of this final stage filter must be done very
carefully to correct for the droop.
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
Developed by:
Top
CIC Implementation 7.22
• Consider the 3rd order CIC cascade shown below with a final stage
downsampler:
z-8 z-8 z-8
1 -1 1 -1 1 -1
z-1 z-1 z-1
8
Integrator Integrator Integrator
Comb Comb Comb
1 -1 1 -1 1 -1
z-1 z-1 z-1
8
Integrator Integrator Integrator
Comb Comb Comb
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
We can represent the comb filter more compactly using the z-1 notation for a delay:
x(k)
z-1 z-1 z-1 z-1 z-1 z-1 z-1 z-1
1 -1
z-1
y(k)
Integrator Comb
8 delays
x(k)
z-8
1 -1
z-1
y(k)
Integrator Comb
Developed by:
Top
CIC Implementation 7.23
1 -1 1 -1 1 -1
z-1 z-1 z-1
• Hence the comb filters now run at the downsampled rate, and require
fewer registers for implementation.
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved
Top
Notes:
The noble identity allows the two systems below to be demonstrated to be equivalent.:
x(k)
z-8
1 -1
y(k)
8
Comb
x(k)
8 z-1
1 -1
y(k)
Comb
Developed by:
Top
CIC Filter study 7.24
August 2007, Version 3.8/21/07 For Academic Use Only. All Rights Reserved