Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Implemen
ntation off OFDM Baseband
B T
Transmitt
ter Compliiant IEEE
E Std 802.116d on
FPGA
Shahid Abbaas, Waqas Alii Khan, Talhaa Ali Khan Assistannt Professor Saba
S Ahmed
Students Finaal Year Dept. of
o Electronic Enngineering, Departmennt of Electronicc Engineering,
NED Univversity of Engin neering & Techhnology, NED
D University of Engineering & Technology, Karachi,
Karachi, Pakistan
P Pakistan
{shahid..nedian, waqass035}@hotmail.com saabaa@neduet.eedu.pk
Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 28,2010 at 08:23:04 UTC from IEEE Xplore. Restrictions apply.
Figure 3. Channel Coding [5]
1) Data Scrambling
It protects against-theoretic uncertainty, avoiding long Figure 5. Architecture of Scrambler
sequences of consecutive ones or consecutive zeros. A 15-
In the proposed design, RS-code shall be derived from a
bit PRBS generator having polynomial, 1+ x14 + x15 was
systematic RS (N = 255, K = 239, T = 8) code using GF (28),
implemented to produce scrambled data bits on each burst
primitive and generator polynomial depicted in (4) and (5)
of downlink data [1]. The seed value shown in Fig. 4 shall
respectively [1].
be used to calculate the scrambled bits. The DIUC value is
simply the Rate ID values as mentioned in table 224 of ሺݔሻ ൌ ଼ ݔ ݔସ ݔଷ ݔଶ ͳ (4)
section 8.3.3.4.3 of IEEE Std 802.16d. ଵ ଶ்ିଵ
݃ሺݔሻ ൌ ൫ ݔ ҆ ൯൫ ݔ ҆ ൯Ǥ Ǥ Ǥ ൫ ݔ ҆ ൯Ǣ ҆ ൌ Ͳʹ( ݔ݁ܪ5)
The FPGA implementation of scrambler is capable of
performing scrambling of 8-bits at a time instead of single In this project the RS-encoder was generated using
bit. This makes system to work faster 7 times with no extra Altera Quartus-II 9.0 mega function wizard and was
hardware as the next state of LFSR register was defined by wrapped in a top-level file in order to introduce variable
the XORed shifting of LSBs to eight MSBs position. coding rates depicted in table 1 and to produce sop, eop,
Hardware architecture is given in Fig. 5, showing I/O numcheck and source_ena signals internally which are
interfaces of the module. needed by Altera’s generated RS-encoder. The I/O data path
is 8-bit wide. The numcheck signal specifies the desired
2) FEC number of parity symbols. The operation is completed in
It is the process employed to detect and correct errors minimum 14 and maximum 124 clock cycles. The high-
without retransmission [6]. For OFDM PHY, the FEC is level hardware design is shown in Fig. 7.
accomplished by the concatenation of Reed-Solomon outer
code and a rate compatible Convolution inner code shown in b) Convolutional Encoding
Fig. 6. As the WiMAX supports adaptive PHY, hence It is described by two parameters; the code rate and the
different modulation and coding schemes could be constraint length. The code rate ݉Ȁ݊, is expressed as a ratio
employed depending upon channel conditions [7], details of of the number of input bit(s) ݉ to the output bits ݊ in a
whose are given in table 1. given encoder cycle. The constraint length parameterܭ
denotes the length of the convolutional encoder, i.e. how
a) Reed-Solomon Coding many ܭ-bit stages are available to feed the combinatorial
RS-Encoding is specified by adding parity symbols to logic that produces the output symbols [8].
the original data packet. If data packet contains ݇-symbols
each of ݉-bit(s) then encoded version is determined by In OFDM PHY, each RS encoded data is further
RS(݊,݇,)ݐ, with ݊ is length of coded block and ݐis the encoded by convolutional encoder with a native rate of 1/2,
maximum number of symbols that can be corrected. RS- a constraint length equal to 7. The output code bits are
Encoding governs following relations [8]; generated by generator polynomial defined in (6) and (7);
݊ ൌ ʹ Ȃ ͳ (1)
݇ ൌ ʹ െ ͳ െ ʹݐ (2)
ݐൌ ሺ݊ െ ݇ሻȀʹ (3)
Figure 4. OFDM Scrambler Downlink Initialization Vector [1] ܩଵ ൌ ͳ͵͵௧ ܻܴܱܨ (7)
23
Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 28,2010 at 08:23:04 UTC from IEEE Xplore. Restrictions apply.
TABLE 1. MANDATORY CHANNEL CODING PER MODULATION [1]
CC-Code Rates
Rate 1/2 2/3 3/4 5/6
X 1 10 101 10101
Y 1 11 110 11010
XY X1Y1 X1Y1Y2 X1Y1Y2X3 X1Y1Y2X3Y4X5
24
Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 28,2010 at 08:23:04 UTC from IEEE Xplore. Restrictions apply.
The modulation mappers were simply modeled as For
designing of each modulation mapper, two ROMs were
implemented, one for I part and other for Q. Thus total of 8
ROMs were wrapped up in 4 sets of top-level modules each
corresponds to complete mapper of any scheme, each
having different input data bus widths and number of
locations but same 16-bit wide output path. The rate_id
input selects one of the four output lines corresponding to
requested modulation. The top level design is shown in Fig.
Figure 9. High-Level View of Interleaver 10.
modulation mapper through its four output data buses The I and Q parts each of 192 data subcarriers are fed
described in upcoming sub-section. into OFDM symbol assembler which inserts pilot, DC and
guard carriers to make total of 256 carriers for OFDM
B. Digital Modulation realization.
As the OFDM PHY is adaptive therefore it supports
multiple schemes BPSK, QPSK, 16-QAM and 64-QAM for C. Orthogonal Frequency Division Multiplexing
data carriers’ modulation. The constellation diagrams are OFDM theory states that the IFFT of magnitude N,
gray mapped and shows the magnitudes I and Q (In-phase applied on N symbols, realizes an OFDM signal, where each
and Quadrature) components of each incoming bit(s) symbol is transmitted on one of the N orthogonal
combination along with their normalization factor C to frequencies [10]. The IFFT takes frequency domain
calculate magnitude of each point in the constellation spectrum ܺሺ݇ሻand converts it to time domain signal ݔሺ݊ሻ
diagram as given in (10); by successively multiplying it by a range of sinusoids as
given by (11);
Mag. Of Carrier = (value of the carrier at that point)*C (10) ݔሺ݊ሻ ൌ σேିଵ
ଶగ
ቁ െ ݆ σேିଵ
ଶగ
ୀ ܺሺ݇ሻ ቀ ே ୀ ܺሺ݇ሻ
ሺ ே
ሻ ሺ11)
Where C = normalization factor, its value is 1,
ͳΤξʹ ǡ ͳΤξͳͲand ͳΤξͶʹ for BPSK, QPSK, 16-QAM and Where ݇ = 0 to ܰ-1 and ܰ ൌ256 [11].
64-QAM respectively [1].
1) OFDM Symbol Assembler
Using (10), the magnitudes I and Q parts of all points in
each modulation schemes were calculated and assigned An OFDM symbol is made up of three types of basic
them Q1.14 Fixed Point Representation [9] so that each sub-carriers [3];
subcarrier is now written as a 16-bit signed number each for x 192 Data subcarriers: Frequency indices; -100 to -1
I and Q part, this simplification is given in table 3. ROMs in and +1 to +100 (except at pilot positions).
which 16-bit hex numbers were saved which are outputted
for respective combinations of input bits corresponds to the x 8 Pilot subcarriers: Frequency indices; -88, -63, -
gray mapped constellation plots. 38, -13, +13, +38, +63 and +88.
TABLE 3. Q1.14 FIXED POINT FORMAT OF I & Q x 56 Null subcarriers: Frequency indices; DC-carrier
MAGNITUDES at 0; Lower guard from -128 to -101; upper guard
from +101 to +127.
MODULATION CARRIER VALUE MAGNITUDE HEX (16-BIT)
1 1 4000 Pilots are generated by PRBS generator using
BPSK
-1 -1 C000 polynomial x11 + x9+1, which produces a sequence ܹ at its
1 0.707106781 2D41 LSB and denotes the OFDM symbol number in the current
QPSK frame[1]. Pilots are BPSK modulated and their I magnitudes
-1 -0.707106781 D2BF
1 0.316227766 143D are given by ͳ െ ʹܹ and ͳ െ ʹܹ ഥ for carrier indices -88, -
-1 -0.316227766 EBC3 38, 63, 88 and -63, -13, 13, 38 respectively.
16-QAM
3 0.948683298 3CB7
-3 -0.948683298 C349
1 0.15430335 09E0
3 0.46291005 1DA0
5 0.77151675 3160
7 1.08012345 4520
64-QAM
-1 -0.15430335 F620
-3 -0.46291005 E260
-5 -0.77151675 CEA0
-7 -1.08012345 BAE0
25
Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 28,2010 at 08:23:04 UTC from IEEE Xplore. Restrictions apply.
DC and guard are null carriers with zero magnitudes. TABLE 4. SYNTHESIS RESULTS
The OFDM symbol is assembled inside a module comprises LC LC Memory DSP Mult-
of pilot generator module and two 256x16 RAMs, each for I Module
Combination Registers Bits ipliers
and Q parts to accommodate on specified locations Channel
correspond to frequency indices[12]. The input data line of coder
3007 2123 1152 0
each RAMs selects either data, pilot, DC or guard carriers. Mapper 7 8 2048 0
2) The IFFT Module OFDM 3864 4386 56577 18
The IFFT module is fed by the OFDM symbol Total 6878 6517 59777 18
assembler with 256-complex samples. The IFFT module
was generated using Altera Quartus-II 9.0 mega function
IV. CONCLUSION
wizard and wrapped in a top-level file in the same way as
for RS-encoder. It takes minimum of 512 clocks to Simulations on ModelSim-Altera were fully compliant
complete the processing. The output data is fed to CP with the IEEE test data. For hardware prototyping of the
generator which introduces the redundancy to the OFDM design, Visual Basic application software was developed
symbol thus act as a protection from inter symbol which provides GUI for data sending and receiving to
interference. FPGA Chip through UART interface. As FPGA platform
3) CP Generator provides a flexible design approach so this work could be
integrated with MAC layer and RF front end for Rx and Tx
A copy of the last ܰூிி் ͳ כൗ ܩsamples is appended to to deploy complete WiMAX CPE.
the beginning of the symbol, called CP which increases
V. REFERENCES
symbol duration hence multipath is achieved [12]. The
value of ܩis taken as 1/16, thus the term ܰூிி் ͳ כൗ ܩcomes [1] IEEE Standard for Local and Metropoliton Area Networks. Part 16 :
Air Interface for Fixed Broadband Wireless Access Systems. New
out to be 16 and the overall symbol length becomes 272- York, USA : s.n., October 1, 2004.
complex samples. The hardware structure is simply [2] Jordan Douglas Guffey. OFDM Physical Layer Implementation for
achieved by designing two 256x16 RAMs, in which first the Kansas University Agile Radio. University of Kansas. Kansas :
whole 256-complex carriers are written but reading is s.n., 2008. Technical Report.
started from 239 to 255 and then 0 to 255 RAM locations. [3] Wimax-speed. wikimedia.org. [Online] [Cited: September 5, 2009.]
This is all about the hardware implementation of IEEE Std http://commons.wikimedia.org/wiki/File:Wimax-speed.jpg.
802.16d OFDM PHY on FPGA, next section would present
[4] Lili Zhang. A study of IEEE 802.16a OFDM-PHY Baseband.
various results of the project. Electrical Engineering, Linköping Institute of Technology.
Linköping : s.n., 2005. Master thesis in Electronics Systems. LiTH-
III. RESULTS ISY-EX--05/3627--SE.
A. Data Rate Calculation [5] Loutfi Nuaymi. WiMAX: Technology for Broadband Wireless Access.
Data rate = un-coded bits / OFDM symbol Duration (12) ENST Bretagne : John Wiley & Sons Ltd, 2007. p. 310.
[6] Andy Bateman. Digital Communication - Design for the Real World.
ܶ௦ = [ ͳȀሺܹ݊ܤሻȀܰூிி் ](1 + )ܩ (13) s.l. : Addison Wesley Longman Ltd., 1999.
[7] Mohammad Azizul Hasan. Performance Evaluation of WiMAX/IEEE
Where ܶ௦ ൌ OFDM symbol Duration; 802.16 OFDM Physical Layer. Department of Electrical and
݊ = 8/7 called sampling factor; Communications Engineering , Helsinki University of Technology .
= ܹܤChannel Bandwidth; in this design it was taken as 1.75, Espoo : s.n., 2007. Master Thesis.
3.5, 7 and 14 MHz ; [8] Bernard Sklar. Digital Communications Fundamentals and
ܰூிி் = 256 called IFFT points; Applications. 2nd. Los Angeles : Pearson Education, Inc.
= ܩ1/16; called ratio of CP time to useful symbol time.
[9] MATLAB 7.8.0 (R2009a), Help. s.l. : MathWorks, Inc., 2009.
Using (12) and (13) for each modulation and coding [10] van Nee, R. and Prasad, R. OFDM for Wireless Multimedia
scheme depicted in table 1, the minimum and maximum Communications. s.l. : Artech House, 2000.
data rates were found to be 5.64 Mbps and 50.82 Mbps for [11] Charan Langton. OFDM. Intuitive Guide to Principles of
which 6.55 MHz clock is required which was easily Communications. [Online] http://www.complextoreal.com/.
achieved by scaling down the oscillator of frequency 50 [12] Amalia Roca Persiva . Implementation of a WiMAX simulator in
MHz on Altera DE2 FPGA development kit. Timing Simulink. Institute of Communications & Radio-Frequency
analysis suggests that implemented system could attain a Engineering, Vienna University of Technology. Vienna : s.n., 2007.
maximum of 109.26 MHz. Master Thesis.
B. Hardware Resources
Table 4 shows Synthesis results of the design using
Altera Quartus II 9.0 software and device resource
summary for Altera Cyclone II EP2C35F672C6 FPGA chip.
26
Authorized licensed use limited to: GOVERNMENT COLLEGE OF TECHNOLOGY. Downloaded on July 28,2010 at 08:23:04 UTC from IEEE Xplore. Restrictions apply.