Code Monkey home page Code Monkey logo

gnet-spice-noqsi's Introduction

The spice-noqsi back end for lepton-netlist and gnetlist

gnet-spice-noqsi.scm is a "back end" for the lepton-netlist program, which is part of Lepton EDA. See http://gpleda.org/ for details on Lepton and lepton-netlist.

The version for gEDA and gnetlist is frozen. It is tagged here as geda-gaf-release-2.

lepton-netlist -L where/the/.scm/file/is/ -g spice-noqsi ... produces output in SPICE format. It is intended to allow the designer to produce schematics that can be used as input for both SPICE simulation and printed circuit layout. It supports this by providing flexible methods for mapping schematic symbol attributes into the parameters of SPICE declarations and commands.

For a tutorials and reference documentation see the Wiki.

gnet-spice-noqsi's People

Contributors

noqsi avatar xcthulhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

fvila xcthulhu

gnet-spice-noqsi's Issues

One line models

We should support the one line attached model ("model=" attribute) that spice-sdb has for backward compatibility.

Short circuits due to SPICE case insensitivity

gEDA netlisting is, in general, case sensitive while SPICE is not. This can lead to shorts in a SPICE netlist when netnames differ only in case. Or, it can lead to a SPICE simulation that's OK, while the printed circuit netlist has an open circuit due to a case typo.

Tutorial on slotted symbols

Hi John! It would be very helpful to have a tutorial on slotted components
in the gnet-spice-noqsi documentation: how to work with existing symbols,
how to properly construct your own, how the backend interprets the
pinnumber and pinseq attributes, etc.

I can get it working with some symbols, but it's quite confusing, nevertheless,
see the discussion in lepton-eda issue #477.

In the following test schematics (attached), the backend works with the stock
dual-opamp-1.sym, but does not work with my opa2x_dmn.sym and Kai-Martin's opamp_dual.sym, opamp_dual_pwr.sym.

1-test-stock

$ lepton-netlist -g space-noqsi -o - 1-test-stock.sch

* lepton-netlist -g space-noqsi -o - 1-test-stock.sch
* SPICE file generated by spice-noqsi version 20181225
* Send requests or bug reports to [email protected]
X1U1 p1 m1 vcc vee o1
X2U1 p2 m2 vcc vee o2

2-test-dmn

$ lepton-netlist -g space-noqsi -o - 2-test-dmn.sch

* lepton-netlist -g space-noqsi -o - 2-test-dmn.sch
* SPICE file generated by spice-noqsi version 20181225
* Send requests or bug reports to [email protected]
Error: U1 uses slotting. You must list its connections by pinnumber,
  not pinseq.
U1  ne5532 ne5532_ti
1 errors.

3-test-km

$ lepton-netlist -g space-noqsi -o - 3-test-km.sch

* lepton-netlist -g space-noqsi -o - 3-test-km.sch
* SPICE file generated by spice-noqsi version 20181225
* Send requests or bug reports to [email protected]
Error: U1 uses slotting. You must list its connections by pinnumber,
  not pinseq.
U1  TL082
1 errors.

spice-noqsi-test-slotted.tar.gz

Spurious IO pins

Should probably complain when the user has IO pins at top level.

ngspice GND aliasing causes shorts

Ngspice globally aliases GND to be node 0, the datum node. This causes problems with subcircuits:

  1. It is perfectly reasonable to connect a subcircuit's GND to something other than node 0.
  2. A subcircuit without a GND pin will have its internal ground unconnected in a printed circuit netlist, but connected to node 0 in ngspice. Thus, it may simulate fine but not work when constructed.

In my opinion, this is an ngspice misfeature, but it appears we'll have to live with it. Therefore, we should alias GND to something ngspice won't recognize. Only in subcircuits? Configurable?

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.