Ring Oscillator
   HOME

TheInfoList



OR:

A ring oscillator is a device composed of an odd number of NOT gates in a ring, whose output
oscillates Oscillation is the repetitive or periodic variation, typically in time, of some measure about a central value (often a point of equilibrium) or between two or more different states. Familiar examples of oscillation include a swinging pendulum ...
between two voltage levels, representing ''true'' and ''false''. The NOT gates, or inverters, are attached in a chain and the output of the last inverter is fed back into the first.


Details

Because a single inverter computes the logical NOT of its input, it can be shown that the last output of a chain of an odd number of inverters is the logical NOT of the first input. The final output is asserted a finite amount of time after the first input is asserted and the feedback of the last output to the input causes oscillation. A circular chain composed of an even number of inverters cannot be used as a ring oscillator. The last output in this case is the same as the input. However, this configuration of inverter feedback can be used as a storage element and it is the basic building block of
static random access memory Static random-access memory (static RAM or SRAM) is a type of random-access memory (RAM) that uses latching circuitry (flip-flop) to store each bit. SRAM is volatile memory; data is lost when power is removed. The ''static'' qualifier differ ...
or SRAM. The stages of the ring oscillator are often differential stages, that are more immune to external disturbances. This renders available also non-inverting stages. A ring oscillator can be made with a mix of inverting and non-inverting stages, provided the total number of inverting stages is odd. The oscillator period is in all cases equal to twice the sum of the individual delays of all stages. A ring oscillator only requires power to operate. Above a certain voltage - typically well below the threshold voltage of the MOSFETs used - oscillations begin spontaneously. To increase the frequency of oscillation, two methods are commonly used. First, making the ring from a smaller number of inverters results in a higher frequency of oscillation, with about the same power consumption. Second, the supply voltage may be increased. In circuits where this method can be applied, it reduces the propagation delay through the chain of stages, increasing both the frequency of the oscillation and the current consumed.


Operation

To understand the operation of a ring oscillator, one must first understand
gate delay Propagation delay is the time duration taken for a signal to reach its destination, for example in the electromagnetic field, a wire, gas, fluid or solid body. Physics * An electromagnetic wave travelling through a medium has a propagation de ...
. In a physical device, no gate can switch instantaneously. In a device fabricated with
MOSFET upright=1.3, Two power MOSFETs in amperes">A in the ''on'' state, dissipating up to about 100 watt">W and controlling a load of over 2000 W. A matchstick is pictured for scale. In electronics, the metal–oxide–semiconductor field- ...
s, for example, the
gate capacitance In electronics, gate capacitance is the capacitance of the gate terminal of a field-effect transistor (FET). It can be expressed as the absolute capacitance of the gate of a transistor, or as the capacitance per unit area of an integrated circuit ...
must be charged before
current Currents, Current or The Current may refer to: Science and technology * Current (fluid), the flow of a liquid or a gas ** Air current, a flow of air ** Ocean current, a current in the ocean *** Rip current, a kind of water current ** Current (hydr ...
can flow between the source and the drain. Thus, the output of every inverter in a ring oscillator changes within a finite amount of time after the input has changed. From here, it can be easily seen that adding more inverters to the chain increases the total gate delay, reducing the frequency of oscillation. The ring oscillator is a member of the class of time-delay oscillators. A time-delay oscillator consists of an inverting amplifier with a delay element between the amplifier output and its input. The amplifier must have a gain greater than 1 at the intended oscillation frequency. Consider the initial case where the amplifier input and output voltages are momentarily balanced at a stable point. A small amount of noise can cause the amplifier output to rise slightly. After passing through the time-delay element, this small output voltage change will be presented to the amplifier input. The amplifier has a negative gain of greater than 1, so the output will change in the direction opposite to this input voltage. It will change by an amount larger than the input value, for a gain greater than 1. This amplified and reversed signal propagates from the output through the time-delay and back to the input where it is amplified and inverted again. The result of this sequential loop is a square-wave signal at the amplifier output with the period of each half of the square wave equal to the time delay. The square wave will grow until the amplifier output voltage reaches its limits, where it will stabilize. A more exact analysis will show that the wave that grows from the initial noise may not be square as it grows, but it will become square as the amplifier reaches its output limits. The ring oscillator is a distributed version of the time-delay oscillator. The ring oscillator uses an odd number of inverters to give the effect of a single inverting amplifier with a gain of greater than one (Although, a single inverter in a loop is stable and a ring oscillator with odd number or inverters in a loop, is not). Rather than having a single delay element, each inverter contributes to the delay of the signal around the ring of inverters, hence the name ring oscillator. Adding pairs of inverters to the ring increases the total delay and thereby decreases the oscillator frequency. Changing the supply voltage changes the delay through each inverter, with higher voltages typically decreasing the delay and increasing the oscillator frequency. Vratislav describes some methods of frequency-stability and power consumption improving of the CMOS ring-oscillator. If ''t'' represents the time delay for a single inverter and ''n'' represents the number of inverters in the inverter chain, then the frequency of oscillation is given by: :f = .


Jitter

The period of a ring oscillator varies in a random manner as T+T' where T' is a random value. In high-quality circuits, the range of T' is relatively small compared to the average period T. This variation in oscillator period is called ''jitter''. Local temperature effects cause the period of a ring oscillator to wander above and below the long-term average period. Andy Green
Whirlygig GPL Hardware RNG
2010
When the local silicon is cold, the propagation delay is slightly shorter, causing the ring oscillator to run at a slightly higher frequency, which eventually raises the local temperature. When the local silicon is hot, the propagation delay is slightly longer, causing the ring oscillator to run at a slightly lower frequency, which eventually lowers the local temperature. So, the frequency of a silicon ring oscillator will generally be stable, when the ambient temperature is constant and factors of heat transfer from the device to the ambient environment do not vary.


Applications

* A ring oscillator is one way to implement an on-chip oscillator, although some kind of
relaxation oscillator In electronics, a relaxation oscillator is a nonlinear electronic oscillator circuit that produces a nonsinusoidal repetitive output signal, such as a triangle wave or square wave. on Peter Millet'Tubebookswebsite The circuit consists of a ...
is another popular implementation. *The
voltage-controlled oscillator A voltage-controlled oscillator (VCO) is an electronic oscillator whose oscillation frequency is controlled by a voltage input. The applied input voltage determines the instantaneous oscillation frequency. Consequently, a VCO can be used for fre ...
in some
phase-locked loop A phase-locked loop or phase lock loop (PLL) is a control system that generates an output signal whose phase is fixed relative to the phase of an input signal. Keeping the input and output phase in lockstep also implies keeping the input and ou ...
s is built from a ring oscillator. *Jitter of ring oscillators is commonly used in
hardware random number generator In computing, a hardware random number generator (HRNG), true random number generator (TRNG), non-deterministic random bit generator (NRBG), or physical random number generator is a device that generates random numbers from a physical process c ...
s. *A ring oscillator is sometimes used to demonstrate a new hardware technology, analogous to the way a
hello world program Hello is a salutation or greeting in the English language. It is first attested in writing from 1826. Early uses ''Hello'', with that spelling, was used in publications in the U.S. as early as the 18 October 1826 edition of the '' Norwich Cou ...
is often used to demonstrate a new software technology. *Many
wafer A wafer is a crisp, often sweet, very thin, flat, light biscuit, often used to decorate ice cream, and also used as a garnish on some sweet dishes. They frequently have a waffle surface pattern but may also be patterned with insignia of the foo ...
s include a ring oscillator as part of the scribe line test structures. They are used during
wafer testing A wafer is a crisp, often sweet, very thin, flat, light biscuit, often used to decorate ice cream, and also used as a Garnish (food), garnish on some sweet dishes. They frequently have a waffle surface pattern but may also be patterned with insi ...
to measure the effects of manufacturing process variations. *Ring oscillators can also be used to measure the effects of voltage and temperature on a chip."Analysis of a ring oscillator based on-chip thermal sensor"


See also

*
Bode plot In electrical engineering and control theory, a Bode plot is a graph of the frequency response of a system. It is usually a combination of a Bode magnitude plot, expressing the magnitude (usually in decibels) of the frequency response, and a B ...
*
Phase margin In electronic amplifiers, the phase margin (PM) is the difference between the phase (waves), phase lag (< 0) and -180°, for an amplifier's output signal (relative to its input) at zero dB gain - i.e. unity gain, or that the output signal has the ...
*
Ring counter A ring counter is a type of counter composed of flip-flops connected into a shift register, with the output of the last flip-flop fed to the input of the first, making a "circular" or "ring" structure. There are two types of ring counters: * A ...


Notes

{{Reflist Digital circuits Electronic oscillators