Project Report: EE615: Mixed Signal IC Design
Project Report: EE615: Mixed Signal IC Design
Rahul Mhatre
Table of Contents
1 Introduction............................................................................................................................. 3
4.5 Simulations and Verification of the theory for a single stage Band Pass filter...........11
5.1 Simulations and Verification of the theory for a three stage ADC Band Pass filter with
K=16. 14
6.1 Simulations and Verification for the IQ Demodulator using the Band Pass Filter with
K=16. 17
1. The ADC is a 4-bit Flash type with Vref+ = 1.5 V (VDD) and Vref- = 0V
2. The ADC and bandpass filter are clocked at 100 MHz
3. The bandpass response is centered on 25 MHz so a comb filter(s) and fs/4 resonator(s) are used
4. The bandwidth of the main lobe should be fs/8 so K=16 in the comb filters
5. At least 30 dB attenuation between the main lobe and the first side lobe
K
C( f ) 1 z
(2.1)
1
R( f )
( z j )( z j )
1
R( f ) 2
z 1 Z-2 in the numerator is a phase shift and has no effect on the magnitude.
2
R( f ) z 2
Therefore we will use
1 z
R( f ) 1 2
1 z
(2.2)
The band pass filter is formed by cascading the comb filter and the resonator. The transfer function for the
band pass filter is given by
H ( f ) C ( f ).R ( f )
K
1 z
H( f ) 2
1 z
For K = 16, we get:
16
1 z
H( f ) 2
1 z
(2.3)
j2∏f/fs
The frequency response is given by substituting z = e . After the substitution and simplification we get,
the following magnitude response.
21 cos 1K 2 f
fs
H( f )
21 cos 4 f
fs
sin K f
fs
H( f )
cos 2 f
fs
sin 16 f
fs
H( f ) (2.4)
cos 2 f
fs
The main lobe to side lobe attenuation for this function is given by the equation:
Mainlobe K 3
sin
Sidelobe 2 K
(2.5)
Mainlobe 16 3
sin = 4.44 = 13dB (2.6)
Sidelobe 2 16
For this particular stage of the filter we get an attenuation of 13db as shown below using the MATLAB
utility.
4
Magnitude Response (dB) Magnitude Response (dB)
20
10
Magnitude (dB)
10
Magnitude (dB)
Frequency (Hz): 0.3387451
Magnitude (dB): 5.250566 Frequency (Hz): 0.3392334
5 Magnitude (dB): 5.259994
5
0
0
-5
-5
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
Frequency (Hz) 0.22 0.24 0.26 0.28 0.3 0.32 0.34 0.36 0.38
Frequency (Hz)
Figure 1a: Main lobe to Side lobe attenuation for a
Figure 1b: Main lobe to Side lobe attenuation for a
single stage Band Pass filter with K = 16.
single stage Band Pass filter with K = 16.
0.8
2
0.6
0.4
1
Imaginary Part
0.2
Phase (radians)
14
0
0
-0.2
-0.4
-1
-0.6
-0.8
-2
-1
fs/K fs/K
fs/4 3fs/4
5
As can be seen from the figure, there is noise shaping in the pass band. We assume that all the noise lies in
the base band from 0 to fs. Averaging K inputs at the f s/4 pass band, assuming Bennett’s criteria hold true,
is as given below. Because of the symmetry we will integrate from 0 to fs/2 and multiply by two.
2 2 2 1.5
V fs / 2
V fs VLSB fs 1 VLSB 1
VQe, RMS 2. LSB
H ( f ).df 2. LSB
. 2. . . 16 9.56mV
0 12 fs 12 fs K 12 fs K K 12 8 12
2
The SNR for the single stage band pass filter, is given by
Vp
2
SNRideal 6.02 N 1.76 10 log( K / 2) 20 log 34.88dB
VQe, RMS
N is the ADC output bits. The Effective Number of bits is N+Ninc, Ninc can be found as
10 log K / 2
Ninc 1.5 Bits
6.02
For the three stage BPF filter, the transfer function is as given below.
3
1 z 16
H( f )
1 2
z
(2.7)
Substituting z= e j2∏f/fs
6
1 e j 2f 16 fs
H( f )
3
j e j 2f (16) fs e j 2f 16 fs e j 2f 16 fs
3
1 e j 2f
fs
e j 2f (2) e j 2f e j 2f
fs fs fs
j e j 2f (14) fs sin 16f
3
fs
H( f )
cos
2 f
fs
16f 3
sin (2.8)
3 42f
fs
H( f ) e j 2
fs
2f
cos
fs
sin 16f
fs 3
H( f )
cos 2f
fs
Angle[ H ( f )] 3 42f
2 fs
The MATLAB simulation for the magnitude response and the pole-zero plot is as shown below
30 30
Magnitude (dB)
10 10
0 0
-10
-10
Figure 2a: Main lobe to Side lobe attenuation for a Figure 2b: Main lobe to Side lobe attenuation for a
three stage Band Pass filter with K = 16. three stage Band Pass filter with K = 16.
7
Phase Response Pole/Zero Plot
0 3
1 3 3
-10 0.8 3 3
-20 0.6
0.4 3 3
-30
Imaginary Part
0.2
-40
Phase (radians)
3 42 3
0
-50
-0.2
-60 3 3
-0.4
-70
-0.6
3 3
-80 -0.8
3 3
3
-90 -1
Figure 2c: Phase response for a Band pass filter Figure 2d: Pole Zero Plot for a 3 stage Band pass
with K=16 filter with K=16
Ninc
10 log K / 2
3
4.5Bits
6.02
2 1.5
2 2
V V f LSB fs
fs / 2
V 1 VLSB 1
. 16 9.56mV
LSB LSB s
VQe, RMS 2. H ( f ).df 2. . 2. .
0 12 fs 12 fs K 12 fs K K 12 8 12
2
8
Figure 4.1a: Comb filter implementation Block
diagram
7 1
6.5 0.8
6 0.6
5.5 0.4
Imaginary Part
Magnitude (dB)
5 0.2
4.5
16
0
4 -0.2
3.5 -0.4
3 -0.6
2.5
-0.8
2
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 -1.5 -1 -0.5 0 0.5 1 1.5
Frequency (Hz) Real Part
Figure 4.1c: Comb filter Magnitude response for Figure 4.1d: Pole Zero plot for the Comb filter with
K=16 K = 16.
As can be seen from Figure 4.2b, the gain through the comb filter stage is 6dB (a gain of 2). Therefore
there is an increase of bit from the input of the comb filter to the output of Comb filter.
9
Figure 4.2a: Resonator implementation Block
diagram
Figure 4.2b: Lspice Implementation of the
Resonator
The MATLAB simulation for a cascade of comb filter and a resonator is as shown below is as shown
below.
0.4
10
Imaginary Part
Magnitude (dB)
0.2
16
2
0
5 -0.2
-0.4
0 -0.6
-0.8
-5 -1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 -1.5 -1 -0.5 0 0.5 1 1.5
Frequency (Hz) Real Part
Figure 4.3a: Comb filter and resonator Magnitude Figure 4.3b: Pole Zero plot for the Comb filter with
response for K=16 K = 16.
From Figure 4.3b we see that the gain of the Band pass filter is 18dB (8). Therefore the gain of the
resonator stage is 4. This gives a gain of 4 for the resonator stage, which is an increase of 2 bits.
5bits 7bits
4bits
Sample- Comb filter Resonator
Vin Hold DAC Vout
VQe( f )
10
Figure 4.4: ADC Band Pass Filter implementation.
1 10001 1000001
0 10000 1000000
-1 01111 0111111
Table 4.1 Sign extension for the Binary Offset to Two’s complement conversion.
As can be seen from Fig 4.3 going from the Comb filter output to Resonator output, there is an increment
of 2 bits. The output of Comb filter is 5 bits. To handle the seven bits at the resonator in 2’s complement
format, the MSB of the output of the Comb filter is inverted and fed to the incremental new bits at the
resonator input, which lie between the MSB and the lower significant bits of the comb filter output (to
handle the scaling). The 2’s complementing is handled inside the blocks of the resonators and the comb
filter. The MSB of the comb filter output is connected to the MSB input of the resonator to handle the
common mode voltage.
4.5 Simulations and Verification of the theory for a single stage Band Pass filter.
Shown below are the simulations for different frequencies. The inputs and outputs are as below.
11
Figure 4.5a: 25MHz Input and corresponding Figure 4.5b: Frequency Response of the input and
output. Signal in the pass band. output. Input is at -6dB and output is at -7.5dB.
Figure 4.5c: 15.625 MHz Input and corresponding Figure 4.5d: Frequency Response of the input and
output. Signal in the first side lobe. Attenuation output. Input signal is at -9dB and the output is at
should be around 13 dB as per Equation (2.6). -22.8dB. Attenuation is 12.8dB.
Figure 4.5e: Verification of a zero frequency.18.75 MHz Input and corresponding output. Output is
common mode voltage.
12
Figure 4.5f: Verification of the side lobe around Figure 4.5g: Input tone is at -10dB and the output is
34.375 MHz. at -23dB. Attenuation is -13dB.
5bits 6bits
4bits
Comb filter Comb filter
Sample- Comb filter
Vin Hold
VQe( f ) 7bits
13bits 9bits
11bits
13
Figure 5.1a: Block Diagram for the 3 Stage ADC Band Pass Filter for K=16
Figure 5.2a: Implementation of a 5 Bit Comb Filter Figure 5.2b: Implementation of a 11 bit Resonator
for the second stage for the second stage
14
Figure 5.2c: Implementation of a 6 Bit Comb Filter Figure 5.2d: Implementation of a 11 bit Resonator
for the third stage for the third stage
5.1 Simulations and Verification of the theory for a three stage ADC Band Pass
filter with K=16.
Figure 5.3a: 25MHz Input and corresponding Figure 5.3b: Frequency Response of the input and
output. Signal in the pass band. output. Input is at -9dB and output is at -10.5dB.
Figure 5.3c: 15.625 MHz Input and corresponding Figure 5.4d: Frequency Response of the input and
output. Signal in the first side lobe. Attenuation output. Input signal is at -9dB and the output is at-
should be around 39 dB as per Equation (2.6). 51dB. Attenuation is 42dB.
15
5.2 Requirement on the Ant aliasing Filter.
As can be seen in the Figure 5.4, the requirement on the antialiasing filter is now relaxed. The filter need
not have an abrupt cut-off at fs/4 + fs/16. The AAF filter can now linearly transition from fs/4 + fs/16 to 3fs/4
- fs/16. In our case for 100 MHz this linear range is from 31.25 MHz to 68.75MHz.
16
Figure 6.1: I-Q Modulator Block Diagram and SPICE Implementation
The individual block diagrams within the I-Q Demodulator that are unique to the demodulator are the two’s
complement for the 1 bit sin and cos IF multiplier as shown below and the 12 bit selectors.
The multiplication operation of the Band pass signal and Cos IF Multiplier signal is explained as below.
The DEMOS_MUX is our 3 input, 12 bit Multiplexer/Selector whose select bits S1 and S0 are the outputs
of the COS_SIN Block. So basically our multiplication is a multiplexing process, which is explained
below.
17
Binary Cos IF 2’s complement representation of the COS IF Multiplier. These Output Code of the
Multiplier are the select Bits of DEMOD_MUX (Outputs of COS_SIN selector
block)
1 01 X
0 00 0
-1 11 Complemented
Code X
0 00 0
The mapping between the 2 bit counter in the COS_SIN block and the select bits for the 3 input, 12 bit
Selector block (outputs of the COS_SIN block) is as given below.
2 Bit Counter output Select bits (COS1,COS0) of the Selector DEMOD_MUX(output of the
(X1,X0) COS_SIN block)
00 00
01 01
10 00
11 11
For this mapping we generate the combinational logic. The mapping equations are as below
COS1 X 1. X 0
COS 0 X 0
The SIN IF Multiplier is generated by delaying the COS IF multiplier by one clock cycle.
6.1 Simulations and Verification for the IQ Demodulator using the Band Pass
Filter with K=16.
To verify the demodulator we send an AM modulated signal with the signal frequency of 3Meg, which lies
within the band of fs/2K (in case we want to use the decimation). We make the Quadrature component zero
and use the Inphase component and try to recover the Inphase component with a Low pass Filter.
18
Figure 6.4a: 3 Meg AM Modulated input modulated Figure 6.4b: Frequency Response of the
with a 25MHz Input. Figure also shows Inphase demodulated Inphase Component and output of the
(VoutIn) and Quadrature (VoutQuad) components Low Pass Filter. Input Signal is effectively
and output of Low Pass filter(Vout_LowPassF). recovered.
Figure 6.5a: 3 Meg AM Modulated input modulated Figure 6.5b: The Inphase component (VoutIn) when
with a 25MHz Input. Figure also shows Inphase decimated is repeated every 12.5 MHz
(VoutIn) components and output of Low Pass (Vout_LOWPassF).
filter(Vout_LowPassF) which is decimated by 2fs/K
(12.5 MHz in our case).
19
20