DS3106
17
gradually decays in the absence of events. When events occur infrequently, the accumulator value decays fully
between e vents and no alarm is declared. W hen events oc cur close enough tog ether, the accum ulator increm ents
faster than it can decay and eventually reaches the alarm threshold. After an alarm has been declared, if events
occur infrequently enough, the accumulator can decay faster than it is incremented and eventually reaches the
alarm clear threshold. The leaky bucket events come from the frequency range and fast activity monitors.
There is one leaky bucket configuration common to both inputs that has programmable size, alarm declare
threshold, alarm clear threshold, and decay rate, all of which are specified in the LB0x registers.
Activit y monitorin g is divi ded into 1 28m s intervals. T he ac cum ulator is incr em ented once f or each 128m s inter val in
which the input clock is inactive for more than two cycles (more than four cycles for 125MHz, 62.5MHz, 25MHz,
and 10MHz input clocks). Thus, the “fill” rate of the bucket is at most 1 unit per 128ms, or approximately 8
units/second. During each period of 1, 2, 4, or 8 intervals (programmable), the accumulator decrements if no
irregularities occur. Thus, the “leak” rate of the bucket is approximately 8, 4, 2, or 1 units/second. A leak is
prevented when a fill event occurs in the same interval.
W hen the value of an ac cu mulator r eaches the al ar m threshold ( LB0U register), the c orr es pond ing AC T alar m bit is
set to 1 in the ISR2 register, and the clock is marked invalid in the VALSR1 register. When the value of an
accumulator reaches the alarm clear threshold (LB0L register), the activity alarm is cleared by clearing the c lock’s
ACT bit. The accumulator cannot increment past the size of the bucket specified in the LB0S register. The decay
rate of the accumulator is specified in the LB0D register. The values stored in the leaky bucket configuration
registers must have the following relationship at all times: LB0S ≥ LB0U > LB0L.
When the leaky bucket is empty, the minimum time to declare an activity alarm in seconds is LB0U / 8. The
minim um time to c lear an a ctivity alar m in sec onds is 2^LB 0D × (LB0S – LB 0L) / 8. As an exam ple, assum e LB0U
= 8, LB0L = 1, LB0S = 10, and LB 0D = 0. The minimum time to declare an acti vity alarm would be 8 / 8 = 1 second.
The minimum time to clear the activity alarm would be 2^0 × (10 – 1) / 8 = 1.125 seconds.
7.5.3
Sele ct ed Re ference Acti vity Monitoring
The input clock that T0 DPLL is currently locked to is called the selected reference. The quality of a DPLL’s
selected reference is exceedingly important, since missing cycles and other anomalies on the selected reference
can cause unwanted jitter, wander, or frequency offset on the output clocks. When anomalies occur on the selected
referenc e, they must be detec ted as soon as possi ble to give the DPLL op portunity to tem porarily disconnec t from
the reference until the reference is available again. By design, the regular input clock activity monitor (Section
7.5.2) is too s low to be suit able for monitorin g the selected ref erence. Instea d, each DPLL has its o wn fast activit y
monitor that detects that the frequency is within range (approximately 10,000ppm) and detects inactivity within
approximately two missing reference clock cycles (approximately four missing cycles for 125MHz, 62.5MHz,
25MHz, and 10MHz references ) .
When the T0 DPLL detects a no-activity event, it immediately enters mini-holdover mode to isolate itself from the
selected reference and sets the SRFAIL latched status bit in MSR2. The setting of the SRFAIL bit can cause an
interrupt request if the corresponding enable bit is set in IER2. If MCR10:SRFPIN = 1, the SRFAIL output pin
follows th e stat e of th e SRFAIL s ta tus b it. When PHLIM1:N ALOL = 0 (def au lt), th e T 0 DPLL d oes no t declar e loss -
of-lock during no-act ivity events. If the s elected ref eren ce becom es available aga in bef ore an y alarm s are declar ed
by the activity monitor, the T0 DPLL continues to track the selected reference using nearest edge locking (±180°)
to avoid cycle slips. When NALOL = 1, the T0 DPLL declares loss-of-lock during no-activity events. This causes the
T0 DPLL state machine to transition to the loss-of-lock state, which sets the MSR2:STATE bit and causes an
interrupt request if enabled. If the selected reference becomes available again before any alarms are declared by
the activity monitor, the T0 DPLL tr acks the selecte d reference using phase/f requency locking ( ±360°) until phase
lock is reestablished.