Skip to content

analog-ml/LP_OPAMP_130nm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Low Power Operational Amplifier in 130nm Technology

This project includes the simulation of two stage Operational Amplifier design and postlayout simulation of different parameters of the Op-Amp.

Contents

Overview of LV Op-Amp IP

The low power operational amplifier consists of two stages and operates at 1.8V power. It is designed to meet a set of provided specification such as high gain and low power consumption.

This two-stage op-amp is designed using the Skywater 130nm technology library. The proposed two stage op-amp consists of NMOS current mirror as bias circuit, differential amplifier as the first stage and common source amplifier as the second stage.

The first stage of an op-amp contributed high gain while the second stage contributes a moderate gain. The results show that the circuit is able to work at 1.8V power supply voltage (VDD)

Block Diagram of Low Power Operational Amplifer IP

Circuit Diagram of Low Power Operational Amplifer IP

Specifications

Specification Value
Supply Voltage (VDD) 1.8V
Differential Gain 72dB
CMRR 10dB
Gain Bandwidth Product 850MHz
Phase Margin 72°
Power Dissipation at
10kHz 1mV p-p sinusoid
with 1kΩ
24 fW
Slew Rate 40 V/ns

Performance Parameters

Parameter Description Min Type Max Unit Condition
Technology 0.18 um CMOS Process
VDD Supply Voltage 0.6 (6.6db) 1.8 (72db) 19 (7.2db) V T= 27C
Differential Gain 6.6 72 7.2 db T= 27C and for above Supply Volatges VDD
CMRR Common Mode Rejection Ratio 1790 1750 1690 - T=-40C to 200C
V-offset Output Offset Voltage -1.77 -0.85 -0.38 V T=-40C to 200C

Open-Source-Tools-Used

  • eSim

    • eSim (previously known as Oscad / FreeEDA) is a free/libre and open source EDA tool for circuit design, simulation, analysis and PCB design. It is an integrated tool built using free/libre and open source software such as KiCad, Ngspice and GHDL. eSim is released under GPL.
    • https://esim.fossee.in/home
  • Ngspice

  • SkyWater Open Source PDK

    • The SkyWater Open Source PDK is a collaboration between Google and SkyWater Technology Foundry to provide a fully open source Process Design Kit and related resources, which can be used to create manufacturable designs at SkyWater’s facility.
    • https://github.com/google/skywater-pdk
  • Magic

    • Magic is a venerable VLSI layout tool, written in the 1980's at Berkeley by John Ousterhout, now famous primarily for writing the scripting interpreter language Tcl. Due largely in part to its liberal Berkeley open-source license, magic has remained popular with universities and small companies. The open-source license has allowed VLSI engineers with a bent toward programming to implement clever ideas and help magic stay abreast of fabrication technology.
    • http://opencircuitdesign.com/magic/

Installation in Ubuntu

  • The eSim Software is currently available for Windows 7, 8 and 10 and Ubuntu 16.04 LTS and above

  • The Magic Design Tool is available for Ubuntu

  • Ngspice is installed when eSim is installed, but if any other version is needed please follow the steps mentioned

  • The Pre-requisites for installing the following in Ubuntu are

    • git
    • make
  • Install them using

    To make sure that you install the latest version of the software(that is the package information is up to date)

    $ sudo apt-get update
    
    $ sudo apt install git
    
    $ sudo apt install make
    

eSim Installation

Please refer to the following links for proper installation of eSim

Ngspice Installation

Please refer to the following links for proper installation of Ngspice

SkyWater PDK Installation

  • In Windows

  • In Ubuntu In terminal, execute the following commands

  • To download the repository into the current working directory

    $ git clone git://opencircuitdesign.com/open_pdks
    
  • Go to open_pks directory

    $ cd open_pdks
    
  • Configure and install

    $ ./configure --enable-sky130-pdk
    
    $ make
    
    $ sudo make install
    

Installation in Windows

  • The eSim Software is currently available for Windows 7, 8 and 10 and Ubuntu 16.04 LTS and above

  • Ngspice and SkyWater PDK are installed when eSim is installed in Windows OS.

eSim Installation

Please refer to the following links for proper installation of eSim

Note: In windows there is no need to install ngspice and sky130nm PDK saperately. They will be installed when you install eSim directely.

Pre Layout Schematic and Simulations

Create the schematic of your circuit withh mos transistors and extract the netlist file and by using kicad to ngspice converter in eSim convert the spice file into ngspice file and follow the below steps.

  • Step1. Please download sky130 from this link and unzip : https://static.fossee.in/esim/installation-files/sky130_fd_pr.zip
  • Step2. Save the .cir.out file in the sky_fd_pr folder as .cir file.
  • Step3. Open with notepad and add the path .lib "models/sky130.lib.spice" tt at the top.
  • Step4. Replace with CMOSP, mos_p with sky130_fd_pr__pfet_01v8 and CMOSN, mos_n with sky130_fd_pr__nfet_01v8.
  • Step5. To replace an inductor, capacitor, or resistor do it this way for example: L1 out gnd 1m by x1 out gnd mid 0 sky130_fd_pr__ind_03_90.
  • Note: For more details go to the cells folder in sky_fd_pr. Open the specific component folder which you want to use. Then open the test folder and check the SPICE file. The SPICE file is an example of implementation of that component. You will get to know how to use the component in your ckt.
  • Step6. Now Run the ckt with ngspice

To Run the ckt using ngspice:

  • Step1. Right click on the .cir file.
  • Step2. Click on Open With
  • Step3. Browse for the ngspice.
  • Step4. If ngspice is not present scroll down click on More Apps.
  • Steps5. Go to the FOSSEE folder search for Ngspice. Run it.

Differential Mode Gain

Run the following commands in ngspice run command window after setting the location of the .cir file.

source differential_mode_gain.cir

Differential_Mode Gain Magnitude in dB

Differential Mode_Gain Phase in degrees

Common Mode Gain

Run the following commands in ngspice run command window after setting the location of the .cir file.

source common_mode_gain.cir

Common_Mode Gain Magnitude in dB

Common_Mode Gain Phase in degrees

Offset Voltage

Run the following commands in ngspice run command window after setting the location of the .cir file.

source offset_voltage.cir

Common_Mode Gain Magnitude in dB

Input Noise Spectrum

Run the following commands in ngspice run command window after setting the location of the .cir file.

source input_noise_spectrum.cir

To obtain Noise Spectrum

  • Please run the following commands in the ngspice window for obtaining the plot

  • Use setplot to see all plots available

    ngspice-> setplot
    
  • select the plot which has "Noise Spectral Density Curves".For example,

    ngspice-> setplot noise1
    
  • Then plot the graph using the command

    ngspice-> plot inoise_spectrum
    

Input Noise Spectrum

Power Dissipation

source power_dissipation.cir

Power Dissipation for 1kOhm load with 2mV p-p sine input

Note:
  • The above simulation is done for 1Kohm load with 2mV p-p sine input

Slew Rate

source slew_rate.cir

Slew Rate

A much easier plot to see slew rate could be obtained by changing the analysis as

.tran 0.5f 10ns

Slew Rate

Transient Analysis

The Transient Anlysis when the inputs are vin1=sine(0 1m 60) and vin2=sine(0 -1m 60).

source transient_analysis.cir

Transient Analysis

The Transient Analysis when the inputs are vin1=sine(0 5m 60) and vin2=0V

Transient Analysis

Temp V/S Differential Mode Gain (Temp : -40C - 200C)

source temp_differential_mode_gain.cir

Temp_Differential_mode_gain

Temp_Differential_mode_gain_output

Temp V/S Common Mode Gain (Temp : -40C - 200C)

source temp_common_mode_gain.cir

Temp_Common_mode_gain

Temp_Common_mode_gain_output

Temp V/S Offset Voltage (Temp : -40C - 200C)

source temp_offset_voltage.cir

Temp_Offset_voltage

Note:
  • For performing any of the simulation mentioned in this repository the sky130_fd_pr folder is necessary.
  • All simulation given in this repository are properly linked to the sky130_fd_pr library. Hence files execute with no error if the folders are kept as such
  • For any external simulation using SkyWater Models, it is a must to properly include the library

Contributors

  • Velugoti Ashok kumar

Acknowledgments

  • Kunal Ghosh, Director, VSD Corp. Pvt. Ltd.
  • Sumanto kar, Assistant Project Manager, FOSSEE
  • Dr.K.Babulu, Professor, Department of ECE, UCEV, JNTUK, DWARAPUDI Post, VIZIANAGARAM, A.P, 53500

Contact Information

About

This repository is about Low Power Operational Amplifier design in Skywater 130nm PDK open source tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors