example hic0.cir and make

This commit is contained in:
rlar 2012-04-13 16:03:41 +02:00
parent c08e17aed2
commit 021fa1448c
2 changed files with 59 additions and 0 deletions

17
hic0.cir Normal file
View File

@ -0,0 +1,17 @@
dummy example
* (compile "ngspice -b hic0.sp")
VB B 0 0.5
VC C 0 2.0
VS S 0 0.0
X1 C B 0 S hicumL0V1p1_c_sbt
.control
dc vb 0.2 1.0 0.5
run
print i(vc)
.endc
.subckt hicumL0V1p1_c_sbt c b e s
uhcm0 c b e s 0 hic0_full
.model hic0_full hicum0 is=1.3525E-18 vef=8.0 iqf=3.0e-2 iqr=1e6
.ends hicumL0V1p1_c_sbt
.end

42
wip-adms3.el Normal file
View File

@ -0,0 +1,42 @@
(mkdir "../build-wip-adms3")
(compile "./autogen.sh")
(defun compile% (command)
(let ((default-directory (expand-file-name "../build-wip-adms3/"))
(process-environment (list*
(substitute-env-vars "PATH=$PATH:$(readlink -f ../../adms/adms-2.3.0-1500)")
process-environment)))
(compile command)))
(compile% "../ngspice/configure --enable-adms3")
(compile% "LC_ALL=C make -j3")
;;; das admsXml ist hier vom autoconf ? bereits no ist nicht ...
;;; in den makefile sind abs path drin
(compile "LC_ALL=C make -C src/spicelib/devices/adms/ekv/adms3va top_srcdir=$(pwd) top_builddir=$(readlink -f ../build-adms3) ADMS=$(readlink -f ../../adms/adms-2.3.0-1500/admsXml)")
(compile "LC_ALL=C make -C src/spicelib/devices/adms/hicum0/adms3va top_srcdir=$(pwd) top_builddir=$(readlink -f ../build-adms3) ADMS=$(readlink -f ../../adms/adms-2.3.0-1500/admsXml)")
(compile "LC_ALL=C make -C src/spicelib/devices/adms/ekv/adms3va top_srcdir=$(pwd) clean")
(compile "LC_ALL=C make -C src/spicelib/devices/adms/hicum0/adms3va top_srcdir=$(pwd) clean")
;;; jetzt passts, ergebnis wie bei laurent ? check ...
;;; execute
(compile "LD_LIBRARY_PATH=src/spicelib/devices/adms/hicum0/adms3va \
../build-wip-adms3/src/ngspice -b hic0.cir")
;;; expected:
Model issue on line 0 : .model x1:hic0_full hicum0 is=1.3525e-18 vef=8.0 iqf=3.0 ...
unrecognized parameter (hicum0) - ignored
;;; expected
0 2.000000e-001 2.996258e-012
1 7.000000e-001 -8.84510e-007