Cleaned and51
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / sel4.json
1 {
2   "width": 50.0,
3   "height": 45.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 10.0,
8         "y": 0.0
9       },
10       "name": "I1",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 20.0,
17         "y": 0.0
18       },
19       "name": "I2",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 30.0,
26         "y": 0.0
27       },
28       "name": "I3",
29       "logicWidth": 1,
30       "usage": "INPUT"
31     },
32     {
33       "location": {
34         "x": 40.0,
35         "y": 0.0
36       },
37       "name": "I4",
38       "logicWidth": 1,
39       "usage": "INPUT"
40     },
41     {
42       "location": {
43         "x": 0.0,
44         "y": 10.0
45       },
46       "name": "S1",
47       "logicWidth": 1,
48       "usage": "INPUT"
49     },
50     {
51       "location": {
52         "x": 0.0,
53         "y": 20.0
54       },
55       "name": "S2",
56       "logicWidth": 1,
57       "usage": "INPUT"
58     },
59     {
60       "location": {
61         "x": 0.0,
62         "y": 30.0
63       },
64       "name": "S3",
65       "logicWidth": 1,
66       "usage": "INPUT"
67     },
68     {
69       "location": {
70         "x": 0.0,
71         "y": 40.0
72       },
73       "name": "S4",
74       "logicWidth": 1,
75       "usage": "INPUT"
76     },
77     {
78       "location": {
79         "x": 50.0,
80         "y": 20.0
81       },
82       "name": "Y",
83       "logicWidth": 1,
84       "usage": "OUTPUT"
85     }
86   ],
87   "innerScale": 0.4,
88   "submodel": {
89     "components": [
90       {
91         "id": "NandGate",
92         "name": "NandGate#0",
93         "pos": {
94           "x": 100.0,
95           "y": 40.0
96         },
97         "params": 1
98       },
99       {
100         "id": "NandGate",
101         "name": "NandGate#1",
102         "pos": {
103           "x": 75.0,
104           "y": 60.0
105         },
106         "params": 1
107       },
108       {
109         "id": "NandGate",
110         "name": "NandGate#2",
111         "pos": {
112           "x": 75.0,
113           "y": 25.0
114         },
115         "params": 1
116       },
117       {
118         "id": "WireCrossPoint",
119         "name": "WireCrossPoint#0",
120         "pos": {
121           "x": 69.0,
122           "y": 29.0
123         },
124         "params": 1
125       },
126       {
127         "id": "WireCrossPoint",
128         "name": "WireCrossPoint#1",
129         "pos": {
130           "x": 69.0,
131           "y": 74.0
132         },
133         "params": 1
134       },
135       {
136         "id": "sel1",
137         "name": "sel1#0",
138         "pos": {
139           "x": 30.0,
140           "y": 25.0
141         }
142       },
143       {
144         "id": "sel1",
145         "name": "sel1#1",
146         "pos": {
147           "x": 30.0,
148           "y": 70.0
149         }
150       }
151     ],
152     "wires": [
153       {
154         "pin1": {
155           "compName": "sel1#0",
156           "pinName": "Y"
157         },
158         "pin2": {
159           "compName": "WireCrossPoint#0",
160           "pinName": ""
161         },
162         "name": "unnamedWire#0",
163         "path": []
164       },
165       {
166         "pin1": {
167           "compName": "WireCrossPoint#0",
168           "pinName": ""
169         },
170         "pin2": {
171           "compName": "NandGate#2",
172           "pinName": "A"
173         },
174         "name": "unnamedWire#1",
175         "path": []
176       },
177       {
178         "pin1": {
179           "compName": "WireCrossPoint#0",
180           "pinName": ""
181         },
182         "pin2": {
183           "compName": "NandGate#2",
184           "pinName": "B"
185         },
186         "name": "unnamedWire#2",
187         "path": [
188           {
189             "x": 70.0,
190             "y": 40.0
191           }
192         ]
193       },
194       {
195         "pin1": {
196           "compName": "sel1#1",
197           "pinName": "Y"
198         },
199         "pin2": {
200           "compName": "WireCrossPoint#1",
201           "pinName": ""
202         },
203         "name": "unnamedWire#3",
204         "path": []
205       },
206       {
207         "pin1": {
208           "compName": "WireCrossPoint#1",
209           "pinName": ""
210         },
211         "pin2": {
212           "compName": "NandGate#1",
213           "pinName": "A"
214         },
215         "name": "unnamedWire#4",
216         "path": [
217           {
218             "x": 70.0,
219             "y": 65.0
220           }
221         ]
222       },
223       {
224         "pin1": {
225           "compName": "WireCrossPoint#1",
226           "pinName": ""
227         },
228         "pin2": {
229           "compName": "NandGate#1",
230           "pinName": "B"
231         },
232         "name": "unnamedWire#5",
233         "path": []
234       },
235       {
236         "pin1": {
237           "compName": "NandGate#2",
238           "pinName": "Y"
239         },
240         "pin2": {
241           "compName": "NandGate#0",
242           "pinName": "A"
243         },
244         "name": "unnamedWire#6",
245         "path": [
246           {
247             "x": 97.5,
248             "y": 35.0
249           },
250           {
251             "x": 97.5,
252             "y": 45.0
253           }
254         ]
255       },
256       {
257         "pin1": {
258           "compName": "NandGate#0",
259           "pinName": "B"
260         },
261         "pin2": {
262           "compName": "NandGate#1",
263           "pinName": "Y"
264         },
265         "name": "unnamedWire#7",
266         "path": [
267           {
268             "x": 97.5,
269             "y": 55.0
270           },
271           {
272             "x": 97.5,
273             "y": 70.0
274           }
275         ]
276       },
277       {
278         "pin1": {
279           "compName": "_submodelinterface",
280           "pinName": "S1"
281         },
282         "pin2": {
283           "compName": "sel1#0",
284           "pinName": "S1"
285         },
286         "name": "unnamedWire#8",
287         "path": [
288           {
289             "x": 5.0,
290             "y": 25.0
291           },
292           {
293             "x": 5.0,
294             "y": 30.0
295           }
296         ]
297       },
298       {
299         "pin1": {
300           "compName": "_submodelinterface",
301           "pinName": "S2"
302         },
303         "pin2": {
304           "compName": "sel1#0",
305           "pinName": "S2"
306         },
307         "name": "unnamedWire#9",
308         "path": [
309           {
310             "x": 5.0,
311             "y": 50.0
312           },
313           {
314             "x": 5.0,
315             "y": 40.0
316           }
317         ]
318       },
319       {
320         "pin1": {
321           "compName": "_submodelinterface",
322           "pinName": "S3"
323         },
324         "pin2": {
325           "compName": "sel1#1",
326           "pinName": "S1"
327         },
328         "name": "unnamedWire#10",
329         "path": []
330       },
331       {
332         "pin1": {
333           "compName": "_submodelinterface",
334           "pinName": "S4"
335         },
336         "pin2": {
337           "compName": "sel1#1",
338           "pinName": "S2"
339         },
340         "name": "unnamedWire#11",
341         "path": [
342           {
343             "x": 5.0,
344             "y": 100.0
345           },
346           {
347             "x": 5.0,
348             "y": 85.0
349           }
350         ]
351       },
352       {
353         "pin1": {
354           "compName": "_submodelinterface",
355           "pinName": "I4"
356         },
357         "pin2": {
358           "compName": "sel1#1",
359           "pinName": "I2"
360         },
361         "name": "unnamedWire#12",
362         "path": [
363           {
364             "x": 100.0,
365             "y": 20.0
366           },
367           {
368             "x": 25.0,
369             "y": 20.0
370           },
371           {
372             "x": 25.0,
373             "y": 105.0
374           }
375         ]
376       },
377       {
378         "pin1": {
379           "compName": "_submodelinterface",
380           "pinName": "I3"
381         },
382         "pin2": {
383           "compName": "sel1#1",
384           "pinName": "I1"
385         },
386         "name": "unnamedWire#13",
387         "path": [
388           {
389             "x": 75.0,
390             "y": 15.0
391           },
392           {
393             "x": 20.0,
394             "y": 15.0
395           },
396           {
397             "x": 20.0,
398             "y": 95.0
399           }
400         ]
401       },
402       {
403         "pin1": {
404           "compName": "_submodelinterface",
405           "pinName": "I2"
406         },
407         "pin2": {
408           "compName": "sel1#0",
409           "pinName": "I2"
410         },
411         "name": "unnamedWire#14",
412         "path": [
413           {
414             "x": 50.0,
415             "y": 10.0
416           },
417           {
418             "x": 15.0,
419             "y": 10.0
420           },
421           {
422             "x": 15.0,
423             "y": 60.0
424           }
425         ]
426       },
427       {
428         "pin1": {
429           "compName": "_submodelinterface",
430           "pinName": "I1"
431         },
432         "pin2": {
433           "compName": "sel1#0",
434           "pinName": "I1"
435         },
436         "name": "unnamedWire#15",
437         "path": [
438           {
439             "x": 25.0,
440             "y": 5.0
441           },
442           {
443             "x": 10.0,
444             "y": 5.0
445           },
446           {
447             "x": 10.0,
448             "y": 50.0
449           }
450         ]
451       },
452       {
453         "pin1": {
454           "compName": "NandGate#0",
455           "pinName": "Y"
456         },
457         "pin2": {
458           "compName": "_submodelinterface",
459           "pinName": "Y"
460         },
461         "name": "unnamedWire#16",
462         "path": []
463       }
464     ],
465     "version": "0.1.1"
466   },
467   "symbolRendererSnippetID": "simpleRectangularLike",
468   "symbolRendererParams": {
469     "centerText": "sel4",
470     "centerTextHeight": 5.0,
471     "horizontalComponentCenter": 25.0,
472     "pinLabelHeight": 3.5,
473     "pinLabelMargin": 0.5
474   },
475   "outlineRendererSnippetID": "default",
476   "highLevelStateHandlerSnippetID": "default",
477   "version": "0.1.5"
478 }