File: currentsource.xsym

package info (click to toggle)
caneda 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,764 kB
  • sloc: cpp: 16,593; vhdl: 236; xml: 61; ansic: 18; makefile: 9
file content (93 lines) | stat: -rw-r--r-- 4,247 bytes parent folder | download | duplicates (5)
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
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE caneda>
<!--
***************************************************************************
* Copyright (C) 2013-2015 by Pablo Daniel Pareja Obregon                  *
*                                                                         *
* This 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 2, or (at your option)     *
* any later version.                                                      *
*                                                                         *
* This software 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 package; see the file COPYING.  If not, write to        *
* the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,   *
* Boston, MA 02110-1301, USA.                                             *
***************************************************************************
-->

<component name="Current Source" version="0.1.0" label="I">

    <displaytext>
        <lang lang="C">Current Source</lang>
        <lang lang="es">Fuente de Corriente</lang>
    </displaytext>

    <description>
        <lang lang="C">A current source device</lang>
    </description>

    <symbol>
        <painting name="ellipse" ellipse="0,0,40,40" pos="-20,-20" transform="1,0,0,1,0,0"/>

        <painting name="line" line="0,0,0,10" pos="0,20" transform="1,0,0,1,0,0"/>
        <painting name="line" line="0,0,0,-10" pos="0,-20" transform="1,0,0,1,0,0"/>

        <painting name="line" line="0,0,0,-20" pos="0,10" transform="1,0,0,1,0,0"/>
        <painting name="line" line="0,0,5,-5" pos="0,10" transform="1,0,0,1,0,0"/>
        <painting name="line" line="0,0,-5,-5" pos="0,10" transform="1,0,0,1,0,0"/>
    </symbol>

    <ports>
        <port name="+" pos="0,-30"/>
        <port name="-" pos="0,30"/>
    </ports>

    <properties>
        <property name="Idc" default="5m" unit="A" visible="true">
            <description>
                <lang lang="C">Source DC value.</lang>
            </description>
        </property>
        <property name="Iac" default="1" unit="A" visible="false">
            <description>
                <lang lang="C">Source AC magnitude (value used in AC simulations).</lang>
            </description>
        </property>
        <property name="phase" default="0" unit="º" visible="false">
            <description>
                <lang lang="C">Source AC phase (value used in AC simulations).</lang>
            </description>
        </property>
        <property name="f1mag" default="1.0" unit="V" visible="false">
            <description>
                <lang lang="C">Distorsion input magnitude at first frequency.</lang>
            </description>
        </property>
        <property name="f1phase" default="0" unit="º" visible="false">
            <description>
                <lang lang="C">Distorsion input phase at first frequency.</lang>
            </description>
        </property>
        <property name="f2mag" default="1.0" unit="V" visible="false">
            <description>
                <lang lang="C">Distorsion input magnitude at second frequency.</lang>
            </description>
        </property>
        <property name="f2phase" default="0" unit="º" visible="false">
            <description>
                <lang lang="C">Distorsion input phase at second frequency.</lang>
            </description>
        </property>
    </properties>

    <models>
        <model type="spice" syntax="I%label %port{+} %port{-} DC %property{Idc} AC %property{Iac} %property{phase}
                                    DISTOF1 %property{f1mag} %property{f1phase} DISTOF2 %property{f2mag} %property{f2phase}"/>
    </models>
</component>