Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
the
Overview
Introduction
Digital demodulation for FPGAs
Filtering in FPGAs
Comparison to other technologies
Summary
Digital Communications
Why Digital?
Frequency agility
Repeatability
Cost
Digital Challenges
A to D converter
High sample rates
Arithmetic intensive
Conventional Demodulator
2f(t)ejct
Video
Bandpass
Filter
2f(t) cos(ct)
-c 0
-jct
Decimate
by R
Phase
Split
-c 0
=cos(ct)-jsin(ct)
-2c
0
7
Re-arranged Demodulator
cos (ct)
e-jct
Lowpass Filter
2 f(t)
Decimate
by R
Lowpass Filter
2 f(t)
-jsin(ct)
-c 0
-2c
-2c
0
8
Complex Mixer
Complex
Baseband
Signal
(Passband for
Demodulator)
Phase or
frequency
input
Re[Sk]
Re[Ak]
Im[Sk]
Im[Ak]
sin(ct)
c
cos(ct)
Complex
Passband
Signal
(Baseband for
Demodulator)
Numerically
Controlled
Oscillator
Phase Angle
to Wave
Shape
Conversion
Waveform
Out
Frequency
Synthesizer
Phase Angle
Modulation
10
Phase
(phase increment)
11
Read Only
Memory
Data
Waveform
Out
Addr
Phase Angle
(BAMs)
copyright 1998,1999,2000 Andraka Consulting Group, Inc. All Rights reserved
12
+ +
+ +
Phase MSBs 00 01
10 11
N 0 0 N N 0 0 N
Count
sequence 0 N N 0 0 N N 0
Q1 Sin
LUT
Q1 Sin
LUT
MSB
MSB-1
13
Re[Sk]
Im[Sk]
sin(ct)
c
cos(ct)
Numerically
Controlled Oscillator
14
-4
-3
-2
-1
0
1
2
3
000
-4
-3
-2
-1
0
1
2
3
001
-2.8
-2.1
-1.4
-0.7
0
0.7
1.4
2.1
010
0
0
0
0
0
0
0
0
phase
011 100
2.8 -4
2.1
3
1.4
2
0.7
1
0
0
-0.7 -1
-1.4 -2
-2.1 -3
101
2.8
2.1
1.4
0.7
0
-0.7
-1.4
-2.1
110
0
0
0
0
0
0
0
0
111
-2.8
-2.1
-1.4
-0.7
0
0.7
1.4
2.1
15
n+8
6-LUT
6-LUT
<<2
<<4
6-LUT
6-LUT
<<2
Phase[3:0]
16
I[0]
Q[0]
6-LUT
I[1]
Q[1]
6-LUT
I[2]
Q[2]
6-LUT
I[3]
Q[3]
6-LUT
<<1
<<2
<<1
Phase[3:0]
17
<<1
n+8
6-LUT
Phase[3:0]
18
CORDIC Modulator
Iout = Iin cos - Qin sin
Qout = Qin* cos + Iin sin
Signal In
Iin
Qin
CORDIC
Rotator
Iout Modulated
Qout Signal Out
Phase
Accumulator
19
sin
I
cos
20
CORDIC Structure
x0
y0
>>0
>>0
>>1
>>1
>>3
xn
>>3
const
sign
>>4
const
sign
yn
const
sign
const
sign
>>2
>>4
const
sign
>>2
z0
zn
21
Digital Filtering
Many Constant
Multipliers
Delay Queues
Products Summed
Advantages
No tolerance drift
Low cost
precise characteristic
x[k]
C0
Z-1
Z-1
Z-1
C1
Ci-2
Ci-1
y[k]=x[k-i]Ci
22
Scaling Accum
Shift Reg
<<1
C1
Shift Reg
C2
Shift Reg
C3
Shift Reg
Addr
0000
0001
0010
0011
D a ta
0
C0
C1
C0 + C1
1110
1111
C 1+ C 2+ C 3
C 0 + C 1+ C 2+ C 3
23
x[k]+x[k-6]
SREG
SREG
x[k-1]+x[k-5]
SREG
SREG
x[k-2]+x[k-4]
SREG
SREG
x[k-3]
SREG
24
25
a1,a9,a17...
a2,a10,a18...
40 MHz
Input
5 MHz
Output
26
5 MHz
Load
a0,a8,a16...
a1,a9,a17...
a2,a10,a18...
Scaling Accum
<<1
5 MHz
Output
27
Multiplier-less Filtering
Boxcar or Moving Average filter
FIR with unity coefficients
0 Nulls at Fs/N
x[k] -1
Z
-5
-10
-15
-20
-25
-30
-35
Z-1
Z-1
Fs/2
y[k]= x[k-i]
i=1
28
Z-1
+
Z-1
+
Z-1
+
Z-N
-
Z-N
-
Z-N
-
29
2fc
-5
10
fc
15
20
25
30
35
F0
2*F0
3*F0
4*F0
40
F0 =FS /R
30
31
32
33
Design Considerations
Floorplanning required for
performance and density
Macro generator tools simplifying
design task
Use instantiation in logic synthesis
34
Other Considerations
Transmitter
filter needed to mimimize ISI
Carrier can be coordinated with symbol rate
Receiver
filter for noise rejection, correction of channel
distortion
Accurate phase reference for carrier needed
Timing normally recovered from signal
Coordinate IF, sample frequency, symbol frequency
copyright 1998,1999,2000 Andraka Consulting Group, Inc. All Rights reserved
35
Summary
Approach depends on performance,
resolution and size
Competes with dedicated digital modulator
chips
Can be tailored to exact requirements
Each design has potential for hardware
shortcuts
36
Resources
FPGA Vendor Application Notes
Xilinx web page http://www.xilinx.com
DSP applications notes
Tools
DSP toolbox for Xilinx
Vendor DSP Macro Generators
Consulting services, Training, etc.
Andraka Consulting Group, Inc
401/884-7930
web page: http://users.ids.net/~randraka
37
References
M. Frerking, Digital Signal Processing in Communication Systems,
Kluwer Academic Publishers, 1994
R. Andraka, A survey of CORDIC algorithms for FPGA based
computers, ACM, 1998
E.B. Hogenauer, An Economical Class of Digital Filters for
Decimation and Interpolation, IEEE Trans on ACSSP vol ASSP-29
no.2 April 1981
A. Peled & B. Liu, A New Hardware Realization of Digital Filters,
IEEE trans on ACSSP, vol. ASSP-22 no. 6, December 1974.
ASSP and other transactions are a goldmine of hardware implementations
copyright 1998,1999,2000 Andraka Consulting Group, Inc. All Rights reserved
38
Example:
North American
TDMA Digital Cellular
/4 DQPSK Modem
39
Specifications
Differential phase encoding
Non-coherent receiver
28.6 kbps
/4 DQPSK Constellation
copyright 1998,1999,2000 Andraka Consulting Group, Inc. All Rights reserved
40
Transmitter
Differential coding
Uses 2 bits per symbol
I and Q take values 0, 1, 1/
2
Filter interpolates to upsample
Similar to QAM modulator example
41
Receiver
Non-coherent differential detection
Digital demodulation from IF to baseband
Equalizers left out of example
Nyquist filter is RRC w/ 35% excess BW
48.6 kbps (24.3 kbaud)
42
/4 DQPSK Demodulator
Symbol Delay
RRC
Filter
Modulated
data
RRC
Filter
cos(ct)
-sin(ct)
NCO
CMULT
Slicer
Recovered
data
Symbol
Timing
43
Receiver
Sample baseband at 4x baud rate = 97.2Khz
Bit serial detection logic
16 bit baseband I and Q = 16x bit clock
44
Re[Ak]
Im[Ak]
45
I Output
To Q
Output
46
47
Detector
Differential Detection
x[k] x*[k-1] yields
sin(k- k-1 ),cos(k- k-1 )
Implement CMULT with
scaling accumulators
4 Samples per symbol
Delay is 64 clocks fixed
Symbol Delay
I
CMULT
Slicer
Recovered
data
Symbol
Timing
48
Complex Multiply
<<1
I
Q
SREG
SREG
<<1
SREG
sgn
Slicer
sgn LUT Recovered
Di-bit
Sin(k- k-1) = yk
SREG
49
Symbol Timing
Error statistic controls state machine
e= xk2 + yk2
proportional to magnitude squared
Use larger + 1/2 smaller approx
29 CLBs
copyright 1998,1999,2000 Andraka Consulting Group, Inc. All Rights reserved
50
Modem Implementation
51