File: dummy.xml

package info (click to toggle)
adms 2.3.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,592 kB
  • sloc: xml: 7,167; perl: 4,866; ansic: 3,147; lex: 1,128; yacc: 691; sh: 323; makefile: 110
file content (85 lines) | stat: -rw-r--r-- 3,727 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  This file is part of adms - http://sourceforge.net/projects/mot-adms.

  adms is a code generator for the Verilog-AMS language.

  Copyright (C) 2002-2012 Laurent Lemaitre <r29173@users.sourceforge.net>

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!DOCTYPE admst SYSTEM "admst.dtd">
<admst version="2.3.0" xmlns:admst="http://mot-adms.sourceforge.net/xml-files/admst">
<admst:template match="print_expression">
  <admst:choose>
    <admst:when test="[datatypename='number']">%(value)%(scalingunit)</admst:when>
    <admst:otherwise>-%(datatypename)-not-done-yet--</admst:otherwise>
  </admst:choose>
</admst:template>
<admst:for-each select="/module">
<admst:variable name="mname" select="%(name)"/>
<admst:message format="build file %(name).net\n"/>
<admst:open file="%(name).net">
<admst:text format="*** Interface: %(/simulator/package_string)\n"/>
<admst:text format="*** created by: %(/simulator/fullname) - %(/simulator/currentdate)\n"/>
<admst:text format="\n"/>
  <admst:text format="* Simple test circuit - automatically created %(/simulator/currentdate) \n"/>
  <admst:text format="\n"/>
  <admst:text format=".options scale=1 gmin=1e-12 reltol=1.0e-8 vabstol=1.0e-08\n"/>
  <admst:text format="\n"/>
  <admst:text format="model my$mname $mname\n"/>
  <admst:for-each select="variable[scope='global_model']">
    <admst:if test="[input='yes']">
      <admst:text format="+ %(name) = %(print_expression(default/tree))\n"/>
    </admst:if>
  </admst:for-each>
  <admst:text format="\n"/>
  <admst:text format="$mname "/>
  <admst:text select="node[location='external']" format="N_$(mname)_%(name)_int "/>
  <admst:text format="my$mname  \n"/>
  <admst:for-each select="variable[scope='global_instance']">
    <admst:if test="[input='yes']">
      <admst:choose>
        <admst:when test="attribute[name='spice:isflag' and value='yes']">
        </admst:when>
        <admst:otherwise>
          <admst:choose>
            <admst:when test="attribute[name='spice:name']">
              <admst:for-each select="attribute[name='spice:name']">
                <admst:text format="+ %(value) = %(print_expression(default/tree))\n"/>
              </admst:for-each>
            </admst:when>
            <admst:otherwise>
              <admst:text format="+ %(name) = %(print_expression(default/tree))\n"/>
            </admst:otherwise>
          </admst:choose>
        </admst:otherwise>
      </admst:choose>
    </admst:if>
  </admst:for-each>
  <admst:text format="\n"/>
  <admst:for-each select="node[location='external']">
    <admst:text format="* inout node \n"/>
    <admst:text format="v_$(mname)_%(name)_vdd N_$(mname)_%(name)_vdd 0 vsource dc=1.0\n"/>
    <admst:text format="r_$(mname)_%(name)1  N_$(mname)_%(name)_int 0 resistor r=1.0\n"/>
    <admst:text format="r_$(mname)_%(name)2  N_$(mname)_%(name)_int N_$(mname)_%(name)_vdd resistor r=1.0\n"/>
  </admst:for-each>
  <admst:text format="\n"/>
  <admst:text format="opPoint dc oppoint=screen print=yes\n"/>
  <admst:text format="* infoall info what=all save=all\n"/>
</admst:open>
</admst:for-each>

</admst>