TIME / DIGITAL CONVERTER WITH SMALL FLOOR SURFACE AND LOW ENERGY CONSUMPTION
The TDC design with a ring oscillator and residual generation circuit addresses the challenge of small area and low power consumption by resetting after each conversion and using a single TDC cycle, achieving efficient linearity and reduced size and energy use.
Patent Information
- Application Number
- DE102021111026
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-07-15
- Filing Date
- 2021-04-29
- Publication Date
- 2026-11-26
- Estimated Expiration
- 2041-04-29
AI Technical Summary
Existing time-to-digital converters (TDCs) face challenges in achieving a small footprint and low power consumption while maintaining linearity, with conventional designs often compromising on one or both parameters.
A TDC design comprising a ring oscillator and a residual generation circuit with a counter and combiner, where the counter operates on a single output of the ring oscillator and the residual generation circuit provides a code corresponding to the ring oscillator's state, allowing for a small area and low energy consumption while maintaining linearity.
The proposed TDC achieves a relatively small footprint and low energy consumption while maintaining sufficient linearity, differing from conventional designs by resetting after each conversion and using a single TDC cycle for remainder calculation.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
TECHNICAL AREA OF REVELATION The present disclosure relates generally to electronic devices and systems and in particular to time / digital converters. BACKGROUND In electronic equipment and signal processing, a time-to-digital converter (TDC) is a device for detecting events and providing a digital representation of the time at which they occurred or the time span over which they occurred. For example, a TDC might output digital values indicating the arrival time of each incoming pulse. Some applications prefer to measure the time interval between two events rather than a notion of absolute time. For instance, a TDC used in a phase-locked loop (PLL) circuit might measure a phase difference between an input clock signal and a feedback clock signal. The TDC can digitize the phase difference between a pulse of the input clock signal and a pulse of the feedback clock signal and output a value indicating the digitized phase difference. A multitude of factors can influence the cost, quality, and robustness of a TDC. Physical constraints, such as space / surface area, can impose further limitations on TDC requirements or specifications, thus requiring compromises and ingenuity in the design of a TDC that is optimal for a given application. US 2018 / 0076821A1 relates to a device and a method. The device comprises a counter array; a ring oscillator electrically coupled to the counter array, wherein the counter array counts a number of cycles in the ring oscillator; an analog-to-digital converter (ADC) driver electrically coupled to the ring oscillator; and an ADC electrically coupled to the ADC driver, wherein an output of the ADC is electrically coupled to the ring oscillator. The publication “Resolution Enhancement of VCO-based ADCs by Passive Interpolation and Phase Injection” by Leidy Mabel Alvero-Gonzalez et al., presented at the 2019 XXXIV Conference on Design of Circuits and Integrated Systems (DCIS), describes a simple way to improve the resolution of low-pass voltage-controlled oscillator-based analog-to-digital converters (VCO-based ADCs) implemented with ring oscillators. It proposes inserting a passive resistor network into the differential delay cells of the oscillator to obtain additional interpolated phases. These interpolated phases are then injected into other similar oscillators. By increasing the number of phases coming from all oscillators, the effective gain of the system is higher, thus improving the resolution of the converter.To validate the idea, a prototype of an open-loop VCO-based ADC was built in VerilogA language using ring oscillators designed with a 65 nm CMOS process. The results of transient simulations were compared with the results of a behavior-based ideal model of the system built in MATLAB. As expected, the signal-to-noise ratio (SNR) improved in line with the increase in the number of phases. Finally, it was verified that the proposed circuit used to extract and inject the interpolated phases did not negatively impact the overall power consumption. The proposed circuit architecture is particularly well-suited for high-bandwidth applications where the oversampling ratio (OSR) is severely limited and the gain is restricted due to the oscillator's nonlinearity.Due to the highly digital nature of VCO-based ADC structures, this solution may be of particular interest for implementation in new deep-submicron CMOS processes. US 2015 / 0077279A1 concerns a time-to-digital converter (TDC) with improved resistance to metastability. The TDC has a ring oscillator that is keyed by a start signal. A stop signal triggers the capture of phase signals from the ring oscillator using master-slave flip-flops. Signals from any two of the master stages of the flip-flops are logically combined to produce a counter clock signal, which causes a counter to start counting. The outputs of the flip-flops and the counter are coded to produce a digital representation of the time between transitions of the start signal and the stop signal. As the signals from the master stages of the flip-flops are captured (and cease toggling) by the stop signal, the counter clock signal stops toggling, and the counter stops counting.This ensures that the values of the captured phase signals and the counter are consistent, and avoids metastability errors that could otherwise occur. US 7,332,973 B2 relates to a time-to-digital converter comprising a ring oscillator, a counter, an encoder, and a multi-bit latch. The ring oscillator has a first input and a clock input, as well as a first output that responds to a single cycle of the ring oscillator and a second output that responds to a signal applied to the first input. A counter coupled to the first output generates a first binary word. An encoder coupled to the second output generates a second binary word. The multi-bit latch receives the first and second binary words and generates a composite representation of a phase-frequency error signal. The time-to-digital converter is well-suited for digital phase-locked loops used in communication applications and for digital phase-locked loops in electromechanical control systems requiring high-precision phase-frequency error detection. BRIEF DESCRIPTION OF THE DRAWINGS To provide a more complete understanding of the present disclosure and its features and advantages, reference is made to the following description together with the accompanying figures, where the same reference numerals represent the same parts; they show: Fig. 1 an electrical circuit diagram of an exemplary TDC according to some embodiments of the present disclosure; Fig. 2 an electrical circuit diagram of a ring oscillator and a residual generation circuit of the TDC of Fig. 1 according to some embodiments of the present disclosure; Fig. 3 a schematic representation of a counter that may be used in the TDC of Fig. 1 according to some embodiments of the present disclosure; Fig. 4 a timing diagram for the TDC of Fig. 1 according to some embodiments of the present disclosure; Fig. 5 a schematic representation of an example system in which one or more TDCs of Fig. 1 are used.1 may be implemented according to some embodiments of the present disclosure; Fig. 6 is a block diagram of an exemplary electrical device which may include one or more TDCs of Fig. 1, according to some embodiments of the present disclosure; and Fig. 7 is a block diagram representing an exemplary data processing system which may be configured to control the operation of one or more TDCs of Fig. 1, according to some embodiments of the present disclosure. DESCRIPTION OF EXAMPLE FORMS OF REVELATION overview The systems, methods, and devices of this disclosure each exhibit several innovative aspects, none of which alone is responsible for all the desirable attributes disclosed herein. Details of one or more implementations of the subject matter described in this disclosure are set forth in the following description and the accompanying drawings. For the purpose of describing the small-area, low-power TDCs proposed here, it might be useful to first understand the phenomena that can occur in such devices. The following background information can be considered a basis from which the present disclosure can be correctly explained. Such information is offered for explanatory purposes only and should therefore not be considered in any way as limiting the comprehensive scope of protection of the present disclosure and its potential applications. As is the case for many electronic devices, the component area occupied by a TDC and the energy consumed by a TDC during operation are two critical design parameters. The linearity of a TDC is another critical design parameter. The linearity of an electronic device (or electronic component or system) is easy to understand in theory. Linearity generally refers to a device's ability to provide an output signal that is directly proportional to an input signal. In other words, if a device is perfectly linear, the ratio of the output signal to the input signal is a straight line. Achieving this behavior in real-world devices is far more complex, and many linearity problems must be solved, often at the expense of another design parameter, such as...the building block area or the energy consumption. Many types of TDCs have been studied in the past, such as delay-chain TDCs and cyclic TDCs. Conventional delay-chain TDCs can provide the simplest implementation, but now suffer from poor linearity and require a relatively large surface area on a single device to achieve the necessary range. Conventional cyclic TDCs, on the other hand, can advantageously achieve better linearity and occupy a smaller surface area compared to delay-chain TDCs, but require a more power-hungry circuit design. Embodiments of the present disclosure relate to time-converting devices (TDCs) for converting time intervals into digital values and to devices and systems in which such TDCs may be implemented. An example TDC comprises a ring oscillator and a residual generation circuit, each having the same number of stages (i.e., the ring oscillator has multiple stages, and the residual generation circuit also has multiple stages, the number of which is equal to the number of stages of the ring oscillator). Each stage of the residual generation circuit is configured to operate with outputs from two distinct stages of the ring oscillator. The TDC further comprises a counter configured to record a number (e.g., by incrementing a counter value by 1, starting from a specific initial value, e.g., starting at 0) indicating that a signal at an output of one of the multiple stages of the ring oscillator has passed between a first signal level (e.g.,The TDC (Time-Detection Digital Converter) switches a voltage level corresponding to a high logic state and a second signal level (e.g., a voltage level corresponding to a low logic state) during a given time interval, which is converted into a digital value. For example, the counter can be configured to count the number of times the output of this one stage of the ring oscillator switches from 0 to 1 and from 1 to 0 during the time interval in which an ENABLE signal for the ring oscillator and the residual generation circuit is in a first logic state (e.g., a high logic state). The TDC further includes a combiner configured to generate the digital value representative of the time interval being converted by combining a value indicating the number counted by the counter and an output of the residual generation circuit (e.g., a voltage level corresponding to a high logic state).when the ENABLE signal for the ring oscillator and the residual generation circuit switches to a second logical state (e.g., a deep logical state). In such a TDC, the counter can be configured to operate on only one of the ring oscillator outputs (e.g., on the output of the last stage of the ring oscillator, as shown in the present drawings, although in other embodiments the counter can operate on an output of any other stage of the ring oscillator), which advantageously allows the overall size and number of counters to be kept relatively small, while the residual generation circuit can be used to provide a code corresponding to the state of the ring oscillator when the ENABLE signal for the ring oscillator and the residual generation circuit switches to the second logical state.As a result, such a TDC can be realized with a relatively small footprint and low energy consumption compared to conventional TDC designs, while still exhibiting sufficiently linear behavior. For this reason, the TDCs described here can be referred to as "relatively small footprint, low energy consumption TDCs," although this relative designation may change as the technology evolves. Several TDCs that utilize residual generation are known in the prior art. However, their operating principle differs significantly from the TDCs proposed here. For example, as described in more detail below, the TDCs described here are reset each time after a conversion of a time interval into a digital value is completed. The period between the start of a time interval that the TDC must convert into a digital value and the start of the next corresponding time interval can be referred to as a "TDC cycle." Therefore, the TDCs described here are single-cycle TDCs in that the ring oscillator and the residual generation circuitry are reset after each conversion is complete and before the next conversion begins. This differs from gated ring oscillator TDC architectures (GRO-TDC architectures), where the residual from one TDC cycle is carried over to the next, and results are averaged or filtered across TDC cycles.In another form of remainder calculation in a MASH-TDC, the ring oscillator output is also calculated over multiple TDC cycles and can be differentiated over two or more clock cycles within the TDC cycle to detect state transitions. This also differs from the TDCs described here, where no separate clock is required to calculate the remainder, and the remainder calculation is performed over a single TDC cycle. As a person skilled in the art will recognize, aspects of the present disclosure, in particular aspects of relatively small-area, low-power TDCs as proposed herein, can be implemented in various ways—for example, as a method, a system, a computer program product, or a computer-readable storage medium. Accordingly, aspects of the present disclosure can take the form of a complete hardware implementation, a complete software implementation (comprising firmware, resident software, microcode, etc.), or an embodiment combining software and hardware aspects, all of which may be referred to herein generally as a “circuit,” a “module,” or a “system.” Functions described in this disclosure can be implemented as an algorithm executed by one or more hardware processing units, for example,The process is executed by one or more microprocessors or one or more computers. In various embodiments, different steps and sections of the steps of each of the methods described herein can be executed by different processing units. Furthermore, aspects of this disclosure can take the form of a computer program product implemented on one or more computer-readable media, preferably non-volatile, which contains, for example, stored computer-readable program code. In various embodiments, such a computer program can, for example, be downloaded (updated) to the existing devices and systems (e.g., the existing PLLs, digital signal processing (DSP) cores, and / or their control units, etc.) or can be stored during the manufacture of these devices and systems. The following detailed description presents various descriptions of specific embodiments. However, the innovation described here can be implemented in a multitude of different ways, as defined and covered, for example, by the selected examples. The following description refers to the drawings, where identical reference numerals may denote identical or functionally similar elements. It should be understood that elements shown in the drawings are not necessarily drawn to scale. Furthermore, some embodiments may incorporate any suitable combination of features from two or more drawings. It should also be understood that specific embodiments may have more elements than shown in a drawing and / or be a subset of the elements shown in a drawing. In general, while some of the drawings provided here illustrate various aspects of relatively small-area, low-power TDCs and systems in which such circuits may be implemented, details of these systems may differ between different embodiments.For example, various components of relatively small-area, low-power TDCs presented here may include other components contained within or coupled to them that are not specifically shown in the drawings, such as logic, memory, passive elements (e.g., resistors, capacitors, inductors, etc.), or other elements (e.g., transistors, etc.). In another example, details shown in some of the drawings, such as the specific arrangement and example implementation details of various components of TDCs presented here (e.g., a ring oscillator, a residual generator, etc.), the specific arrangement of coupling connections between the outputs of different stages of a ring oscillator and logic elements of a residual generator, etc., may be not shown.The embodiments may differ, and the illustrations in the present drawings provide only a few examples of how these components may be used together to realize TDCs with a relatively small footprint and low power consumption. In yet another example, although some embodiments shown in the present drawings represent a specific number of components (e.g., a specific number of stages of a ring oscillator of a TDC or a specific number of TDCs in a PLL circuit), it is to be understood that these embodiments may be implemented in a TDC or any other device or system with any number of these components in accordance with the descriptions provided herein. Furthermore, although specific elements such as, for example,In the drawings, various elements of a ring oscillator and various elements of a residual generation circuit may be depicted in such a way that they are coupled for communication purposes using a single depicted line; in some embodiments, any of these elements may be coupled by several conductive lines, such as those that may be present in a bus, or when differential signals are involved. The description may use the expressions "in one embodiment" or "in embodiments," which may refer to one or more of the same or different embodiments. Unless otherwise specified, the use of the ordinal adjectives "first," "second," and "third," etc., to denote an ordinary object merely indicates that reference is made to different instances of such objects and is not intended to imply that the objects so described must be in any given order, whether temporal, spatial, hierarchical, or otherwise. Furthermore, for the purposes of this disclosure, the expression "A and / or B" or the notation "A / B" means (A), (B), or (A and B), whereas the expression "A, B, and / or C" means (A), (B), (C), (A and B), (A and C), (B and C), or (A, B, and C). As used herein, the notation "A / B / C" means (A, B, and / or C).The term "between", when used in reference to measurement ranges, includes the ends of the measurement ranges. Various aspects of the explanatory embodiments are described using terms commonly employed by those skilled in the art to convey the essence of their work to other skilled workers. For example, the term "connected" means a direct electrical connection between the things being connected, without any intervening devices / components, while the term "coupled" means either a direct electrical connection between the things being connected or an indirect electrical connection via one or more passive or active intervening devices / components. In another example, the terms "circuit" or "circuit arrangement" (which may be used interchangeably) refer to one or more passive and / or active components designed to work together to provide a desired function.Sometimes the term "circuit" may be omitted in the descriptions presented here (e.g., a TDC circuit may simply be referred to as a "TDC", etc.). Where used, terms such as "essentially", "approximately", "about", etc., may generally be understood to mean that the values are within + / - 20% of a target value, e.g., within + / - 10% of a target value, based on the context of a particular value as described herein or as known in the engineering. Example TDC Fig. 1 provides an electrical circuit diagram of an exemplary TDC 100, which can be implemented with a relatively small area and power consumption, according to some embodiments of the present disclosure. As shown in Fig. 1, the TDC 100 can include a ring oscillator 110, a residual generator 120, a counter 130, a multiplier 140, and a combiner 150. The ring oscillator 110 can be implemented as any ring oscillator known in the art, having any number of two or more stages. Fig. 1 shows an example in which the ring oscillator 110 has three stages, labeled as a first stage 112-1, a second stage 112-2, and a third stage 112-3; however, in other embodiments of the TDC 100, a different number of two or more stages may be used. In some embodiments, the ring oscillator 110 may have an odd number of three or more stages 112 (e.g., if the stages 112 of the ring oscillator are coupled to each other using asymmetrical connections, as shown in the example in Fig. 1). In other embodiments, the ring oscillator 110 can have an even number of 2 or more stages 112 (e.g., if the stages 112 of the ring oscillator 110 are coupled using differential connections). As shown in Fig.As shown in Figure 1, each stage 112 of the ring oscillator 110 can have a corresponding (i.e., another instance of) logic circuit that has a response from a NOT gate (in other words, each stage 112 of the ring oscillator 110 can have / be a digital inverter). The respective outputs from different stages 112 are labeled in Figure 1 as an output RO-S1_OUT from stage 112-1, an output RO-S2_OUT from stage 112-2, and an output RO-S3_OUT from stage 112-3. These outputs are also shown in the timing diagram of Figure 4, which is described below. As shown in Fig. 1, the output from the last stage of the ring oscillator 110, e.g., the output RO-S3_OUT from stage 112-3 for the 3-stage ring oscillator example shown in Fig. 1, can be provided for the counter 130. However, in other embodiments of the TDC 100, the counter 130 can be coupled to any other stage 112 of the ring oscillator 110. The inputs and outputs of the various stages 112 of the ring oscillator 110 can be coupled as known in the prior art. For example, the output RO-S1_OUT from the first stage 112-1 can be coupled to the input of the second stage 112-2, the output RO-S2_OUT from the second stage 112-2 can be coupled to the input of the third stage 112-3, and so on, until the output from the last stage 112 can be coupled to the input of the first stage 112, thus forming a feedback loop. For the one shown in Fig.In the 3-stage ring oscillator shown in Fig. 1, the latter means that the output RO-S3_OUT from the third (i.e., last) stage 112-3 can be coupled to the input of the first stage 112-1. As shown in Fig. 1, in some embodiments the first stage 112-1 of the ring oscillator 110 can be configured to receive an ENABLE signal. The ENABLE signal can be a control signal configured to enable the ring oscillator 110 (i.e., to cause the ring oscillator 110 to oscillate) or to disable the ring oscillator 110 (i.e., to cause the ring oscillator 110 to stop oscillating). The ring oscillator 110 can be assigned a special initial or reset state from which oscillations of the ring oscillator 110 begin when a conversion of a new time interval into a digital value starts. For the 3-stage ring oscillator 110, such a reset state can be 101, which means that each of the outputs RO-S1_OUT and RO-S3_OUT has a voltage level corresponding to a high logic state (e.g., digital bit 1), and the output RO-S2_OUT has a voltage level corresponding to a low logic state (e.g., digital bit 0). For the sake of simplicity, some control signals (e.g., the ENABLE signal, the START signal, or the STOP signal, shown in Fig. 1 and in the timing diagram of Fig. 4) and output signals of some components (e.g.,The outputs RO-S1_OUT, RO-S2_OUT, and RO-S3_OUT of stages 112) can be described with respect to a signal having a bit value of 1 or a bit value of 0. However, these descriptions can easily be extended to more general embodiments in which a given signal can have either a special first signal level (e.g., a voltage level) corresponding to a first state (e.g., a high logic state) or a special second signal level (e.g., a voltage level) corresponding to a second state (e.g., a low logic state). In this context, the term "toggle" can be used to describe the change in the digital value of the signal from 0 to 1 or from 1 to 0 (or equivalently, the change in the digital value from a first level to a second level different from the first level, or vice versa).During operation, the outputs of the various stages 112 of the ring oscillator 110 can sequentially switch between the values 1 and 0. Further details of the operation of the ring oscillator 110 are described with reference to the timing diagram in Fig. 4. An example implementation of the residual generation circuit 120 is shown in Fig. 2. Fig. 2 depicts the ring oscillator 110 and the input and output signals from the residual generation circuit 120 as shown in Fig. 1. Additionally, Fig. 2 shows that the residual generation circuit 120 can also have multiple stages, e.g., 3 stages 222-1, 222-2, and 222-3, as shown in Fig. 2. In general, the number of stages 222 of the residual generation circuit 120 can be equal to the number of stages 112 of the ring oscillator 110. Thus, each stage 112 of the ring oscillator 110 can be assigned to a corresponding stage 222 of the residual generation circuit 120 (i.e., stage 112-1 of the ring oscillator 110 can be assigned to stage 222-1 of the residual generation circuit 120, stage 112-2 of the ring oscillator 110 can be assigned to stage 222-2 of the residual generation circuit 120, and so on). As shown in Fig.As also shown in Figure 2, the TDC 100 can furthermore have several latch circuits (or flip-flops) 224, the number of latch circuits 224 being equal to the number of stages of the ring oscillator 110. Thus, each stage 112 of the ring oscillator 110 and each stage 222 of the residual generation circuit 120 can be assigned to a corresponding one from the latch circuits 224 (i.e., stage 112-1 of the ring oscillator 110 and stage 222-1 of the residual generation circuit 120 can be assigned to latch circuit 224-1, stage 112-2 of the ring oscillator 110 and stage 222-2 of the residual generation circuit 120 can be assigned to latch circuit 224-2, and so on). In some embodiments, the latch circuits 224 can be considered as part of the residual generation circuit 120. The residual generation circuit 120 is configured to generate an output RES_OUT by being designed as follows. The residual generation circuit 120 can be configured to receive the ENABLE signal, which is also provided for the ring oscillator 110. In particular, at least one of the latch circuits 224 (e.g., each of the latch circuits 224) can have a further input configured to receive the ENABLE signal, to enable the residual generation circuit 120, and to generate an output RES_OUT as soon as the time interval being converted into a digital value has ended and before the residual generation circuit 120 is reset to convert another time interval. For example, the first latch circuit 224-1 can be configured to receive the ENABLE signal, as shown in Fig. 2.The ENABLE signal can be a control signal configured to activate the residual generation circuit 120, which ultimately causes the residual generation circuit 120 to generate the residual output signal, RES_OUT, or to deactivate the residual generation circuit 120 (i.e., to cause the residual generation circuit 120 not to generate the residual output). As shown in Fig. 2, the first latch circuit 224-1 can be configured to receive the output RO-S1_OUT from the first stage 112-1 of the ring oscillator 110 and to provide an output 225-1 for each from the first stage 222-1 and the second stage 222-2 of the residual generation circuit 120. Similarly, the second latch circuit 224-2 can be configured to receive the output RO-S2_OUT from the second stage 112-2 of the ring oscillator 110 and to provide an output 225-2 for each from the second stage 222-2 and the third stage 222-3 of the residual generation circuit 120.For the 3-stage ring oscillator example of the TDC 100, the third latch circuit 224-3 (which is the last latch circuit in this example) can be configured to receive the output RO-S3_OUT from the third stage 112-3 (i.e., the last stage in this example) of the ring oscillator 110 and provide an output 225-3 for each from the third stage 222-3 and the first stage 222-1 of the residual generation circuit 120.In general, for a different number of stages contained in the ring oscillator 110 of the TDC 100, each latch circuit 224, except the one associated with the last stage of the ring oscillator 110, is configured to receive an output from the corresponding stage of the ring oscillator 110 and to provide an output 225 for both the stage of the residual generation circuit 120 associated with the corresponding stage of the ring oscillator 110 and the stage of the residual generation circuit 120 associated with the next stage of the ring oscillator 110. The last latch circuit 224 is configured to receive an output from the last stage of the ring oscillator 110 and to provide an output 225 for both the last and the first stage of the residual generation circuit 120. In this way, different stages 222 of the residual generation circuit 120 are coupled to the outputs of the different stages 112 of the ring oscillator 110.In particular, each stage 222 of the residual generation circuit 120 is configured to operate with two inputs: the first stage 222-1 of the residual generation circuit 120 is configured to operate with the output RO-S1_OUT of the first stage 112-1 of the ring oscillator 110 and the output of the last stage of the ring oscillator 110 (i.e., the output RO-S3_OUT of the third stage 112-3 of the ring oscillator 110 for the 3-stage example shown in Fig. 1 and Fig. 2); the second stage 222-2 of the residual generation circuit 120 is configured to operate with the output RO-S1_OUT of the first stage 112-1 of the ring oscillator 110 and the output RO-S2_OUT of the second stage 112-2 of the ring oscillator 110; and the last stage 222-3 of the Residual generation circuit 120 (for the 3-stage example of Fig. 1 and Fig. 2)2) is configured to operate with the output RO-S2_OUT of the second stage 112-2 of the ring oscillator 110 and the output RO-S3_OUT of the last stage 112-3 of the ring oscillator 110. In some embodiments, each stage 222 of the residual generation circuit 120 can have a corresponding (i.e., a different instance of) logic circuit that has a response to an exclusive-OR (XOR) gate, as shown in Fig. 2. Fig. 2 further shows that the residual generator 120 may also include an encoder 226 configured to combine the outputs from the multiple stages 222 of the residual generator 120 to produce the output RES_OUT, which indicates the remainder calculated by the residual generator 120. After the ENABLE signal has switched to the second logic state or become inactive, a combination of the XOR stages 222 of the residual generator 120 and the encoder 226 (scaled with the number of stages 112 of the ring oscillator 110) can provide a remainder (i.e., the output RES_OUT) which is added to the multiplied counter value to obtain the final TDC output, TDC_OUT. Further details of the operation of the residual generator 120 are described with reference to the timing diagram in Fig. 4. Returning to the components of the TDC 100 shown in Fig. 1, the counter 130 can be coupled to an output of one of the multiple stages 112 of the ring oscillator 110. For example, Fig. 1 shows that in some embodiments, the counter 130 can be coupled to the output RO-S3_OUT of the last stage 112-3 of the ring oscillator 110. In other embodiments, however, the counter 130 can be coupled to the output of any of the other stages 112 of the ring oscillator 110. The counter 130 is configured to count a count indicating that a signal at the output of one of the multiple stages 112, with which the counter 130 is coupled, switches between a first signal level (e.g., a voltage level corresponding to a high logic state) and a second signal level (e.g., a voltage level corresponding to a low logic state).Counter 130 counts the number of times the output of this stage of the ring oscillator switches from 0 to 1 or from 1 to 0 during a time interval that is converted into a digital value (e.g., during the time the ENABLE signal for ring oscillator 110 and residual generator circuit 120 is in a first logic state (e.g., a high logic state)). In the example shown in Fig. 1, counter 130 is configured to count the number of times the output signal RO-S3_OUT switches. Multiplier 140 can then be configured to multiply the counter value of counter 130 by the total number of stages 112 of ring oscillator 110 (e.g., by 3 for the 3-stage example shown in Fig. 1), thus generating a counter signal CNT_OUT.The combiner 150 is configured to combine a value indicating the number counted by the counter 130 and an output from the residual generation circuit 120 (e.g., when the ENABLE signal for the ring oscillator 110 and the residual generation circuit 120 switches to a second logic state (e.g., a low logic state)) to produce a digital value representative of the time period being converted by the TDC 100. For example, the combiner 150 can be configured to combine the value of the counter signal CNT_OUT and the residual output RES_OUT to produce a digital value representative of the time period being converted by the TDC 100. As the above description shows, the TDC 100 contains only one counter 130, which is configured to operate on an output of only one of the stages 112 of the ring oscillator 110 (e.g., on the output RO-S3_OUT of the last stage of the ring oscillator 110, as shown in the present drawings, although in other embodiments the counter 130 may operate on an output of any other ring oscillator stages 112).This can advantageously reduce the requirement for multiple counters, each operating on a single ring oscillator output, or a single counter operating on multiple ring oscillator outputs, and allow the size of the TDC to be kept relatively small, while the counter 130 and the residual generation circuit 120 are used to provide a code corresponding to the state of the ring oscillator 110 when the ENABLE signal for the ring oscillator 110 and the residual generation circuit 120 switches to the second logic state. In some embodiments, the counter 130 and the multiplier 140 together form what can be called a counter arrangement 132, configured to receive an output from one of the stages 112 of the ring oscillator 110 and to generate the counter signal CNT_OUT, which indicates how many times this output switches during the time period being converted to digital. In some embodiments, the counter arrangement 132 can be implemented as shown in Fig. 3. The counter 130 of the counter arrangement 132 can comprise a first edge generator circuit 332-1 followed by a first edge counter 334-1, and further, a second edge generator circuit 332-2 followed by a second edge counter 334-2. As shown in Fig. 3, the input received by the counter 130 can be, for example, a signal from a ring oscillator 110. B. the output RO-S3_OUT of the last stage of the ring oscillator 110 for the one shown in Fig.1 shown example, as an input for each from the first edge generator circuit 332-1 and the second edge generator circuit 332-2. The first edge generator circuit 332-1 can be configured to generate an initial indication when the signal at the output of one of the stages 112, to which the counter 130 is coupled (e.g., the output RO-S3_OUT), switches from the first signal level (e.g., a voltage level corresponding to a high logic state) to the second signal level (e.g., a voltage level corresponding to a low logic state). For example, the first edge generator circuit 332-1 can be configured to generate an initial indication when the output RO-S3_OUT switches from 1 to 0. The first edge generator circuit 332-1 can be configured to provide its output, NEG_OUT, to the first edge counter 334-1, which can be configured to count the number of times the first edge generator circuit 332-1 has generated the indication of a switch from 1 to 0.For example, this information can be provided as a different signal level in the NEG_OUT output generated by the first edge generator circuit 332-1 (e.g., as a pulse in the NEG_OUT output, as shown in the timing diagram of Fig. 4). Similarly, the second edge generator circuit 332-2 can be configured to generate a second reading when the signal at the output of the first of the stages 112, to which the counter 130 is coupled (e.g., the output RO-S3_OUT), switches from the second signal level (e.g., a voltage level corresponding to a low logic state) to the first signal level (e.g., a voltage level corresponding to a high logic state). For example, the second edge generator circuit 332-2 can be configured to generate a second reading when the output RO-S3_OUT switches from 0 to 1. The second edge generator circuit 332-2 can be configured to provide its output, PEG_OUT, to the second edge counter 334-2, which can be configured to count the number of times the second edge generator circuit 332-2 has generated a reading of a switch from 0 to 1.For example, this information can be provided as a different signal level in the PEG_OUT output generated by the second edge generator circuit 332-2 (e.g., as a pulse in the PEG_OUT output, as shown in the timing diagram of Fig. 4). The value of counter 130 can then be the sum of (or based on) a count for the first edge generator circuit 332-1 generating the first value and a count for the second edge generator circuit 332-2 generating the second value during the time period being converted into the digital value. Thus, counter 130 can be a double-edge counter that counts both the switching of the output value of one of the stages 112 from 1 to 0 and the switching of the output value of one of the stages 112 from 0 to 1. The multiplier 140 of the counter arrangement 132 can include a first multiplier 342-1 configured to receive an input specifying the output of the first edge counter 334-1, and further, a second multiplier 342-2 configured to receive an input specifying the output of the second edge counter 334-2. The first multiplier 342-1 can be configured to generate a first multiplier output, NMULT_OUT, by multiplying a value specifying the number of stages 112 of the ring oscillator 110 (e.g., equal to it) and the counter value of the first edge counter 334-1. Similarly, the second multiplier 342-2 can be configured to generate a second multiplier output, PMULT_OUT, by multiplying the value indicating the number of stages 112 of the ring oscillator 110 (e.g., equal to it) and the counter value of the second edge counter 334-2. As shown in Fig.As further shown in Figure 3, the multiplier 140 of the counter arrangement 132 can also include a combiner (e.g., an adder) 344 configured to generate an adder output by adding the output NMULT_OUT of the first multiplier 342-1 and the output PMULT_OUT of the second multiplier 342-2. The output from the counter arrangement 132, CNT_OUT, can then be a value based on (e.g., equal to) the output of the adder 344. Thus, the TDC 100 can utilize the counter 130, which is a double-edge counter, and the multiplier 140, which can multiply the total value of the counter 130 by the number of stages 112 of the ring oscillator 110. In some embodiments, the multipliers 342-1 and 342-2 and the residual generation circuit 120 can be configured to operate only after the time period being converted to digital has ended (e.g.(after the ENABLE signal has switched to the second logic state or become inactive). Dividing each of the counter 130 and the multiplier 140 into components that operate on the negative edge (e.g., the edge generator circuit 332-1, the edge counter 334-1, and the multipliers 342-1, which operate on the output RO-S3_OUT, which switches from 1 to 0), and components that operate on the positive edge (e.g., the edge generator circuit 332-2, the edge counter 334-2, and the multiplier 342-2, which operate on the output RO-S3_OUT, which switches from 0 to 1), as shown in Fig. 3, can provide advantages in terms of saving energy and space by reducing the speed requirements for the counter and the multiplier. Further details of the operation of the counter 130, the multiplier 140 and the combiner 150 are described with reference to the timing diagram of Fig. 4. As described above, the combiner 150 can be configured to combine the value of the counter signal CNT_OUT and the residual output RES_OUT to generate a digital value that is representative of the time interval being converted by the TDC 100. In some embodiments, this digital value can be provided as the TDC output TDC_OUT. In other embodiments, the TDC 100 can optionally further comprise one or more pulse conditioning logic 160, saturation logic 170, selector 180, and calibration logic 190. The pulse conditioning logic 160 can be configured to generate the ENABLE signal for the ring oscillator 110 and the residual generation circuit 120 based on the START and STOP signals provided to the pulse conditioning logic 160. In general, the START and STOP signals can be considered as two signals that define the time interval to be converted into a digital value by the TDC 100. For example, in embodiments where the TDC 100 is implemented in a PLL circuit, the START and STOP signals can be a reference clock signal and a corresponding feedback clock signal, respectively, and the time interval between transitions, as described here, is converted into a digital value. In this context, the interval between transitions is sometimes referred to as the phase difference between the reference clock signal and the feedback clock signal.The pulse conditioning logic 160 can be configured to allow the TDC 100 to operate across all possible phase differences between START and STOP signals and to convert time intervals into digital values, regardless of whether the START signal leads the STOP signal or vice versa. In some embodiments, if the START signal leads the STOP signal, the ENABLE signal can be active (e.g., have a voltage level corresponding to a high logic state) when the START signal is active (e.g., have a voltage level corresponding to a high logic state) and the STOP signal is inactive (e.g., have a voltage level corresponding to a low logic state). In some embodiments, if the START signal lags the STOP signal, the ENABLE signal can be active when the STOP signal is active (e.g., have a voltage level corresponding to a low logic state).The pulse conditioning logic 160 can further be configured to provide an indication to the TDC 100 as to whether the START signal leads the STOP signal or vice versa. In some embodiments, such an indication can be provided as a sign bit. The ENABLE signal can be a control signal configured to be at a first signal level (e.g., a voltage level corresponding to a high logic state) during the time interval being converted to the digital value, and at a second signal level (e.g., a voltage level corresponding to a low logic state) outside of any time interval being converted to digital values. In embodiments where the pulse conditioning logic 160 is not used, the START signal and the STOP signal can be provided directly for the ring oscillator 110 and the residual generation circuit 120. In some embodiments, the saturation logic 170 can be configured to determine whether the digital value output by the combiner 150 is greater than a saturation threshold 172 (shown in Fig. 1). Upon a positive determination (i.e., when the saturation logic 170 has determined that the digital value output by the combiner 150 is greater than the saturation threshold 172), the saturation logic 170 can provide a specific predetermined digital value as an output 174, e.g., B. the maximum digital value of the range of the TDC 100. In case of a negative determination (i.e., if the saturation logic 170 has determined that the digital value output by the combiner 150 is not greater than the saturation threshold 172), the saturation logic 170 can provide the digital value output by the combiner 150 as output 174.The multiplexer 180 can then be configured to select the digital value output by the combiner 150 if the saturation logic 170 provides the same value, or otherwise select the value provided by the saturation logic 170 to be output from TDC_OUT. In other embodiments, the saturation logic 170 can be configured to determine whether the digital value output by the combiner 150 is greater than the saturation threshold 172 and to provide an indication of the determination in the output 174. For example, the indication can be a bit that is either set for a positive determination or not set for a negative determination. The multiplexer 180 can then be configured to select the digital value output by the combiner 150, or a specific predefined digital value (e.g., the maximum digital value of the range of the TDC 100), to be output as TDC_OUT, depending on the output 174 of the saturation logic 170. In various embodiments, the saturation threshold 172 can be either predefined or programmable (e.g., variable). Implementing the saturation logic 170 allows the TDC 100 to indicate an overflow situation and provide a code corresponding to the maximum available range of the TDC 100. In some embodiments, the output 174 of the saturation logic 170 can be provided to the pulse conditioning logic 160 (as shown in Fig. 1 with a feedback signal path from the saturation logic 170 to the pulse conditioning logic 160), and the pulse conditioning logic 160 can be configured to generate the ENABLE signal based on the output 174.For example, if the pulse conditioning logic 160 receives output 174, which indicates that the TDC 100 has reached saturation, before the pulse of the STOP signal arrives (in the case where the START signal precedes the STOP signal), it can cut off the ENABLE signal and thus save energy consumed by the TDC 100. The calibration logic 190 can be configured to perform calibration of various components of the TDC 100, for example, to determine and compensate for variations in individual parts, such as variations due to manufacturing processes and / or different operating conditions (e.g., voltage and temperature variations), etc. For example, in some embodiments, a test pulse can be used (e.g., during the startup of the TDC 100) and processed by the TDC 100 (in particular by the calibration logic 190) to perform the calibration. In some embodiments, the pulse conditioning logic 160 can also be configured to provide a test pulse for calibrating the TDC 100, etc. The communication links between the calibration logic 190 and the pulse conditioning logic 160 are shown in Fig. 1 with arrows between these two components.The test pulse can be used to process the ENABLE signal and calibrate it for variations in individual parts. Fig. 4 provides a timing diagram 400 for the TDC of Fig. 1 according to some embodiments of the present disclosure. The timing diagram 400 represents various signals described above, which are shown superimposed in Fig. 4, such as, starting at the top of Fig. 4, the START signal, the STOP signal, the ENABLE signal, and so on. In addition, the timing diagram 400 shows a TDC_RESET signal and a line RO, which represents outputs of different stages 112 of the ring oscillator 110 at different times. Various signals are plotted as a function of time in Fig. 4 (i.e., the horizontal axis for each signal shown in Fig. 4 is used to count time). It should be noted that although some signals in Fig. 4 are shown to be perfectly aligned with each other at different times (e.g., the rise of the START signal is perfectly aligned with the rise of the ENABLE signal), this alignment is shown only to illustrate possible dependencies between events in different signals. In other embodiments (and often in real-world implementations), there may be a specific time delay between the occurrence of one event (e.g., the rise of the START signal) that causes the occurrence of another event (e.g., the rise of the ENABLE signal). Dashed arrows are used in Fig. 4 to represent causality between different events.Vertical dashed lines are used in Fig. 4 to represent different times. The timing diagram 400 presents an example of a 3-stage ring oscillator 110 (i.e., the oscillator as shown in Fig. 1) for the case where the START signal leads the STOP signal. However, the explanations provided with reference to Fig. 4 and the explanations provided above with reference to Figs. 1-3 can easily be extended to embodiments in which the ring oscillator 110 has a different number of stages and / or where the START signal lags the STOP signal, all such embodiments being within the scope of protection of the present disclosure. As shown in Fig. 4, a time-to-digital conversion can begin at time 402 when the START signal becomes high. Since this is the operating mode in which the START signal leads the STOP signal, the arrival of the START signal causes the ENABLE signal to become high. Because the ENABLE signal is provided for the ring oscillator 110, the fact that the ENABLE signal becomes high causes the oscillations in the various stages 112 of the ring oscillator 110 to start. Thus, the ring oscillator 110 starts from the initial configuration (e.g., before time 402), where the outputs of the stages 112 of the ring oscillator are 1, 0, and 1 (as shown in Fig. 4, where RO is 101, i.e.,(RO-S1_OUT is 1, RO-S2_OUT is 0, and RO-S3_OUT is 1), the oscillation begins (as can be seen by each of the outputs RO-S1_OUT, RO-S2_OUT, and RO-S3_OUT toggling their values), and continues oscillating until the STOP signal becomes high at time 404, indicating the end of the first time interval to be converted (the first time interval to be converted is shown in Fig. 4 as a time interval of 420-1). The ENABLE signal remains high for the duration of time interval 420-1 and becomes low again after the STOP signal becomes high. The outputs RO-S1_OUT, RO-S2_OUT, and RO-S3_OUT continue toggling their respective values for the duration of time interval 420-1. During this time period, the first edge generator circuit 332-1 generates a pulse each time the output RO-S3_OUT switches from 1 to 0 (as shown in Fig. 4 with a first dashed arrow between RO-S3_OUT and the first pulse of NEG_OUT when RO changes from 011 to 010, and in Fig.4 with a second dashed arrow between RO-S3_OUT and the second pulse of NEG_OUT, when RO changes from 011 to 010 again). Similarly, the second edge generator circuit 332-2 generates a pulse each time the output RO-S3_OUT switches from 0 to 1 (as shown in Fig. 4 with a dashed arrow between RO-S3_OUT and the first pulse of PEG_OUT when RO changes from 100 to 101). Accordingly, the output NMULT_OUT increases by 3 (i.e., 1 pulse from NEG_OUT multiplied by 3, because the ring oscillator 110 has three stages), for example starting at 0, each time there is a pulse in NEG_OUT while the ENABLE signal remains high for the duration of time interval 420-1, and the output PMULT_OUT increases by 3, for example starting at 0, each time there is a pulse in PEG_OUT while the ENABLE signal remains high for the duration of time interval 420-1.The counter output CNT_OUT also increases by 3 each time either NMULT_OUT or PMULT_OUT increases. At time 404, when the STOP signal becomes high, several changes occur in the TDC 100. First, the ENABLE signal becomes low. As a result, the ring oscillator 110 stops oscillating, and the residual generation circuit 120 calculates RES_OUT, which indicates the residual in the outputs of the stages 112 of the ring oscillator 110, in a time interval 422-1 between when the STOP signal became high and when the START signal became low. Because at the time the STOP signal became high, at the end of the time interval 420-1, the state RO of the ring oscillator 110 was 110 (as shown in Fig. 4), the residual generation circuit 120 outputs RES_OUT, which has the decimal value 2. This decimal value, combined with (e.g., added to) the decimal value 9 of the CNT_OUT output at the time the STOP signal became high at the end of the time span 420-1, results in the TDC output TDC_OUT indicating the decimal value 11 (9 + 2 = 11).The time interval 422-1 can be described as a TDC code update time because it is the time at which the duration of the time interval 420-1 is converted into a digital value, e.g., the digital value that is representative of the decimal value 11 in the example shown in Fig. 4. After the TDC code update time 422-1 (i.e., when the START signal goes low again), the TDC 100 can be reset, as shown in Fig. 4, with a pulse in the TDC_RESET at a time interval 426, which starts at time 406. Resetting the TDC 100 means that the outputs of the various stages 112 of the ring oscillator 110 are reset to their original values (e.g., RO 101) and remain constant until the next time the START signal becomes high again, which is shown in Fig. 4 as occurring at time 412), that the values of the counter and multiplier outputs are all reset to their original values (e.g.,the values 0, as shown in Fig. 4) and the residual generation circuit 120 is reset by resetting its output to the original start value (e.g., also the value 0, as shown in Fig. 4). The TDC output is also reset (e.g., also to the value 0, as shown in Fig. 4). After the TDC 100 has been reset at time interval 426, the ENABLE signal remains low until the START signal next becomes high (at time interval 412), marking the beginning of the next time interval, 420-2, to be converted into the digital value, and the process repeats similarly to the conversion of time interval 422-1. Times 412, 414, 416, shown in Fig. 4, and the series of events associated with these times are analogous to times 402, 404, 406 described above, and therefore their descriptions are not repeated for the sake of brevity. In various embodiments, a control unit can be used to control different aspects of the operation of the TDC 100 as described here. Such a control unit can, for example, be implemented as a data processing system as shown in Fig. 7. Exemplary systems and devices The TDC 100 can be implemented in various electronic devices and systems. Some examples are shown in Figures 5 and 6. Fig. 5 provides a schematic representation of an example system in which one or more TDCs from Fig. 1 may be implemented, according to some embodiments of the present disclosure. In particular, Fig. 5 shows that the TDC 100 may be included as part of a PLL circuit 530 or communicatively coupled to it. The PLL circuit 530 may further comprise a control unit 520 configured to control various aspects of the operation of the TDC 100 as described herein. The PLL 530 may be contained in a device such as a DSP core or a DSP circuit arrangement (e.g., one or more filters, fast Fourier transform (FFT) accelerators, etc.) 540. When implemented in association with the PLL 530, the TDC 100 may be configured to continuously calculate the phase difference between a reference clock and a feedback clock by producing a digital code.The PLL 530 can then use the digital TDC code to adjust its feedback clock to follow the reference clock, and the output of the PLL 530 can be used by the DSP core / circuit arrangement 540 as is known in the prior art. Fig. 6 is a block diagram of an exemplary electrical device 2100, which may include one or more relatively small-area, low-power TDCs 100, in accordance with any of the embodiments disclosed herein. For example, any suitable component of the electrical device 2100 may include one or more of the TDCs 100 disclosed herein. A number of components are shown in Fig. 6 as included in the electrical device 2100; however, any one or more of these components may be omitted or duplicated as is suitable for the application. In some embodiments, some or all of the components included in the electrical device 2100 may be connected to one or more mainboards. In some embodiments, some or all of these components are fabricated on a single system-on-a-chip (SoC) device. Additionally, in various embodiments, the electrical device 2100 may not include one or more of the components shown in Fig. 6, but may instead include an interface circuit arrangement for coupling with the one or more components. For example, the electrical device 2100 may not include a display device 2106, but may include a display device interface circuit arrangement (e.g., a connecting element and driver circuit arrangement) to which a display device 2106 can be coupled. In another group of examples, the electrical device 2100 may not include an audio input device 1818 or an audio output device 2108, but may include an audio input or output device interface circuit arrangement (e.g., a connecting element and driver circuit arrangement).(connecting elements and supporting circuit arrangement) with which an audio input device 1818 or an audio output device 2108 can be coupled. The electrical device 2100 may include a processing device 2102 (e.g., one or more processing devices). As used herein, the term "processing device" or "processor" may refer to any device or section of a device that processes electronic data from registers and / or a memory to transform such electronic data into other electronic data that can be stored in registers and / or a memory. The processing device 2102 may include one or more digital signal processors (DSPs), application-specific integrated circuits (ASICs), central processing units (CPUs), graphics processing units (GPUs), cryptoprocessors (specialized processors that execute cryptographic algorithms in hardware), server processors, or any other suitable processing devices.The electrical device 2100 can include a memory device 2104, which in turn can include one or more memory devices, such as volatile memory (e.g., dynamic RAM (DRAM)), non-volatile memory (e.g., read-only memory (ROM)), flash memory, solid-state memory, and / or a hard disk drive. In some embodiments, the memory 2104 can include a memory that shares a component with the processing device 2102. This memory can be used as cache memory and can include embedded DRAM (eDRAM) or spin-transfer torque magnet RAM (STT-MRAM). In some embodiments, the electrical device 2100 may include a communication chip 2112 (e.g., one or more communication chips). For example, the communication chip 2112 may be configured to manage wireless communication for the transmission of data to and from the electrical device 2100. The term "wireless" and its derivatives may be used to describe circuits, devices, systems, methods, techniques, communication channels, etc., that can communicate data by using modulated electromagnetic radiation over a non-solid medium. The term does not imply that the associated devices do not include wires, although this may be the case in some embodiments. The 2112 communication chip can implement any number of wireless standards or protocols, including, but not limited to, standards from the Institute for Electrical and Electronic Engineers (IEEE), the Wi-Fi (IEEE 802.11 family), the IEEE 802.16 standards (e.g., revision IEEE 802.16-2005), the Long Term Development (LTE) project along with any revisions, updates and / or enhancements (e.g., further developed LTE project, Ultra Mobile Broadband (UMB) project (also known as "3GPP2"), etc.). Broadband wireless access networks (BWA networks) compliant with IEEE 802.16 are commonly referred to as WiMAX networks, an acronym that stands for "Worldwide Interoperability for Microwave Access", which is a certification mark for products that pass conformance and interoperability tests for the IEEE 802.16 standards.The 2112 communication chip can operate in accordance with a network for the Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Universal Mobile Telecommunications System (UMTS), High Speed Packet Access (HSPA), Advanced HSPA (E-HSPA), or LTE. The 2112 communication chip can operate in accordance with Extended Data for GSM Evolution (EDGE), GSM-EDGE Radio Access Network (GERAN), Universal Terrestrial Radio Access Network (UTRAN), or Advanced UTRAN (E-UTRAN). The 2112 communication chip can operate in accordance with Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Digital Enhanced Cordless Telecommunications (DECT), Advanced Data Optimized (EV-DO), and derivatives thereof, as well as any other wireless protocols designated as 3G, 4G, 5G, and later.The communication chip 2112 can operate in accordance with other wireless protocols in other embodiments. The electrical device 2100 can include an antenna 2122 to support wireless communication and / or to receive other wireless communication (such as AM or FM radio broadcasts). In some embodiments, the communication chip 2112 can manage wired communication, such as electrical, optical, or any other suitable communication protocols (e.g., Ethernet). As mentioned above, the communication chip 2112 can include multiple communication chips. For example, a first communication chip 2112 can be dedicated to shorter-range wireless communication, such as Wi-Fi or Bluetooth, and a second communication chip 2112 can be dedicated to longer-range wireless communication, such as the Global Positioning System (GPS), EDGE, GPRS, CDMA, WiMAX, LTE, EV-DO, and others. In some embodiments, a first communication chip 2112 can be dedicated to wireless communication, and a second communication chip 2112 can be dedicated to wired communication. The electrical device 2100 may include a battery / power supply circuit arrangement 2114. The battery / power supply circuit arrangement 2114 may include one or more energy storage devices (e.g., batteries or capacitors) and / or a circuit arrangement for coupling components of the electrical device 2100 to a power source separate from the electrical device 2100 (e.g., an AC power line). The electrical device 2100 may include a display device 2106 (or a corresponding interface circuit arrangement as discussed above). The display device 2106 may include any visual indicators, such as a heads-up display device, a computer monitor, a projector, a touch-sensitive screen display device, a liquid crystal display (LCD), a light-emitting diode display device, or a flat panel display device. The electrical device 2100 may include an audio output device 2108 (or a corresponding interface circuit arrangement as discussed above). The audio output device 2108 may include any device that produces an audible indicator, such as a loudspeaker, headphones, or earphones. The electrical device 2100 may include an audio input device 2118 (or a corresponding interface circuit arrangement as discussed above). The audio input device 2118 may include any device that generates a signal representative of a sound, such as microphones, microphone groups, or digital instruments (e.g., instruments having a Musical Instrument Digital Interface (MIDI) output). The electrical device 2100 can include a GPS device 2116 (or a corresponding interface circuit arrangement, as discussed above). The GPS device 2116 can communicate with a satellite-based system and can receive a location of the electrical device 2100, as is known in the art. The further device 2100 may include a further output device 2110 (or a corresponding interface circuit arrangement, as discussed above). Examples of the further output device 2110 may include an audio codec, a video codec, a printer, a wired or wireless transmitter for providing information to other devices, or an additional storage device. The further device 2100 may include a further input device 2120 (or a corresponding interface circuit arrangement as discussed above). Examples of further input devices 2120 may include an accelerometer, a gyroscope, a compass, an image acquisition device, a keyboard, a cursor control device such as a mouse, a stylus, a touchpad, a barcode reader, a quick-response code reader (QR code reader), any sensor, or a radio frequency identification (RFID) reader. The electrical device 2100 can have any desired form factor, such as a handheld or mobile electrical device (e.g., a mobile phone, a smartphone, a mobile internet device, a music player, a tablet computer, a laptop computer, a netbook computer, an ultrabook computer, a personal digital assistant (PDA), an ultramobile personal computer, etc.), a desktop electrical device, a server device or other networked computer component, a printer, a scanner, a monitor, a set-top box, an entertainment control unit, a vehicle control unit, a digital camera, a digital video recorder, or a body-worn electrical device. In some embodiments, the electrical device 2100 can be any other electronic device that holds data. Exemplary data processing system Fig. 7 provides a block diagram illustrating an exemplary data processing system 2200, which may be configured to control the operation of one or more relatively small-area, low-power TDCs according to some embodiments of the present disclosure. For example, the data processing system 2200 may be configured to implement or control sections of the TDC 100 or any other embodiments of the relatively small-area, low-power TDCs described herein. In another example, the data processing system 2200 may be configured to implement at least sections of the control unit 520 or any other control unit configured to implement various aspects of the operation of the TDC 100 as described herein. As shown in Fig. 7, the data processing system 2200 can have at least one processor 2202, e.g., a hardware processor 2202, which is coupled to memory elements 2204 via a system bus 2206. Thus, the data processing system can store program code in the memory elements 2204. Furthermore, the processor 2202 can execute the program code that is accessed from the memory elements 2204 via a system bus 2206. In one aspect, the data processing system can be implemented as a computer capable of storing and / or executing program code. However, it should be understood that the data processing system 2200 can be implemented in the form of any system that has a processor and memory and is capable of performing the functions described in this disclosure. In some embodiments, the processor 2202 can execute software or an algorithm to perform activities as discussed in the present disclosure, in particular activities relating to relatively small-area, low-power TDCs, as discussed here. The processor 2202 can comprise any combination of hardware, software, or firmware providing programmable logic, including, as a non-limiting example, a microprocessor, a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA), an application-specific integrated circuit (ASIC), or a virtual machine processor. The processor 2202 can be communicatively coupled to the memory element 2204, for example, in a direct-access memory (DMA) configuration, so that the processor 2202 can read from or write to the memory element 2204. In general, the memory elements 2204 may comprise any suitable volatile or non-volatile memory technology, including dual-rate (DDR) random-access memory (RAM), synchronous RAM (SRAM), dynamic RAM (DRAM), flash memory, read-only memory (ROM), optical media, virtual memory areas, magnetic or tape storage, or any other suitable technology. Unless otherwise specified, any of the memory elements discussed herein should be interpreted as being included in the broad term "memory." The information measured, processed, tracked, or sent to and from any of the components of the 2200 data processing system could be provided in any database, register, control list, cache, or memory structure, all of which can be referenced within any suitable timeframe.All such storage options may be included in the broad term "memory" as used herein. Similarly, any of the potential processing elements, modules, and machines described herein should be interpreted as being included in the broad term "processor." Each of the elements shown in the present figures, e.g., any elements of the TDC 100 shown in Figures 1-3, may also have suitable interfaces for receiving, sending, and / or otherwise communicating data or information in a network environment, enabling them to communicate with, for example, the 2200 data processing system. In specific example implementations, mechanisms for implementing one or more TDCs with a relatively small area and low power consumption, as outlined here, can be implemented by logic encoded in one or more tangible media, which may include non-volatile media, such as embedded logic provided in an ASIC, DSP instructions, software (potentially including object code and source code) to be executed by a processor or other similar machine, etc. In some of these cases, memory elements, such as the 2204 memory elements shown in Fig. 7, can store data or information used for the operations described here. This implies that the memory elements are capable of storing software, logic, code, or processor instructions that are executed to perform the activities described here.A processor can execute any type of instruction associated with the data or information to achieve the operations detailed here. In one example, processors such as the 2202 processor shown in Fig. 7 could transform an item or object (e.g., data) from one state or thing to another. In another example, the activities described here could be implemented with fixed logic or programmable logic (e.g., software / computer instructions executed by a processor), and the elements identified here could be a type of programmable processor, programmable digital logic (e.g., a microcontroller), or a microcontroller.be an FPGA, a DSP, an erasable programmable read-only memory (EPROM), an electronically erasable programmable read-only memory (EEPROM) or an ASIC, comprising digital logic, software, code, electronic instructions, or any suitable combination thereof. The memory elements 2204 can include one or more physical storage devices, such as local memory 2208 and one or more mass storage devices 2210. Local memory can refer to RAM or other non-persistent storage device(s) that are typically used during the actual execution of the program code. A mass storage device can be implemented as a hard disk drive or other persistent data storage devices. The processing system 2200 can also include one or more cache memories (not shown) that provide temporary storage of at least part of the program code to reduce the frequency with which program code needs to be retrieved from the mass storage device 2210 during execution. As shown in Fig. 7, the memory elements 2204 can store an application 2218. In various embodiments, the application 2218 can be stored in the local memory 2208, in one or more mass storage devices 2210, or separately from the local memory and the mass storage devices. It is understood that the data processing system 2200 can also run an operating system (not shown in Fig. 7) that can support the execution of the application 2218. The application 2218, which is implemented in the form of executable program code, can be executed by the data processing system 2200, for example, by the processor 2202. In response to the execution of the application, the data processing system 2200 can be configured to perform one or more operations or process steps described herein. Input / output (I / O) devices, depicted as an input device 2212 and an output device 2214, may optionally be coupled to the data processing system. Examples of input devices may include, but are not limited to, a keyboard, a pointing device such as a mouse, or the like. Examples of output devices may include, but are not limited to, a monitor or display device, a loudspeaker, or the like. In some embodiments, the output device 2214 may be any type of screen display, such as a plasma display device, a liquid crystal display (LCD), an organic light-emitting diode (OLED) display device, an electroluminescent (EL) display device, or any other indicator, such as a rotary dial, a barometer, or LEDs.In some implementations, the system may include a driver (not shown) for the output device 2214. Input and / or output devices 2212, 2214 may be coupled to the data processing system either directly or via intermediary I / O control units. In one embodiment, the input and output devices can be implemented as a combined input / output device (shown in Fig. 7 with a dashed line surrounding the input device 2212 and the output device 2214). An example of such a combined device is a touch-sensitive display device, sometimes referred to as a "touch-sensitive image display device" or simply a "touch-sensitive screen." In such an embodiment, the input to the device can be provided by the movement of a physical object, such as a pen or a user's finger, on or near the touch-sensitive screen display device. A network adapter 2216 can also be optionally connected to the data processing system to allow it to connect to other systems, computer systems, remote network devices, and / or remote storage devices via intervening private or public networks. The network adapter can include a data receiver for receiving data sent by the systems, devices, and / or networks to the data processing system 2200, and a data transmitter for sending data from the data processing system 2200 to the systems, devices, and / or networks. Modems, cable modems, and Ethernet cards are examples of different types of network adapters that can be used with the data processing system 2200. Selection examples The following sections provide various examples of the embodiments disclosed herein. Example 1 provides a TDC comprising a ring oscillator (110) having multiple stages (e.g., an odd number of 3 or more stages); a residual generation circuit (120) wherein a number of stages of the residual generation circuit is equal to a number of stages of the ring oscillator and wherein each stage of the residual generation circuit is configured to operate with outputs from two distinct stages of the ring oscillator; a counter (130) coupled to an output of one of the multiple stages of the ring oscillator and configured to count a number for a signal at the output of one of the multiple stages of the ring oscillator being between a first signal level (e.g., a voltage level corresponding to a high state HIGH) and a second signal level (e.g.,a voltage level corresponding to a logic state LOW) switches (e.g., counts the count for the output of this stage of the ring oscillator switching from 0 to 1 or from 1 to 0) during a time interval that is converted into a digital value (e.g., during the time interval for which an ENABLE signal for the ring oscillator and the residual generation circuit is in a first logic state (e.g., a logic state HIGH)); and a combiner (150) configured to combine a value indicating the count by the counters and an output of the residual generation circuit (e.g., when the ENABLE signal for the ring oscillator and the residual generation circuit switches to a second logic state (e.g., a logic state LOW)) to produce the digital value that is representative for the time interval. In such a TDC, the counter can operate with only one of the ring oscillator outputs (e.g.,on the output of the last stage of the ring oscillator, as shown in the present drawings (although in other embodiments the counter may operate on an output of any other stage of the ring oscillator), which advantageously allows the size of the counter to be kept relatively small, while the residual generation circuit is used to provide a code corresponding to the state of the ring oscillator when the enable signal for the ring oscillator and the residual generation circuit switches to the second logic state. Example 2 provides the TDC according to Example 1, wherein the value indicating the number counted by the counter is based on the number counted by the counter (e.g., is equal to the number counted by the counter), multiplied using a multiplier (140), by a value indicating the number of stages of the ring oscillator (e.g., is equal to its number).Example 3 provides a TDC according to Examples 1 or 2, wherein the counter has a first edge generator and a second edge generator, wherein the first edge generator is configured to produce a first reading when the signal at the output of one of the multiple stages of the ring oscillator switches from a first signal level (e.g., a voltage level corresponding to a logic state HIGH) to the second signal level (e.g., a voltage level corresponding to a logic state LOW), wherein the second edge generator is configured to produce a second reading when the signal at the output of one of the multiple stages of the ring oscillator switches from a second signal level (e.g., a voltage level corresponding to a logic state LOW) to the first signal level (e.g.,a voltage level corresponding to a logic state HIGH), and the count taken by the counter is the sum of a count that the first edge generator produced the first value and a count that the second edge generator produced the second value during the time interval that is converted into the digital value. Example 4 provides the TDC according to Example 3, wherein the counter further comprises a first multiplier, a second multiplier, and an adder. In such a TDC, the first multiplier is configured to produce a first multiplier output by multiplying a value that specifies the number of stages of the ring oscillator (e.g.,the first edge generator is trained to produce the first value during the time interval being converted to the digital value; the second multiplier is trained to produce a second multiplier output by multiplying the value indicating the number of stages of the ring oscillator (e.g., is equal to it) and the number indicating that the second edge generator produces the second value during the time interval being converted to the digital value; the adder is trained to produce an adder output by adding the first multiplier output and the second multiplier output; and the value indicating the number counted by the counter is based on (e.g., is equal to) the adder output. Example 5 provides the TDC according to one of the preceding examples, with the counter trained to be reset (i.e., the value of the counter is trained to reset to a specific reset value (e.g.,Example 6 provides the TDC according to one of the preceding examples, wherein the residual generation circuit is configured to be reset (i.e., the output of the residual generation circuit is configured to be set to a specific reset value (e.g., zero)) after the digital value has been generated and before a conversion of another time period has begun. Example 7 provides the TDC according to one of the preceding examples, wherein the ring oscillator is configured to be reset (i.e., the outputs of the multiple stages of the ring oscillator are configured to be set to their respective reset values (e.g., zero)).(to 1, 0, 1 for the example of a 3-stage ring oscillator)), after the digital value has been generated and before a conversion of another time interval has begun. Example 8 provides the TDC according to one of the preceding examples, wherein a first stage of the residual generation circuit is configured to work with an output of a first stage of the ring oscillator and an output of a last stage of the ring oscillator, and a second stage of the residual generation circuit is configured to work with the output of the first stage of the ring oscillator and an output of a second stage of the ring oscillator. Example 9 provides the TDC according to one of the preceding examples, wherein a last stage of the residual generation circuit is configured to work with an output of a penultimate stage of the ring oscillator and an output of a last stage of the ring oscillator.Example 10 provides the TDC according to one of the preceding examples, wherein each stage of the residual generation circuit has a corresponding (i.e., a different instance of) logic circuit that has a response to an exclusive-OR (XOR) gate. Example 11 provides the TDC according to Example 10, wherein the TDC further has a corresponding (i.e., a different instance of) latch circuit corresponding to each stage of the ring oscillator, wherein each latch circuit has an input configured to receive a signal indicating an output of the corresponding stage of the ring oscillator corresponding to the latch circuit, and further has an output coupled to the logic circuit of the corresponding stage of the residual generation circuit.Example 12 provides the TDC according to Example 11, wherein at least one of the latch circuits has an additional input configured to receive a control signal that enables the residual generator to produce the output of the residual generator once the time period being converted to the digital value has ended and before the residual generator is reset for conversion of another time period. For example, such a control signal could be an ENABLE signal, wherein the ENABLE signal could be configured to be at a first signal level (e.g., a voltage level corresponding to a logic HIGH state) during the time period being converted to the digital value and at a second signal level (e.g., a voltage level corresponding to a logic LOW state) outside of any time periods being converted to digital values.Example 13 provides the TDC according to one of the preceding examples, wherein each stage of the ring oscillator has a corresponding (i.e., a different instance of) logic circuit that has a response from a NOT gate (in other words, each stage of the ring oscillator has a digital inverter). Example 14 provides the TDC according to one of the preceding examples, which further includes pulse conditioning logic configured to generate an enable signal for the ring oscillator and the residual generation circuit such that if a start signal precedes a stop signal, the enable signal is active (e.g., has a voltage level corresponding to a logic HIGH) when the start signal is active (e.g., has a voltage level corresponding to a logic HIGH), and the stop signal is inactive (e.g., has a voltage level corresponding to a logic HIGH).a voltage level corresponding to a logical state LOW), and if the start signal lags the stop signal, the enable signal is active when the stop signal is active (e.g., has a voltage level corresponding to a logical state HIGH) and the start signal is inactive (e.g., has a voltage level corresponding to a logical state LOW). The pulse conditioning logic can further be conditioned to provide an indication to the TDC as to whether the start signal leads the stop signal or vice versa, to allow the provision of a test pulse for calibrating the TDC, etc. Example 15 provides the TDC according to one of the preceding examples, which further includes saturation logic trained to determine whether the digital value is greater than a saturation threshold and, if positive, to set the digital value to a predetermined value.Example 16 provides an electronic device comprising a time-detection clock (TDC) configured to convert a time interval representing a phase difference between a reference clock signal and an input clock signal into a digital value, and further comprising a power-lock loop (PLL) circuit configured to generate an output signal that, by virtue of being based on the digital value generated by the TDC, has a phase relative to a phase of the input clock signal. In such an electronic device, the TDC comprises a ring oscillator (110) having multiple stages (e.g.,an odd number of 3 or more stages), a residual generation circuit (120), wherein a number of stages of the residual generation circuit is equal to a number of stages of the ring oscillator and wherein each stage of the residual generation circuit is configured to operate with outputs from two distinct stages of the ring oscillator, and a combiner (150) configured to generate the digital value based on an output of the residual generation circuit. Example 17 provides the electronic device according to Example 16, wherein the electronic device is a digital signal processing unit or a digital signal processing circuit arrangement. Example 18 provides the electronic device according to Examples 16 or 17, wherein the TDC is a TDC according to one of the preceding examples.Example 19 provides a method for converting a time interval, which is a phase difference between a reference clock signal and an input clock signal, into a digital value. The method features the provision, by pulse conditioning logic, of an enable signal for each interval from a ring oscillator and a residual generation circuit, wherein the enable signal is active (e.g., has a voltage level corresponding to a logic state HIGH) for the duration of the time interval and inactive (e.g., has a voltage level corresponding to a logic state LOW) immediately before and immediately after the time interval, wherein the ring oscillator has multiple stages (e.g.,(an odd number of 3 or more stages), the number of stages of the residual generation circuit is equal to the number of stages of the ring oscillator, and each stage of the residual generation circuit is configured to operate with outputs from two different stages of the ring oscillator. The method further includes counting by a counter of a number for when a signal at an output of one of the multiple stages of the ring oscillator switches between a first signal level (e.g., a voltage level corresponding to a logic state HIGH) and a second signal level (e.g., a voltage level corresponding to a logic state LOW) (e.g., counting the number for when the output of that stage of the ring oscillator switches from 0 to 1 or from 1 to 0) within a time when the enable signal is active.The method also includes generating the digital value based on a value indicating the number counted by the counter and on an output from the remainder generation circuit. Example 20 provides the method according to Example 19, which further includes multiplying the number counted by the counter by one or more multipliers with a value indicating the number of stages of the ring oscillator (e.g., equal to it), generating the digital value based on the value indicating the multiplication. Example 21 provides the method according to Examples 19 or 20, which further includes generating an output signal having a phase relative to a phase of the input clock signal by a PLL circuit, based on the digital value.Example 22 provides the method of one of Examples 19-21, wherein the method is executed by a TDC according to one of the preceding examples. Example 23 provides the method of one of Examples 19-22, wherein the method further includes steps for controlling or operating a TDC according to one of the preceding examples. Example 24 provides a non-volatile, computer-readable storage medium containing instructions for execution which, when executed by a processor, operate to perform operations of the method according to one of Examples 19-23. Variations and implementations Although embodiments of the present disclosure have been described above with reference to exemplary implementations such as those shown in Figures 1-7, a person skilled in the art will recognize that the various teachings described above are applicable to a large variety of other implementations. In the preceding discussions of embodiments, components of a system, such as counters, logic elements (e.g., XOR gates), and / or other components, can be easily replaced, exchanged, or otherwise modified to accommodate specific circuit arrangement requirements. Furthermore, it is noted that the use of complementary electronic devices, hardware, software, etc., offers an equally feasible option for implementing the teachings of this disclosure, which relate to implementing one or more TDCs with a relatively small footprint and low power consumption. Parts of various systems for implementing one or more relatively small-area, low-power TDCs, as proposed here, may include electronic circuitry for performing the functions described herein. In some cases, one or more parts of the system may be provided by a processor specifically designed to perform these functions. For example, the processor may include one or more application-specific components or programmable logic gates configured to perform the functions described herein. The circuitry may operate in the analog domain, the digital domain, or a mixed-signal domain.In some cases, the processor may be trained to perform the functions described here by executing one or more instructions stored on a non-volatile, computer-readable storage medium. In some embodiments, any number of electrical circuits of the present figures can be implemented on a circuit board of an associated electronic device. The circuit board can be a general-purpose printed circuit board capable of accommodating various components of the electronic device's internal electronic system and can further provide interconnects for other peripheral devices. In particular, the circuit board can provide the electrical connections through which the other components of the system can communicate electrically. Any suitable processors (including DSPs, microprocessors, supporting chipsets, etc.), computer-readable non-volatile memory elements, etc., can be coupled to the circuit board in a suitable manner based on specific configuration requirements, processing requirements, computer designs, etc. Other components, such as...External storage, additional sensors, control units for audio / video display, and peripheral devices can be connected to the board as plug-in cards, via cables, or integrated into the board itself. In various embodiments, the functionalities described herein can be implemented as emulation in software or firmware running in one or more configurable (e.g., programmable) elements arranged in a structure that supports these functions. The software or firmware providing the emulation can be provided on a non-volatile, computer-readable storage medium containing instructions that enable a processor to execute these functionalities. In some embodiments, the electrical circuits of the present figures can be implemented as stand-alone modules (e.g., a device with associated components and circuit arrangement configured to perform a specific application or function) or can be implemented as plug-in modules in the application-specific hardware of the electronic devices. It should be noted that particular embodiments of the present disclosure can easily be incorporated, either partially or entirely, into a system-on-a-chip (SOC) assembly. An SOC represents an integrated circuit (IC) that integrates components of a computer or other electronic system onto a single chip. It can include digital, analog, mixed-signal, and often RF functions, all of which can be provided on a single chip substrate.Other embodiments may include a multi-chip module (MCM) in which several separate ICs are located in a single electronic assembly and are configured to interact closely with each other via the electronic assembly. All specifications, dimensions, and relationships set forth herein (e.g., the number of components of the relatively small-area, low-power TDCs, or sections thereof, shown in the present drawings, etc.) are provided for illustrative and teaching purposes only. Such information may be varied considerably without departing from the spirit of this disclosure or the scope of the accompanying claims. The specifications apply only to a non-limiting example and should be interpreted accordingly. The preceding description presents exemplary embodiments with respect to specific processor and / or component arrangements. Various modifications and changes may be made to such embodiments without departing from the scope of the accompanying claims.The description and drawings should therefore be viewed as explanatory rather than restrictive. It should be noted that the numerous examples provided here may describe an interaction involving two, three, four, or more electrical components. However, this is done only for illustrative purposes and as an example. It is to be understood that the system can be simplified in any suitable way. Along with similar design alternatives, any of the components, modules, and elements shown in the present drawings can be combined in various possible configurations, all of which are clearly within the comprehensive scope of this disclosure. In specific cases, it may be simpler to describe one or more of the functionalities of a given group of processes by referring only to a limited number of electrical components.It should be understood that the electrical circuits shown in the present figures and their teachings are easily scalable and can accommodate a large number of components as well as more complex or sophisticated arrangements and configurations. Accordingly, the examples provided should not limit the scope of protection or prevent the comprehensive teachings of the electrical circuits from potentially being applied to a myriad of other architectures. Furthermore, functions relating to the implementation of one or more TDCs with a relatively small footprint and low power consumption, as proposed here, represent only some of the possible functions that can be performed by or within the system depicted in the present figures. Some of these operations may be deleted or removed, or these operations may be substantially modified or altered without infringing upon the scope of this disclosure. In addition, the timing of these operations may be substantially altered. The foregoing operational sequences are offered only as examples or for discussion.Significant flexibility is provided by the embodiments described herein in that any suitable arrangements, chronologies, configurations and timing mechanisms can be provided without deviating from the teachings of the present disclosure. It should be noted that all optional features of the above-described device may also be implemented in relation to the method or process described herein, and specifics in the examples may be used somewhere in one or more embodiments. Numerous other changes, replacements, variations, alterations and modifications can be identified by a person skilled in the art, and it is intended that the present disclosure includes all such changes, replacements, variations, alterations and modifications as falling within the scope of protection of the attached claims. According to one aspect, TDCs for converting time intervals into digital values are disclosed. An example TDC has a ring oscillator and a residual generation circuit. Each stage of the residual generation circuit is configured to operate with outputs from two different stages of the ring oscillator. The TDC further includes a counter to count the number of times an output of one of the ring oscillator stages switches between a first signal level and a second signal level during a time interval that is converted into a digital value. The TDC also includes a combiner to generate the digital value by combining a value indicating the number counted by the counter with an output from the residual generation circuit. Such a TDC can have a relatively small footprint and low power consumption compared to conventional TDC designs, while providing sufficiently linear behavior.
Claims
A time-to-digital converter (TDC) comprising: a ring oscillator having multiple stages; a residual generation circuit having multiple stages, one stage of the residual generation circuit being configured to operate with outputs from two stages of the ring oscillator; a counter coupled to an output of one of the multiple stages of the ring oscillator and configured to count a number for a signal at the output of one of the multiple stages of the ring oscillator switching from a first signal level to a second signal level and from the second signal level to the first signal level during a time interval converted into a digital value; and a combiner configured to combine a value indicating the number counted by the counter and an output of the residual generation circuit to produce the digital value. TDC according to claim 1, wherein the value indicating the number counted by the counter is based on the number counted by the counter multiplied by a value indicating the number of stages of the ring oscillator. TDC according to a preceding claim, wherein: the counter comprises a first edge generator and a second edge generator, the first edge generator is configured to generate a first reading when the signal at the output of one of the multiple stages of the ring oscillator switches from the first signal level to the second signal level, the second edge generator is configured to generate a second reading when the signal at the output of one of the multiple stages of the ring oscillator switches from the second signal level to the first signal level, and the number counted by the counter is a sum of a count for the first edge generator generating the first reading and a count for the second edge generator generating the second reading during the time interval that is converted into the digital value. TDC according to a preceding claim, wherein: the counter further comprises a first multiplier, a second multiplier and an adder, the first multiplier is configured to generate a first multiplier output by multiplying a value indicating the number of stages of the ring oscillator and the number for the first edge generator producing the first value during the time period being converted into the digital value, the second multiplier is configured to generate a second multiplier output by multiplying the value indicating the number of stages of the ring oscillator and the number for the second edge generator producing the second value during the time period being converted into the digital value, the adder is configured to generate an adder output by adding the first multiplier output and the second multiplier output, and the value,which indicates the number counted by the counter, based on the adder output. TDC according to a preceding claim, wherein at least one of the elements of counter, residual generation circuit and ring oscillator is configured to be reset after the digital value has been generated and before a conversion of a further time period has begun. TDC according to a preceding claim, wherein: a first stage of the residual generation circuit is configured to operate with an output of a first stage of the ring oscillator and an output of a last stage of the ring oscillator, and a second stage of the residual generation circuit is configured to operate with the output of the first stage of the ring oscillator and an output of a second stage of the ring oscillator. TDC according to a preceding claim, wherein a final stage of the residual generation circuit is configured to operate with outputs from two final stages of the ring oscillator. TDC according to a preceding claim, wherein each stage of the residual generation circuit comprises a logic circuit that acts as an exclusive-OR gate (XOR gate). TDC according to claim 8, wherein the TDC further comprises a corresponding latch circuit corresponding to each stage of the ring oscillator, wherein each latch circuit has an input configured to receive a signal indicating an output of the stage of the ring oscillator corresponding to the latch circuit, and further comprises an output coupled to the logic circuit of the corresponding stage of the residual generation circuit. TDC according to claim 9, wherein at least one of the latch circuits has a further input configured to receive a control signal configured to enable the residual generation circuit to generate the output of the residual generation circuit once the time period being converted into the digital value has ended and before the residual generation circuit is reset for conversion of a further time period. TDC according to a preceding claim, further comprising a pulse conditioning logic configured to generate an enable signal for the ring oscillator and the residual generation circuit, such that: if a start signal precedes a stop signal, the enable signal is active when the start signal is active and the stop signal is inactive, and if the start signal lags the stop signal, the enable signal is active when the stop signal is active and the start signal is inactive. TDC according to a preceding claim, further comprising a saturation logic configured to determine whether the digital value is greater than a saturation threshold, and, if positive, to set the digital value to a predetermined value. TDC according to claim 1, wherein the counter is configured to be reset after the digital value has been generated and before the conversion of a further time period has begun. TDC according to claim 1, wherein the residual generation circuit is configured to be reset after the digital value has been generated and before the conversion of a further time period has begun. TDC according to a preceding claim, wherein each stage of the ring oscillator comprises a logic circuit that acts like a NOT gate. An electronic device comprising: a time-to-digital converter (TDC) configured to convert a time interval specifying a phase difference between a reference clock signal and an input clock signal into a digital value; and a phase-locked loop (PLL) circuit configured to generate an output signal which, by virtue of being based on the digital value generated by the TDC, has a phase relative to a phase of the input clock signal, wherein the TDC comprises: a ring oscillator having multiple stages, a residual generation circuit having multiple stages, each stage of the residual generation circuit being configured to operate with outputs from two stages of the ring oscillator, and a combiner configured to generate the digital value based on an output of the residual generation circuit. Electronic device according to claim 16, wherein the electronic device is a digital signal processing core or a digital signal processing circuit arrangement. A time-to-digital converter (TDC) configured to convert a time interval into a digital value, comprising: a ring oscillator having multiple stages; a multi-stage residual generator, one stage of which is configured to operate with outputs from two stages of the ring oscillator; a counter coupled to an output of one of the stages of the ring oscillator, configured to count the number of switching of a signal at the output of that stage of the ring oscillator between a first and a second level during a time interval; and a combiner configured to generate the digital value based on the number counted by the counter. TDC according to claim 18, wherein the last stage of the residual generation circuit is configured to operate with outputs of the last two stages of the ring oscillator. TDC according to claim 18 or 19, wherein: a first stage of the residual generation circuit is configured to operate with an output of a first stage of the ring oscillator and an output of a last stage of the ring oscillator, and a second stage of the residual generation circuit is configured to operate with the output of the first stage of the ring oscillator and an output of a second stage of the ring oscillator. TDC according to one of claims 18 to 20, wherein the combiner is configured to generate the digital value based on the number counted by the counter multiplied by a value indicating the number of stages of the ring oscillator. TDC according to one of claims 18 to 21, wherein at least one stage of the residual generation circuit comprises a logic circuit that acts like an exclusive-OR gate (XOR gate). TDC according to one of claims 18 to 22, further comprising a pulse conditioning logic configured to generate an enable signal for the ring oscillator and the residual generation circuit, such that: if a start signal precedes a stop signal, the enable signal is active as long as the start signal is active and the stop signal is inactive, and if the start signal lags the stop signal, the enable signal is active as long as the stop signal is active and the start signal is inactive. A method for converting a time interval, which specifies a phase difference between a reference clock signal and an input clock signal, into a digital value, wherein the method comprises: providing, by means of pulse conditioning logic, an enable signal for each from a ring oscillator and a residual generation circuit, wherein: the enable signal is active for the duration of the time interval and is inactive before and after the time interval, the ring oscillator has multiple stages, the residual generation circuit has multiple stages, and each stage of the residual generation circuit is configured to operate with outputs from two stages of the ring oscillator; counting, by means of a counter, a number for the fact that a signal at an output of one of the multiple stages of the ring oscillator switches between a first signal level and a second signal level in a time when the enable signal is active;and generating the digital value based on a value indicating the number counted by the counter and on an output from the remainder generation circuit. The method according to claim 24, comprising further multiplication by one or more multipliers of the number counted by the counter with a value indicating the number of stages of the ring oscillator, wherein the digital value is generated based on a value indicating the multiplication. The method of claim 24 or 25, further comprising generating by a phase-locked loop (PLL) circuit an output signal having a phase which is related to a phase of the input clock signal, by generating the output signal based on the digital value.
Citation Information
Patent Citations
Time-to-digital converter
US20150077279A1
System and method of calibrating input signal to successive approximation register (SAR) analog-to-digital converter (ADC) in ADC-assisted time-to-digital converter (TDC)
US20180076821A1
Circuit and method for digital phase-frequency error detection
US7332973B2
