Code Monkey home page Code Monkey logo

pyspectre's Introduction

PySpectre

Python interface to Cadence Spectre.

Dependencies and Requirements

Installation

$ pip install git+https://github.com/augustunderground/pyspectre.git

Example

Simulate a netlist and retrieve simulation results:

import pyspectre as ps

netlist  = 'path/to/netlist.scs'
includes = ['path/to/pdk/libs']

results  = ps.simulate(netlist, includes)

Start an interactive session:

import pyspectre as ps

netlist  = 'path/to/netlist.scs'
includes = ['path/to/pdk/libs']

# Start Interactive session
session  = ps.start_session(netlist, includes)

# Retrieve simulation analyses defined in the netlist
analyses = ps.get_analyses(session)

# Get values for parameters defined in the netlist
params   = ps.get_parameters(session, ['Wcm2', 'Ld'])

# Set netlist parameters
ps.set_parameters(session, {'Wcm2': 2.0e-6, 'Ld': 1.0e-6})

# Simulate
results  = ps.run_all(session)

# End Interactive session
ps.stop_session(session)

Check ./test/example.py for more.

pyspectre's People

Contributors

augustunderground avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyspectre's Issues

Excited to use pyspectre!

Hey @AugustUnderground ! Very interesting project, the code seems very concise, can it handle all analysis types in spectre like Noise, monte-carlo, etc ? I was planning to write something like this or try and modify pyspice to run spectre. I would try and contribute if I can get simple tests working.

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.