|
|
|
@ -3,7 +3,10 @@ |
|
|
|
<!-- |
|
|
|
$Id$ |
|
|
|
$Log$ |
|
|
|
Revision 1.2 2006-02-02 17:56:31 pnenzi |
|
|
|
Revision 1.3 2006-02-21 08:05:18 dwarning |
|
|
|
Introduction of alias names for modules to prevent cryptic naming. |
|
|
|
|
|
|
|
Revision 1.2 2006/02/02 17:56:31 pnenzi |
|
|
|
|
|
|
|
Changed adms required version to 2.1.3 ,J |
|
|
|
|
|
|
|
@ -51,7 +54,7 @@ |
|
|
|
</admst:template> |
|
|
|
|
|
|
|
<admst:template match="code"> |
|
|
|
<admst:value-of select="name"/> |
|
|
|
<admst:value-of select="attribute[name='ngspicename']/value"/> |
|
|
|
<admst:variable name="module" select="%s"/> |
|
|
|
|
|
|
|
#include "ngspice.h" |
|
|
|
@ -74,14 +77,26 @@ int $(module)acLoad(GENmodel *inModel, CKTcircuit *ckt) |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:text format=" *(here->PTR_J_%s_%s)+=here->JSVAL_%s_%s;\n"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:text format=" if(here->PTR_J_%s_%s_required) {printf("JSVAL_%s_%s=%%e\\n",here->JSVAL_%s_%s); *(here->PTR_J_%s_%s)+=here->JSVAL_%s_%s;}\n"/> |
|
|
|
</admst:for-each> |
|
|
|
<admst:for-each select="jacobian[dynamic='yes']"> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:text format=" *(here->PTR_J_%s_%s+1)+=ckt->CKTomega*here->JDVAL_%s_%s;\n"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:value-of select="column/name"/> |
|
|
|
<admst:value-of select="row/name"/> |
|
|
|
<admst:text format=" if(here->PTR_J_%s_%s_required) {printf("JDVAL_%s_%s=%%e\\n",ckt->CKTomega*here->JDVAL_%s_%s); *(here->PTR_J_%s_%s+1)+=ckt->CKTomega*here->JDVAL_%s_%s;}\n"/> |
|
|
|
</admst:for-each> |
|
|
|
} /* End of MOSFET Instance */ |
|
|
|
} /* End of Model Instance */ |
|
|
|
@ -91,7 +106,7 @@ int $(module)acLoad(GENmodel *inModel, CKTcircuit *ckt) |
|
|
|
</admst:template> |
|
|
|
|
|
|
|
<admst:for-each select="/module"> |
|
|
|
<admst:value-of select="name"/> |
|
|
|
<admst:value-of select="attribute[name='ngspicename']/value"/> |
|
|
|
<admst:open file="%sacld.c"> |
|
|
|
<admst:value-of select="/simulator/package_string"/> |
|
|
|
<admst:text format="/***\n*** Interface: %s\n"/> |
|
|
|
@ -100,7 +115,7 @@ int $(module)acLoad(GENmodel *inModel, CKTcircuit *ckt) |
|
|
|
<admst:text format=" *** created by: %s - %s ***/\n"/> |
|
|
|
<admst:apply-templates select="." match="code"/> |
|
|
|
</admst:open> |
|
|
|
<admst:value-of select="name"/> |
|
|
|
<admst:value-of select="attribute[name='ngspicename']/value"/> |
|
|
|
<admst:message format="%sacld.c: file created\n"/> |
|
|
|
</admst:for-each> |
|
|
|
|
|
|
|
|