introduction to the practical afternoon courses on dsp
TRANSCRIPT
![Page 1: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/1.jpg)
Introduction to the practicalafternoon courses on DSP/FPGA designs
CAS 2007-DSP
Hermann Schmickler (CERN)
![Page 2: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/2.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
contents
• What do we want to achieve with the courses• Boundary conditions• Original options• The physics case: PLL betatron tune tracking• Translation into the lab setup
![Page 3: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/3.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
• Familiarization with DSP and FPGA design during 8 hours
• Every student does within 16 hours (7 afternoons)8 hours DSP and 8 hours FPGA designs
• No chance to learn the syntax of any detailed design tool
• Very different starting points of individual students
•Choice: 25 DSP workstations (PC plus evaluation board) + 25 FPGA workstations (PC plus evaluation board) +MATLAB/Simulink as high level graphical design environment
![Page 4: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/4.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
![Page 5: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/5.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
The DSP master:
Maria-Elena Angoletta (CERN)
Room A
The FPGA masterJavier Serrano (CERN)
Room B
![Page 6: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/6.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
![Page 7: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/7.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
What possibilities for the lab?
• Hands on: Real physical input/output• Codec of DSP/FPGA cards• Loudspeakers/headphones: no!
No synthesizers, audio filters, speech recognition…
• Large synchrotrons (LEP, RHIC, HERA, LHC) have betatron tune within audio-bandwidth
• Decision to take as subject for the labsbetatron tune diagnostics
![Page 8: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/8.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
The virtual accelerator (one plane only)
![Page 9: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/9.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Measurement of Q (betatron tune)
• Q – the eigenfrequency of betatron oscillations in a circular machine→ One of the key parameters of machine operation
• Many measurement methods available:→ different beam excitations→ different observations of resulting beam oscillation→ different data treatment
QFQF QF
QDQD
SFSF
SF SD SD
Characteristic Frequencyof the Magnet Lattice
Produced by the strength of theQuadrupole magnets
![Page 10: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/10.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Principle of any Q-measurement
Beam
Excitation Source forTransverse beam
Oscillations- stripline kickers- pulsed magnets
Excitation Source forTransverse beam
Oscillations- stripline kickers- pulsed magnets
Observation ofTransverse beam
Oscillations- E.M. pickup
- resonant BPM- others
Observation ofTransverse beam
Oscillations- E.M. pickup
- resonant BPM- others
G(ω) H(ω)BTF:= H(ω)/G(ω)
Measurement of betatron tune Q:Maximum of BTF
![Page 11: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/11.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Simple example: FFT analysis
G(ω) == flat(i.e. excite all frequencies)
Made with random noise kicks
Measure beam position over many consecutives turns
apply FFT → H(ω)
BTF = H(ω)
![Page 12: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/12.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Network Analysis1. Excite beams with a
sinusoidal carrier
2. Measure beam response
3. Sweep excitation frequency slowly through beam response
![Page 13: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/13.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Time Resolved Measurements• To follow betatron tunes during machine transitions we
need time resolved measurements. Simplest example:→ repeated FFT spectra as before (spectrograms)
![Page 14: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/14.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Principle of PLL tune measurements
Beam
VCOVoltage controlled
oscillator
A sin(ωt)
BPM
B sin(ωt+ϕ)
Phase detectorAB sin(2 ωt +ϕ)cos(ϕ)
LowpassFrequency control:
ABcos(ϕ)
Read VCOFrequency=
tune!At regular
Time intervals
This PLL system looks to the 90 deg. point of the BTF
![Page 15: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/15.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Illustration of PLL tune tracking
A
qΦ
q
PLL will lockon 900 point of BTF;
![Page 16: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/16.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Example of PLL tune measurement
In this case continuous tune tracking was used whilst crossing the horizontal and vertical tunes with a power converter ramp.
Closest tune approach is a measure of coupling
qh
qv
qh -qv
![Page 17: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/17.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Sequence of the exercises• 11 detailed exercises: printed booklet• Objectives from
- familiarization with the setup- measurement of BTF- NCO design- phase detection- closure of the PLL- amplitude regulation
• All exercises (designs) ready and tested• Minimum expectation: students load ready designs and
understand them• Maximum expectation: students find the bugs in our
designs and correct them
![Page 18: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/18.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Lab setup
![Page 19: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/19.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Example: Exercise 2« Measure BTF using the evaluation board »
![Page 20: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/20.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Lab setupUse PC as oscilloscope
and signal generator
![Page 21: Introduction to the practical afternoon courses on DSP](https://reader033.vdocument.in/reader033/viewer/2022042417/625f5894b1ec5f286409fd07/html5/thumbnails/21.jpg)
Beam DiagnosticsCAS 2007-DSP Hermann Schmickler (CERN – AB-CO)
Practical instructions:
• No drinks/food/cigarettes in the labs please• Get together in teams of two:
Recommended: similar level of competence• Labs are open in the evening: Everybody is invited
to come back to his working place after dinner in order to play a little with the setup
• Now: define 48 + 48 students forFPGA/DSP courses