summaryrefslogtreecommitdiffstats
path: root/share/symbols/LogicSymbols.svg
blob: 14d25848f58885ea01855e4b56c7ef5e5b000ed2 (plain)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<!-- Created by Tavmjong Bah -->
<svg
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   width="400"
   height="300"
   version="1.1"
   style="fill:none;stroke:#000000;stroke-width:2">
  <title>Logic Symbols</title>
  <defs>
    <symbol id="Xnor_Gate">
      <title>Xnor Gate</title>
      <path
         d="M 24.65625,70 45,70 C 65,70 75,50 75,50 75,50 70,30 45,30 l -20.34375,0 c 1.789926,3.094188 3.151364,6.453471 4.0625,10 C 29.54012,43.197121 30,46.545819 30,50 30,53.454181 29.54012,56.802879 28.71875,60 27.807614,63.546529 26.446176,66.905812 24.65625,70 Z" />
      <path
         d="m 80,50 c 0,1.380712 -1.119288,2.5 -2.5,2.5 C 76.119288,52.5 75,51.380712 75,50 75,48.619288 76.119288,47.5 77.5,47.5 78.880712,47.5 80,48.619288 80,50 Z" />
      <path
         d="M 18.65625,70 C 22.629549,64.322431 25,57.455703 25,50 25,42.544297 22.629549,35.677569 18.65625,30" />
    </symbol>
    <symbol id="Xor_Gate">
      <title>Xor Gate</title>
      <path
         d="M 24.65625,70 45,70 C 65,70 75,50 75,50 75,50 70,30 45,30 l -20.34375,0 c 1.789926,3.094188 3.151364,6.453471 4.0625,10 C 29.54012,43.197121 30,46.545819 30,50 30,53.454181 29.54012,56.802879 28.71875,60 27.807614,63.546529 26.446176,66.905812 24.65625,70 Z" />
      <path
         d="M 18.65625,70 C 22.629549,64.322431 25,57.455703 25,50 25,42.544297 22.629549,35.677569 18.65625,30" />
    </symbol>
    <symbol id="Nor_Gate">
      <title>Nor Gate</title>
      <path
         d="M 24.65625,70 45,70 C 65,70 75,50 75,50 75,50 70,30 45,30 l -20.34375,0 c 1.789926,3.094188 3.151364,6.453471 4.0625,10 C 29.54012,43.197121 30,46.545819 30,50 30,53.454181 29.54012,56.802879 28.71875,60 27.807614,63.546529 26.446176,66.905812 24.65625,70 Z" />
      <path
         d="m 80,50 c 0,1.380712 -1.119288,2.5 -2.5,2.5 C 76.119288,52.5 75,51.380712 75,50 75,48.619288 76.119288,47.5 77.5,47.5 78.880712,47.5 80,48.619288 80,50 Z" />
    </symbol>
    <symbol id="Or_Gate">
      <title>Or Gate</title>
      <path
         d="M 24.65625,70 45,70 C 65,70 75,50 75,50 75,50 70,30 45,30 l -20.34375,0 c 1.789926,3.094188 3.151364,6.453471 4.0625,10 C 29.54012,43.197121 30,46.545819 30,50 30,53.454181 29.54012,56.802879 28.71875,60 27.807614,63.546529 26.446176,66.905812 24.65625,70 Z" />
    </symbol>
    <symbol id="Nand_Gate">
      <title>Nand Gate</title>
      <path
         d="m 25,70 0,-10 0,-10 0,-10 0,-10 30,0 C 66.045695,30 75,38.954305 75,50 75,61.045695 66.045695,70 55,70 Z" />
      <path
         d="m 80,50 c 0,1.380712 -1.119288,2.5 -2.5,2.5 C 76.119288,52.5 75,51.380712 75,50 75,48.619288 76.119288,47.5 77.5,47.5 78.880712,47.5 80,48.619288 80,50 Z" />
    </symbol>
    <symbol id="And_Gate">
      <title>And Gate</title>
      <path
         d="m 25,70 0,-10 0,-10 0,-10 0,-10 30,0 C 66.045695,30 75,38.954305 75,50 75,61.045695 66.045695,70 55,70 Z" />
    </symbol>
    <symbol id="Buffer">
      <title>Buffer</title>
      <path
         d="M 25,30 75,50 25,70 25,50 Z" />
    </symbol>
    <symbol id="Not_Gate">
      <title>Not Gate</title>
      <path
         style="stroke-miterlimit:2"
         d="M 25,30 75,50 25,70 25,50 Z" />
      <path
         d="m 80,50 c 0,1.380712 -1.119288,2.5 -2.5,2.5 C 76.119288,52.5 75,51.380712 75,50 75,48.619288 76.119288,47.5 77.5,47.5 78.880712,47.5 80,48.619288 80,50 Z" />
    </symbol>
    <symbol id="Buffer_Small">
      <title>Buffer Small</title>
      <path
         d="m 37.711573,40 25,10 L 37.711573,60 Z" />
    </symbol>
    <symbol id="Not_Gate_Small">
      <title>Not Gate Small</title>
      <path
         d="m 67.5,50 c 0,1.380712 -1.119288,2.5 -2.5,2.5 -1.380712,0 -2.5,-1.119288 -2.5,-2.5 0,-1.380712 1.119288,-2.5 2.5,-2.5 C 66.380712,47.5 67.5,48.619288 67.5,50 Z" />
      <path
         d="m 37.711573,40 25,10 L 37.711573,60 Z"
         style="stroke-miterlimit:2" />
    </symbol>
  </defs>
    <use
       xlink:href="#And_Gate" />
    <use
       xlink:href="#Nand_Gate"
       transform="translate(0,50)" />
    <use
       xlink:href="#Or_Gate"
       transform="translate(75,0)" />
    <use
       xlink:href="#Nor_Gate"
       transform="translate(75,50)" />
    <use
       xlink:href="#Xor_Gate"
       transform="translate(150,0)" />
    <use
       xlink:href="#Xnor_Gate"
       transform="translate(150,50)" />
    <use
       xlink:href="#Buffer"
       transform="translate(225,0)" />
    <use
       xlink:href="#Not_Gate"
       transform="translate(225,50)" />
    <use
       xlink:href="#Buffer_Small"
       transform="translate(300,0)" />
    <use
       xlink:href="#Not_Gate_Small"
       transform="translate(300,50)" />
    <g>
      <use
	  xlink:href="#Nor_Gate"
	  transform="translate(25,150)" />
      <use
	  xlink:href="#And_Gate"
	  transform="translate(25,200)" />
      <use
	  xlink:href="#Or_Gate"
	  transform="translate(100,175)" />
      <path d="m 25,190 c 5,0 28.71875,0 28.71875,0" />
      <path d="m 25,210 28.71875,0" />
      <path d="m 25,240 25,0" />
      <path d="m 25,260 25,0" />
      <path d="m 105,200 10,0 0,15 13.71875,0" />
      <path d="m 100,250 15,0 0,-15 13.71875,0" />
      <path d="m 175,225 25,0" />
    </g>
    <g id="flipflop">
      <use
	  xlink:href="#Nand_Gate"
	  transform="translate(250,130)" />
      <use
	  transform="translate(250,220)"
	  xlink:href="#Nand_Gate" />
      <path d="m 225,170 50,0" />
      <path d="m 225,280 50,0" />
      <path d="m 350,180 0,20 -100,40 0,20 25,0" />
      <path d="m 350,270 0,-20 -100,-40 0,-20 25,0" />
      <path d="m 330,180 45,0" />
      <path d="m 330,270 45,0" />
    </g>
    <text
       xml:space="preserve"
       style="font-size:15px;fill:#000000;stroke:none;font-family:DejaVu Sans"
       x="15"
       y="20"><tspan
         id="tspan8972"
         x="15"
         y="20"
         style="">Symbols</tspan></text>
    <text
       y="155"
       x="15"
       style="font-size:15px;fill:#000000;stroke:none;font-family:DejaVu Sans"
       xml:space="preserve"><tspan
         y="155"
         x="15"
         style="">Example Use</tspan></text>
</svg>