Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit
Commits
d2eb5d04
Commit
d2eb5d04
authored
May 23, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calibration: 1-pps skew measurement for IEEE guys
parent
391af199
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
106 additions
and
1 deletion
+106
-1
appendix.tex
documents/calibration/appendix.tex
+105
-0
wrcalib.tex
documents/calibration/wrcalib.tex
+1
-1
calibration_pps_delay.pdf
figures/calibration/calibration_pps_delay.pdf
+0
-0
wr_devices_pps_delay.pdf
figures/calibration/wr_devices_pps_delay.pdf
+0
-0
No files found.
documents/calibration/appendix.tex
View file @
d2eb5d04
...
...
@@ -330,3 +330,108 @@ that the actual hardware asymmetry is reduced only partially. The remaining,
uncompensated part equals the asymmetry of the primary calibrator
\emph
{
C1
}
, so
that the new calibrator
\emph
{
C2
}
behaves for all practical purposes as the old
calibrator
\emph
{
C1
}
.
\subsection
{
1-PPS skew measurement
}
Reading proposed calibration procedure one can start wondering what is the
influence of 1-PPS propagation time - from the inside of FPGA to the physical
connector - on the 1-PPS skew measurement.
Let's consider one more time two WR Devices (
\emph
{
D1
}
,
\emph
{
D2
}
) being
calibrated to the calibrator
\emph
{
C
}
. This time we take into account the 1-PPS
propagation delay from the inside of FPGA to the physical connector where we take
it for skew measurement (figure
\ref
{
fig:ppsdel:calibration
}
). Those delays are
marked
$
\tau
_
C
$
,
$
\tau
_
1
$
,
$
\tau
_
2
$
for the calibrator, device under calibration
1 and device under calibration 2.
\begin{figure}
[ht]
\begin{center}
\includegraphics
[width=\textwidth]
{
calibration/calibration
_
pps
_
delay.pdf
}
\caption
{
Calibration with 1-PPS delays taken into account
}
\label
{
fig:ppsdel:calibration
}
\end{center}
\end{figure}
Therefore e.g. 1-PPS signal generated inside the FPGA of the WR Calibrator at
time
$
t
_{
CPPS
}$
is observed on the oscilloscope at time
$
t
_{
CPPS
}
+
\tau
_
C
$
.
Taking this into account, our skew measured in section
\ref
{
subsec:devices
}
can
be expanded as:
\begin{align}
skew'
_{
1C
}
&
= (t
_{
1PPS
}
+
\tau
_
1) - (t
_{
CPPS
}
+
\tau
_
C)
\nonumber\\
&
= (t
_{
1PPS
}
- t
_{
CPPS
}
) + (
\tau
_
1 -
\tau
_
C)
\nonumber\\
&
= skew
_{
1C
}
+ (
\tau
_
1 -
\tau
_
C)
\end{align}
According to the calibration procedure we apply the measured skew (in our case
$
skew'
_{
1
C
}$
) as an asymmetry factor (
$
\beta
_{
C
1
}$
in section
\ref
{
subsec:apx:devices
}
) to calculate fixed hardware delays
$
\Delta
_{
TX
}$
,
$
\Delta
_{
RX
}$
for the device under calibration. Thus, our
asymmetry factor also contains the difference in 1-PPS propagation times:
\begin{equation}
\beta
'
_{
C1
}
=
\beta
_{
C1
}
+ (
\tau
_
1 -
\tau
_
C)
\end{equation}
As a consequence, fixed transmission and reception delays for device
$
D
_
1
$
calculated from the coarse delay and asymmetry factor
$
\beta
'
_{
C
1
}$
will also
contain 1-PPS propagation times:
\begin{align}
\Delta
'
_{
TX1
}
&
=
\frac
{
1
}{
2
}
\Delta
_
1 -
\beta
'
_{
C1
}
=
\frac
{
1
}{
2
}
\Delta
_
1 -
\beta
_{
C1
}
- (
\tau
_
1 -
\tau
_
C) =
\Delta
_{
TX1
}
- (
\tau
_
1 -
\tau
_
C)
\\
\Delta
'
_{
RX1
}
&
=
\frac
{
1
}{
2
}
\Delta
_
1 +
\beta
'
_{
C1
}
=
\frac
{
1
}{
2
}
\Delta
_
1 +
\beta
_{
C1
}
+ (
\tau
_
1 -
\tau
_
C) =
\Delta
_{
RX1
}
+ (
\tau
_
1 -
\tau
_
C)
\end{align}
By analogy we get the same result for device
$
D
_
2
$
calibration:
\begin{align}
\Delta
'
_{
TX2
}
&
=
\frac
{
1
}{
2
}
\Delta
_
2 -
\beta
'
_{
C2
}
=
\frac
{
1
}{
2
}
\Delta
_
2 -
\beta
_{
C2
}
- (
\tau
_
2 -
\tau
_
C) =
\Delta
_{
TX2
}
- (
\tau
_
2 -
\tau
_
C)
\\
\Delta
'
_{
RX2
}
&
=
\frac
{
1
}{
2
}
\Delta
_
2 +
\beta
'
_{
C2
}
=
\frac
{
1
}{
2
}
\Delta
_
2 +
\beta
_{
C2
}
+ (
\tau
_
2 -
\tau
_
C) =
\Delta
_{
RX2
}
+ (
\tau
_
2 -
\tau
_
C)
\end{align}
We can see that after performing the calibration procedure, both of these
devices have their fixed hardware delays distorted by the difference in 1-PPS
propagation delay of the device and the calibrator.
\begin{figure}
[ht]
\begin{center}
\includegraphics
[width=.5\textwidth]
{
calibration/wr
_
devices
_
pps
_
delay.pdf
}
\caption
{
Synchronization of WR Devices calibrated to the same calibrator
}
\label
{
fig:ppsdel:sync
}
\end{center}
\end{figure}
When we connect two devices together and let them synchronize (figure
\ref
{
fig:ppsdel:sync
}
), the propagation delay of calibrator's PPS signal gets
canceled in the one-way delay calculation:
\begin{align}
delay'
_{
MS
}
&
=
\delta
_{
MS
}
+
\Delta
'
_{
TX1
}
+
\Delta
'
_{
RX2
}
=
\delta
_{
MS
}
+
(
\Delta
_{
TX1
}
-
\tau
_
1 +
\tau
_
C) + (
\Delta
_{
RX2
}
+
\tau
_
2 -
\tau
_
C)
\\
delay'
_{
MS
}
&
= delay
_{
MS
}
+ (
\tau
_
2 -
\tau
_
1)
\end{align}
Now, the one-way delay is distorted only by the difference between
$
D
_
2
$
and
$
D
_
1
$
1-PPS propagation delays. Having in mind the formula for a
correction factor applied on the Slave side (
$
corr
_{
ideal
}$
in section
\ref
{
subsec:apx:devices
}
) we can see that in our case the distortion of
$
delay
_{
MS
}$
directly affects
$
corr
_{
ideal
}$
as well:
\begin{equation}
corr = corr
_{
ideal
}
+ (
\tau
_
2 -
\tau
_
1)
\end{equation}
The change in the
$
corr
$
value shifts the timescale of the slave device ahead by
$
(
\tau
_
2
-
\tau
_
1
)
$
so for this connection every 1-PPS pulse from
$
D
_
2
$
is
generated earlier than it should be in the ideal case:
\begin{equation}
t'
_{
2PPS
}
= t
_{
2PPS
}
- (
\tau
_
2 -
\tau
_
1)
\end{equation}
$
skew'
_{
12
}$
between
$
D
_
1
$
and
$
D
_
2
$
measured with the oscilloscope is:
\begin{align}
skew'
_{
21
}
&
= (t'
_{
2PPS
}
+
\tau
_
2) - (t
_{
1PPS
}
+
\tau
_
1) = t
_{
2PPS
}
-
\tau
_
2 +
\tau
_
1 +
\tau
_
2 - t
_{
1PPS
}
-
\tau
_
1
\\
skew'
_{
21
}
&
= t
_{
2PPS
}
- t
_{
1PPS
}
\end{align}
This shows that the difference between 1-PPS propagation delays causes Slave
device to have its internal time shifted to compensate for this difference when
two devices (calibrated earlier to the same calibrator) are connected together.
Therefore when these devices are synchronized, their 1-PPS signals will be
aligned and the difference in their propagation times is properly compensated.
1-PPS socket is our calibration reference plane. One can move the reference
plane to any other point, also to the inside of the FPGA. However, this requires
the knowledge of precise 1-PPS delay value to be taken into account in the PPS
skew measurements.
documents/calibration/wrcalib.tex
View file @
d2eb5d04
...
...
@@ -53,7 +53,7 @@
\begin{document}
\title
{
White Rabbit calibration procedure
\\
[0.5cm]
\large
{
version 1.
0
}}
\large
{
version 1.
1
}}
\author
{
Grzegorz Daniluk
\\
CERN BE-CO-HT
}
\maketitle
...
...
figures/calibration/calibration_pps_delay.pdf
0 → 100755
View file @
d2eb5d04
File added
figures/calibration/wr_devices_pps_delay.pdf
0 → 100755
View file @
d2eb5d04
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment