Patrick X. Zhao, Ph. D. The Zhao Bioinformatics Lab pzhao@noble
Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation...
Transcript of Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation...
![Page 1: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/1.jpg)
1
Lecture 1: Introduction on simulation of communication systems
March 28 – April 19 2008
Yuping Zhao (Doctor of Science in technology)
Professor, Peking UniversityBeijing, China
![Page 2: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/2.jpg)
2
Example: The signal after the matched filter becomes
( ) ( ) ( ) ( )
( ) ( )tntfr
tntfntfstr
N
kkk
N
kkk
N
kkmk
′+=
′++=
∑
∑∑
=
==
1
11
here ( ) ( ) ( )∑=
−=′N
kkk tfntntn
1
[ ] 0=knE
What we learned from text books ?
Why do we need to do the simulations
![Page 3: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/3.jpg)
3
How those equations can be used in different devices
Why do we need to do the simulations
![Page 4: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/4.jpg)
4
From theoretical study to hardware implementation
• Theoretical study• Build the simulation model
– Baseband model: focusing on baseband– Passband model: build the equivalent baseband
model• Fixed point simulations• Hardware languages description (VHDL,
Verelog) • FPGA test bench implementation• Chip set oriented design• Chip set implementation
![Page 5: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/5.jpg)
5
Theoretical study
• The basic knowledge for communications– Time domain signal analysis– Frequency signals analysis– Statistics analysis– Random process– Basic theories for digital communications
![Page 6: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/6.jpg)
6
Build the simulation model
Example: Baseband signalsReal part of baseband signal
Imaginary part of baseband signal
![Page 7: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/7.jpg)
7
Problems in baseband simulations
• How to simulate continues signals?• How build the simulation to reflect reality?• How to make the exact same signals as
hardware devices?
![Page 8: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/8.jpg)
8
0 5 10 15 20 25 30 35 40-1
-0.5
0
0.5
1实部
0 5 10 15 20 25 30 35 40-1
-0.5
0
0.5
1虚部
Example: Baseband signals after the carrier modulation
Real part
Imaginary part
Build the simulation model
![Page 9: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/9.jpg)
9
Problems in carrier band simulation
• Is it necessary to make simulation of carrier modulated signals?– In most cases, No!
• How to simulate the carrier errors in the baseband simulations?
![Page 10: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/10.jpg)
10
Fixed point simulations
• Why we need to make fixed point simulations?– Each signal in the hardware devices are represented
by binary data • How to make the fixed point simulations using
Matlab?• How to chose the number of bits for each signals?• How to make compromise of the complexity and
the accuracy of the system?
![Page 11: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/11.jpg)
11
From theoretical study to hardware implementation
• Theoretical study• Build the floating point simulation model
– Baseband model: focusing on baseband– Passband model: build the equivalent baseband model
• Fixed point simulations • Hardware languages description (VHDL, Verelog) –
Based on the Fixed point simulations• Test bench implementation – load the VHDL codes into
FPGA board• Chip set oriented design – considering power, occupied
space, delay time…• Chip set implementation - semiconductor
![Page 12: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/12.jpg)
12
Chip set
![Page 13: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/13.jpg)
13
The goals for simulations
• Make further understanding of the theories– Example: what is frequency selective coding
• Explore the mechanisms hidden in the systems– If you find out some performance cannot be explained,
the new findings might be waiting for you• Evaluate whether your new algorithm is
practical– Hardware cost, complexity…
![Page 14: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/14.jpg)
14
Problems for simulations
• Does my module reflect the real world?– The hardware board– Real communication environment
• How to evaluate my simulation results• How to speed up my simulations• How to clearly represent my simulation
resultsThese question will be answered during this lecture.It will be learned through the following three exercises
![Page 15: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/15.jpg)
15
Some Simulation techniques for hardware design
• How to perform fixed point simulation and floating point simulations
• How to make the accurate and correct fixed point simulations
• How to speed up simulations• How to combine C language in MATLAB
simulation platform
![Page 16: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/16.jpg)
16
1. Build a 16QAM system that reflecting the hardware implementation
• How to simulate the continues signals using sampled signals
• How to design the Matched filters that fulfill Nyquist conditions
• How to add the noise signals when the SNR, sampling rate, modulation level are defined
• How to simulation Eye diagram• How to evaluate the BER, Symbol error rate
(theory and simulations)
The exercise will be done during the lecture time ,The exercise results need to be returned – home work 1
![Page 17: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/17.jpg)
17
2. Characteristics of Multipath channel and Equalizer design
• Simulation of multipath delay channels with different delay taps
• Impact of multipath delay to time domain signals of wireless communications systems
• Impact of multipath delay to frequency domain response of wireless communications systems
• Impact of fixed point simulation to the system performance
The exercise will be done during the lecture time
![Page 18: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/18.jpg)
18
3. Key problems in OFDM communication systems
• Principle simulations of OFDM• Peak Power to average power ratio analysis• Symbol synchronization of OFDM symbols• Model of carrier frequency error and its impact
to the OFDM signals• Model of sampling frequency error and its
impact to the OFDM signals• Impact of Mulptpath delay to the OFDM
systems• Impact of fixed point simulation to the system
performanceThe exercise will be done during the lecture time The exercise results need to be returned - home work 2
![Page 19: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/19.jpg)
19
4. Fixed point simulations-- Option 1
• Key techniques for OFDM systems– Carrier frequency error estimation scheme– Sampling clock frequency error estimation scheme
• Fixed point simulations: how to decide the number of bit for each variables– Make the fixed point simulation platform– Accuracy of the Carrier frequency error and Sampling
clock frequency error estimation with respect to different number of bit for each variable
The exercise will be done during the lecture timeThe exercise results need to be returned – home work 3
![Page 20: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/20.jpg)
20
Requirement for home worksWrite the simulation report
– The goal of simulation– Simulation environment and block diagram– Simulation codes (copy the codes at the end of the
report, clear explanation of the codes is needed)– Simulation results given by figures– Discussions of the simulation results
Three reports should be given.
Note: 1. Send your three reports to my email at the same time2. The subject of the email is “TKK course”3. The deadline of submission: May 2 2008
![Page 21: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/21.jpg)
21
Contact information
• Yuping Zhao, School of electronics engineering and computer science, Peking University, Beijing 100871, China
• Email: [email protected]• Office in HUT: 0takari 5A, I-434, (phone:
09 451 2355)• Office hour: Tuesday 14:00 – 18:00 (from
27 March to 18 April)
![Page 22: Lecture 1: Introduction on simulation of … Introduction.pdfLecture 1: Introduction on simulation of communication systems March 28 – April 19 2008 Yuping Zhao (Doctor of Science](https://reader036.fdocuments.us/reader036/viewer/2022063015/5fd406123c82b15b083fcd00/html5/thumbnails/22.jpg)
22