SlideShare a Scribd company logo
1 of 46
VHDL SIMULATION & SYNTHESIS
OF OFDM
TRANSMITTER/RECEIVER
1
SIMULATION and SYNTHESIS
Simulation is used to verify the functionality
of the circuit.
Synthesis tools convert the design description
into equations or components to fit into the
target technology. 2
Typical simulation waveform
Typical synthesis result
Total
3
Presentation Outline
►OFDM-Introduction
►Block Diagram
►Scope of project
►Project scheduling
►Challenges
►Design & Implementation
►References
4
►Multi channel/carrier modulation(MCM)-
wideband channel to N non-ISI AWN sub-channels by orthogonal basis
functions to combat the effects of multipath fading.
►DFT based MCM(DMT)- wideband channel to N infinite
non-ISI AWN sub-channels by orthogonal basis functions for DSL
►DFT based MCM(OFDM)- Wireless DMT. In OFDM, each
sub-carrier is orthogonal to all other carriers. However, this condition
is not always maintained in DMT. A data stream is divided into
several parallel streams before transmission. 5
What is Multipath?
6
Received signal is the sum of many versions of the transmitted signal
with varying delay and attenuation. Cause ISI.
OFDM is a solution to multipath.
What is ISI & ICI ?
7
ICI(Inter channel Interference) occurs when independent
data streams on two or more channels interfere with each
other.
ISI(Inter symbol Interference) occurs on a single channel
when a symbol is interfered with by either its
predecessor(s) or its successor(s). Frequenct offset.
Frequency offset can shift the received signal
FDM Vs. OFDM
FDM OFDM
Unique carrier for each data
(single carrier per spectrum)
Data distributes over sub-
carriers(spread spectrum).
Data is transmitted in parallel
on sub-carriers.
Carriers spaced far apart.
Non-overlapping signal spectra
Sub-carriers spaced apart at
precise frequencies.
Overlapping signal spectra
Low spectral efficiency High spectral efficiency
Use in 2G,3G Use in 4G
8
OFDM Spectrum
overlapping sub-channels
Overlapping reducing the required bandwidth but keeping the
modulated signals orthogonal so they do not interfere with each
other.
9
Orthogonality of sub-carriers
The spectrum of each sub-carrier has a “null” at the centre frequency of each
of the other sub-carriers in the system. This overcomes the problem of
overhead carrier spacing required in FDMA. Each sub-carrier has an integer
number of cycles over a symbol period. Sub-carrier spacing provides the
"orthogonality“, which prevents the demodulators from seeing frequencies
other than their own.
10
Sin(x)/x spectra
Basic Mathematical Principle of ‘analog’ OFDM
Product modulator
Sub-carrier
Sub-carrier
Sub-carrier
Separate local oscillators to generate each individual sub-carrier.
11
Discrete OFDM
S
t
j
e 0
w
+
t
j N
e 1
-
+ w
=
0
,
n
s
1
, -
N
n
s
Parallel
to Serial
(P/S)
IDFT
0
,
n
s
1
, -
N
n
s
Basis function
12
IFFT that basically gives OFDM its
orthogonality. The sub-carriers can now be
generated using IDFT. The FFT can keep tones
orthogonal to one another if the tones have an
integer number of cycles in a symbol period.
Orthogonality by Fourier
13
OFDM Transceiver Block Diagram
coding
IFFT (Tx)
De-inter
leaving
QPSK
demappin
g
Parallel
to serial
Serial to
parallel
Remove
cyclic
Extension
Decoding
Inter
leaving
QPSK
mapping
Serial to
parallel
Parallel
to serial
Add cyclic
Extension
and
windowing
Output of
transmitter
Input to
receiver
FFT
(Rx)
Data input to the
transmitter
Data received
Scram
bler
Add
Pilots
Synchronisation
Channel
Estimate
Equalizer
DeScra
mbler
convol
utional
-viterbi
Guard
Interval
14
SCRAMBLER / DESCRAMBLER- To make the input sequence more
disperse(randomizes) so that the dependence of input signal’s power
spectrum on the actual transmitted data can be eliminated.
Scrambling is a technique used to randomize a data stream to eliminate
long '0'-only and '1'-only sequences and to assure energy dispersal. Long
'0'-only and '1'-only sequences create difficulties for timing recovery circuit.
ADDITION / REMOVAL OF CYCLIC PREFIX- In order to preserve the sub-carrier
orthogonality and the independence of subsequent OFDM symbols, a cyclic
guard interval is introduced. Addition of cyclic prefix results in circular
convolution between the transmitted signal and the channel impulse response.
Remove ISI, ICI by providing the delay spread in the channel is less than the
guard period. OFDM system resistant to time dispersion.
15
Guard interval to eliminate ISI
16
The guard interval will reduce the information rate.
INTERLEAVER / DE-INTERLEAVER- The bits(128b for 64 sub-carrier) within an
OFDM symbol are re-arranged in such a fashion so that adjacent bits are
placed on non-adjacent sub-carriers. Thus, protect the data from burst errors.
As a result of interleaving, correlated noise introduced in the transmission
channel appears to be statistically independent at the receiver and thus allows
better error correction.
EQUALIZER- To avoid multi path fading effects. If the number of sub-channel is
large enough, the channel can be viewed as flat fading. Then a one-tap equalizer
is sufficient.
Pilots- The pilot symbols are used in wireless communication systems for the sake
of channel estimation and correction purposes. For 64 subcarriers case in
802.11a the 4 pilots positions is -21,-7,7,21. 17
Scope of the Project
►VHDL programming
►ModelSim for Simulation
►Xilinx ISE for Synthesis
18
FPGA Implementation
RTL uses flip-flops, arithmetic-logic-units and multiplexers
interconnected by wires. Optimized net list can be programmed
directly into a FPGA chip.
19
challenges
N-1
X(k) = S x(n) WN
n k
n=0
Here, WN = exp (-j2/N)
Radix-2 Decimation In Time algorithm:
n=N/2 –1 n=N/2 –1
X(k)= S x(2n)WN/2
nk + WN
k S x(2n+1)WN/2
nk
n=0 n=0
1. FFT/IFFT algorithm implementation
Cooley–Tukey
Most important step in the OFDM communication system.
N-1
X(k) = S x(n) WN
n k
n=0
Here, WN = exp (-j2/N)
Radix-2 Decimation In Time algorithm:
n=N/2 –1 n=N/2 –1
X(k)= S x(2n)WN/2
nk + WN
k S x(2n+1)WN/2
nk
n=0 n=0
20
2. FPGA implementation
These logic will not fit into one FPGA in the boards that we
have in our college, thus we wont be able to implement
FPGA hardware.
Higher end boards to map the design to targeted device
(Altera Cyclone III starter board) themselves cost more
than Rs.50000/- which is very expensive.
21
3. Factors definition
►data rate
►bit rate
► convolutional code rate
►noise immunity
We have to define,
22
TRANSMITTER DESIGN AND
IMPLEMENTATION
23
SCRAMBLER(randomizer)
In the proposed design, a standard 7 bit
scrambler has been used to randomize the
incoming bits. 24
CONVOLUTIONAL ENCODER
Initially all zeroes are stored in the register.
m=1, n=2 and k (constraint length) =7
25
INTERLEAVER
Two memory elements (usually RAMs) are used. In the first RAM the
incoming block of bits is stored in sequential order. This data from the
first RAM is read out randomly (using an algorithm) so that the bits
are re-arranged and stored in the second RAM and then read out.
26
The three building blocks of the interleaver are:
• Block Memory
• Controller
• Address ROM
The job of the controller is to guide the incoming block of data to
the correct memory blocks, to switch the RAMs between reading and
writing modes, and to switch between the two RAMs for 16 alternate
bits in writing mode. This is done by using counters.
The address ROM is basically a 64x6 ROM that stores read
addresses for the RAMs.
Counter C is a 3-bit counter that controls switching between either
RAM 1A and RAM 2A or RAM 1B and RAM 2B depending upon which
RAMs are in write mode. Counter1 and Counter2 are 5-bit
counters after every 8thcount control switches to either Counter1
or Counter2; this is controlled by Counter C.
27
CONSTELLATION MAPPER
Signal constellation of QPSK
* * * *
* * * *
-3m/8 -m/8 m/8 3m/8
* * * *
* * * *
In QPSK two bits make up one symbol.
Mapping of bits to constellation points
28
A ROM is used to store the constellation points. Each constellation point is
represented by 48 bits in binary. In these 48 bits, the most significant 24
bits represent the real part and the least significant 24 bits represent
the imaginary part. In both the real and imaginary parts the most
significant 8 bits are the integer part and the least significant 16
bits represent the fractional part. 2’s complement notation has been used
to represent negative numbers. The size of ROM is 4x48.
The incoming input bits (2 bits) act as address for the ROM. Each ROM
values in the ROM is a constellation point corresponding to the data bits
which here act as addresses for the ROM.
29
Serial to Parallel module
The data comes serially from the input port SERIN. The parallel data
is output from DOUT port. Output port DRDY is asserted ‘1’ when the
start bit, 8 bit data and the parity bit is received. Output port PERRn
is asserted ‘0’ when the parity bit received is different from the parity
generated inside the serial to parallel circuit. When parity error is
detected, the serial to parallel circuit would be reset before its normal
operation can be performed.
30
IFFT DESIGN
64-point Radix-2^2 fixed-point DIT FFT
Since in the proposed design there are 64 sub-carriers so the input to
FFT would be 64 complex numbers, hence a 64 point FFT would be
required.
31
bf2i and bf2ii radix 2 butterflies
In our case there would be 3 stages (64 = 43) and 16 4
point DFTs per stage or we can say 16 butterflies pre
stage.
32
The module consists of six radix-2 butterflies, shift registers associated with
each butterfly, two complex multipliers, two twiddle factor generators, and a
controller that provides the control signals. The FFT Radix-2 butterfly must
have two inputs in order to produce the next FFT intermediate value, but
the data in our scenario is available only in a serial mode. The SDF(Single-
path Delay Feedback) mechanism provides a solution where the first
input is delayed until the second input is presented, after which the
calculation can proceed. Both the bf2i and bf2ii modules accomplish
this by multiplexing the first input to a shift register of sufficient
length so that that data-point is present at the butterfly input when the
second data-point appears. A counter provides the control signals for these
multiplexers, which are internal to the butterfly modules.
33
Parallel to Serial module
A parallel to serial converter is a special function of shift register.
The data is parallel loaded to the shift register and then shift out bit
by bit also is bounded by a start bit and stop bit.
Data to be transmit is first parallel loaded then transmitted bit by bit by a
start bit of value ‘1’. This is followed by the 8-bit data with the left bit most
bit first. The converter holds the output low when the transmission is
completed.
34
CYCLIC PREFIX ADDER
35
36
Causes intercarrier
interference (ICI)
If multipath delay is less than the cyclic prefix
no intersymbol or intercarrier interference
The architecture of cyclic prefix adder simply consists of an address ROM
that stores addresses, a RAM to store incoming data in sequential
order and a counter that provides read addresses to the RAM.
In the proposed design, the last eight symbols (complex numbers) of the
OFDM symbol are replicated at the beginning of the symbol, therefore a
total of 72 (64 + 8) symbols are actually transmitted.
37
RECEIVER DESIGN AND
IMPLEMENTATION
The receiver follows an exact reverse procedure of which was
followed in the transmitter. It receives the complex (modulated)
output points and performs demodulation and recovers the original bits
sent to the transmitter.
38
CYCLIC PREFIX REMOVER
The cyclic prefix was added at the transmitting end in order to
avoid inter-symbol interference, therefore during reception it must
be eliminated for any further processing of the received signal. This
is done by simply skipping the first eight sub-carriers in the received
OFDM symbol. In hardware this is implemented in the control unit.
The control unit only enables the next block (FFT) when the first
eight bits of the received OFDM symbols have been skipped .
39
FAST FOURIER TRANSFORM
In order to implement FFT in hardware the
algorithm is same, only the difference is that the
divider is removed and the real and imaginary parts at
the input are swapped i.e. real becomes
imaginary and imaginary becomes real. Same goes
for the output i.e. real and imaginary parts at
the output are swapped as well. 40
CONSTELLATION DE-MAPPER
Data points mapped to constellation points
Therefore, basically the incoming
constellation points are mapped onto the
data points as shown in Table. Can be
implemented by direct coding.
41
DE-INTERLEAVER
De-interleaving performs the inverse task. It re-arranges the
interleaved bits into their original order. De-interleaving is done the
same way as Interleaving, the difference being that the number of
rows and the number of columns for de-interleaving are
interchanged.
Hence the only difference in the hardware architectures of
interleaver and de-interleaver is the contents of the address ROM,
which actually provides the read addresses to the RAM that stores
the data to be de-interleaved.
42
DECODER
The Viterbi Decoder decodes Convolutional codes. We are
planning to use the Altera’s Viterbi Decoder IP core in our
design. Altera’s Viterbi IP core is a parameterized IP core
that is synthesizable and allows for parallel as well as
hybrid implementation of the Viterbi decoder.
43
DESCRAMBLER
The above setup simply
descrambles the scrambled data.
44
REFERENCES
► L. J. Cimini “Analysis and simulation of a digital
mobile channel using orthogonal frequency division
multiplexing.” IEEE .
► S. B. Weinstein and P. M. Ebert, “Data transmission
by frequency-division multiplexing using the discrete
Fourier transform”, IEEE.
► mathworld.wolfram.com/FastFourierTransform.html
► Wikipedia for Scrambler, Interleaver, Reed Solomon error-
correction code, and Interleaver.
45
46

More Related Content

Similar to Ofdm.pptx

Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
researchinventy
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
researchinventy
 
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEMSLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
HariniChaganti1
 

Similar to Ofdm.pptx (20)

5 ofdm
5 ofdm5 ofdm
5 ofdm
 
Ju2416921695
Ju2416921695Ju2416921695
Ju2416921695
 
Industrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCsIndustrys Lowest Power Dual-Channel 10-Bit ADCs
Industrys Lowest Power Dual-Channel 10-Bit ADCs
 
underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
 
Implementation of High Speed OFDM Transceiver using FPGA
Implementation of High Speed OFDM Transceiver using FPGAImplementation of High Speed OFDM Transceiver using FPGA
Implementation of High Speed OFDM Transceiver using FPGA
 
Analysis of Women Harassment inVillages Using CETD Matrix Modal
Analysis of Women Harassment inVillages Using CETD Matrix ModalAnalysis of Women Harassment inVillages Using CETD Matrix Modal
Analysis of Women Harassment inVillages Using CETD Matrix Modal
 
rfio
rfiorfio
rfio
 
OFDM Final
OFDM FinalOFDM Final
OFDM Final
 
Channel estimation
Channel estimationChannel estimation
Channel estimation
 
Synthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft CoreSynthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft Core
 
7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx7.MODBus and CANBus.pptx
7.MODBus and CANBus.pptx
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
A Robust UART Architecture Based on Recursive Running Sum Filter for Better N...
A Robust UART Architecture Based on Recursive Running Sum Filter for Better N...A Robust UART Architecture Based on Recursive Running Sum Filter for Better N...
A Robust UART Architecture Based on Recursive Running Sum Filter for Better N...
 
Design and Implementation of Low Power High Speed Symmetric Decoder Structure...
Design and Implementation of Low Power High Speed Symmetric Decoder Structure...Design and Implementation of Low Power High Speed Symmetric Decoder Structure...
Design and Implementation of Low Power High Speed Symmetric Decoder Structure...
 
Cdma
CdmaCdma
Cdma
 
D04561722
D04561722D04561722
D04561722
 
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEMSLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
SLM-PTS BASED PAPR REDUCTION TECHNIQUES IN OFDM SYSTEM
 
Adc lab
Adc labAdc lab
Adc lab
 

More from Akbarali206563 (16)

transmissiline auto cleaing fault in transmission line
transmissiline auto cleaing fault in transmission linetransmissiline auto cleaing fault in transmission line
transmissiline auto cleaing fault in transmission line
 
energymanagementsystem-200219135654 (1).pptx
energymanagementsystem-200219135654 (1).pptxenergymanagementsystem-200219135654 (1).pptx
energymanagementsystem-200219135654 (1).pptx
 
harsh final ppt (2).pptx
harsh final ppt (2).pptxharsh final ppt (2).pptx
harsh final ppt (2).pptx
 
leaf diseses.pptx
leaf diseses.pptxleaf diseses.pptx
leaf diseses.pptx
 
alcho.pptx
alcho.pptxalcho.pptx
alcho.pptx
 
Presentation Internalc.pptx
Presentation Internalc.pptxPresentation Internalc.pptx
Presentation Internalc.pptx
 
Team 12- Blind Eye.pptx
Team 12- Blind Eye.pptxTeam 12- Blind Eye.pptx
Team 12- Blind Eye.pptx
 
osteo.pptx
osteo.pptxosteo.pptx
osteo.pptx
 
PPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).pptPPT FINAL (1)-1 (1).ppt
PPT FINAL (1)-1 (1).ppt
 
Seat Belt IoT 00.pptx
Seat Belt IoT 00.pptxSeat Belt IoT 00.pptx
Seat Belt IoT 00.pptx
 
rain.pptx
rain.pptxrain.pptx
rain.pptx
 
imagefiltervhdl.pptx
imagefiltervhdl.pptximagefiltervhdl.pptx
imagefiltervhdl.pptx
 
V13I1006.pdf
V13I1006.pdfV13I1006.pdf
V13I1006.pdf
 
anas.pdf
anas.pdfanas.pdf
anas.pdf
 
Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
13104 2019 4880_moesm6_esm
13104 2019 4880_moesm6_esm13104 2019 4880_moesm6_esm
13104 2019 4880_moesm6_esm
 

Recently uploaded

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Recently uploaded (20)

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 

Ofdm.pptx

  • 1. VHDL SIMULATION & SYNTHESIS OF OFDM TRANSMITTER/RECEIVER 1
  • 2. SIMULATION and SYNTHESIS Simulation is used to verify the functionality of the circuit. Synthesis tools convert the design description into equations or components to fit into the target technology. 2
  • 3. Typical simulation waveform Typical synthesis result Total 3
  • 4. Presentation Outline ►OFDM-Introduction ►Block Diagram ►Scope of project ►Project scheduling ►Challenges ►Design & Implementation ►References 4
  • 5. ►Multi channel/carrier modulation(MCM)- wideband channel to N non-ISI AWN sub-channels by orthogonal basis functions to combat the effects of multipath fading. ►DFT based MCM(DMT)- wideband channel to N infinite non-ISI AWN sub-channels by orthogonal basis functions for DSL ►DFT based MCM(OFDM)- Wireless DMT. In OFDM, each sub-carrier is orthogonal to all other carriers. However, this condition is not always maintained in DMT. A data stream is divided into several parallel streams before transmission. 5
  • 6. What is Multipath? 6 Received signal is the sum of many versions of the transmitted signal with varying delay and attenuation. Cause ISI. OFDM is a solution to multipath.
  • 7. What is ISI & ICI ? 7 ICI(Inter channel Interference) occurs when independent data streams on two or more channels interfere with each other. ISI(Inter symbol Interference) occurs on a single channel when a symbol is interfered with by either its predecessor(s) or its successor(s). Frequenct offset. Frequency offset can shift the received signal
  • 8. FDM Vs. OFDM FDM OFDM Unique carrier for each data (single carrier per spectrum) Data distributes over sub- carriers(spread spectrum). Data is transmitted in parallel on sub-carriers. Carriers spaced far apart. Non-overlapping signal spectra Sub-carriers spaced apart at precise frequencies. Overlapping signal spectra Low spectral efficiency High spectral efficiency Use in 2G,3G Use in 4G 8
  • 9. OFDM Spectrum overlapping sub-channels Overlapping reducing the required bandwidth but keeping the modulated signals orthogonal so they do not interfere with each other. 9
  • 10. Orthogonality of sub-carriers The spectrum of each sub-carrier has a “null” at the centre frequency of each of the other sub-carriers in the system. This overcomes the problem of overhead carrier spacing required in FDMA. Each sub-carrier has an integer number of cycles over a symbol period. Sub-carrier spacing provides the "orthogonality“, which prevents the demodulators from seeing frequencies other than their own. 10 Sin(x)/x spectra
  • 11. Basic Mathematical Principle of ‘analog’ OFDM Product modulator Sub-carrier Sub-carrier Sub-carrier Separate local oscillators to generate each individual sub-carrier. 11
  • 12. Discrete OFDM S t j e 0 w + t j N e 1 - + w = 0 , n s 1 , - N n s Parallel to Serial (P/S) IDFT 0 , n s 1 , - N n s Basis function 12
  • 13. IFFT that basically gives OFDM its orthogonality. The sub-carriers can now be generated using IDFT. The FFT can keep tones orthogonal to one another if the tones have an integer number of cycles in a symbol period. Orthogonality by Fourier 13
  • 14. OFDM Transceiver Block Diagram coding IFFT (Tx) De-inter leaving QPSK demappin g Parallel to serial Serial to parallel Remove cyclic Extension Decoding Inter leaving QPSK mapping Serial to parallel Parallel to serial Add cyclic Extension and windowing Output of transmitter Input to receiver FFT (Rx) Data input to the transmitter Data received Scram bler Add Pilots Synchronisation Channel Estimate Equalizer DeScra mbler convol utional -viterbi Guard Interval 14
  • 15. SCRAMBLER / DESCRAMBLER- To make the input sequence more disperse(randomizes) so that the dependence of input signal’s power spectrum on the actual transmitted data can be eliminated. Scrambling is a technique used to randomize a data stream to eliminate long '0'-only and '1'-only sequences and to assure energy dispersal. Long '0'-only and '1'-only sequences create difficulties for timing recovery circuit. ADDITION / REMOVAL OF CYCLIC PREFIX- In order to preserve the sub-carrier orthogonality and the independence of subsequent OFDM symbols, a cyclic guard interval is introduced. Addition of cyclic prefix results in circular convolution between the transmitted signal and the channel impulse response. Remove ISI, ICI by providing the delay spread in the channel is less than the guard period. OFDM system resistant to time dispersion. 15
  • 16. Guard interval to eliminate ISI 16 The guard interval will reduce the information rate.
  • 17. INTERLEAVER / DE-INTERLEAVER- The bits(128b for 64 sub-carrier) within an OFDM symbol are re-arranged in such a fashion so that adjacent bits are placed on non-adjacent sub-carriers. Thus, protect the data from burst errors. As a result of interleaving, correlated noise introduced in the transmission channel appears to be statistically independent at the receiver and thus allows better error correction. EQUALIZER- To avoid multi path fading effects. If the number of sub-channel is large enough, the channel can be viewed as flat fading. Then a one-tap equalizer is sufficient. Pilots- The pilot symbols are used in wireless communication systems for the sake of channel estimation and correction purposes. For 64 subcarriers case in 802.11a the 4 pilots positions is -21,-7,7,21. 17
  • 18. Scope of the Project ►VHDL programming ►ModelSim for Simulation ►Xilinx ISE for Synthesis 18
  • 19. FPGA Implementation RTL uses flip-flops, arithmetic-logic-units and multiplexers interconnected by wires. Optimized net list can be programmed directly into a FPGA chip. 19
  • 20. challenges N-1 X(k) = S x(n) WN n k n=0 Here, WN = exp (-j2/N) Radix-2 Decimation In Time algorithm: n=N/2 –1 n=N/2 –1 X(k)= S x(2n)WN/2 nk + WN k S x(2n+1)WN/2 nk n=0 n=0 1. FFT/IFFT algorithm implementation Cooley–Tukey Most important step in the OFDM communication system. N-1 X(k) = S x(n) WN n k n=0 Here, WN = exp (-j2/N) Radix-2 Decimation In Time algorithm: n=N/2 –1 n=N/2 –1 X(k)= S x(2n)WN/2 nk + WN k S x(2n+1)WN/2 nk n=0 n=0 20
  • 21. 2. FPGA implementation These logic will not fit into one FPGA in the boards that we have in our college, thus we wont be able to implement FPGA hardware. Higher end boards to map the design to targeted device (Altera Cyclone III starter board) themselves cost more than Rs.50000/- which is very expensive. 21
  • 22. 3. Factors definition ►data rate ►bit rate ► convolutional code rate ►noise immunity We have to define, 22
  • 24. SCRAMBLER(randomizer) In the proposed design, a standard 7 bit scrambler has been used to randomize the incoming bits. 24
  • 25. CONVOLUTIONAL ENCODER Initially all zeroes are stored in the register. m=1, n=2 and k (constraint length) =7 25
  • 26. INTERLEAVER Two memory elements (usually RAMs) are used. In the first RAM the incoming block of bits is stored in sequential order. This data from the first RAM is read out randomly (using an algorithm) so that the bits are re-arranged and stored in the second RAM and then read out. 26
  • 27. The three building blocks of the interleaver are: • Block Memory • Controller • Address ROM The job of the controller is to guide the incoming block of data to the correct memory blocks, to switch the RAMs between reading and writing modes, and to switch between the two RAMs for 16 alternate bits in writing mode. This is done by using counters. The address ROM is basically a 64x6 ROM that stores read addresses for the RAMs. Counter C is a 3-bit counter that controls switching between either RAM 1A and RAM 2A or RAM 1B and RAM 2B depending upon which RAMs are in write mode. Counter1 and Counter2 are 5-bit counters after every 8thcount control switches to either Counter1 or Counter2; this is controlled by Counter C. 27
  • 28. CONSTELLATION MAPPER Signal constellation of QPSK * * * * * * * * -3m/8 -m/8 m/8 3m/8 * * * * * * * * In QPSK two bits make up one symbol. Mapping of bits to constellation points 28
  • 29. A ROM is used to store the constellation points. Each constellation point is represented by 48 bits in binary. In these 48 bits, the most significant 24 bits represent the real part and the least significant 24 bits represent the imaginary part. In both the real and imaginary parts the most significant 8 bits are the integer part and the least significant 16 bits represent the fractional part. 2’s complement notation has been used to represent negative numbers. The size of ROM is 4x48. The incoming input bits (2 bits) act as address for the ROM. Each ROM values in the ROM is a constellation point corresponding to the data bits which here act as addresses for the ROM. 29
  • 30. Serial to Parallel module The data comes serially from the input port SERIN. The parallel data is output from DOUT port. Output port DRDY is asserted ‘1’ when the start bit, 8 bit data and the parity bit is received. Output port PERRn is asserted ‘0’ when the parity bit received is different from the parity generated inside the serial to parallel circuit. When parity error is detected, the serial to parallel circuit would be reset before its normal operation can be performed. 30
  • 31. IFFT DESIGN 64-point Radix-2^2 fixed-point DIT FFT Since in the proposed design there are 64 sub-carriers so the input to FFT would be 64 complex numbers, hence a 64 point FFT would be required. 31
  • 32. bf2i and bf2ii radix 2 butterflies In our case there would be 3 stages (64 = 43) and 16 4 point DFTs per stage or we can say 16 butterflies pre stage. 32
  • 33. The module consists of six radix-2 butterflies, shift registers associated with each butterfly, two complex multipliers, two twiddle factor generators, and a controller that provides the control signals. The FFT Radix-2 butterfly must have two inputs in order to produce the next FFT intermediate value, but the data in our scenario is available only in a serial mode. The SDF(Single- path Delay Feedback) mechanism provides a solution where the first input is delayed until the second input is presented, after which the calculation can proceed. Both the bf2i and bf2ii modules accomplish this by multiplexing the first input to a shift register of sufficient length so that that data-point is present at the butterfly input when the second data-point appears. A counter provides the control signals for these multiplexers, which are internal to the butterfly modules. 33
  • 34. Parallel to Serial module A parallel to serial converter is a special function of shift register. The data is parallel loaded to the shift register and then shift out bit by bit also is bounded by a start bit and stop bit. Data to be transmit is first parallel loaded then transmitted bit by bit by a start bit of value ‘1’. This is followed by the 8-bit data with the left bit most bit first. The converter holds the output low when the transmission is completed. 34
  • 36. 36 Causes intercarrier interference (ICI) If multipath delay is less than the cyclic prefix no intersymbol or intercarrier interference
  • 37. The architecture of cyclic prefix adder simply consists of an address ROM that stores addresses, a RAM to store incoming data in sequential order and a counter that provides read addresses to the RAM. In the proposed design, the last eight symbols (complex numbers) of the OFDM symbol are replicated at the beginning of the symbol, therefore a total of 72 (64 + 8) symbols are actually transmitted. 37
  • 38. RECEIVER DESIGN AND IMPLEMENTATION The receiver follows an exact reverse procedure of which was followed in the transmitter. It receives the complex (modulated) output points and performs demodulation and recovers the original bits sent to the transmitter. 38
  • 39. CYCLIC PREFIX REMOVER The cyclic prefix was added at the transmitting end in order to avoid inter-symbol interference, therefore during reception it must be eliminated for any further processing of the received signal. This is done by simply skipping the first eight sub-carriers in the received OFDM symbol. In hardware this is implemented in the control unit. The control unit only enables the next block (FFT) when the first eight bits of the received OFDM symbols have been skipped . 39
  • 40. FAST FOURIER TRANSFORM In order to implement FFT in hardware the algorithm is same, only the difference is that the divider is removed and the real and imaginary parts at the input are swapped i.e. real becomes imaginary and imaginary becomes real. Same goes for the output i.e. real and imaginary parts at the output are swapped as well. 40
  • 41. CONSTELLATION DE-MAPPER Data points mapped to constellation points Therefore, basically the incoming constellation points are mapped onto the data points as shown in Table. Can be implemented by direct coding. 41
  • 42. DE-INTERLEAVER De-interleaving performs the inverse task. It re-arranges the interleaved bits into their original order. De-interleaving is done the same way as Interleaving, the difference being that the number of rows and the number of columns for de-interleaving are interchanged. Hence the only difference in the hardware architectures of interleaver and de-interleaver is the contents of the address ROM, which actually provides the read addresses to the RAM that stores the data to be de-interleaved. 42
  • 43. DECODER The Viterbi Decoder decodes Convolutional codes. We are planning to use the Altera’s Viterbi Decoder IP core in our design. Altera’s Viterbi IP core is a parameterized IP core that is synthesizable and allows for parallel as well as hybrid implementation of the Viterbi decoder. 43
  • 44. DESCRAMBLER The above setup simply descrambles the scrambled data. 44
  • 45. REFERENCES ► L. J. Cimini “Analysis and simulation of a digital mobile channel using orthogonal frequency division multiplexing.” IEEE . ► S. B. Weinstein and P. M. Ebert, “Data transmission by frequency-division multiplexing using the discrete Fourier transform”, IEEE. ► mathworld.wolfram.com/FastFourierTransform.html ► Wikipedia for Scrambler, Interleaver, Reed Solomon error- correction code, and Interleaver. 45
  • 46. 46