FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR – Software Defined Radio
Dr. Vladimir Poučki DSP Vladimir Poučki S.P., Slovenia Dr. Vladimir Poučki
1
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
Presentation Outline • What is SDR? • Role of FPGAs in SDR • SDR in Mobile Base Station
• SDR for Particle Accelerators • CIC filters • Digital Pre-Distortion • My 2 cents
Dr. Vladimir Poučki
2
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
What is SDR? • SDR is, in a very strict definition, radio communication system implemented in software in embedded system (this includes FPGA). • My personal view is broader. SDR are all hard real-time embedded systems that process limited bandwidth signals residing in radio frequency spectrum. Dr. Vladimir Poučki
3
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
What is SDR?
Dr. Vladimir Poučki
4
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
What is SDR? • DDC – Digital Down Converter. First processing block that performs low-pass filtering and decimation; RX direction. • DUC – Digital Up Converter. Last processing block that performs low-pass filtering and interpolation; TX direction.
Dr. Vladimir Poučki
5
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
What is SDR? • DDC – Digital Down Converter. First processing block that performs low-pass filtering and decimation; RX direction. • DUC – Digital Up Converter. Last processing block that performs low-pass filtering and interpolation; TX direction.
Dr. Vladimir Poučki
6
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
Role of FPGAs in SDR • Inputs are ADC sampling from couple of 10s MHz to couple of 100s MHz. • First data processing is always done at the highest = sampling rate of ADC. • Amount of data is huge (~200 Msamples/s). • After first signal conditioning, decimation is the first block. Dr. Vladimir Poučki
7
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
Role of FPGAs in SDR • At the highest rate there is no possibility for sophisticated LowPass (LP) filter; this a prerequisite for decimation.
• Usual solution is using CIC filter or Halfband filters. • Then one or more decimation stages. • Generation of I,Q components. Dr. Vladimir Poučki
8
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
Role of FPGAs in SDR • Multiplication with LO generated sine/cos, plus filtering. • Finally, signal is in base band, or at low multiple of base band spectrum. • Additional filtering and conditioning.
• Some AGC (Automatic Gain Control).
Dr. Vladimir Poučki
9
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
Role of FPGAs in SDR • Baseband signal is then transferred to DSP Processor for further processing. • FPGA processing starts at ~200300MHz, ends up at usually ~Nx100kHz or Nx1MHz.
• This DSP processing is not too complex. • But, it takes a lot of knowledge to implement it properly. Dr. Vladimir Poučki
10
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • 2G, 3G and 4G (LTE). • 2G is far more complex for FPGA implementation. Reasons:
- 200kHz channel @ Nx100 MHz sampling rate. - Many disturbance effects from neighboring channels. - Relatively high dynamic range, high amplitudes. Dr. Vladimir Poučki
11
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • 3G and 4G (LTE). • 3G (from FPGA processing point of view) is almost the same as 4G. • 4G has higher bandwidth. • Only difference is in the last stages of decimation.
Dr. Vladimir Poučki
12
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • Power level of the signal is below noise level. • Excellent AGC is required to track power level in real-time, on a slot basis; otherwise one EndUser (mobile phone) communication would ‘kill’ the whole channel.
Dr. Vladimir Poučki
13
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • Processing technologies used are: - Half-band and CIC filters for first stages of decimation
- Rational factor of decimation; this is conditioned with sampling rates and adjusting the processing to different technologies (2-4 G). - Highly tuned decimation with FIR compilers. Standard FIR filters. Dr. Vladimir Poučki
14
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • Processing technologies used are: - Complex multi-stage multi-rate filters. Very hard to be designed and simulated in Matlab. - Complicated clock domain crossings.
- Highly efficient rational decimation. - Complex multipliers for handling frequency multiplication to baseband. Dr. Vladimir Poučki
15
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • Simulations in Matlab are complex and long lasting. It is not possible really to simulate everything perfectly, so numerous approximations are included. • Multiplexing of numerous channels to single signal (serializing) for resource saving => really hard to implement in FPGA. Dr. Vladimir Poučki
16
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR in Mobile Base Station • Business with extreme competition; even 0.1 or 0.2 dB means a lot. • New features can be added with careful design of numerous filters.
Dr. Vladimir Poučki
17
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • Big circular high physics machines. • Electrons are circling at ~ speed of light in vacuum.
• Usually the RF frequency is around 499 MHz. Revolution frequency is always equal to RF frequency divided by integer; from ~100kHz to 15 MHz. • FPGA processing is deployed from RF to revolution; very similar to real wireless SDR. Dr. Vladimir Poučki
18
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • Undersampling technique! • For the ‘bandwidth’ limited signal, you need to sample (per Nyquist) with frequency two times higher than the highest component bandwidth! It ‘does not’ matter where the signal really is in the spectrum.
Dr. Vladimir Poučki
19
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • Usual undersampling frequency were ~120 MHz. So, 4th harmonic of sampling frequency (of ADC) was actually sampling the 500 MHz signal. • First implementation on old Virtex-II Xilinx devices. Max speed ~130 MHz, low on resources, simple multipliers.
Dr. Vladimir Poučki
20
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • The following filters and decimation structures were used: - Multiplierless band-pass IIR filters (@ ADC rate) - Sort of Moving Average (MA) and decimation block (output is @ revolution rate) - CIC filtering, Polyphase FIR filtering (output @ ~15 kHz rate) - Notch filters - One more CIC stage. (output @ ~10 Hz rate). Dr. Vladimir Poučki
21
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • Multiplierless band-pass IIR filters
Dr. Vladimir Poučki
22
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • 4 input channels • I,Q times 4 channels => 8 processing channels => high resource consumption. • Starting with revolution rate, resource sharing techniques are used. Single circuit does multiple calculations for all 8 channels: hardware folding, time multiplexing... Dr. Vladimir Poučki
23
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
SDR for Particle Accelerators • Each Particle Accelerator has different parameters => customized SDR for each. • Engine for generation of Verilog code.
• Sophisticated Matlab scripts for generation of filter coefficients to always maintain the same ‘quality’ of filtering. • Automated simulations and level checks in Modelsim. • Close to 100 different SDR designed. 1 SDR = 1 DAY OF WORK !!! Dr. Vladimir Poučki
24
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
CIC – Cascaded Integrated Comb filter • Integrators and comb filter pairs. • Interpolator or decimator. • Exists ONLY IN FIXED-POINT ARITHMETIC. • For Matlab implementation, developer must use ‘fixed-point’ objects. • It is important to make really optimal implementation, since the number of bits for adders and registers can easily go as high as 70 bits.
Dr. Vladimir Poučki
25
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
CIC – Cascaded Integrated Comb filter • Bible on understanding CIC filters: fred harris: Multirate Signal Processing for Communication Systems • Each section has a 13dB attenuation. N sections => Nx13dB. -13dB is the maximum side-lobe level. • Gain must be properly calculated and applied. Dr. Vladimir Poučki
26
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
DPD – Digital Pre-Distortion • Digital Pre-Distortion, increase efficiency of output (TX) Power Amplifiers. • Amplifier characterization, for Type1: curve of the amplitude transfer function. AM-AM, AM-PM distortion.
Dr. Vladimir Poučki
27
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
DPD – Digital Pre-Distortion • Type 2 distortion, memory effect, is the function of signal bandwidth.
Waveform spectrum used for characterization of Type 2
Dr. Vladimir Poučki
Magnitude and phase of Type 2 distortion. 28
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
DPD – Digital Pre-Distortion • Solution is in the model. • 3G and 4G pushed for even higher peak-to-average ratio => Doherty amplifier.
Model for DPD correction FPGA
Dr. Vladimir Poučki
IMPROVEMENTS !!! 29
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
My 2 cents • Variable gain • SAW analog filters. • Xilinx Zynq family: FPGA + ARM core. • Latest trends in mobile base stations: integration of WiFi with 2G,3G and 4G.
Dr. Vladimir Poučki
30
FOReMont, 7th FP
Faculty of Electrical Engineering, Podgorica
THANK YOU!
HVALA!
Dr. Vladimir Poučki
31