Coder Social home page Coder Social logo

analog-generators's Introduction

analog-generators

BAG scripts for analog design, simulation, and layout.

Obey the NDA

Do not under any circumstances put proprietary information in this repository!

Best Practices

  • Naming convention: FUNCTION_topologyName_yourName.py
    • Examples of FUNCTION: OTA, TIA, OPAMP, REFERENCE, DAC
    • Examples of topologyName: diffAmpN, diffAmpP, foldedCascodeP, foldedCascodeN, bandgap, constantGm
    • Example of a file name: OTA_diffAmpN_lydiaLee.py
  • At the top of each generator, include the following:
    • Name
    • Semester/Year: Last updated or created

Process Characterization

  1. Source the .cshrc (with csh)
    • source .cshrc
  2. On the cluster, run Cadence Virtuoso
    • virtuoso &
    • The ampersand (&) will allow you to continue using the terminal normally even when Virtuoso is running
  3. Add the necessary cds.libs to your default cds.lib
    • Add this to your cds.lib: INCLUDE $BAG_WORK_DIR/cds.lib.core
  4. In the Virtuoso CDF window, start a BAG server:
    • load("start_bag.il")
    • Wait until the Virtuoso window indicates a BAG server has been started
  5. Create a .yaml file to configure your characterization settings
    • Templates have been provided in specs_mos_char/nch_w0d5_100nm.yaml and specs_mos_char/pch_w0d5_100nm.yaml
    • The templates characterize using schematic only (view_name: 'schematic')
  6. Copy scripts_char/mos_char.py and modify the copy to point to the .yaml file you'd like to use for characterization settings
  7. Start BAG
    • ./start_bag.sh
  8. Run the script you created in (4)
    • run -i ./path-to-your-script/your-script.py
    • The '-i' flag isn't mandatory, but it's useful for debugging
  9. Wait
    • Depending on what you're running, this could take a while
    • Noise simulations in particular take a long time

Running Your Own Scripts

  1. Source the .cshrc (with csh)
    • source .cshrc
  2. If you need to interface with Virtuoso:
    1. On the cluster, run Cadence Virtuoso
      • virtuoso &
      • The ampersand (&) will allow you to continue using the terminal normally even when Virtuoso is running
    2. In the Virtuoso CDF window, start a BAG server:
      • load("start_bag.il")
      • Wait until the Virtuoso window indicates a BAG server has been started
  3. Start BAG in Terminal
    • ./start_bag.sh
  4. Run the script you created
    • run -i ./path-to-your-script/your-script.py
    • The '-i' flag isn't mandatory, but it's useful for debugging

analog-generators's People

Contributors

lydia-lee avatar

Watchers

 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.