The Fpga As A Flexible and Low-Cost Digital Solution For Wireless Base Stations
The Fpga As A Flexible and Low-Cost Digital Solution For Wireless Base Stations
The Fpga As A Flexible and Low-Cost Digital Solution For Wireless Base Stations
Lattice Semiconductor
5555 Northeast Moore Ct.
Hillsboro, Oregon 97124 USA
Telephone: (503) 268-8000
www.latticesemi.com
1 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
Also, high speed analog to digital converters (ADC) with sampling rates higher than one
GHz recently have been developed that enable moving higher switching frequencies
from the RF domain to the digital domain. This means more processing is done in the
2 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
DDC/DUC systems that are based on DSP processors are limited by the DSP
processors’ computational power. As a result, large numbers of expensive DSP
processors are needed to supply the high number of multipliers required. DDC/DUC
systems that are ASIC-based don’t have the flexibility that is required for different
communication standards. Therefore, neither DSP processors nor ASICs are desirable
solutions for meeting efficiency and low-cost requirements.
This white paper addresses new and practical techniques that improve FPGA high-
speed I/O interface performance for next-generation wireless communications. New
low-cost 90 nanometer FPGA device families from Lattice Semiconductor are well
suited to meet all the challenges of DDC/DUC design. The practicality and
competitiveness of such techniques, versus traditional ASIC and DSP processor-based
design, will be discussed.
3 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
• Sample rate conversion ratio - The ratio between ADC or DAC sample rate and
the system chip rate
DDC/DUC system designers have a large variety of ADC/DAC to choose from. The
ADC/DAC sample rate typically can be a couple of hundred Msps up to a couple of
Gsps using the recent high-speed ADC or DAC devices.
The chip rate depends on the wireless standard that the base station supports. Table 1
provides some examples of common wireless standards chip rates.
FPGA flexibility enables the same device or device family to support a large variety of
DAC/DUC boards that are designed for different standard base stations. The reusability
4 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
Implementation
Since DDC and DUC sections consume a significant portion of the digital part of a base
station, it is important to have a cost effective DDC and DUC implementation. Cost
effectiveness is achieved by time-sharing the same hardware for a maximum number of
channels and by efficiently using different FPGA resources (DSP Blocks, Memories,
and LUT fabric) to maximize the throughput and capacity of the FPGA. The good news
for base station designers is that today low-cost, medium-size FPGA devices have the
capacity to support tens of DDC and DUC channels.
I/Q Splitter
and Mixer
Decimation Decimation Decimation I-Output
X Filter I-1 Filter I-2 Filter I -3
Input NCO
Decimation Decimation Decimation
X Filter Q -1 Filter Q -2 Filter Q -3
Q-Output
5 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
NCO
Interpolation Interpolation Interpolation
Q-Input
Filter Q-1 Filter Q-2 Filter Q-3 X Q-Output
Implementation Considerations
A large FIR decimation filter or FIR interpolation filter with decimation/interpolation factor
N can be broken down into two or three smaller and simpler cascading filters with N1,
N2 and N3 decimation/interpolation factors. The decimation/interpolation factors satisfy
the following equation: N = N1 * N2 * N3
Breaking down FIR decimation filters or FIR interpolation filters into two or three
separate filters reduces the total number of taps required to implement the entire filter.
A single filter with decimation or interpolation factor N would need a large number of
taps (multipliers) to satisfy decent filter attenuation and noise characteristic
requirements. Breaking down the filter into two or three smaller and simpler filters
reduces the entire filtering system number of taps (multipliers). Additionally, the lower
6 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
Since h(k) = h(n-k) one multiplication of h(k) with the sum of the two, correspondent
samples can be done and therefore the number of multipliers required can be reduced
by a factor of approximately 2.
7 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
x1[15..0]
x2[15..0]
.
.
½ EBR 18
. 512 * 18
x9[15..0] (Look Up Table) FIR result each
16 clock cycles
VCC
19
+ 34
Shift registers
+
x10[15..0] Accumulator
x11[15..0]
.
.
½ EBR 18
. 512 * 18 One bit shifted left
x18[15..0] (Look Up Table) by wire connection
Distributed Memories
GND
• CIC filter
A CIC filter is built using two basic blocks: an integrator and a comb. An integrator is a
single pole IIR filter which essentially has a low pass filter characteristic. A comb is a
FIR filter defined by the following equation:
x[n] − x[n − RM ]
8 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
The structure and characteristics of integrator and comb are listed in Table 2.
+ -
x(n)
+
+ y(n) x(n)
+
+ y(n)
Sampling fs fs / R
Rate
y[n] y[n −1] + x[n] x[n] − x[n − RM ]
H I (z ) 1
1 − z − RM
1 − z −1
( )
H e jw
2
1
)
2(1 − cos ω )
A typical CIC filter is built as a cascade of multiple integrator and comb sections and a
rate changer between the two sections. The arrangement of the comb, integrator and
rate conversion sections depends on whether a decimator or interpolator is realized.
Typical CIC decimator and CIC interpolator are given in Figure 4 and Figure 5.
x(n) I I I R C C C y(n)
N Stages N Stages
x(n) C C C R I I I y(n)
N Stages N Stages
9 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
Using the approximation sin(x) = x for small x, the above can be approximated as:
The frequency response for a CIC filter is that of a low-pass filter. The power response
for a 4 stage with M=1 and R=7 is shown in Figure 6.
⊗
16
I 63-Tap 31-Tap
-
Interpolate
Programmable Compensating
⊗
Interpolate by 2 Interpolate by 2
by 8 - 2K OUT
16 CIC
Q FIR FIR
Complex
LatticeECP2 DSP Block NCO
As shown in Figure 8, the digital up-converter uses the following IP core configurations:
3. CIC Filter (Interpolating CIC filter with rates programmable between 8 and 2K)
Figure 8 shows a digital down-converter for a WCDMA application that uses a CIC
decimator.
14 Mixer
16 32 32 13 Tap
Decimating 32 16
14 CIC Interpolating Output Baseband Output
FIR (4x oversampling
Filter Half-band AGC
16 Filter at 3.84 MHz)
32 32 Filter 32 16
14
Decimation by 3 Decimation by 4 Interpolation by 2
NCO
Lattice's ispLEVERCORE IPs
frequency_offset[31:0]
92.16 MHz 30.72 MHz 7.68 MHz 15.37 MHz (Datapath Rate)
11 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
4. NCO (NCO with sine and cosine outputs and phase and frequency offset inputs)
In such wireless applications, the transceiver architecture traditionally has been divided
into an RF and baseband portion. Baseband processing receives chip-rate data from
the RF portion, as defined by an in-phase channel and quadrature phase channel (I[]
and Q[] respectively). The RF-to-baseband interface was accomplished with low-speed
A/D converters, in the range of a few million samples/second (msps).
In the drive to reduce component and system cost, the trend is to increase the
functionality of cheap baseband logic (implemented with low cost digital logic ICs) and
reduce the functionality of RF (implemented with expensive RF & mixed signal devices).
This is done by increasing the sample rates of the ADC and DAC, thus moving
“baseband” closer to the transceiver antenna. This is shown in Figure 9.
12 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
Faster ADC/DAC
sample rates
I I
BB (chip chip rate,
Q DUC/ Q
RF rate and RF symbol rate
ADC
slower) processing
Type Analog Sample Sample Clock (rising Resolution LVDS Bus Width LVDS data
Rate & falling edge) (pairs) rate
Therefore, the challenge for DUC and DDC logic is to convert this ADC/DAC digital
sample rate down to chip rate processing rates. The architectural implementation of
these blocks must support real-time data transfer (via I/Os) and processing (via DSP
blocks) to meet both current ADC/DAC sample rates as well as future sample rates. As
seen in Table 3, a solution must be found that supports various transfer rates using
LVDS signaling, up to and including 1 gigabit per second data.
1
As of 3Q 2006. The trend going forward is for even higher sample rates of analog data
13 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
• Abundant resources to shift and distribute a forwarded clock, which will center the
clock relative to incoming LVDS data at the input registers. A DLL-controlled delay
block is optimal for shifting, as the shift is tightly controlled across voltage and
temperature conditions.
• Abundant resources to generate and distribute a forwarding clock for the output
interface (to DAC). PLL and edge clock resources are ideal for generating clock and
data outputs with very tight skew relative to each other.
• DSP blocks address the future trend of steadily increasing ADC rates used to
increase digital logic in a wireless transceiver and reduce system cost.
14 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
• High degree of parallelism - The functions performed for filtering are very repetitive
(multiply-add, multiply accumulate), which strongly suggests that the hardwired logic
found in FPGAs is more efficient than a sequence of instructions from a DSP. At
every clock cycle, FPGA logic can perform the same operation on new data and
produce the updated results. DSPs are more useful for performing a sequence of
instructions, and not an identical function that is repeated frequently with various
data.
15 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations
• High performance and low-cost DSP architecture - Lattice is the only programmable
logic company that provides a high-performance, full-featured DSP block in a low-
cost FPGA device family. Competitive low-end families support a hardwired, simple
18x18 multiplier. This solution will encounter performance degradation when
adder/accumulator logic is constructed in the lookup table fabric. The Lattice DSP
block architecture provides support for current and future DDC/DUC
implementations with a consistent, deterministic level of performance.
References
1. Hogenauer, “An Economical Class of Digital Filters for Decimation and Interpolation"
2. Ray Andraka, “High performance Digital Down-Converter for FPGA,” Xilinx Xcell
Journal Issue Number 38, 4Q 2000
5. Asher Hazanchuk and Sheac Yee Lim, “Optimizing Up/Down Conversion with FPGA
Techniques” CommsDesign Magazine, Dec 23, 2003
7. Asher Hazanchuk, “Soft Multipliers for DSP Applications” GSPx Conference, April
2003
16 The FPGA as a Flexible and Low-Cost Digital Solution for Wireless Base Stations