From 430718830022a1710a9e008b456d240f725e4ce4 Mon Sep 17 00:00:00 2001 From: Francesc Vila Date: Thu, 13 Feb 2014 17:39:50 +0100 Subject: [PATCH] Added support to analog functions on ADMS models --- .../devices/adms/admst/ngspiceMODULE.hxx.xml | 34 ++-- .../admst/ngspiceMODULEanalogfunction.c.xml | 158 +++++++++++++++++- .../admst/ngspiceMODULEanalogfunction.h.xml | 92 ++++++++++ .../adms/admst/ngspiceMODULEdefs.h.xml | 2 +- .../admst/ngspiceMODULEguesstopology.c.xml | 21 ++- .../devices/adms/admst/ngspiceMakefile.am.xml | 14 +- 6 files changed, 300 insertions(+), 21 deletions(-) create mode 100644 src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.h.xml diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULE.hxx.xml b/src/spicelib/devices/adms/admst/ngspiceMODULE.hxx.xml index 514ef7e0c..5a49bf74a 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULE.hxx.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULE.hxx.xml @@ -253,19 +253,27 @@ - - - - - - fabs - shrinkl - shrinka - log10 - logE - limexp - limexp - %(name) + + + + + + + + + + + + + + + + + + + + + diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml index 2afb12732..238046760 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEanalogfunction.c.xml @@ -1,7 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + +#ifndef $(module)analogfunction +#define $(module)analogfunction + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#endif /* $(module)analogfunction */ + + + + + + + + + + + + + + + + + + diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml index 47c12af49..b6747b0a6 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml @@ -319,7 +319,7 @@ typedef struct s$(module)model { /* model structure */ #include "$(module)ext.h" -#include "analogfunction.h" +#include "$(module)analogfunction.h" #endif /*$(module)*/ diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml index b27faae1f..5186df349 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEguesstopology.c.xml @@ -37,7 +37,26 @@ - + + + + + + + + + + + + + + + + + + + + diff --git a/src/spicelib/devices/adms/admst/ngspiceMakefile.am.xml b/src/spicelib/devices/adms/admst/ngspiceMakefile.am.xml index 47593bc43..61fd43703 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMakefile.am.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMakefile.am.xml @@ -54,7 +54,9 @@ BUILT_SOURCES = \\ $(module)pzld.c \\ $(module)setup.c \\ $(module)temp.c \\ - $(module)trunc.c + $(module)trunc.c \\ + $(module)analogfunction.h \\ + $(module)analogfunction.c lib$(module)_la_SOURCES = \\ \$(BUILT_SOURCES) @@ -84,7 +86,7 @@ DISTCLEANFILES = Makefile.am \\ \%.c \%.hxx \\ \%acld.c \%ask.c \%defs.h \%del.c \%dest.c \%ext.h \%guesstopology.c \\ \%init.c \%init.h \%itf.h \%load.c \%mask.c \%mdel.c \%mpar.c \%par.c \\ - \%pzld.c \%setup.c \%temp.c \%trunc.c \\ + \%pzld.c \%setup.c \%temp.c \%trunc.c \%analogfunction.h \%analogfunction.c \\ : \$(srcdir)/admsva/\%.va \\ \$(ADMSXMLINTERFACE)/ngspiceVersion.xml \\ \$(ADMSXMLINTERFACE)/ngspiceMODULEitf.h.xml \\ @@ -108,7 +110,9 @@ DISTCLEANFILES = Makefile.am \\ \$(ADMSXMLINTERFACE)/ngspiceMODULEnoise.c.xml \\ \$(ADMSXMLINTERFACE)/ngspiceMODULEguesstopology.c.xml \\ \$(ADMSXMLINTERFACE)/ngspiceMODULE.hxx.xml \\ - \$(ADMSXMLINTERFACE)/ngspiceMODULE.c.xml + \$(ADMSXMLINTERFACE)/ngspiceMODULE.c.xml \\ + \$(ADMSXMLINTERFACE)/ngspiceMODULEanalogfunction.h.xml \\ + \$(ADMSXMLINTERFACE)/ngspiceMODULEanalogfunction.c.xml admsXml -I\$(srcdir) -I\$(srcdir)/admsva \$< \\ -e \$(ADMSXMLINTERFACE)/ngspiceVersion.xml \\ -e \$(ADMSXMLINTERFACE)/ngspiceMODULEitf.h.xml \\ @@ -132,7 +136,9 @@ DISTCLEANFILES = Makefile.am \\ -e \$(ADMSXMLINTERFACE)/ngspiceMODULEnoise.c.xml \\ -e \$(ADMSXMLINTERFACE)/ngspiceMODULEguesstopology.c.xml \\ -e \$(ADMSXMLINTERFACE)/ngspiceMODULE.hxx.xml \\ - -e \$(ADMSXMLINTERFACE)/ngspiceMODULE.c.xml + -e \$(ADMSXMLINTERFACE)/ngspiceMODULE.c.xml \\ + -e \$(ADMSXMLINTERFACE)/ngspiceMODULEanalogfunction.h.xml \\ + -e \$(ADMSXMLINTERFACE)/ngspiceMODULEanalogfunction.c.xml