Coder Social home page Coder Social logo

rlc-circuit-mor's Introduction

Modified Nodal Analysis with Model Order Reduction

Implementation of a circuit simulator to test effectiveness of the PRIMA (Passive Reduced-order Interconnect Macromodeling Algorithm) model order reduction technique.

Installation

This project uses pipenv, so first obtain it:

python3 -m pip install pipenv

Obtain the source to this project:

git clone https://github.com/mm318/rlc-circuit-mor.git
cd rlc-circuit-mor/
pipenv shell
pipenv sync

Usage

$ python3 main.py --help
usage: main.py [-h] -i I [I ...] -o O [O ...] [-r R] N

Run modified nodal analysis on a given network.

positional arguments:
  N                     filename of circuit (SPICE format)

optional arguments:
  -h, --help            show this help message and exit
  -i I [I ...], --input_sources I [I ...]
                        component name(s) of circuit inputs
  -o O [O ...], --output_nodes O [O ...]
                        node name(s) of circuit to observe
  -r R, --reduce R      experiment with model order reduction using given order

Example

python3 main.py reference/clock_tree.sp -i v_clk_src -o pt1 pt16 --reduce 20

The full circuit model of the clock_tree.sp example has 2522 internal states, and the command above reduces the model down to just 20 internal states. The following is a comparison of the simulation results:

Example transient analysis

There are imperfections as expected. However, the simulation runtime for the same number of timesteps for the full circuit model is around 5 seconds and 0.015 seconds for the reduced circuit model.

Example frequency analysis

The frequency analysis shows that frequency response of the reduced circuit model is accurate up to a certain point.

References

The PRIMA technique originated from the following paper:

Odabasioglu, Altan & Çelik, Menşure & Pileggi, Lawrence. (1998). PRIMA: Passive reduced-order interconnect macromodeling algorithm. Computer-Aided Design of Integrated Circuits and Systems, IEEE Transactions on. 17. 645-654. 10.1109/43.712097.

rlc-circuit-mor's People

Contributors

mm318 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.