Reserialized components
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / halfadder.json
1 {
2   "width": 35.0,
3   "height": 20.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 5.0
9       },
10       "name": "A",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 15.0
18       },
19       "name": "B",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 35.0,
26         "y": 5.0
27       },
28       "name": "Y",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 35.0,
35         "y": 15.0
36       },
37       "name": "_Z",
38       "logicWidth": 1,
39       "usage": "OUTPUT"
40     }
41   ],
42   "innerScale": 0.4,
43   "submodel": {
44     "components": [
45       {
46         "id": "NandGate",
47         "name": "NandGate#0",
48         "pos": {
49           "x": 10.0,
50           "y": 15.0
51         },
52         "params": 1
53       },
54       {
55         "id": "NandGate",
56         "name": "NandGate#1",
57         "pos": {
58           "x": 40.0,
59           "y": 2.5
60         },
61         "params": 1
62       },
63       {
64         "id": "NandGate",
65         "name": "NandGate#2",
66         "pos": {
67           "x": 40.0,
68           "y": 27.5
69         },
70         "params": 1
71       },
72       {
73         "id": "NandGate",
74         "name": "NandGate#3",
75         "pos": {
76           "x": 65.0,
77           "y": 2.5
78         },
79         "params": 1
80       },
81       {
82         "id": "WireCrossPoint",
83         "name": "WireCrossPoint#0",
84         "pos": {
85           "x": 4.0,
86           "y": 11.5
87         },
88         "params": 1
89       },
90       {
91         "id": "WireCrossPoint",
92         "name": "WireCrossPoint#1",
93         "pos": {
94           "x": 4.0,
95           "y": 36.5
96         },
97         "params": 1
98       },
99       {
100         "id": "WireCrossPoint",
101         "name": "WireCrossPoint#2",
102         "pos": {
103           "x": 34.0,
104           "y": 24.0
105         },
106         "params": 1
107       }
108     ],
109     "wires": [
110       {
111         "pin1": {
112           "compName": "_submodelinterface",
113           "pinName": "A"
114         },
115         "pin2": {
116           "compName": "WireCrossPoint#0",
117           "pinName": ""
118         },
119         "name": "unnamedWire#0",
120         "path": []
121       },
122       {
123         "pin1": {
124           "compName": "WireCrossPoint#0",
125           "pinName": ""
126         },
127         "pin2": {
128           "compName": "NandGate#1",
129           "pinName": "A"
130         },
131         "name": "unnamedWire#1",
132         "path": [
133           {
134             "x": 5.0,
135             "y": 7.5
136           }
137         ]
138       },
139       {
140         "pin1": {
141           "compName": "WireCrossPoint#0",
142           "pinName": ""
143         },
144         "pin2": {
145           "compName": "NandGate#0",
146           "pinName": "A"
147         },
148         "name": "unnamedWire#2",
149         "path": [
150           {
151             "x": 5.0,
152             "y": 20.0
153           }
154         ]
155       },
156       {
157         "pin1": {
158           "compName": "_submodelinterface",
159           "pinName": "B"
160         },
161         "pin2": {
162           "compName": "WireCrossPoint#1",
163           "pinName": ""
164         },
165         "name": "unnamedWire#3",
166         "path": []
167       },
168       {
169         "pin1": {
170           "compName": "WireCrossPoint#1",
171           "pinName": ""
172         },
173         "pin2": {
174           "compName": "NandGate#2",
175           "pinName": "B"
176         },
177         "name": "unnamedWire#4",
178         "path": [
179           {
180             "x": 5.0,
181             "y": 42.5
182           }
183         ]
184       },
185       {
186         "pin1": {
187           "compName": "WireCrossPoint#1",
188           "pinName": ""
189         },
190         "pin2": {
191           "compName": "NandGate#0",
192           "pinName": "B"
193         },
194         "name": "unnamedWire#5",
195         "path": [
196           {
197             "x": 5.0,
198             "y": 30.0
199           }
200         ]
201       },
202       {
203         "pin1": {
204           "compName": "NandGate#0",
205           "pinName": "Y"
206         },
207         "pin2": {
208           "compName": "WireCrossPoint#2",
209           "pinName": ""
210         },
211         "name": "unnamedWire#6",
212         "path": []
213       },
214       {
215         "pin1": {
216           "compName": "WireCrossPoint#2",
217           "pinName": ""
218         },
219         "pin2": {
220           "compName": "_submodelinterface",
221           "pinName": "_Z"
222         },
223         "name": "unnamedWire#7",
224         "path": [
225           {
226             "x": 80.0,
227             "y": 25.0
228           },
229           {
230             "x": 80.0,
231             "y": 37.5
232           }
233         ]
234       },
235       {
236         "pin1": {
237           "compName": "WireCrossPoint#2",
238           "pinName": ""
239         },
240         "pin2": {
241           "compName": "NandGate#1",
242           "pinName": "B"
243         },
244         "name": "unnamedWire#8",
245         "path": [
246           {
247             "x": 35.0,
248             "y": 17.5
249           }
250         ]
251       },
252       {
253         "pin1": {
254           "compName": "WireCrossPoint#2",
255           "pinName": ""
256         },
257         "pin2": {
258           "compName": "NandGate#2",
259           "pinName": "A"
260         },
261         "name": "unnamedWire#9",
262         "path": [
263           {
264             "x": 35.0,
265             "y": 32.5
266           }
267         ]
268       },
269       {
270         "pin1": {
271           "compName": "NandGate#1",
272           "pinName": "Y"
273         },
274         "pin2": {
275           "compName": "NandGate#3",
276           "pinName": "A"
277         },
278         "name": "unnamedWire#10",
279         "path": [
280           {
281             "x": 62.5,
282             "y": 12.5
283           },
284           {
285             "x": 62.5,
286             "y": 7.5
287           }
288         ]
289       },
290       {
291         "pin1": {
292           "compName": "NandGate#2",
293           "pinName": "Y"
294         },
295         "pin2": {
296           "compName": "NandGate#3",
297           "pinName": "B"
298         },
299         "name": "unnamedWire#11",
300         "path": [
301           {
302             "x": 62.5,
303             "y": 37.5
304           },
305           {
306             "x": 62.5,
307             "y": 17.5
308           }
309         ]
310       },
311       {
312         "pin1": {
313           "compName": "NandGate#3",
314           "pinName": "Y"
315         },
316         "pin2": {
317           "compName": "_submodelinterface",
318           "pinName": "Y"
319         },
320         "name": "unnamedWire#12",
321         "path": []
322       }
323     ],
324     "version": "0.1.1"
325   },
326   "symbolRendererSnippetID": "simpleRectangularLike",
327   "symbolRendererParams": {
328     "centerText": "halfadder",
329     "centerTextHeight": 5.0,
330     "horizontalComponentCenter": 17.5,
331     "pinLabelHeight": 3.5,
332     "pinLabelMargin": 0.5
333   },
334   "outlineRendererSnippetID": "default",
335   "highLevelStateHandlerSnippetID": "default",
336   "version": "0.1.5"
337 }