You are on page 1of 5

Performance of CMOS Ring Oscillator

K. B. K. Teo, Churchill College, Email: kbkt2@eng.cam.ac.uk

Abstract
This experiment investigates various methods of determining the delay in CMOS
gates. Direct measurement, ring oscillator and simulation methods are used and
compared. A stroboscopic pulse generator was also examined during the experiment.
Finally, the effects of supply voltage and output load on gate delay were examined.

1. Introduction The output driver probably introduces the most


delay/error in the measurement as it has to drive the
Custom designed ring oscillator CMOS IC’s were output pin, coax cabling and oscilloscope input. All
used in this experiment to determine gate delays under these external factors make up a considerable load
various conditions. A schematic of one of these IC’s is which increases the delay in the output. Thus, the gate
shown in Figure 1. This IC contains 2 ring oscillators delay measurement is limited by the output
with 113 and 115 gates respectively. The input and loading/buffer and will be much greater than the actual
output pads of the IC also contain inverting NOR gate device
Square wavedelay.
buffers/drivers which are not shown on this schematic. input (pin 39)
Output (pin 5)
LOW Input (pin 3)
2. Single Device Gate Delay Using an Oscilloscope
3V
Square wave input
The gate delay of a single device is first 1MHz, 3V p-p
determined by injecting a 1MHz square wave into the 0V

input of the single NOR gate and observing the output 3V


Output is inverted
waveform. The second input of the NOR gate was held 1MHz, 3V p-p
low. The serial number of the chip used was “21-19” 0V
Dual trace oscilloscope
and the power supply of the chip was set at 3V. This
produced an inverting output as shown in Figure 2.
Input trace To measure the delay, the
3V
A gate delay of 50ns was measured by expanding time scale was expanded
the oscilloscope time scale and measuring the time and both traces were super-
imposed. The delay was
between the midpoints of the rising/falling waveforms. Output trace is determined between the
0V inverted using
oscilloscope for midpoints of both traces.
measurement
This direct method of determining gate delay can
Dual trace oscilloscope
be misleading and erroneous. This IC contains input
and output inverting buffers. And so we are in fact Figure 2: Measuring the gate delay directly
measuring the total delay of 3 gates - the input buffer,
4
the NOR gate under test, and the output driver inverter.
Ring oscillator 113 gates

7
4 3 4

8 ÷2 Pulse generator 5 3 Inputs to NOR


39 gates to control
9 Single NOR ring oscillation
Pulse generator gate
3 39
10

Ring oscillator 115 gates


Figure 1: Schematic of a ring oscillator IC

1
3. Testing the Ring Oscillator measured between these gates, the gate delay per stage
is (0.1µs÷37) = 2.7ns. This corresponds well to the
In order to overcome the errors of direct gate delay obtained using the period of the ring
measurement, the ring oscillator is used. Using inputs oscillator.
3 or 39 to the control NOR gates on the 115-gate ring
oscillator (see Figure 1), it is possible to start and stop Likewise, we could consider a waveform
the ring oscillator. emerging from output 7 before output 6, and there are
76 intervening gates between these outputs. For a total
With a ‘high’ input into either control NOR gate delay of 0.175µs measured between these outputs, the
(inputs 3 or 39), the output of the control NOR gate gate delay per stage is (0.175µs÷76) = 2.3ns. This also
will always be low. Thus, the ring cannot oscillate. corresponds well to the gate delay obtained using the
period of the ring oscillator.
However, when a low is input into the control
NOR gates, the NOR gate will be able to transmit and The ring oscillator provides the most accurate
invert the signal from the previous stage, hence means of determining the gate delay. Unlike measuring
allowing the ring to ‘run freely’ and oscillate. the gate delay directly as described in section 2, the
period of the ring oscillator is independent of the
To demonstrate how the ring can be ‘gated’ on and output loading due to the oscilloscope/frequency
off, a square wave of 100kHz is fed into the control counter. The loading of the output buffer merely
NOR gate, with the other control NOR gate set on low introduces a phase shift to the entire oscillating
(free-run). Whenever the square wave inputs a ‘low’ waveform, but does not alter its period.
into the control NOR gate, the ring oscillates, as
illustrated in Figure 3. Furthermore, by using many series devices in the
ring to increase the oscillation period, we are able to
3V Input 39 - square wave determine the delays of devices which are much faster
100kHz, 3V p-p
0V
than the speed of our measurement system. The use of
many devices also averages out manufacturing
3V Output 10 - oscillations will
occur whenever the control differences between the devices.
0V NOR gate is driven low via
Dual trace oscilloscope
input 39. 5. Effect of Power Supply Voltage
(NB. Both traces have been inverted
on the display to compensate
for the inverting input and Using a single ring oscillator, the power supply
output buffers on the IC.)
voltage was varied from 1V to 6V and the frequency of
Figure 3: Gating the ring oscillator on and off oscillation was measured. Below ~0.6V, we were
unable to obtain full amplitude oscillations from the
ring. The results are presented in Figure 4.
4. Determining the Gate Delay Using the Ring
Oscillator 4.5
4
Frequency (Mhz)
Ring Oscillation

3.5
The 115-element ring was set oscillating and the 3
period of oscillation was measured to be about 0.5µs 2.5
2
using the oscilloscope. The accuracy of the period 1.5
measurement is limited to the shortest oscilloscope 1
timescale available and the grid markings on the 0.5
0
oscilloscope screen. Using the frequency counter, the 1 2 3 4 5
period of oscillation can be determined with greater
Average gate delay (ns)

precision and it was measured to be 0.540µs.


100

In one oscillation period, the signal is cycled low


and high. Thus, the signal has actually travelled twice
10
around the ring within one period. Hence, it is
necessary to divide the oscillation period by 2 when
determining the gate delay of each gate in the ring. The
1
gate delay of each gate in the ring is calculated to be: 0 1 2 3 4 5 6
Supply voltage (V)
oscillation period 0.54µs Figure 4: Effect of supply voltage on oscillation
gate delay = = = 2.3ns
no of gates × 2 115 × 2 frequency and gate delay

The gate delay can also be obtained by measuring With a higher supply voltage, each transistor
the delay between different outputs in the ring. If we experiences a higher input gate voltage, which in turn
consider a waveform emerging from output 6 before produces more output drain current (due to MOS
output 7 (as in Figure 1), there are 37 intervening gates device gain β) to drive the capacitative gates of the
between the outputs. For a total delay of 0.1µs transistors in the next stage.

2
The rise time (tr) and fall time (tf), from which Thus, with greater gain, more current can be
gate delay is determined, are approximated as [1]: supplied to charge the capacitative gate of the next
stage, allowing the devices to switch quicker (see Eqn
tr ≈ k ×
CL
(Eqn 1) 1). This threefold increase in p-channel width however
β p VDD does not result in a threefold increase in circuit speed.
tf ≈ k ×
CL
(Eqn 2) This is because the widening the p-channel devices
β n VDD only improves/decreases the rise-time. The fall-times,
determined by n-channel devices, are not improved.
Where CL is the capacitative loading of the
Moreover, because of the wider gates in the p-
output/next stage,
channel devices, the capacitative gate load of the next
β is the MOS transistor gain factor for p stage is increased which cancels some of the speed
and n-channel devices, and,
gains obtained from a higher β. Thus, only a 24%
VDD is the supply voltage.
increase in performance is observed.
Increasing VDD will decrease the delay times. This
Larger devices also reduce the density of devices
increases the frequency of oscillation linearly because
on an IC.
frequency α 1/gate delay.
7. Simulation of Device Performance
However, as VDD is increased, the power
consumption of the circuit is also raised and this can The circuit shown in Figure 5 was simulated using
lead to IC failure due to excessive heat dissipation and
AccuSim using transistors of similar dimensions to chip
electromigration (high current density in metal lines).
“28-46”. The input waveform (A) consists of a linear
In reality, the CMOS designer has to make a
ramp from 0 to 5V, a flat region and a linear ramp back
compromise between circuit performance and power down to 0V.
consumption.
A B C D E
6. Performance Comparison with Transistors of
Different Dimensions

A second ring oscillator IC (chip “28-46”), Gate used in


designed with p-channel transistors 3 times wider than
chip design 28 F
those in the first ring oscillator (chip “21-19”), was
investigated. The frequency of oscillation and gate
delay of this IC compared with the original ring
oscillator IC are presented in the following table.

@ ~3V Chip 21-19 Chip 28-46


Ring period 0.566 µs 0.426 µs
Ring frequency 1.77 MHz 2.35 MHz
Gate delay 2.5 ns 1.9 ns

Table 1: Comparing IC’s with transistors of different


dimensions.

Chip design “28-46”, with wider p-channel


devices, is 24% faster when compared with chip design Figure 5: AccuSim simulation of a 3-gate
“21-19”. By increasing the width (W) of the p-channel pulse generator
devices by 3, the gain (βp) of the devices is also
increased threefold, as [2]: The input pulse (A) is delayed and sequentially
inverted as it passes through the 4 series NOR gates,
µpε  W  which gives rise to waveforms B to E. The waveforms
βp =   (Eqn 3) B-E are different in shape to the original linear ramp.
t ox  L 
This is because the simulator has taken into account
the drain conductance and the capacitance loading of
Where βp is the MOS transistor gain factor for the gates in the next stage. And thus, waveforms B-E
p-channel devices, exhibit similar gradual ‘charging’ ramps expected from
µp is the mobility of holes in the channel, driving capacitative loads. It also appears that there is
ε is the permittivity of the gate some ringing/voltage overshoot at the start of each
insulator, waveform which could be due to some inductance.
tox is the thickness of the gate insulator,
W is the width of the device, and When both B and E are low, a high pulse is
L is the channel length. produced at F.

3
Ring oscillator (113 gates)
From Figure 5, we can determine the simulated 7
gate delay per stage. 1ns is measured between the
midpoints of the transitions of the highlighted
waveforms C and E (going through 2 gates). The 8 ÷2 Pulse generator

average gate delay is 1ns ÷ 2 gates = 0.5ns. 9


Pulse generator
We also determined the gate delay of chip “28-19”
using its 115 element ring oscillator running at 5V for 10
Ring oscillator (115 gates)
comparison with the simulated results. The period of (From Figure 1)
oscillation was 233ns, which gives us a gate delay of NB. If both rings are running, a pulse is only observed
(233/(115x2)) = 1ns per stage. at output 9 when pulses from both rings arrive at the
final NOR gate simultaneously.

The simulation produced a gate delay which was Figure 7: Pulses when both rings are oscillating
half the value obtained through experiment. This is
because the simulation did not take into account the t1
Output 10 - ring oscillation,
resistance of the polysilicon lines which connected the period (t 1 ) = 3ms
various stages. This line resistance (RL) increases the t2
Output 9 - pulsed output,
gate delay since the charging time of the capacitance pulse width (t 2 ) = 0.275ms
(CL) of the next stage depends on the RLCL time t3
Output 8 - divide by 2 circuit,
constant. period (t 3 ) = 6ms

Oscilloscope
8. Stroboscopic Pulse Generator (NB. All traces have been inverted
on the display to compensate
for the inverting output buffers
A pulse generator is also present in our ring on the IC.)

oscillator as shown in Figure 6. During each oscillation Figure 8: Various outputs with one ring oscillating
of the ring, there will only be a short instance when at 0.7V supply (chip design 28-46)
both the inputs (A and B) to the pulse generator NOR
gate are low. This instance spans the delay of 5 gates From Figure 8, the average gate delay calculated
and produces a short pulse at the output (C). This was from output 10 (ring oscillation) is 3ms÷(115×2) =
observed experimentally with one ring oscillating at a 13µµs. Assuming the pulses from output 9 are generated
supply voltage of 0.7V. from 5 gate delays, the gate average gate delay can
also be calculated by 0.275ms÷5 = 55µ µs. This is 4
C Pulse generator times the average gate delay obtained using the ring
oscillation. The increased delay is probably due to the
B A output loading of the pulse circuit (which cannot drive
(From Figure 1) the output effectively due to the low supply voltage
~0.7V).
A - oscillating waveform
As the supply voltage was increased, the gate
B - oscillating waveform, delay and pulse width decreased until the pulse was too
inverted and delayed short to be observed on the oscilloscope (at ~1V
by 5 gates.
supply).
C - pulses from the NOR gate
only when both A and B
are low, which occurs 9. Ring Oscillators with Realistic Loads on the
once per oscillation.
Devices in the ring
Figure 6: Generating pulses from the ring oscillator
Ring oscillators consisting of devices with
In our IC, both ring oscillators have pulse different loads were tested at a fixed supply voltage
generators (see Figure 7). The outputs of both pulse (5V). Figure 9, on the next page, shows how the gate
generators are inverted, and fed into another NOR delay is affected by device loading for an inverter
gate. The output of this final NOR gate will only be (NOT) ring oscillator and a NAND ring oscillator.
high when both its inputs are low. As both rings are
oscillating asynchronously, low pulses from both The gate delay linearly increases with the number
oscillators will only intermittently arrive at the NOR of loads on each gate. This implies that in complex
gate simultaneously. Hence, with both rings logic circuits where gates have different loading, the
oscillating, we can only intermittently see a pulse at delay will depend on the loading of each gate. The
output 9. This was observed experimentally using a gate with the most load/delay would determine the
supply voltage of 0.7V. fastest speed that the logic could operate at.
Manufacturers of IC’s would specify in their
With one ring oscillating, the operation of the datasheets the maximum time delay before data is
edge triggered divide by 2 circuit (“÷2” in Figure 7) valid on the output pins of an IC for a specific load.
was also verified. This is illustrated in Figure 8.

4
1.2 AccuSim’s simulated gate delays were found to be

Average gate delay (ns)


1 half the value observed on the real device because the
simulation failed to account for the resistance of the
0.8
polysilicon interconnects in the IC.
0.6

0.4 We also verified the operation of the pulse


0.2 Inverter ring generator and divide by 2 circuits incorporated in the
oscillator ring oscillator IC.
0
0 1 2 3 4 5
Gate load The effect of output loading on gate delay was
1.6
also investigated. We found that the gate delay
Average gate delay (ns)

1.4
increased linearly with the number of loads on each
1.2 gate.
1
0.8
0.6
0.4
NAND ring References
0.2
oscillator
0 1. Weste, N. H. E. and Eshraghanm K., “Principles of
0 1 2 3 4 5
CMOS VLSI Design: A Systems Perspective”, 2nd
Gate load
edition, Addison-Wesley, 1993, page 208-213.
Figure 9: Effect of output loading on gate delay
2. Ibid, page 52.
Finally, the effect of supply voltage on the
performance of the inverter (single load) ring oscillator
was determined (Figure 10). The gate delays obtained
for the inverter were less than the gate delays for the
NOR gate. This is because the inverter, a 2 transistor
gate, is a simpler device with less interconnects
(smaller RL) and gate capacitance (smaller CL) per
stage than the 2-input NOR gate (4 transistors).

7
6
frequency (MHz)
Ring oscillation

5
4
3
2 Inverter
1 ring oscillation
0
Average gate delay (ns)

10
NOR gate delay,
chip “21-19”

1
Inverter
gate delay

0.1
0 1 2 3 4 5
Supply voltage (V)
Figure 10: Effect of voltage on oscillation frequency
and gate delay for the singly loaded inverter ring.
The delay of NOR gates in chip “21-19” is plotted
for comparison.

10. Conclusions

The ring oscillator provides the most accurate


means of determining the average gate delay. As its
supply voltage was increased, the gate delay decreased
and the ring oscillation frequency increased linearly.

We also found that the performance of a gate can


be sightly improved by increasing the width of its p-
channel devices. This however results in larger gates
and smaller gate density on the IC.

You might also like