Phase locked loop (PLL) is an important component in communication. Nowadays, all-digital PLL (ADPLL) has been researched and developed to replace analog PLL because ADPLL is free from large analog loop filters and passive elements. Time-to-digital converter (TDC) in ADPLL replaces phase detector and charge pump, and functions to detect phase difference between a control signal of ADPLL and a reference clock signal. TDC is often used in high-speed communication systems and affects the resolution of APDLL and noise performance.
The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other features and advantages of the disclosure will be apparent from the description, drawings and claims.
Like reference symbols in the various drawings indicate like elements.
Embodiments, or examples, of the disclosure illustrated in the drawings are now described using specific language. It will nevertheless be understood that no limitation of the scope of the disclosure is thereby intended. Any alterations and modifications in the described embodiments, and any further applications of principles described in this document are contemplated as would normally occur to one of ordinary skill in the art to which the disclosure relates. Reference numerals may be repeated throughout the embodiments, but this does not necessarily require that feature(s) of one embodiment apply to another embodiment, even if they share the same reference numeral. It will be understood that when an element is referred to as being “connected to” or “coupled with” another element, it may be directly connected to or coupled to the other element, or intervening elements may be present.
In the below description, a signal is asserted with a high logical value to activate a corresponding device when the device is active high. In contrast, the signal is deasserted with a low logical value to deactivate the corresponding device. When the device is active low, however, the signal is asserted with a low logical value to activate the device, and is deasserted with a high logical value to deactivate the device.
Masking circuit 12 generates a mask signal PASS_OUT in response to reference signal FREF, controlled signal CKV and a command signal FCW. FCW refers to a frequency command word, which is obtained by dividing the frequency of controlled signal CKV by the frequency of reference signal FREF, as expressed in an equation below.
Effectively, the desired frequency of controlled signal CKV is an FCW multiple of the frequency of reference signal FREF. In some embodiments, in case the frequency of controlled signal CKV is not divisible by the frequency of reference signal FREF and thus FCW has a decimal, FCW is rounded off to an integer or rounded up to a nearest integer. Masking circuit 12 will be further discussed later with reference to
Decision circuit 15 generates a gate signal CKV_G as an output in response to mask signal PASS_OUT and controlled signal CKV. In some embodiments, decision circuit 15 includes a logical AND gate. Gate signal CKV_G is a portion, but not all, of controlled signal CKV in one period of reference signal FREF. Gate signal CKV_G is composed of an amount of CKV pulses sufficient for detection of phase difference in TDC core 11. In some embodiments, gate signal CKV_G is composed of one or two CKV pulses in one FREF period. Gate signal CKV_G will be further discussed later with reference to
TDC core 11 receives reference signal FREF as it is applied to masking circuit 12, and receives gate signal CKV_G from decision circuit 15. TDC core 11 determines a phase difference between the received reference signal FREF and gate signal CKV_G, and generates an output TDC_Q. As viewed from TDC core 11, only a small portion of controlled signal CKV in one FREF period passes through decision circuit 15 and reaches TDC core 10, while a large, remaining portion of controlled signal CKV in the FREF period is gated by decision circuit 15 and thus is not received at TDC core 11. As compared to some existing TDC circuits where all or a relatively large portion of CKV pulses enter TDC core, TDC 11 according to the present disclosure achieves more economic and efficient power management.
PCKV×N>DTDC
where PCKV represents the period of controlled signal CKV, and DTDC represents the delay to be introduced by the delay elements in TDC core 11 if controlled signal CKV enters TDC core 11 without masking. In physical sense, N represents the number of CKV pulses that is allowed to send to TDC core 11.
For example, PCKV is 50 picosecond (ps) and DTDC is 100 ps. Then N is determined to be 3, according to the formula. Moreover, FCW in the illustrative embodiment of
Reset circuit 21 is configured to generate a reset signal PULSE_RSTN in response to reference signal FREF and controlled signal CKV. Reset signal PULSE_RSTN is used to reset counter 25.
Counter 25 receives reset signal PULSE_RSTN and is configured to count to a predetermined value, (FCW−N), until reset signal PULSE_RSTN is asserted. Counter 25 provides a count cou_out to comparator 28. Count cou_out is fed back to counter 25 to serve as a basis for calculating a new count.
Comparator 28 receives count cou_out from counter 25 and is configured to generate mask signal PASS_OUT by comparing count cou_out and the value (FCW−N). In some embodiments, if count cou_out equals the value (FCW−N), mask signal PASS_OUT is asserted. Mask signal PASS_OUT is fed back to counter 25 for calculating a new count.
In reset circuit 21, a data input (labeled “D”) of first DFF 211 receives reference signal FREF. A clock input (labeled “CP”) of first DFF 211 receives an inverted controlled signal CKV. A data output (labeled “Q”) of first DFF 211 outputs signal CSF1.
Further, a data input (labeled “D”) of second DFF 212 receives signal CSF1 from first DFF 211. A clock input (labeled “CP”) of second DFF 212 receives inverted controlled signal CKV. A complementary data output (labeled “QB”) of second DFF 212 outputs signal CSF.
Moreover, an input of NAND gate 213 receives signal CSF1. Another input of NAND gate 213 receives signal CSF. An output of NAND gate 213 outputs reset signal PULSE_RSTN.
In counter 25, an input of multiplexer 251 is coupled to a high logical value, while another input of multiplexer 251 is coupled to a low logical value. Mask signal PASS_OUT fed to multiplexer 251 serves as a control signal for multiplexer 251. If mask signal PASS_OUT is asserted with a high logical value, multiplexer 251 outputs a low logical value. In contrast, if mask signal PASS_OUT is deasserted with a low logical value, multiplexer 251 outputs a high logical value.
Adder 252 sums up an output from multiplexer 251 and count cou_out from DFF 254. Count cou_out is an n-bit binary that represents the decimal value of (FCW−N). Adder 252 then outputs a signal add_out, which is also an n-bit binary.
AND gate assembly 253 receives signal add_out from adder 252 and reset signal PULSE_RSTN from reset circuit 21. AND gate assembly 253 includes “n” AND gates. For illustration, only one AND gate is shown. Each of the “n” AND gates includes an input for receiving one bit of the n-bit signal add_out, and another input for receiving reset signal PULSE_RSTN. As a result, AND gate assembly 253 outputs the content of signal add_out when reset signal PULSE_RSTN is logically high, which means reset signal PULSE_RSTN is not asserted. AND gate assembly 253 outputs an all-0 n-bit binary when reset signal PULSE_RSTN is asserted with a low logical value, which means a reset cycle starts, and count cou_out is reset to 0.
A data input (labeled “D”) of DFF 254 receives an output from AND gate assembly 253. A clock input (labeled “CP”) of DFF 254 receives controlled signal CKV. A data output (labeled “Q”) of DFF 254 outputs signal cou_out. DFF 254 can be reset by a reset signal RSTN when asserted with a low logical value. Moreover, when controlled signal CKV is asserted, output of AND gate assembly 253 is latched. Further, when both reset signal PULSE_RSTN and controlled signal CKV are asserted, counter 25 is reset and count cou_out is 0.
Referring to
At time T41, reference signal FREF and controlled signal CKV are asserted. In response to the falling edge of controlled signal CKV, signal CSF1 at the output of first DFF 211 is asserted. However, signal CSF at the output of second DFF 212 is not deasserted until the next falling edge of controlled signal CKV at time T43. At time T41, by operation of NAND gate 213, reset signal PULSE_RSTN is asserted with a low logical value. Accordingly, reset signal PULSE_RSTN is asserted in response to a rising edge of reference signal FREF. The falling edge of reset signal PULSE_RSTN at time T41 initiates a reset cycle. Moreover, reset signal PULSE_RSTN is logically low in a period between time T41 and time T43, the reset cycle.
At time T42, since reset signal PULSE_RSTN is logically low, the output of AND gate assembly 253 is binary 000. This binary data is latched when controlled signal CKV is asserted at a time a bit earlier than time T42, and outputted as signal cou_out at time T42. Meanwhile, in response to the resetting of counter 25, mask signal PASS_OUT is deasserted with a low logical value. Accordingly, the falling edge of mask signal PASS_OUT appears within the reset cycle in response to a falling edge of reset signal PULSE_RSTN, which in turn is in response to a rising edge of reference signal FREF.
At time T44, signal CSF1 at the output of first DFF 211 is deasserted with a low logical value when a falling edge of controlled signal CKV appears a bit later than a falling edge of reference signal FREF appears. However, signal CSF at the output of second DFF 212 is not asserted then until the next falling edge of controlled signal CKV at time T45.
In response to the falling edge of mask signal PASS_OUT at time T42, counter 25 starts to count to (FCW−N) or 4 (binary 100) in the present embodiment. Moreover, multiplexer 251 selects logic 1 as output. As a result, by operation of adder 252, the value of signal add_out is greater than that of signal cou_out by 1.
As counter 25 counts to 4 at time T46, mask signal PASS_OUT is asserted with a high logical value. Accordingly, the rising edge of mask signal PASS_OUT appears in response to the event when counter 25 counts to the value (FCW−N), and thus is determined by the value (FCW−N). In response to the rising edge of mask signal PASS_OUT, multiplexer 251 selects logic 0 as output. As a result, by operation of adder 252, the content of signal add_out is the same as signal cou_out.
At time T46, in response to the rising edge of mask signal PASS_OUT, a portion of pulses of controlled signal CKV, represented by gate signal CKV_G, is allowed to pass to TDC core 11 for detection of phase difference.
At time T47, similar to the event at time T41, reset signal PULSE_RSTN is asserted with a low logical value in response to a rising edge of reference signal FREF, which initiates another reset cycle.
At time T48, in response to the resetting of counter 25, mask signal PASS_OUT is deasserted with a low logical value. CKV pulses are then masked or gated from TDC core 11. The active period of mask signal PASS_OUT, from time T46 to time T48, is determined by the value of N.
In operation, reset signal RSTN may be normally kept logically high. As a result, resetting of counter 65 depends on the logic state of reset signal PULSE_RSTN from reset circuit 21. When reset signal PULSE_RSTN is asserted with a low logical value, AND gate 653 outputs a low logic value to reset DFF 254 and hence counter 65.
where PCKVD2 represents the period of controlled signal CKVD2, and DTDC represents the delay to be introduced by the delay elements in TDC core 11 if controlled signal CKVD2 enters TDC core 11 without masking.
Since PCKVD2 is twice of PCKV, given DTDC being unchanged, ND2 is a half of N. The command signal for comparator 28 of masking circuit 72 is (FCWD2−ND2), which equals (FCW−N)/2. In an exemplary embodiment that the values of FCW and N are 6 and 2, respectively, the values of FCWD2 and ND2 are 3 and 1, respectively. Counter 25 now counts to (FCWD2−ND2), or 2. Accordingly, a 2-bit binary cou_out is enough to represent a count of counter 25.
In some embodiments, a masking circuit may include “M” DFFs, M being a natural number. In these DFFs, a data output of one DFF is coupled to a clock input of a next-stage DFF. As a result, the “M” DFFs form a divide-by-M frequency divider. The values of FCW and N for such a masking circuit can be calculated in a similar fashion as previously discussed. Moreover, a counter in the masking circuit is configured to count to (FCW−N)/M.
At time T82, mask signal PASS_OUT is deasserted in response to the fact that counter 28 is reset to 0 and controlled signal CKVD2 is asserted. Subsequently, counter 25 counts all the way from 0 (00 in binary), 1 (01 in binary) to 2 (10 in binary).
At time T84, mask signal PASS_OUT is asserted in response to the fact that counter 28 counts to 2 and controlled signal CKVD2 is asserted.
At time T85, reset signal PULSE_RSTN is again asserted to reset counter 25.
At time T86, mask signal PASS_OUT is deasserted in response to the fact that counter 28 is reset to 0. The rising edge of mask signal PASS_OUT is determined by (FCW−N)/2 and appears when counter 25 counts to (FCW−N)/2. The falling edge of mask signal PASS_OUT is determined by a rising edge of reference signal FREF and appears when counter 25 is reset. During the active period of mask signal PASS_OUT, a total number of 2 CKV pulses in an FREF period are passed for phase difference detection, and the remaining CKV pulses in the FREF period are masked from TDC core 11.
In operation 92, a frequency command word FCW is determined based on the frequency of reference signal FREF and the frequency of controlled signal CKV. In some embodiments, the value of FCW may be rounded off to an integer.
In operation 93, a number, “N,” is determined based on the period of controlled signal CKV and an estimated delay. In some embodiments, N is a natural number. The estimated delay is introduced by delay elements in a TDC for detecting a phase difference between reference signal FREF and controlled signal CKV if all. CKV pulses are entered.
In operation 94, a mask signal PASS_OUT is generated based on the frequency command word FCW and the value of N. In some embodiments, a rising edge of mask signal PASS_OUT is determined by the value of (FCW−N), while a falling edge of mask signal PASS_OUT is determined by a rising edge of reference signal FREF.
In operation 95, a number of CKV pulses are masked by mask signal PASS_OUT. The number of CKV pulses to enter the TDC is determined by the value of N. Moreover, the active period of mask signal PASS_OUT in one FREF period is determined by the value of N.
Embodiments of the present disclosure provide a masking circuit for a time-to-digital converter (TDC). The masking circuit comprises a reset circuit, a counter and a comparator. The reset circuit is configured to generate a reset signal based on a reference signal and a controlled signal. The reference signal and the controlled signal are to be sent to the TDC for detection of phase difference. The counter is configured to count to a predetermined value associated with the reference signal and the controlled signal, and is configured to be reset to an initial value in response to the reset signal. The comparator is configured to compare a count from the counter and the predetermined value, and to generate a mask signal when a count from the counter equals the predetermined value. The mask signal masks a portion of pulses of the controlled signal from entering the TDC.
In an embodiment, the predetermined value is (FCW−N). FCW represents a frequency command word obtained by dividing the frequency of the controlled signal by the frequency of the reference signal. N is a natural number that satisfies
PCKV×N>DTDC,
where PCKV represents the period of the controlled signal, and DTDC represents a delay to be introduced in the TDC if controlled signal enters the TDC without masking.
In another embodiment, the counter includes a selecting device configured to receive the mask signal as a control signal. The selecting device may include a multiplexer.
In an embodiment, the counter includes a latch device configured to generate a count at a data output in response to the reset signal. The latch device may include a DFF.
In another embodiment, the counter includes a summing device configured to add an output from the selecting device and a count from the latch device. The summing device may include an adder.
In still another embodiment, the counter includes a decision circuit between an output of the summing device and a data input of the latch device. The decision circuit may include an AND gate assembly.
In yet still another embodiment, the counter includes a decision circuit between an output of the reset circuit and a reset port of the latch device. The decision circuit may include a logic AND gate.
In a further embodiment, the counter includes a first latch device and a second latch device, the first latch device being configured to serve as a frequency divider for the second latch device.
In a still further embodiment, the counter includes a decision circuit having an input coupled to an output of the reset circuit, and an output coupled to a reset port each of the first latch device and the second latch device.
Some embodiments of the present disclosure provide a time-to-digital converter (TDC) comprises a TDC core and a masking circuit. The TDC core is configured to detect phase difference between a reference signal and a controlled signal. The masking circuit is configured to generate a mask signal based on the reference signal, the controlled signal, and a command signal including information of a predetermined value associated with the reference signal and the controlled signal. The mask signal is used to mask a portion of pulses of the controlled signal from entering the TDC core during detection of phase difference.
Embodiments of the present disclosure also provide a method for masking signals for phase detection. In the method, a reference signal and a controlled signal for phase comparison are received. A frequency command word, FCW, is determined based on the frequency of the reference signal and the frequency of the controlled signal. A number, N, is determined based on the period of the controlled signal and a delay to be introduced if the entire controlled signal is used in the phase comparison. A mask signal is generated based on the frequency command word FCW and the value of N. A number of pulses of the controlled signal are masked from the phase comparison with the mask signal.
The foregoing outlines features of several embodiments so that persons having ordinary skill in the art may better understand the aspects of the present disclosure. Persons having ordinary skill in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other devices or circuits for carrying out the same purposes or achieving the same advantages of the embodiments introduced therein. Persons having ordinary skill in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions and alternations herein without departing from the spirit and scope of the present disclosure.