Re: [ng-spice] Switch problems once more


To ng-spice@ieee.ing.uniroma1.it
From Alan Gillespie <alan.gillespie@analog.com>
Date Mon, 30 Oct 2000 10:07:12 +0000
CC ng-spice-devel <ng-spice-devel@ieee.ing.uniroma1.it>
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
References <Pine.LNX.3.96.1001026101808.349A-100000@ieee.ing.uniroma1.it > <39F945B9.CB8405F2@uci.agh.edu.pl > <39F988AC.43050D6A@analog.com > <39FBFB38.AEDE7EF4@uci.agh.edu.pl >
Reply-To ng-spice@ieee.ing.uniroma1.it
Sender agilles@epc.co.uk

> Now back to ngspice... Switch levels can be used but:
>     1) I  don't know how to add them

I added levels to the BJT model. I can't remember
exactly how it worked, but it wasn't that difficult.

>     2) I am not sure if they are really needed. How often standard "rapid" 
>switches
> will be used? This was the first time that I needed a switch, and I am 
>doing really
> a lot of simulations.

I've used the switch to make a simple comparator with
hysteresis. There's no need to sacrifice backward
compatibility.

>     3) Commercial PSPICE and other spice based simulators that I know don't 
>use
> rapid switches.

Yeah, I agree that if we introduce a smoother changing
switch, it would be more useful.

If you send in your code, I'll have a look at adding
the levels.

Cheers,

Alan

Partial thread listing: