98603c333e0ce76b0bdb069468aa1536fd5215ce
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / halfsubtracter.json
1 {
2   "width": 50.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": 50.0,
26         "y": 5.0
27       },
28       "name": "Y",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 50.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": 37.5,
50           "y": 2.5
51         },
52         "params": 1
53       },
54       {
55         "id": "NandGate",
56         "name": "NandGate#1",
57         "pos": {
58           "x": 37.5,
59           "y": 27.5
60         },
61         "params": 1
62       },
63       {
64         "id": "NandGate",
65         "name": "NandGate#2",
66         "pos": {
67           "x": 67.5,
68           "y": 2.5
69         },
70         "params": 1
71       },
72       {
73         "id": "NandGate",
74         "name": "NandGate#3",
75         "pos": {
76           "x": 10.0,
77           "y": 15.0
78         },
79         "params": 1
80       },
81       {
82         "id": "NandGate",
83         "name": "NandGate#4",
84         "pos": {
85           "x": 100.0,
86           "y": 2.5
87         },
88         "params": 1
89       },
90       {
91         "id": "WireCrossPoint",
92         "name": "WireCrossPoint#0",
93         "pos": {
94           "x": 31.5,
95           "y": 11.5
96         },
97         "params": 1
98       },
99       {
100         "id": "WireCrossPoint",
101         "name": "WireCrossPoint#1",
102         "pos": {
103           "x": 4.0,
104           "y": 36.5
105         },
106         "params": 1
107       },
108       {
109         "id": "WireCrossPoint",
110         "name": "WireCrossPoint#2",
111         "pos": {
112           "x": 4.0,
113           "y": 11.5
114         },
115         "params": 1
116       },
117       {
118         "id": "WireCrossPoint",
119         "name": "WireCrossPoint#3",
120         "pos": {
121           "x": 31.5,
122           "y": 36.5
123         },
124         "params": 1
125       },
126       {
127         "id": "WireCrossPoint",
128         "name": "WireCrossPoint#4",
129         "pos": {
130           "x": 89.0,
131           "y": 11.5
132         },
133         "params": 1
134       }
135     ],
136     "wires": [
137       {
138         "pin1": {
139           "compName": "NandGate#0",
140           "pinName": "Y"
141         },
142         "pin2": {
143           "compName": "NandGate#2",
144           "pinName": "A"
145         },
146         "name": "unnamedWire#0",
147         "path": [
148           {
149             "x": 62.5,
150             "y": 12.5
151           },
152           {
153             "x": 62.5,
154             "y": 7.5
155           }
156         ]
157       },
158       {
159         "pin1": {
160           "compName": "NandGate#1",
161           "pinName": "Y"
162         },
163         "pin2": {
164           "compName": "NandGate#2",
165           "pinName": "B"
166         },
167         "name": "unnamedWire#1",
168         "path": [
169           {
170             "x": 62.5,
171             "y": 37.5
172           },
173           {
174             "x": 62.5,
175             "y": 17.5
176           }
177         ]
178       },
179       {
180         "pin1": {
181           "compName": "NandGate#2",
182           "pinName": "Y"
183         },
184         "pin2": {
185           "compName": "WireCrossPoint#4",
186           "pinName": ""
187         },
188         "name": "unnamedWire#2",
189         "path": []
190       },
191       {
192         "pin1": {
193           "compName": "NandGate#3",
194           "pinName": "Y"
195         },
196         "pin2": {
197           "compName": "NandGate#4",
198           "pinName": "B"
199         },
200         "name": "unnamedWire#3",
201         "path": [
202           {
203             "x": 95.0,
204             "y": 25.0
205           },
206           {
207             "x": 95.0,
208             "y": 17.5
209           }
210         ]
211       },
212       {
213         "pin1": {
214           "compName": "WireCrossPoint#0",
215           "pinName": ""
216         },
217         "pin2": {
218           "compName": "NandGate#0",
219           "pinName": "A"
220         },
221         "name": "unnamedWire#4",
222         "path": [
223           {
224             "x": 32.5,
225             "y": 7.5
226           }
227         ]
228       },
229       {
230         "pin1": {
231           "compName": "_submodelinterface",
232           "pinName": "B"
233         },
234         "pin2": {
235           "compName": "WireCrossPoint#1",
236           "pinName": ""
237         },
238         "name": "unnamedWire#5",
239         "path": []
240       },
241       {
242         "pin1": {
243           "compName": "WireCrossPoint#0",
244           "pinName": ""
245         },
246         "pin2": {
247           "compName": "WireCrossPoint#2",
248           "pinName": ""
249         },
250         "name": "unnamedWire#6",
251         "path": []
252       },
253       {
254         "pin1": {
255           "compName": "WireCrossPoint#1",
256           "pinName": ""
257         },
258         "pin2": {
259           "compName": "WireCrossPoint#3",
260           "pinName": ""
261         },
262         "name": "unnamedWire#7",
263         "path": []
264       },
265       {
266         "pin1": {
267           "compName": "WireCrossPoint#2",
268           "pinName": ""
269         },
270         "pin2": {
271           "compName": "NandGate#3",
272           "pinName": "A"
273         },
274         "name": "unnamedWire#8",
275         "path": [
276           {
277             "x": 5.0,
278             "y": 20.0
279           }
280         ]
281       },
282       {
283         "pin1": {
284           "compName": "WireCrossPoint#0",
285           "pinName": ""
286         },
287         "pin2": {
288           "compName": "NandGate#0",
289           "pinName": "B"
290         },
291         "name": "unnamedWire#9",
292         "path": [
293           {
294             "x": 32.5,
295             "y": 17.5
296           }
297         ]
298       },
299       {
300         "pin1": {
301           "compName": "WireCrossPoint#1",
302           "pinName": ""
303         },
304         "pin2": {
305           "compName": "NandGate#3",
306           "pinName": "B"
307         },
308         "name": "unnamedWire#10",
309         "path": [
310           {
311             "x": 5.0,
312             "y": 30.0
313           }
314         ]
315       },
316       {
317         "pin1": {
318           "compName": "NandGate#4",
319           "pinName": "Y"
320         },
321         "pin2": {
322           "compName": "_submodelinterface",
323           "pinName": "Y"
324         },
325         "name": "unnamedWire#11",
326         "path": []
327       },
328       {
329         "pin1": {
330           "compName": "WireCrossPoint#3",
331           "pinName": ""
332         },
333         "pin2": {
334           "compName": "NandGate#1",
335           "pinName": "B"
336         },
337         "name": "unnamedWire#12",
338         "path": [
339           {
340             "x": 32.5,
341             "y": 42.5
342           }
343         ]
344       },
345       {
346         "pin1": {
347           "compName": "WireCrossPoint#3",
348           "pinName": ""
349         },
350         "pin2": {
351           "compName": "NandGate#1",
352           "pinName": "A"
353         },
354         "name": "unnamedWire#13",
355         "path": [
356           {
357             "x": 32.5,
358             "y": 32.5
359           }
360         ]
361       },
362       {
363         "pin1": {
364           "compName": "_submodelinterface",
365           "pinName": "A"
366         },
367         "pin2": {
368           "compName": "WireCrossPoint#2",
369           "pinName": ""
370         },
371         "name": "unnamedWire#14",
372         "path": []
373       },
374       {
375         "pin1": {
376           "compName": "WireCrossPoint#4",
377           "pinName": ""
378         },
379         "pin2": {
380           "compName": "NandGate#4",
381           "pinName": "A"
382         },
383         "name": "unnamedWire#15",
384         "path": [
385           {
386             "x": 90.0,
387             "y": 7.5
388           }
389         ]
390       },
391       {
392         "pin1": {
393           "compName": "WireCrossPoint#4",
394           "pinName": ""
395         },
396         "pin2": {
397           "compName": "_submodelinterface",
398           "pinName": "Z"
399         },
400         "name": "unnamedWire#16",
401         "path": [
402           {
403             "x": 90.0,
404             "y": 37.5
405           }
406         ]
407       }
408     ],
409     "version": "0.1.1"
410   },
411   "symbolRendererSnippetID": "simpleRectangularLike",
412   "symbolRendererParams": {
413     "centerText": "halfsubtracter",
414     "centerTextHeight": 5.0,
415     "horizontalComponentCenter": 25.0,
416     "pinLabelHeight": 3.5,
417     "pinLabelMargin": 0.5
418   },
419   "outlineRendererSnippetID": "default",
420   "highLevelStateHandlerSnippetID": "default",
421   "version": "0.1.5"
422 }