Wemmu 001
Wemmu 001
Wemmu 001
WEMMU001
INTRODUCTION
In a synchrotron, different modes of coherent longitudinal beam oscillations may occur due to an initial mismatch
or to non-linearities such as wake fields. These oscillations are characterized by their mode number m and n [4]
and take place at the characteristic synchrotron frequency,
which depends on the system state (more precisely, on the
magnetic flux derivative, accelerating voltage, and particle
energy). In order to eliminate undesired dipole oscillations,
a beam phase control system [5] has been devised, which
was initially designed to deal with in-phase dipole oscillations (m = 1, n = 0) only [5]. The addition of amplitude detectors is intended to make it suitable for damping
higher-order modes [4, 6].
This paper presents a new floating-point based architecture designed to improve both the precision and processing
speed of the digital controller over previous implementations [2, 11]. The floating-point arithmetic units are used
to overcome issues with explosive divergence and stalling
effects caused by fixed-point implementations [8]. Such
problems may arise due to input or output signal saturation caused by changes in the dynamic signal range at runtime. Using a floating-point representation eliminates the
need for input and output scaling that would have to be
The
Hardware
BPi
A
D
Analog
Pre
processing
A
D
GVi
COR MB
DIC
PB
PA
COR
DIC
Band
pass
Filter
Inte
grator
Band
pass
Filter
Ampli
fier
D
A
683
c 2011 by the respective authors cc Creative Commons Attribution 3.0 (CC BY 3.0)
Copyright
PHASE-MAGNITUDE COMPUTATION
Architecture for Phase-Magnitude Computing
The phase and magnitude of the beam signal are detected by using a CORDIC (COordinate Rotation DIgital Computer) algorithm. The drawback of a conventional
CORDIC algorithm is its high computation latency [7]. To
accelerate the computation, an increment of rotation angle
on each iteration becomes one solution. A double-rotation
CORDIC algorithm is proposed as depicted in Alg. 1. In
the double-rotation CORDIC algorithm, the rotation angle
is extended two times (2) of the conventional CORDIC.
Algorithm 1 MICRO-DRCORDIC-VM
c 2011 by the respective authors cc Creative Commons Attribution 3.0 (CC BY 3.0)
Copyright
Input: : Xi , Yi , Zi , T , i
Output: : X, Y , Z, i+1
X = Xi 22i2 Xi i 2i Yi
Y = Yi 22i2 Yi + i 2i Xi
Z = Zi i 2 T
The double-rotation CORDIC algorithm using the redundant method was proposed by Takagi et al. [13]. With
the redundant method, the rotation direction of the doublerotation CORDIC algorithm is i {1, 0, 1}. However,
using the redundant method, the scaling factor is not constant and has to be calculated at run-time. To overcome
this problem, we propose the double-rotation CORDIC algorithm as presented in Alg. 2 using the non-redundant
method and with a constant scaling factor. Thereby, the online computation problem [1], as well as the scaling problem are also eliminated.
0
(1)
YN =
Y0
ZN
arctan
X0
Algorithm 2 DRCORDIC-VM
Input: : Xin , Yin , N, LT AN, K 1
dr
Output: : Xout , Zout
X0 =Xin , Y0 =Yin , Zin =0, 0 =1 {Initialization}
if Y0 0 then
0 =1;
else
0 =-1;
end if
for i = 1toN do
[X, Y , Z]=MICRO-DRCORDIC-VM(Xo , Yo , Zo , T LU T (i), i )
if Y 0 then
i+1 =1;
else
i+1 =-1;
end if
X0 = X
Y0 = Y
Z0 = Z
end for
1
Xout = X Kdr ; Zout =Z
684
and
maximum and minimum rotation angle
N the 1
(2i1 ) is in the range of [-0.9885,+0.9885].
i=1 2tan
Alg. 3 shows the computation of the beam phase and
magnitude based on online measurements of the gain voltages GVi and beam position BPi signals [2], which is
illustrated in Fig. 1. The beam phase difference signal
(P hase) is obtained from the difference between the
phase detection signals PA and PB of the gap voltages GVi
and beam positions BPi signals, respectively.
Algorithm 3 BEAM Phase and Magnitude
Input: : GV1 ,GV2 ,GV3 ,GV4 ,BP1 ,BP2 ,BP3 ,BP4
Output: : M,
Q1A = GV1 ; I1A = GV2 ; Q2A = GV3 ; I2A = GV4
Q1B = BP1 ; I1B = BP2 ; Q2B = BP3 ; I2B = BP4
XA = Q1A Q2A
YA = I1A I2A
1
[MA , PA ]=DRCORDIC-VM(XA , YA , N , T LUT ,Kdr
)
XB = Q1B Q2B
YB = I1B I2B
1
[MB , PB ]=DRCORDIC-VM(XB , YB , N , T LUT ,Kdr
)
M = MB
=PA PB
M2
SR
yi
M1
M2
SR
SR
zi
M1
tani
inv
SR
Dpath1
Sub
Sub
Sub
Dpath2
inv
m
inv
Add/Sub
Add
xo
yo
Dpath3
zo
MAPE of mag.%
MAPE of phase %
WEMMU001
x 10
Doublerotation
Conventional
4
2
0
10
11
12
13
Iterations
14
0.4
15
16
Doublerotation
Conventional
0.3
0.2
0.1
0
10
11
12
13
Iterations
14
15
16
Hardware
Hardware
x(k)
j
Control
Unit
xkj
wj
Mult
Add
y(k)
e(k)
Subs
y(k)
d(k)
x(k1)
x(k2)
x(k3)
x(k4)
.........
x(kj)
.........
x(k61)
x(k62)
x(k63)
x(k64)
Filter block
685
c 2011 by the respective authors cc Creative Commons Attribution 3.0 (CC BY 3.0)
Copyright
The simulation result of the double-rotation CORDIC algorithm for the beam phase signal detection is depicted in
Fig. 4. The figure presents the beam input signal, the reference signal and the the output of the phase detector. The
output of the beam phase detector (beam phase signal) is
interfered with noisy signal. Therefore, the noise signal
should be filtered to acquire the noise-free beam phase signal. The filtering issue is described in the next section.
Filter Architecture
FPMAC0
n cof
1
s ms
s=1 | cs |, where n is the number of measurements,
n
cs is the CORDIC output and ms is the ideal output.
The figure shows that the double-rotation technique gives
better accuracy with the same number of iterations. In
other words, for the same MAPE value, the double-rotation
CORDIC requires less interations.
WEMMU001
WEMMU001
ACKNOWLEDGEMENTS
The author would like to thank German Federal Ministry of Education and Research (Bundesministerium fur
Bildung and Forschung) for supporting the work in the
framework of Project FAIR (Facility for Antiproton and Ion
Research), Grant Number 06DA9028I.
REFERENCES
c 2011 by the respective authors cc Creative Commons Attribution 3.0 (CC BY 3.0)
Copyright
686
Hardware