From 4eb6744fca66089367804400a1a6bf3423a6fe86 Mon Sep 17 00:00:00 2001 From: pnenzi Date: Mon, 9 Aug 2004 15:24:45 +0000 Subject: [PATCH] Added test for sensitivity analysis. --- tests/sensitivity/Makefile.am | 12 +++ tests/sensitivity/diffpair.cir | 31 ++++++ tests/sensitivity/diffpair.out | 171 +++++++++++++++++++++++++++++++++ 3 files changed, 214 insertions(+) create mode 100644 tests/sensitivity/Makefile.am create mode 100644 tests/sensitivity/diffpair.cir create mode 100644 tests/sensitivity/diffpair.out diff --git a/tests/sensitivity/Makefile.am b/tests/sensitivity/Makefile.am new file mode 100644 index 000000000..5633d5428 --- /dev/null +++ b/tests/sensitivity/Makefile.am @@ -0,0 +1,12 @@ +## Process this file with automake to produce Makefile.in + + +TESTS = diffpair.cir + +TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/bin/check.sh $(top_builddir)/src/ngspice + +EXTRA_DIST = \ + $(TESTS) \ + $(TESTS:.cir=.out) + +MAINTAINERCLEANFILES = Makefile.in diff --git a/tests/sensitivity/diffpair.cir b/tests/sensitivity/diffpair.cir new file mode 100644 index 000000000..2e1bad9ca --- /dev/null +++ b/tests/sensitivity/diffpair.cir @@ -0,0 +1,31 @@ +simple differential pair - CM and DM dc sensitivity + +* Models: +.model qnl npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) +.model qnr npn(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) + +* Circuit description: +q1 4 2 6 qnr +q2 5 3 6 qnl +rs1 11 2 1k +rs2 3 1 1k +rc1 4 8 10k +rc2 5 8 10k +q3 7 7 9 qnl +q4 6 7 9 qnr +rbias 7 8 20k + +* Inputs/Supplies: +vcm 1 0 dc 0 sin(0 0.1 5meg) ac 1 +vdm 1 11 dc 0 sin(0 0.1 5meg) ac 1 +vcc 8 0 12 +vee 9 0 -12 + +* Analyses: +.tf v(5) vcm +.tf v(5) vdm +.sens v(5,4) + +.print SENS all + +.end diff --git a/tests/sensitivity/diffpair.out b/tests/sensitivity/diffpair.out new file mode 100644 index 000000000..269ae79d7 --- /dev/null +++ b/tests/sensitivity/diffpair.out @@ -0,0 +1,171 @@ + +No. of Data Rows : 1 + +No. of Data Rows : 1 + +No. of Data Rows : 1 + +Circuit: simple differential pair - CM and DM dc sensitivity + +Warning -- Level not specified on line "(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50)" +Using level 1. +Warning -- Level not specified on line "(bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50)" +Using level 1. +Doing analysis at TEMP = 300.150000 and TNOM = 300.150000 +Transfer function information: +transfer_function = -1.10341e-01 +output_impedance_at_v(5) = 9.446843e+03 +vcm#input_impedance = 1.793366e+06 + +Transfer function information: +transfer_function = -8.78493e+01 +output_impedance_at_v(5) = 9.446843e+03 +vdm#input_impedance = 8.940897e+03 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q1:bf q1:br q1:eg q1:fc +-------------------------------------------------------------------------------- +0 1.851978e-02 -1.942280e-08 -1.749802e-08 -3.884560e-08 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q1:is q1:nc q1:ne q1:nf +-------------------------------------------------------------------------------- +0 4.549980e+16 -9.711399e-09 -1.294853e-08 -1.339677e+02 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q1:nr q1:rb q1:rbm q1:tnom +-------------------------------------------------------------------------------- +0 -1.942280e-08 -1.487980e-03 1.410876e-04 -6.960475e-01 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q1:vaf q1:xti q1_area q1_areab +-------------------------------------------------------------------------------- +0 -1.143803e-02 -6.474266e-09 4.684669e+00 -1.942280e-08 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q1_areac q1_m q1_temp q2:bf +-------------------------------------------------------------------------------- +0 -1.942280e-08 4.684670e+00 2.497064e-01 -1.851978e-02 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q2:br q2:eg q2:fc q2:is +-------------------------------------------------------------------------------- +0 5.908633e-09 5.323093e-09 1.181727e-08 -4.549980e+16 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q2:nc q2:ne q2:nf q2:nr +-------------------------------------------------------------------------------- +0 2.954316e-09 3.939089e-09 1.339677e+02 5.908633e-09 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q2:rb q2:rbm q2:tnom q2:vaf +-------------------------------------------------------------------------------- +0 1.487980e-03 -1.410877e-04 6.960475e-01 1.143803e-02 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q2:xti q2_area q2_areab q2_areac +-------------------------------------------------------------------------------- +0 1.969544e-09 -4.684669e+00 5.908633e-09 5.908633e-09 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q2_m q2_temp q3:bf q3:br +-------------------------------------------------------------------------------- +0 -4.684670e+00 -2.497064e-01 3.970467e-18 3.534097e-22 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q3:eg q3:fc q3:is q3:nc +-------------------------------------------------------------------------------- +0 2.729032e-22 6.058452e-22 6.776264e+01 1.514613e-22 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q3:ne q3:nf q3:nr q3:rb +-------------------------------------------------------------------------------- +0 2.019484e-22 -1.897354e-13 3.029226e-22 -3.705769e-18 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q3:rbm q3:tnom q3:vaf q3:xti +-------------------------------------------------------------------------------- +0 9.693523e-23 -1.003891e-15 -4.135903e-21 1.009742e-22 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q3_area q3_areab q3_areac q3_m +-------------------------------------------------------------------------------- +0 6.776264e-15 3.029226e-22 3.029226e-22 7.623297e-15 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q3_temp q4:bf q4:br q4:eg +-------------------------------------------------------------------------------- +0 3.764591e-16 -5.955700e-18 1.009742e-22 9.096774e-23 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q4:fc q4:is q4:nc q4:ne +-------------------------------------------------------------------------------- +0 2.019484e-22 -6.776264e+01 5.048710e-23 6.731613e-23 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q4:nf q4:nr q4:rb q4:rbm +-------------------------------------------------------------------------------- +0 2.168404e-13 1.009742e-22 4.235165e-18 -7.940934e-19 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q4:tnom q4:vaf q4:xti q4_area +-------------------------------------------------------------------------------- +0 1.129377e-15 2.541099e-17 3.365807e-23 -6.776264e-15 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index q4_areab q4_areac q4_m q4_temp +-------------------------------------------------------------------------------- +0 1.009742e-22 1.009742e-22 -7.623297e-15 -3.764591e-16 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index rbias rbias_m rbias_scale rc1 +-------------------------------------------------------------------------------- +0 3.811648e-19 -7.623297e-15 7.623297e-15 6.031558e-04 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index rc1_m rc1_scale rc2 rc2_m +-------------------------------------------------------------------------------- +0 -6.031564e+00 6.031558e+00 -6.031558e-04 6.031564e+00 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index rc2_scale rs1 rs1_m rs1_scale +-------------------------------------------------------------------------------- +0 -6.031558e+00 -1.346892e-03 1.346894e+00 -1.346892e+00 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index rs2 rs2_m rs2_scale vcc +-------------------------------------------------------------------------------- +0 1.346892e-03 -1.346894e+00 1.346892e+00 0.000000e+00 + + simple differential pair - CM and DM dc sensitivity +-------------------------------------------------------------------------------- +Index vcm vdm vee +-------------------------------------------------------------------------------- +0 1.290931e-13 -1.758090e+02 4.235165e-16 + + + +