Coder Social home page Coder Social logo

bagnet_ngspice's Introduction

BagNet release for NGSPICE

This repo contains the demo code for demonstraing the algorithm of BagNet in ngspice environment. BagNet results have been demonstrated in ICCAD 2019 and DAC 2019.

BagNet demo on BAG (Berkeley Analag Generator) with post layout simulations is comming soon.

setup

Clone the repo and update the submodules.

git clone
cd repo
git submodule update --init --recursive

NGSpice installation

NGspice 2.7 needs to be installed separately, via this installation link. Page 607 of the pdf manual on the website has instructions on how to install. Note that you might need to remove some of the flags to get it to install correctly for your machine.

Code structure

This repo contains two submodule:

  • (bb_envs): Contains example implementations of black-box environments used for optimization. For more info go to the link and read the documentation.
  • (deep_ckt): Contains the submodules for black-box env framework and the algorithms used for circuit optimization. Look into the submodule for more details.

running prepared experiements

command.sh contains the commands that reproduce the results of ICCAD paper for the two stage opamp optimization problem. You can comment/un-comment the sections that you deem necessary.

./commands.sh

running custom experiments

For custom experiments, a yaml file containing algorithm specifications should be passed to top level script located at ./deep_ckt/efficient_ga/run_scripts/main.py. For example:

./run.sh ./deep_ckt/efficient_ga/run_scripts/main.py specs/examples/cs_amp.yaml

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.