Browse Source

* src/ngspice.c src/devices/dev.c: Moved AN_* defines to


			
			
				pre-master-46
			
			
		
arno 26 years ago
parent
commit
9d2cbb06b7
  1. 3
      configure.in
  2. 5
      src/analysis/cktpzset.c
  3. 15
      src/ngspice.c
  4. 16
      src/spicelib/devices/dev.c
  5. 2
      tests/Makefile.am
  6. 2
      tests/polezero/.cvsignore
  7. 13
      tests/polezero/Makefile.am
  8. 13
      tests/polezero/filt_multistage.cir
  9. 0
      tests/polezero/filt_multistage.out
  10. 7
      tests/polezero/filt_rc.cir
  11. 0
      tests/polezero/filt_rc.out

3
configure.in

@ -244,6 +244,7 @@ src/maths/sparse/Makefile \
src/misc/Makefile \ src/misc/Makefile \
src/parser/Makefile \ src/parser/Makefile \
tests/Makefile \ tests/Makefile \
tests/resistance/Makefile \
tests/filters/Makefile \ tests/filters/Makefile \
tests/polezero/Makefile \
tests/resistance/Makefile \
) )

5
src/analysis/cktpzset.c

@ -16,11 +16,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#include "sperror.h" #include "sperror.h"
#define CKALLOC(var,size,type) \
if(size && (!(var =(type *)MALLOC((size)*sizeof(type))))){\
return(E_NOMEM);\
}
int int
CKTpzSetup(register CKTcircuit *ckt, int type) CKTpzSetup(register CKTcircuit *ckt, int type)
{ {

15
src/ngspice.c

@ -3,21 +3,6 @@
#include "conf.h" #include "conf.h"
/*
* Analyses
*/
#define AN_op
#define AN_dc
#define AN_tf
#define AN_ac
#define AN_tran
#define AN_pz
#define AN_disto
#define AN_noise
#define AN_sense
#define ANALYSES_USED "op dc tf ac tran pz disto noise sense"
/********** /**********
Copyright 1990 Regents of the University of California. All rights reserved. Copyright 1990 Regents of the University of California. All rights reserved.
**********/ **********/

16
src/spicelib/devices/dev.c

@ -66,6 +66,22 @@
#define DEVICES_USED "asrc bjt bsim1 bsim2 bsim3 bsim3v2 bsim3v1 cap cccs ccvs csw dio ind isrc jfet ltra mes mos1 mos2 mos3 mos6 res sw tra urc vccs vcvs vsrc" #define DEVICES_USED "asrc bjt bsim1 bsim2 bsim3 bsim3v2 bsim3v1 cap cccs ccvs csw dio ind isrc jfet ltra mes mos1 mos2 mos3 mos6 res sw tra urc vccs vcvs vsrc"
/*
* Analyses
*/
#define AN_op
#define AN_dc
#define AN_tf
#define AN_ac
#define AN_tran
#define AN_pz
#define AN_disto
#define AN_noise
#define AN_sense
#define ANALYSES_USED "op dc tf ac tran pz disto noise sense"
#include "asrc/asrcitf.h" #include "asrc/asrcitf.h"
#include "bjt/bjtitf.h" #include "bjt/bjtitf.h"
#include "cap/capitf.h" #include "cap/capitf.h"

2
tests/Makefile.am

@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
SUBDIRS = resistance filters
SUBDIRS = resistance filters polezero
TESTS = \ TESTS = \
diffpair.cir \ diffpair.cir \

2
tests/polezero/.cvsignore

@ -0,0 +1,2 @@
Makefile.in
Makefile

13
tests/polezero/Makefile.am

@ -0,0 +1,13 @@
## Process this file with automake to produce Makefile.in
TESTS = \
filt_multistage.cir \
filt_rc.cir
TESTS_ENVIRONMENT = $(SHELL) $(srcdir)/../check.sh $(top_builddir)/src/ngspice
EXTRA_DIST = \
$(TESTS) \
$(TESTS:.cir=.out)
MAINTAINERCLEANFILES = Makefile.in

13
tests/polezero/filt_multistage.cir

@ -0,0 +1,13 @@
Multistage filter
v1 1 0 0 ac 1.0
r1 1 2 1k
c1 2 0 10p
e2 3 0 2 0 10
r2 3 4 1k
c2 4 0 1.25p
e3 5 0 4 0 10
r3 5 6 1k
c3 6 0 .02p
.pz 1 0 6 0 vol pz
.print pz all
.end

0
tests/polezero/filt_multistage.out

7
tests/polezero/filt_rc.cir

@ -0,0 +1,7 @@
RC filter
v1 1 0 0 ac 1.0
r1 1 2 1k
c1 2 0 10p
.pz 1 0 2 0 vol pz
.print pz all
.end

0
tests/polezero/filt_rc.out

Loading…
Cancel
Save