Med3 (1) - 28-42
Med3 (1) - 28-42
Experiment 5
Ring Oscillator
5.1 Aim
• Design and simulate a three-stage and five-stage CMOS ring oscillator
5.2 Theory
• A ring oscillator is a device composed of an odd number of NOT gates (inverters)
in a ring, whose output oscillates between two voltage levels.
• The main principle of operation is based on the signal propagation delay through
each inverter stage. With an odd number of inverters connected in a closed loop,
the circuit becomes unstable and oscillates.
• Due to the odd number of inversions around the loop, the circuit has no stable
operating point and continuously switches between logic states.
• Ring oscillators are widely used in VLSI systems for clock generation, phase-locked
loops (PLLs), and as a benchmark circuit for characterizing process variations in
integrated circuit manufacturing.
• They provide a simple way to generate clock signals without using external
components like crystals or inductors, making them suitable for on-chip
applications where area and cost are important factors.
26
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
2
3
5 VDD Vdd 0 DC 5
6
12
17
22
23
24
25
26
27
28
2
3
5 VDD Vdd 0 DC 5
6
12
13 M3 out2 out1 Vdd Vdd PMOS_MOD =10 u L=1 u
14 M4 out2 out1 0 0 NMOS_MOD =10 u L=1 u
15 C2 out2 0 1 p
16
17
22
27
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
27
32
33
34
35
36
37
38
7
8 M1 out1 out3 Vdd Vdd PMOS_MOD =10 u L=1 u
9 M2 out1 out3 0 0 NMOS_MOD =10 u L=1 u
10 C1 out1 0 1 p
11
12
17
18 M5 out3 out2 Vdd Vdd PMOS_MOD =10 u L=1 u
19 M6 out3 out2 0 0 NMOS_MOD =10 u L=1 u
20 C3 out3 0 1 p
21
22
23
24
25
26
27
28
29
28
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
3
4
5 VDD Vdd 0 DC 5
6
12
17
22
23
24
25
26
27 param w 10 u 20 u 30 u W/
28
29
4 * Power supply
5 VDD Vdd 0 DC 5 ; 5 V power suppl y
6
7 * First inverter
8 M1 out1 out3 Vdd Vdd PMOS_MOD W =10 u L=1 u
9 M2 out1 out3 0 0 NMOS_MOD W =10 u L=1 u
10 C1 out1 0 { co} ; Va riable load capacitance
11
12 * Second inverter
13 M3 out2 out1 Vdd Vdd PMOS_MOD W =10 u L=1 u
14 M4 out2 out1 0 0 NMOS_MOD W =10 u L=1 u
15 C2 out2 0 { co} ; Va riable load capacitance
16
17 * Third inverter
18 M5 out3 out2 Vdd Vdd PMOS_MOD W =10 u L=1 u
19 M6 out3 out2 0 0 NMOS_MOD W =10 u L=1 u
20 C3 out3 0 { co} ; Va riable load capacitance
21
29
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
24
25
26
27 5 p 10 p
28
29
5.4 Result
5.4.1 Oscillation Frequency Calculation
7
8
30
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
7
8
5.5 Observation
• The simulations demonstrated that ring oscillators with an odd number of inverter
stages produce stable oscillations with a frequency determined by the propagation
delay of each stage and the total number of stages.
• The five-stage ring oscillator has a lower oscillation frequency than the three-stage
oscillator, confirming the inverse relationship between stage count and frequency.
• Increasing the W/L ratio of the transistors increases the oscillation frequency due
to higher current drive capability.
• Increasing the load capacitance decreases the oscillation frequency due to increased
charging/discharging time.
31
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
• The ring oscillator circuit provides a simple yet effective way to generate clock
signals in digital systems without external components.
• The simulation results align with the theoretical relationship: frequency 1/(2 × n
× td), where n is the number of stages and td is the propagation delay per stage.
32
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 5
33
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
Experiment 6
2:1 Multiplexer Using Transmission Gates
6.1 Aim
• Design and simulate a 2:1 multiplexer using CMOS transmission gates
6.2 Theory
• A 2:1 multiplexer (MUX) is a digital circuit that selects one of two input signals
and forwards it to the output based on a selection signal.
• When the select signal (S) is high, the transmission gate connected to input A
conducts, allowing A to pass to the output. When S is low, the transmission gate
connected to input B conducts.
• The complementary nature of transmission gates ensures that only one input path
is active at a time, preventing signal contention.
• Transmission gate-based multiplexers are widely used in VLSI design due to their
low power consumption, reduced transistor count, and bidirectional signal
capability.
3
4
5 VDD Vdd 0 DC 5
34
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
8
VA
9
VB
10
11
12
13
14
Sbar S Vdd Vdd PMOS_MOD =10 u L=1 u
15
Sbar S 0 0 NMOS_MOD W=5 u L=1 u
16
17
25
26
C1 Y 0 1 p
27
28
29
30
3
4
8
9
10
11
12
16 A when
17 M3 A 0 NMOS_MOD =10 u u NMOS
18 M4 A Sbar Y Vdd PMOS_MOD =20 u L=1 u PMOS
19
20 B when
21 M5 B 0 NMOS_MOD =10 u u NMOS
22 M6 B S Y Vdd PMOS_MOD =20 u L=1 u PMOS
23
35
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
24
25 C1 Y 0 1 p
26
27
28
29
30
31
32
33
4 * Power supply
5 VDD Vdd 0 DC 5 ; 5 V power supply
6
7 * Input signals
8 VA A 0 PULSE (0 5 0 1 n 1 n 50 n 100 n) ; Input A
9 VB B 0 PULSE (0 5 25 n 1 n 1 n 50 n 100 n) ; Input B
10 VS S 0 PULSE (0 5 0 1 n 1 n 100 n 200 n) ; Select signal
11
24 * Output load
25 C1 Y 0 1 p ; Output load capacitance
26
27 * Transient analysis
28 . tran 0.1 n 400 n ; Simulate for 400 ns with a 0.1 ns step
29 . step param wn list 5 u 10 u 20 u ; W/ L ratio variations
30 . print tran V( A) V( B) V( S) V( Y) ; Print signals
31 . measure tran tpd_HL_a trig V( S) val =2.5 rise =1 targ V( Y) val =2.5 fall
=1 ; S=1 to Y transition
32 . measure tran tpd_LH_a trig V( S) val =2.5 fall =1 targ V( Y) val =2.5 rise
=1 ; S=0 to Y transition
33 . end
36
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
2
3
5 VDD Vdd 0 DC 5
6
8 A
9 B
10
11
12
16 when
17 A S Y 0 NMOS_MOD =10 u L=1 u
18 A Y Vdd PMOS_MOD =20 u u
19
20
21 B Sbar Y 0 NMOS_MOD =10 u L=1 u
22 B S Y Vdd =20 u L=1 u
23
24
25
26
27
28
29
30
31
32
33
4 * Power supply
5 VDD Vdd 0 DC 5 ; 5 V power supply
6
7 * Input signals
8 VA A 0 PULSE (0 5 0 1 n 1 n 50 n 100 n) ; Input A
9 VB B 0 PULSE (0 5 25 n 1 n 1 n 50 n 100 n) ; Input B
10 VS S 0 PULSE (0 5 0 1 n 1 n 100 n 200 n) ; Select signal
11
37
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
16
20 B when
21 M5 B 0 NMOS_MOD =10 u u
22 M6 B S Y Vdd PMOS_MOD =20 u L=1 u
23
24
25 C1 Y 0 1 p
26
27
28
29
30
31
32
33
6.4 Result
6.4.1 Basic Functionality Verification
6
7
10
38
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
6.5 Observation
• The 2:1 multiplexer using transmission gates successfully routes the selected input
signal to the output based on the control signal S.
• Transmission gates provide full voltage swing at the output without the threshold
voltage drop that would occur with single-transistor pass gates.
• The complementary control signals (S and Sbar) ensure that only one transmission
path is active at any time, preventing signal contention.
• Supply voltage has a significant impact on propagation delay, with higher voltages
resulting in faster switching speeds.
• Increasing the W/L ratio of the transistors improves switching speed by reducing
the on-resistance of the transmission gates, but with diminishing returns.
• The circuit demonstrates good noise margins and signal integrity across various
operating conditions.
39
Roll No.: 23294917080 | B. Tech. ECE B--B2 Experiment 6
40