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

dev.c.

	* src/analysis/cktpzset.c: Removed unused code.

	* tests/polezero/.cvsignore tests/polezero/Makefile.am
	tests/polezero/filt_multistage.cir
	tests/polezero/filt_multistage.out tests/polezero/filt_rc.cir
	tests/polezero/filt_rc.out: New files to test pole zero
	operations.

	* configure.in tests/Makefile.am: Updated for new files.
This commit is contained in:
arno 2000-06-11 10:32:50 +00:00
parent e563776de8
commit 9d2cbb06b7
11 changed files with 54 additions and 22 deletions

View File

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

View File

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

View File

@ -3,21 +3,6 @@
#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.
**********/

View File

@ -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"
/*
* 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 "bjt/bjtitf.h"
#include "cap/capitf.h"

View File

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

View File

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

View File

@ -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

View File

@ -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

View File

View File

@ -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

View File