Starting from:
$35

$29

Assignment 10 Solution

    • Orthogonal Frequency Division Multiplexing

Wideband single carrier systems require very complicated equalization and channel estimation schemes due to frequency selective fading. Orthogonal frequency division multiplexing (OFDM) is a way to convert a wideband channel into many intersymbol interference free narrowband channels, for which equalization and channel estimation are straightforward.

1.1    The Concept of OFDM

Imagine that we want to transmit a data stream, consisting of complex symbols, at a symbol rate R. In a single carrier system (as we have discussed up to now), the data symbols would simply be transmitted one after the other, using the whole available bandwidth B, which is approximately equal to the desired symbol rate R.

In a multicarrier system, the data stream is split into N parallel streams. Each stream is trans-mitted over a narrow frequency band of bandwidth B=N, at a rate R=N. Figure 1 illustrates the di erent concepts in the time-frequency plane. The left sub gure shows a singlecarrier system, where the symbol duration is T = 1=R, i.e. shorter than 1 s in modern high-speed systems. Since the length of the channel impulse response in typical outdoor scenarios is in the order of several microseconds, intersymbol interference between many consecutive symbols arises. The right sub gure shows an OFDM transmission with N = 8 subcarriers.1 The data symbols of the OFDM system are denoted as a[n; m], where n is the OFDM symbol index, and m is the subcarrier index. The symbol duration is now T = N=R, i.e. N times longer than in the singlecarrier system. The OFDM symbols are separated by a guard interval. If this interval is longer than the channel impulse response (due to the longer symbol duration, this is now possible without introducing too much overhead), the system is free of intersymbol interference.






singlecarrier




frequency
a0
a1
a2
a3
a4
a5
a6
a7
frequency





time







OFDM

a07

a17
a06

a16
a05

a15
a04

a14
a03
interval
a13
a02

a12

guard

a01

a11



a00

a10

time


Figure 1: Comparison of singlecarrier and multicarrier (OFDM) transmission


    • In practice, the number of subcarriers is usually between 128 and 8196.

Assignment 10
2







copy




time
−Ncp
0
N−Ncp
N

Figure 2: Cyclic Pre x

1.2    Cyclic Pre x

What do we transmit during this guard interval? One option is to simply transmit nothing. Most systems, however, use a so-called cyclic pre x, which means that the last Ncp samples of each OFDM symbol are copied and inserted in front of the symbol, as illustrated in Figure 2. The reason of this cyclic extension has to do with the properties of the discrete Fourier trans-form (DFT), which is used in digital processors. Remember that our aim is to transform the received signal, which is a convolution of the transmitted signal with the channel impulse re-sponse, into the frequency domain, and then compensate for the in uence of the channel by dividing the received signal spectrum by the channel transfer function.

Now imagine that we have two signals a[k] and b[k], with k = 0; : : : ; N 1. Their N-point-DFTs are denoted A[k] and B[k]. Now de ne the two sequences c[k] = a[k] b[k] and C[k] = A[k]B[k]. The sequence C[k] is the DFT of c[k] only if c[k] is the circular convolution of a[k] and b[k],

    • 1
Xi
(1)
c[k] =a[i]b[(k  i) mod N] ;  k = 0; : : : ; N  1 ;

=0


instead of the linear convolution, which would be given as

    • 1
Xi
(2)
c[k] =a[i]b[k  i] ;  k = 0; : : : ; 2N   2 :

=0


We therefore want the convolution of the transmitted signal with the CIR to be circular, but unfortunately it is linear. However, from (1) and (2) we see that the circular and linear convolution are identical if one of the input sequences is periodic with period N. This is where the cyclic pre x comes into play. By prepending each signal block of length N with a copy of the last Ncp samples of that block, and under the condition that Ncp L (the length of the discrete-time CIR), the convolution of the transmitted signal with the CIR is e ectively transformed into a circular one.

1.3    OFDM Transmission

In this section, we will give a step-by-step description of an OFDM system. A block diagram of the transmitter is shown in Figure 3.

1. The complex data symbols are generated as usual and converted into N parallel streams, as illustrated in Figure 1. We denote the symbols as a[n; m], where m = N=2; : : : ; N=2 1 indicates the stream, and n is the time index. For simpler notation, we use the vector a[n] = (a[n; N=2]; : : : ; a[n; N=2 1]).
Assignment 10
3







source





qpsk

an    sn



p
ifft
s





cp




Figure 3: Simple OFDM transmitter


    2. The data symbols are transformed into the time domain via an IDFT operation: s[n] = IDFTfa[n]g:
    3. The cyclic pre x is inserted.

    4. The resulting sample stream is converted to an analog signal and transmitted as usual. In this exercise we do not consider the D/A and A/D conversion. Instead we combine these converters as well as the physical channel into a discrete-time channel model.

    5. The receiver must synchronize itself to the OFDM symbols, i.e. it must be aware at which sample a new OFDM symbol is starting. This is done by the usual frame synchronization.

    6. For each time step n, the receiver collects the received samples that belong to the nth OFDM symbol into the vector r[n]. This vector is then converted back into the frequency domain: z[n] = DFTfr[n]g.
    7. The received symbols in the frequency domain can be written as

z[n; m] = H[n; m] a[n; m] + W [n; m] ;
(3)

where H[n; m] is the channel transfer function at time instant n and at the frequency of the subcarrier m, and W [n; m] is additive white Gaussian noise. Note that in this lab, we assume that the channel is constant over time.

In (3) we see that in an OFDM system, the data symbols a[n; m] do not interfere with each other.2 Rather, there is a one-to-one correspondence between transmitted and received symbols. The whole OFDM system, consisting of the IDFT, the cyclic pre x insertion, the channel, the CP removal and the DFT can thus be modeled as N parallel at fading channels. The receiver removes the in uence of the channel by dividing the received symbol by an estimate of the channel. In the present lab, we simply assume H[n; m] 1.

1.4    Synchronization in Single Carrier and OFDM Receivers

In this section, we highlight some di erences in the synchronization tasks between the single carrier receiver, which we have discussed in the rst labs, and an OFDM receiver.


    • This statement assumes some idealizations: Perfect frequency synchronization, perfect analog components, and a su ciently long cyclic pre x. Furthermore, the channel variations must be so slow that the channel can be regarded as constant during one OFDM symbol period.

Assignment 10
4




    1. In an OFDM system, we do not have a matched  lter. Instead, the receiver uses a simple

lowpass lter. This is because, from the receiver’s perspective, the combination of the transmit pulse g(t) and the channel hc(t) looks like an e ective transmit pulse

ge  (t) = g(t)  hc(t)
(4)

and hence, a receiver lter g ( t) would not be matched to the e ective transmit pulse anymore. Instead, the frequency domain equalizer acts as a combined matched lter and channel equalizer.

    2. Timing synchronization is also not needed in an OFDM receiver. This is because, due to the multipath channel, the received signal is composed of many replicas of the trans-mitted waveform, and there is no longer an optimal sampling instant. Instead, a timing shift of a fraction of the sampling duration would simply translate to a phase shift in the frequency domain and would be compensated by the channel equalizer.

    3. For frame synchronisation, you can use a BPSK encoded single carrier preamble. You may take the same sequence as in all previous exercises. As you work in an oversampled system, you need to apply pulse shaping to the preamble (but not to your OFDM symbols). Be careful that you do not destroy your OFDM symbols.

    4. One topic that we do not discuss in our lab, but want to mention nonetheless for com-pleteness, is frequency synchronization. The need for frequency synchronization arises because in practical systems, the frequencies of the transmitter and receiver oscillators are never exactly the same, resulting in a frequency shift in the complex baseband model. In multicarrier systems, this problem is more severe than in single carrier systems (of the same total bandwidth) because they use narrow subbands for data transmission, and the same absolute frequency error causes|normalized to the carrier bandwidth|a larger relative frequency error.

    • OFDM for Acoustic Transmission

In the previous section you simulated an OFDM system in MATLAB. In this section, we want to use OFDM modulation with our acoustic transmission system. Due to its inherent capability to deal with frequency-selective channels, OFDM should allow larger bandwidths and, therefore, higher symbol rates. We will now brie y discuss the main di erences between your previous OFDM implementation and OFDM for your acoustic link.

2.1    Sampling Rate

As discussed earlier, OFDM modulation can be performed without oversampling. But there is a xed relationship between the sampling rate fsampling of the DAC, the duration of the OFDM symbol T , the number of subcarriers N, and the baseband bandwidth BWBB. A typical transmitter setup is depicted in the following picture:

Assignment 10
5

















TS is the length of the OFDM symbol T plus the length of the cyclic pre x TG. In this case:


1

(5)
fspacing =




T


fsampling =
N
(6)






T


























































BWBB = ceil
N + 1

1
(7)








2

T


You can see that the sampling rate depends on the number of carriers and their spacing. One way too look at it is that the inverse FFT transforms a continous spectrum to a time signal. The relation between the size of the spectrum and the sampling rate is determined by the Shannon-Nyquist sampling theorem.

Unfortunately, this does not apply to our setup. The audio transmission system is special in the sense that it is an all-digital transceiver. This means that the upconversion is done in the digital domain. The sampling rate can not be choosen freely. This leads to an unwanted but unavoidable oversampling in the system. There are two approaches to deal with this problem:

    1. The IFFT is performed over the desired baseband spectrum only. This leads to a lower sampling rate. Afterwards, the signal must be interpolated to the output sample rate.

    2. The IFFT is performed over the full spectrum given by the output sampling rate, but only the baseband part of the spectrum is modulated.

We propose the use of the second method. You can nd adapted versions of the IFFT and FFT functions on the Moodle. The new OSIFFT and OSFFT functions transform between time and frequency domain while taking care of the oversampling.

Assignment 10
6



This approach requires that fspacing is a divisor of fsampling. With the following relations:

1
(8)
fspacing = T










































































BWBB = ceil
N + 1
fspacing
(9)






2



NOS = T  fsampling

(10)
while fsampling is  xed to e.g.
48 kHz.
The IFFT and FFT functions accept the following
parameters:





Y = OSIFFT(X,OS FACTOR)


1. X - Input vector of length N.

2. OS FACTOR - Oversampling factor  fsampling

fspacing N

Y = OSFFT(X,OS FACTOR)


1. X - Input vector of length T    fsampling.

2. OS FACTOR - Oversampling factor  fsampling

fspacing N

2.2    Phase Tracking

In OFDM each subcarrier has a di erent phase error and attenuation. To be able to correctly detect the symbols, you need initial estimates of the respective phase errors. You can measure those phase errors by transmitting a known OFDM symbol at the beginning of every frame. It is important to note that you can not use the initial phase estimate provided by the frame synchronization unit, since this is an estimate of the phase o set in the time domain, not in the frequency domain. Afterwards, you can track the phase deviation as in the single carrier system. Remember that you have to do this for each subcarrier independently. This set of phase o sets and magnitudes describes your channel. In other words, it is the estimate of the frequency response of the channel.

2.3    Down Conversion

We supply you a new version of the lowpass lter on the Moodle. The lter cut-o point should be slightly above your BWBB.

2.4    Recommended Frame Structure
The recommended frame structure, which we described previously, looks like this:


Assignment 10
7



    • Your Tasks

        1. Implement an acoustic OFDM transmission system. Start with 256 carriers, a spacing of 5 Hz and a cyclic pre x of half the OFDM symbol length. Transmit the training symbol and one data symbol only. Verify that it works under good channel conditions.

        2. Plot the spectrum of your channel (phase and magnitude). Observe how the spectrum changes over time. Do an inverse FFT of the spectrum to estimate the existing delay spread. Calculate the e ciency of your current system. How much does it increase if you reduce the CP to the required length only?

        3. How many symbols can you transmit before needing to do continuous phase tracking?

3.1    Hints
    • To allow large bandwidth, we recommend to use a carrier frequency of 8 kHz.

If necessary, the last OFDM symbol of the burst is  lled up with random bits that can
    • simply be discarded.

OFDM can have a high peak-to-average power ratio (PAPR). Thus, the large dynamic range can pose problems, like sound clipping. To get best results, ensure that your preamble and the OFDM symbols have the same energy. Make sure to slightly reduce
    • the volume of the speakers and of the operating system.

As a starting point, you do not need to implement phase tracking. The training OFDM
    • symbol should be su  cient if you transmit only a small number of symbols.

In order to verify your code, you can at rst bypass the channel by directly using the vector created by the transmitter at the receiver.


Final Presentation and Report

Each student is required to submit a separate report. Your report should contain:

    1. A brief description of the problem that you are solving and the solution that you used, in your own words.

    2. A brief description of your implementation and any problems that you encountered.

    3. The results of your implementation of the tasks and any conclusions you were able to draw.

Each group is required to do a 10 minute    nal presentation of their audio transmission system.

The presentation should essentially be a summary of the report using no more than 10 slides.

More products