A circuit for generating a clock signal which is frequency aligned with a
reference clock signal is disclosed. The circuit comprises a phase
detector coupled to receive the reference clock signal and the generated
clock signal. A frequency alignment circuit generates an average
frequency alignment signal based upon comparison of the phase of a
generated pulse train and the phase of a reference pulse train. Finally,
an oscillator control circuit is selectively coupled to receive an output
of the phase detector based upon the frequency alignment signal from the
frequency alignment circuit. The oscillator control circuit generating an
oscillator control signal for controlling the frequency of the generated
clock signal. A method of generating a clock signal which is frequency
aligned with a reference clock signal is also disclosed.