Skip to content

Khalique13/PLL_OSU180_Workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On-Chip Clock Multiplier (PLL) using OSU180

vsdopentutorial

Table of Contents

Introduction

This repository focuses on workshop on PLL (Phase Locked Loop) also known as On-Chip Clock Multiplier. In this workshop we are going to cover a brief description on what is PLL and it's each block. We will also see pre-layout and post-layout simulations of each block of a PLL.

The clock generator is one of the most crucial part in synchronous processor & probably most susceptible after power lines which can cause failure of entire circuitry if not designed properly. It is widely used in radio frequency or wireless applications.

In view of its usefulness, the phase locked loop or PLL is found in many wireless, radio, and general electronic items from mobile phones to broadcast radios, televisions to Wi-Fi routers, walkie talkie radios to professional communications systems etc.

Here is a block diagram of PLL.

blockdiagram

Tools Used

SPICE Netlist

Inverter

inv-schematic

****************************
*Inverter
***************************

.include osu018.lib

M1 out in GND GND nfet l=180n w=180n
M2 VDD in out VDD pfet l=180n w=360n

V1 in 0 PULSE 0 1.8 10p 50p 50p 100n 200n
v2 VDD 0 1.8


.control
tran 0.01ns 400ns
plot v(in)+2 v(out)
.endc

.end

2-input NAND Gate

nand-schematic

****************************
*2 input nand
***************************

.include osu018.lib

M1 out in1 N001 N001 nfet l=180n w=180n
M2 VDD in2 out VDD pfet l=180n w=360n
M3 VDD in1 out VDD pfet l=180n w=360n
M4 N001 in2 GND GND nfet l=180n w=360n


V1 in1 0 PULSE 0 1.8 10p 50p 50p 100n 200n
V2 in2 0 PULSE 0 1.8 10p 50p 50p 50n 100n
V3 VDD 0 1.8


.control
tran .1ns 200n
plot V(in1)+4 V(in2)+2 V(out)
.endc


.end

3-input NAND Gate

****************************
*3 input nand
***************************


.include osu018.lib

M1 out in1 N001 N001 nfet l=180n w=540n
M2 VDD in2 out VDD pfet l=180n w=360n
M3 VDD in1 out VDD pfet l=180n w=360n
M4 N001 in2 N002 N002 nfet l=180n w=540n
M5 N002 in3 GND GND nfet l=180n w=540n
M6 VDD in3 out VDD pfet l=180n w=360n



V1 in1 0 PULSE 0 1.8 10p 50p 50p 100n 200n
V2 in2 0 PULSE 0 1.8 10p 50p 50p 50n 100n
V3 in3 0 PULSE 0 1.8 10p 50p 50p 25n 50n
V4 VDD 0 1.8


.control
tran .1ns 200n
plot V(in1)+6 V(in2)+4 V(in3)+2 V(out)
.endc


.end

4-input NAND Gate

****************************
*4 input nand
***************************

.include osu018.lib

M1 out in1 N001 N001 nfet l=180n w=720n
M2 VDD in2 out VDD pfet l=180n w=360n
M3 VDD in1 out VDD pfet l=180n w=360n
M4 N001 in2 N002 N002 nfet l=180n w=720n
M5 N002 in3 N003 N003 nfet l=180n w=720n
M6 VDD in3 out VDD pfet l=180n w=360n
M7 N003 in4 GND GND nfet l=180n w=720n
M8 VDD in4 out VDD pfet l=180n w=360n

V1 in1 0 PULSE 0 1.8 10p 50p 50p 100n 200n
V2 in2 0 PULSE 0 1.8 10p 50p 50p 50n 100n
V3 in3 0 PULSE 0 1.8 10p 50p 50p 25n 50n
V4 in4 0 PULSE 0 1.8 10p 50p 50p 12.5n 25n
V5 VDD 0 1.8


.control
tran .1ns 200n
plot V(in1)+8 V(in2)+6 V(in3)+4 V(in4)+2 V(out)
.endc


.end

Pre-Layout Simulation

Inverter Simulation Snap

inv term

Inverter Waveform Snap

inv-wave

NAND Simulation Snap

nand-simulation

NAND Waveform Snap

nand-wave

3-input NAND Simulation Snap

nand3-sim

3-input NAND Waveform Snap

nand3-wave

4-input NAND Simulation Snap

nand4-sim

4-input NAND Waveform Snap

nand4-wave

Phase Frequency Detector simulation Snap

pfd-sim

Phase Frequency Detector Waveform Snap

pfd-wave

Charge Pump with Phase Detector Waveform Snap

cf-wave

Voltage Controlled Oscillator Simulation Snap

vco-wave

Frequency-Divider Simulation Waveform Snap

freq-div-wave

Final PLL Waveform Snap

pll-wave

Layout

# Change direcory to access Layout files
cd PLL_OSU180_Workshop/Layout/`

Standard cell Layout

cd std_cells/
magic -T ../SCN6M_SUBM.10.tech std_cells.mag

std-cell-mag

TKCON terminal Snap

extract all
ext2spice chthresh 0
ext2spice

pfd-tkcon

Phase Frequency Detector Layout

cd pfd/
magic -T ../SCN6M_SUBM.10.tech pfd.mag

pfd-mag

Voltage-Controlled Oscillator Layout

cd pfd/
magic -T ../SCN6M_SUBM.10.tech vco101.mag

vco-mag

MUX Layout

cd mux21/
magic -T ../SCN6M_SUBM.10.tech mux21.mag

mux-mag

Frequency Divider (/2) Layout

cd freqdiv2/
magic -T ../SCN6M_SUBM.10.tech freq_divider2.mag

freq2-mag

Frequency Divider (/8) Layout

cd freqdiv8/
magic -T ../SCN6M_SUBM.10.tech freq_divider8.mag

freq8-mag

Final PLL Layout

cd PLL/ 
magic -T ../SCN6M_SUBM.10.tech pll.mag

Terminal Snap

layout-term

pll-mag

Post-Layout Simulation

  1. Phase Frequency Detector Waveform Snap

pfd-post-sim

  1. Multiplexer waveform Snap

mux-post-sim

  1. Frequency Divider Simulation Snap (by 2)

freqdiv-post-sim

  1. Frequency Divider Simulation Snap (by 8)

freqdiv8-post-sim

  1. Voltage Controlled Oscillator Simulation Snap

vco-sim-post

  1. PLL Final Simulation Snap

pllv2-vcp-post

pllv2-post

pllv2-2post

pllv2-3-post

References

Author

Acknowledgement

About

On-Chip Clock Multiplier (PLL) on OSU180 Workshop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published