Giter VIP home page Giter VIP logo

avsdadc_3v3's Introduction

SAR Analog-To-Digital Converter

This repository will maintain simulation files and other relevant files of the SAR ADC block worked on in the VSD Summer Online Internship 2020

Note: Circuit requires further optimization to improve performance. Design yet to be modified.

Table of contents

A Glance at the ADC IP

The Design Specifications of the ADC IP can be found here.

The SAR ADC is built using 5 important blocks:

  1. Anti-Aliasing Filter
  2. Sample and Hold
  3. Comparator
  4. SAR
  5. DAC

Block Diagram of the SAR ADC IP

Internal Block Diagram of the SAR ADC IP

SAR ADC Performance Parameters

Parameter Description Min Typ Max Unit Condition
VDDA Analog Supply Voltage 3.2 V T=40C to 85C
VDD Digital Supply Voltage 1.8 V T=40C to 85C
VREFH Reference Voltage High 3.3 V T=40C to 85C
VREFL Reference Voltage Low 0 V T=40C to 85C
FCLK Clock Frequency 0.01 1 2 MHz T=40C to 85C
RES Resolution 10 Bits For all above typical conditions (T=27C)
INL Integral Non-Linearity LSB For all above typical conditions (T=27C)
DNL Differential Non-Linearity -14.9 LSB For all above typical conditions (T=27C)
RIN Analog Input Resistance 110 kohm T=-40C - 85C
CL Analog Input Capacitance pF VT=-40C - 85C
IVREF Current through Reference Source 1.06 mA For all above typical conditions (T=27C)
T1 Start signal duration 0.5 Clock Cycles T=-40C - 85C
TCONV Conversion Time 12 Clock Cycles T=-40C - 85C
T4 Tracking Time 4 us T=-40C - 85C
IDDA Analog Supply Current 2.97619 mA T=27C, EN=1,FCLK=2MHz
IDDA Analog Supply Current pA T=27C, EN=0,FCLK=2MHz
IDDD Digital Supply Current 2.833 mA T=27C, EN=1,FCLK=2MHz

Subcircuits within the SAR ADC IP

Circuit Diagram of Sample & Hold

Circuit Diagram of Clock Divider

Circuit Diagram of Comparator

Circuit Diagram of R-2R DAC

Circuit Diagram of SAR Logic

Layout

Layout of SAR ADC

Layout of Sample and Hold Circuit

Layout of Comparator

Layout of R-2R DAC

Layout of SAR Logic

Layout of Clock Divider

Running the Simulation

To enter the Ngspice Shell, open the terminal & type:

$ ngspice

To simulate a netlist, type:

ngspice 1 ->  source <filename>.cir

You can exit from the Ngspice Shell by typing:

ngspice 1 ->  exit

or

ngspice 1 ->  quit

Pre-Layout Simulation

To clone the Repository and download the Netlist files for Simulation, enter the following commands in your terminal.

$  sudo apt install -y git
$  git clone https://github.com/ADC-TEAM2020/SAR_ADC
$  cd SAR_ADC/Simulation/PreLayout_v1.0/

Transfer Function of SAR ADC [INPUT RANGE 0-3.3]

Waveform Analysis of SAR ADC [INPUT RANGE 0-3.3]

 Open the sar_adc.cir file and enter the input voltage [0V-3.3V] as shown in the image below.

Run the netlist file using the following command.

$  ngspice sar_adc.cir

Observe the corresponding Digital Output when EOC[End-of-Conversion Signal] is HIGH between 11.5us -12.0us

Vin = 2000mV
Digital Code= 1001101101 (621)

Pre-Layout DNL Errror

Max DNL Error = 7.663975155279 LSB

Pre-Layout INL Errror

To be recomputed using Best Fit Curve method, accounting for gain and offset error

Post Layout Simulation

Transfer Function of SAR ADC [INPUT RANGE 0-3.3]

Post-Layout DNL Errror

Post-Layout INL Errror

To be recomputed using Best Fit Curve method, accounting for gain and offset error

Open-Source VLSI Tools

About Ngspice

Ngspice is an open source mixed-signal circuit simulator.

Installing Ngspice

For Ubuntu

Open your terminal and type the following to install Ngspice

$  sudo apt-get install -y ngspice

Magic

Magic is a VLSI layout tool.

Type the following to install Magic in Ubuntu

$  wget http://opencircuitdesign.com/magic/archive/magic-8.3.54.tgz
$  tar xvfz magic-8.3.54.tgz
$  cd magic-8.3.54
$  ./configure
$  sudo make
$  sudo make install

Issues | Improvements | Future Work

  1. Script to automate DNL/INL Calculations completely will be developed.
  2. Layout will be redone following recommended Mixed Signal Layout practices.
  3. INL will be recalculated using the Best Fit Curve method, accounting for gain and offset error.
  4. DNL error for lower digital codes needs to be reduced.
  5. Sample & Hold must be optimized to improve hold capabilty.
  6. Comparator design should be modified to reduce Deadband and Offset.
  7. Opamp to be used in DAC must be optimized to give a better transient response and higher Bandwidth.
  8. The number of transistors used in a SAR logic must be reduced. The Non-Redundant Successive Approximation Register architecture, which requires only 'N' D flip flops for N-bit conversion, can be employed for this.
  9. Anti-Aliasing Filter yet to be designed.

Contributors

  • Sheryl Serrao
  • Ananya Ghorai
  • Shalini Priya
  • Uday Vempalli
  • Kunal Ghosh

Acknowledgments

  • Kunal Ghosh, Co-founder, VSD Corp. Pvt. Ltd.
  • Philipp Gühring, Software Architect, LibreSilicon Assocation
  • Saroj Rout, Associate Professor & Chief Mentor of VLSI Center of Excellence SIT, Bhubaneswar, India
  • Santunu Sarangi, Asst. Professor, SIT, Bhubaneswar, India
  • Tim Edwards, Senior Vice President of Analog and Design at efabless corporation

Contact Information

avsdadc_3v3's People

Contributors

adc-team2020 avatar kunalg123 avatar mou3ananya avatar shalini161 avatar sherylcorina avatar uday2012 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.