help-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnucap] adding models


From: Felix Salfelder
Subject: Re: [Help-gnucap] adding models
Date: Mon, 21 Jan 2013 21:54:37 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Jan 16, 2013 at 05:07:08PM +0100, address@hidden wrote:
> Wondering about how to add models in Gnucap I read part 6 of this
> manual :
> http://www.gnu.org/software/gnucap/gnucap-man.pdf
> 
> Could you explain what the enhanced subcircuit corresponds to or
> give some references I could check ?

in my understanding, 'enhanced subcircuit' is a subcircuit consisting of
behavioural models [1] interacting with each other. these are written
down in spice or acs syntax and plugged together at runtime.

> In the end, I must say I am really interested in the "Primitive" way
> to add them.
> 
> Since the manual doesn't talk about that, I was wondering if you had
> a draft manual introducing to working with "primitive", or maybe a
> "hello world" example and maybe a slightly more complicated example.

the primitive way then must be writing C++ code by hand. this more or
less means implementing something that inherits from COMPONENT. in fact,
there is some documentaion in gnucap-man.pdf, see 7.2.2 for some
explanation of what the different members are supposed to do during a
transient analysis.

beyond that, we/i have tried to port an admsxml based model compiler
(targetting spice) to gnucap with some tiny success. it creates
primitive models, which even work in case of simple devices (a resistor,
capacitor, a lamp, an operational amplifier). these are included in the
tarball [2]. once, also hicum and jfet transistors worked...

have fun
felix

[1] 
http://gnucap.org/dokuwiki/doku.php?id=gnucap:manual:devices:basic:inline_behavioral_modeling
[2] http://tool.em.cs.uni-frankfurt.de/~felix/gnucap-uf/gnucap-adms-0.0.1.tar.gz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]