# US 2004/0070432 A1 · High speed digital phase/frequency comparator for phase locked loops

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0070432 A1
- Document ID: US20040070432A1
- Status: Published application
- Kind: A1
- Application number: 10/625,386
- Filed: 2003-07-23
- Published: 2004-04-15
- Earliest claimed: 2002-08-20
- Assignees: Seagate Technology LLC
- Inventors: Sundeep Chauhan
- Web page: https://patentgrep.com/patent/US20040070432A1

## CPC

- H03L 7/0994: {comprising an accumulator}
- H03D 13/003: {in which both oscillations are converted by logic means into pulses which are applied to filtering or integrating means}
- H03L 7/091: the phase or frequency detector using a sampling device (H03L7/087 takes precedence)
- H03L 2207/50: All digital phase-locked loop
- H03L: AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES (generation of oscillations H03B)
- H03D: DEMODULATION OR TRANSFERENCE OF MODULATION FROM ONE CARRIER TO ANOTHER (masers, lasers H01S; circuits capable of acting both as modulator and demodulator H03C; details applicable to both modulators and frequency-changers H03C; demodulating pulses H03K9/00; transforming types of pulse modulation H03K11/00; coding, decoding or code conversion, in general H03M; repeater stations H04B7/14; demodulators adapted for AC systems of digital information transmission H04L27/00; synchronous demodulators adapted for colour television H04N9/66)

## Abstract

An apparatus and method for detecting a phase difference between an input signal and a reference signal in an all-digital phase locked loop (PLL) are provided. In a preferred embodiment, an N-stage tapped delay line and N-bit parallel latch are used to create a snapshot of the the input signal by latching the output of the tapped delay line using the reference signal to clock the latch. An edge detector and encoder circuit translate the latched snapshot into a numerical phase difference value. A difference between this phase difference value and a desired phase difference is calculated and then added to an accumulator. The result in the accumulator is a numerical phase error value that can be fed to a numerically controlled oscillator (NCO). The output of the NCO can, in turn, be fed back into the phase/frequency comparator as the input signal, thus forming a fully-digital PLL.

## Claims

### Claim 1

A phase/frequency comparator apparatus comprising:
a phase detecting stage that generates a result that represents an instantaneous phase difference; and
encoding circuitry coupled to the phase detecting stage;
wherein the encoding circuitry converts a result of the phase detecting stage into a numerical phase difference value.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the phase detecting stage further comprises:
a tapped delay line having a plurality of outputs and configured to receive a first signal; and
a parallel latch coupled to the plurality of outputs of the tapped delay line and configured to receive a second signal,
wherein the parallel latch stores the values of the plurality of outputs of the tapped delay line in response to a transition in the second signal; and
wherein the encoding circuitry converts the values stored in the parallel latch into a numerical phase difference value

### Claim 3 (depends on 2)

The apparatus of claim 2, further comprising:
an accumulator coupled to the encoding circuitry,
wherein the accumulator adds the numerical phase difference value to a value stored in the accumulator to obtain an accumulated phase error.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the encoding circuitry includes:
an edge detector coupled to the parallel latch; and
a weighted encoder,
wherein the edge detector outputs a transition location signal that indicates a location of a transition in the values stored in the parallel latch; and
wherein the weighted encoder outputs a weighted numerical value that corresponds to the transition location signal.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the encoding circuitry includes:
a phase difference calculator configured to receive a lockpoint input,
wherein the phase difference calculator calculates a signed difference between the weighted numerical value and the lockpoint input; and
wherein the signed difference is presented to the accumulator as the numerical phase difference value.

### Claim 6 (depends on 4)

The apparatus of claim 4, wherein the weighted numerical value is presented to the accumulator as the numerical phase difference value.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the controlled oscillator is a numerically controlled oscillator.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the apparatus is fabricated on a single monolithic integrated circuit.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the apparatus is implemented in a field-programmable gate array on the single monolithic integrated circuit.

### Claim 10

A phase locked loop comprising:
a controlled oscillator; and
a phase/frequency comparator coupled to the controlled oscillator such that an output of the controlled oscillator is connected in a feedback loop to an input of the phase/frequency comparator and an output of the phase/frequency comparator is connected through a forward path to a control input of the controlled oscillator,
wherein the phase/frequency comparator includes:
a phase detecting stage that generates a result that represents an instantaneous phase difference; and
encoding circuitry coupled to the phase detecting stage;
wherein the encoding circuitry converts a result of the phase detecting stage into a numerical phase difference value.

### Claim 11 (depends on 10)

The phase locked loop of claim 10, wherein the phase detecting stage further comprises:
a tapped delay line having a plurality of outputs and configured to receive a first signal; and
a parallel latch coupled to the plurality of outputs of the tapped delay line and configured to receive a second signal,
wherein the parallel latch stores the values of the plurality of outputs of the tapped delay line in response to a transition in the second signal; and
wherein the encoding circuitry converts the values stored in the parallel latch into a numerical phase difference value

### Claim 12 (depends on 11)

The phase locked loop of claim 11, further comprising:
an accumulator coupled to the encoding circuitry,
wherein the accumulator adds the numerical phase difference value to a value stored in the accumulator to obtain an accumulated phase error.

### Claim 13 (depends on 12)

The phase locked loop of claim 12, wherein the encoding circuitry includes:
an edge detector coupled to the parallel latch; and
a weighted encoder,
wherein the edge detector outputs a transition location signal that indicates a location of a transition in the values stored in the parallel latch; and
wherein the weighted encoder outputs a weighted numerical value that corresponds to the transition location signal.

### Claim 14 (depends on 13)

The phase locked loop of claim 13, wherein the encoding circuitry includes:
a phase difference calculator configured to receive a lockpoint input,
wherein the phase difference calculator calculates a signed difference between the weighted numerical value and the lockpoint input; and
wherein the signed difference is presented to the accumulator as the numerical phase difference value.

### Claim 15 (depends on 13)

The phase locked loop of claim 13, wherein the weighted numerical value is presented to the accumulator as the numerical phase difference value.

### Claim 16 (depends on 10)

The phase locked loop of claim 10, wherein the forward path includes additional control circuitry.

### Claim 17 (depends on 10)

The phase locked loop of claim 10, wherein the controlled oscillator is a numerically controlled oscillator.

### Claim 18 (depends on 10)

The phase locked loop of claim 10, wherein the phase locked loop is fabricated on a single monolithic integrated circuit.

### Claim 19 (depends on 18)

The phase locked loop of claim 18, wherein the phase locked loop is implemented in a field-programmable gate array on the single monolithic integrated circuit.

### Claim 20

A method comprising:
generating a snapshot of a first signal in response to receiving a second signal; and
mapping the snapshot to a numerical phase difference value.

### Claim 21 (depends on 20)

The method of claim 20, further comprising:
combining the numerical phase difference value with a value in an accumulator to obtain a new accumulator value; and
presenting the new accumulator value as a result of a phase comparison.

### Claim 22 (depends on 21)

The method of claim 21, further comprising:
propagating the first signal through a tapped delay line;
latching outputs of the tapped delay line in a parallel latch in response to a transition in the second signal to obtain the snapshot of the first signal;

### Claim 23 (depends on 20)

The method of claim 20, further comprising:
detecting a location of an edge in the snapshot of the first signal; and
mapping the location into a weighted numerical value.

### Claim 24 (depends on 23)

The method of claim 23, further comprising:
comparing the weighted numerical value with a desired phase difference; and
presenting a difference between the weighted numerical value and the desired phase difference as the numerical phase difference value.

### Claim 25 (depends on 20)

The method of claim 20, further comprising:
controlling an output frequency of an oscillator using the result of the phase comparison.

### Claim 26 (depends on 25)

The method of claim 25, wherein one of the first signal and the second signal is an output of the oscillator.
