Reserialized all components to version 0.1.5 and set correct PinUsages
[Mograsim.git] / net.mograsim.logic.model.editor / components / am2904 / GUIAm2904TestLogic.json
1 {
2   "width": 60.0,
3   "height": 90.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 50.0
9       },
10       "name": "I",
11       "logicWidth": 4,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 60.0,
17         "y": 10.0
18       },
19       "name": "Y000",
20       "logicWidth": 1,
21       "usage": "OUTPUT"
22     },
23     {
24       "location": {
25         "x": 60.0,
26         "y": 20.0
27       },
28       "name": "Y001",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 60.0,
35         "y": 30.0
36       },
37       "name": "Y010",
38       "logicWidth": 1,
39       "usage": "OUTPUT"
40     },
41     {
42       "location": {
43         "x": 60.0,
44         "y": 40.0
45       },
46       "name": "Y011",
47       "logicWidth": 1,
48       "usage": "OUTPUT"
49     },
50     {
51       "location": {
52         "x": 60.0,
53         "y": 50.0
54       },
55       "name": "Y100",
56       "logicWidth": 1,
57       "usage": "OUTPUT"
58     },
59     {
60       "location": {
61         "x": 60.0,
62         "y": 60.0
63       },
64       "name": "Y101",
65       "logicWidth": 1,
66       "usage": "OUTPUT"
67     },
68     {
69       "location": {
70         "x": 60.0,
71         "y": 70.0
72       },
73       "name": "Y110",
74       "logicWidth": 1,
75       "usage": "OUTPUT"
76     },
77     {
78       "location": {
79         "x": 60.0,
80         "y": 80.0
81       },
82       "name": "Y111",
83       "logicWidth": 1,
84       "usage": "OUTPUT"
85     }
86   ],
87   "innerScale": 0.4,
88   "submodel": {
89     "components": [
90       {
91         "id": "GUIxor",
92         "name": "DeserializedSubmodelComponent#0",
93         "pos": {
94           "x": 40.0,
95           "y": 20.0
96         }
97       },
98       {
99         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
100         "name": "GUINandGate#0",
101         "pos": {
102           "x": 85.0,
103           "y": 20.0
104         },
105         "params": 1
106       },
107       {
108         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
109         "name": "GUINandGate#1",
110         "pos": {
111           "x": 45.0,
112           "y": 50.0
113         },
114         "params": 1
115       },
116       {
117         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
118         "name": "GUINandGate#2",
119         "pos": {
120           "x": 120.0,
121           "y": 15.0
122         },
123         "params": 1
124       },
125       {
126         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
127         "name": "GUINandGate#3",
128         "pos": {
129           "x": 45.0,
130           "y": 105.0
131         },
132         "params": 1
133       },
134       {
135         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
136         "name": "GUINandGate#4",
137         "pos": {
138           "x": 80.0,
139           "y": 115.0
140         },
141         "params": 1
142       },
143       {
144         "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
145         "name": "GUINandGate#5",
146         "pos": {
147           "x": 80.0,
148           "y": 165.0
149         },
150         "params": 1
151       },
152       {
153         "id": "class:net.mograsim.logic.model.model.components.atomic.GUISplitter",
154         "name": "GUISplitter#0",
155         "pos": {
156           "x": 5.0,
157           "y": 110.0
158         },
159         "params": 4
160       },
161       {
162         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
163         "name": "WireCrossPoint#0",
164         "pos": {
165           "x": 29.0,
166           "y": 129.0
167         },
168         "params": 1
169       },
170       {
171         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
172         "name": "WireCrossPoint#1",
173         "pos": {
174           "x": 34.0,
175           "y": 99.0
176         },
177         "params": 1
178       },
179       {
180         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
181         "name": "WireCrossPoint#10",
182         "pos": {
183           "x": 39.0,
184           "y": 109.0
185         },
186         "params": 1
187       },
188       {
189         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
190         "name": "WireCrossPoint#2",
191         "pos": {
192           "x": 79.0,
193           "y": 34.0
194         },
195         "params": 1
196       },
197       {
198         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
199         "name": "WireCrossPoint#3",
200         "pos": {
201           "x": 79.0,
202           "y": 24.0
203         },
204         "params": 1
205       },
206       {
207         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
208         "name": "WireCrossPoint#4",
209         "pos": {
210           "x": 19.0,
211           "y": 74.0
212         },
213         "params": 1
214       },
215       {
216         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
217         "name": "WireCrossPoint#5",
218         "pos": {
219           "x": 24.0,
220           "y": 119.0
221         },
222         "params": 1
223       },
224       {
225         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
226         "name": "WireCrossPoint#6",
227         "pos": {
228           "x": 39.0,
229           "y": 64.0
230         },
231         "params": 1
232       },
233       {
234         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
235         "name": "WireCrossPoint#7",
236         "pos": {
237           "x": 74.0,
238           "y": 59.0
239         },
240         "params": 1
241       },
242       {
243         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
244         "name": "WireCrossPoint#8",
245         "pos": {
246           "x": 74.0,
247           "y": 119.0
248         },
249         "params": 1
250       },
251       {
252         "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
253         "name": "WireCrossPoint#9",
254         "pos": {
255           "x": 24.0,
256           "y": 149.0
257         },
258         "params": 1
259       }
260     ],
261     "wires": [
262       {
263         "pin1": {
264           "compName": "_submodelinterface",
265           "pinName": "I"
266         },
267         "pin2": {
268           "compName": "GUISplitter#0",
269           "pinName": "I"
270         },
271         "name": "unnamedWire#0",
272         "path": []
273       },
274       {
275         "pin1": {
276           "compName": "GUISplitter#0",
277           "pinName": "O2"
278         },
279         "pin2": {
280           "compName": "WireCrossPoint#0",
281           "pinName": ""
282         },
283         "name": "unnamedWire#1",
284         "path": []
285       },
286       {
287         "pin1": {
288           "compName": "GUINandGate#2",
289           "pinName": "A"
290         },
291         "pin2": {
292           "compName": "GUINandGate#0",
293           "pinName": "Y"
294         },
295         "name": "unnamedWire#10",
296         "path": [
297           {
298             "x": 110.0,
299             "y": 20.0
300           },
301           {
302             "x": 110.0,
303             "y": 30.0
304           }
305         ]
306       },
307       {
308         "pin1": {
309           "compName": "WireCrossPoint#4",
310           "pinName": ""
311         },
312         "pin2": {
313           "compName": "WireCrossPoint#6",
314           "pinName": ""
315         },
316         "name": "unnamedWire#11",
317         "path": [
318           {
319             "x": 20.0,
320             "y": 65.0
321           }
322         ]
323       },
324       {
325         "pin1": {
326           "compName": "WireCrossPoint#6",
327           "pinName": ""
328         },
329         "pin2": {
330           "compName": "GUINandGate#1",
331           "pinName": "A"
332         },
333         "name": "unnamedWire#12",
334         "path": [
335           {
336             "x": 40.0,
337             "y": 55.0
338           }
339         ]
340       },
341       {
342         "pin1": {
343           "compName": "WireCrossPoint#6",
344           "pinName": ""
345         },
346         "pin2": {
347           "compName": "GUINandGate#1",
348           "pinName": "B"
349         },
350         "name": "unnamedWire#13",
351         "path": []
352       },
353       {
354         "pin1": {
355           "compName": "WireCrossPoint#7",
356           "pinName": ""
357         },
358         "pin2": {
359           "compName": "GUINandGate#2",
360           "pinName": "B"
361         },
362         "name": "unnamedWire#14",
363         "path": [
364           {
365             "x": 115.0,
366             "y": 60.0
367           },
368           {
369             "x": 115.0,
370             "y": 30.0
371           }
372         ]
373       },
374       {
375         "pin1": {
376           "compName": "WireCrossPoint#2",
377           "pinName": ""
378         },
379         "pin2": {
380           "compName": "_submodelinterface",
381           "pinName": "Y001"
382         },
383         "name": "unnamedWire#15",
384         "path": [
385           {
386             "x": 80.0,
387             "y": 50.0
388           }
389         ]
390       },
391       {
392         "pin1": {
393           "compName": "GUINandGate#2",
394           "pinName": "Y"
395         },
396         "pin2": {
397           "compName": "_submodelinterface",
398           "pinName": "Y000"
399         },
400         "name": "unnamedWire#16",
401         "path": []
402       },
403       {
404         "pin1": {
405           "compName": "WireCrossPoint#5",
406           "pinName": ""
407         },
408         "pin2": {
409           "compName": "WireCrossPoint#10",
410           "pinName": ""
411         },
412         "name": "unnamedWire#17",
413         "path": [
414           {
415             "x": 25.0,
416             "y": 110.0
417           }
418         ]
419       },
420       {
421         "pin1": {
422           "compName": "WireCrossPoint#5",
423           "pinName": ""
424         },
425         "pin2": {
426           "compName": "WireCrossPoint#9",
427           "pinName": ""
428         },
429         "name": "unnamedWire#18",
430         "path": []
431       },
432       {
433         "pin1": {
434           "compName": "GUISplitter#0",
435           "pinName": "O1"
436         },
437         "pin2": {
438           "compName": "WireCrossPoint#5",
439           "pinName": ""
440         },
441         "name": "unnamedWire#19",
442         "path": []
443       },
444       {
445         "pin1": {
446           "compName": "WireCrossPoint#1",
447           "pinName": ""
448         },
449         "pin2": {
450           "compName": "GUISplitter#0",
451           "pinName": "O3"
452         },
453         "name": "unnamedWire#2",
454         "path": [
455           {
456             "x": 35.0,
457             "y": 140.0
458           }
459         ]
460       },
461       {
462         "pin1": {
463           "compName": "WireCrossPoint#1",
464           "pinName": ""
465         },
466         "pin2": {
467           "compName": "_submodelinterface",
468           "pinName": "Y011"
469         },
470         "name": "unnamedWire#20",
471         "path": []
472       },
473       {
474         "pin1": {
475           "compName": "GUISplitter#0",
476           "pinName": "O0"
477         },
478         "pin2": {
479           "compName": "WireCrossPoint#4",
480           "pinName": ""
481         },
482         "name": "unnamedWire#21",
483         "path": [
484           {
485             "x": 20.0,
486             "y": 110.0
487           }
488         ]
489       },
490       {
491         "pin1": {
492           "compName": "WireCrossPoint#4",
493           "pinName": ""
494         },
495         "pin2": {
496           "compName": "_submodelinterface",
497           "pinName": "Y010"
498         },
499         "name": "unnamedWire#22",
500         "path": []
501       },
502       {
503         "pin1": {
504           "compName": "GUINandGate#4",
505           "pinName": "Y"
506         },
507         "pin2": {
508           "compName": "_submodelinterface",
509           "pinName": "Y100"
510         },
511         "name": "unnamedWire#23",
512         "path": []
513       },
514       {
515         "pin1": {
516           "compName": "GUINandGate#3",
517           "pinName": "Y"
518         },
519         "pin2": {
520           "compName": "GUINandGate#4",
521           "pinName": "B"
522         },
523         "name": "unnamedWire#24",
524         "path": [
525           {
526             "x": 70.0,
527             "y": 115.0
528           },
529           {
530             "x": 70.0,
531             "y": 130.0
532           }
533         ]
534       },
535       {
536         "pin1": {
537           "compName": "WireCrossPoint#7",
538           "pinName": ""
539         },
540         "pin2": {
541           "compName": "WireCrossPoint#8",
542           "pinName": ""
543         },
544         "name": "unnamedWire#25",
545         "path": []
546       },
547       {
548         "pin1": {
549           "compName": "WireCrossPoint#8",
550           "pinName": ""
551         },
552         "pin2": {
553           "compName": "GUINandGate#4",
554           "pinName": "A"
555         },
556         "name": "unnamedWire#26",
557         "path": []
558       },
559       {
560         "pin1": {
561           "compName": "WireCrossPoint#10",
562           "pinName": ""
563         },
564         "pin2": {
565           "compName": "GUINandGate#3",
566           "pinName": "A"
567         },
568         "name": "unnamedWire#27",
569         "path": []
570       },
571       {
572         "pin1": {
573           "compName": "_submodelinterface",
574           "pinName": "Y101"
575         },
576         "pin2": {
577           "compName": "WireCrossPoint#9",
578           "pinName": ""
579         },
580         "name": "unnamedWire#28",
581         "path": []
582       },
583       {
584         "pin1": {
585           "compName": "_submodelinterface",
586           "pinName": "Y110"
587         },
588         "pin2": {
589           "compName": "GUINandGate#5",
590           "pinName": "Y"
591         },
592         "name": "unnamedWire#29",
593         "path": []
594       },
595       {
596         "pin1": {
597           "compName": "WireCrossPoint#0",
598           "pinName": ""
599         },
600         "pin2": {
601           "compName": "DeserializedSubmodelComponent#0",
602           "pinName": "A"
603         },
604         "name": "unnamedWire#3",
605         "path": [
606           {
607             "x": 30.0,
608             "y": 25.0
609           }
610         ]
611       },
612       {
613         "pin1": {
614           "compName": "GUINandGate#5",
615           "pinName": "A"
616         },
617         "pin2": {
618           "compName": "WireCrossPoint#8",
619           "pinName": ""
620         },
621         "name": "unnamedWire#30",
622         "path": [
623           {
624             "x": 75.0,
625             "y": 170.0
626           }
627         ]
628       },
629       {
630         "pin1": {
631           "compName": "GUINandGate#3",
632           "pinName": "B"
633         },
634         "pin2": {
635           "compName": "WireCrossPoint#10",
636           "pinName": ""
637         },
638         "name": "unnamedWire#31",
639         "path": [
640           {
641             "x": 40.0,
642             "y": 120.0
643           }
644         ]
645       },
646       {
647         "pin1": {
648           "compName": "WireCrossPoint#9",
649           "pinName": ""
650         },
651         "pin2": {
652           "compName": "GUINandGate#5",
653           "pinName": "B"
654         },
655         "name": "unnamedWire#32",
656         "path": [
657           {
658             "x": 25.0,
659             "y": 180.0
660           }
661         ]
662       },
663       {
664         "pin1": {
665           "compName": "_submodelinterface",
666           "pinName": "Y111"
667         },
668         "pin2": {
669           "compName": "WireCrossPoint#0",
670           "pinName": ""
671         },
672         "name": "unnamedWire#33",
673         "path": [
674           {
675             "x": 30.0,
676             "y": 200.0
677           }
678         ]
679       },
680       {
681         "pin1": {
682           "compName": "WireCrossPoint#1",
683           "pinName": ""
684         },
685         "pin2": {
686           "compName": "DeserializedSubmodelComponent#0",
687           "pinName": "B"
688         },
689         "name": "unnamedWire#4",
690         "path": [
691           {
692             "x": 35.0,
693             "y": 35.0
694           }
695         ]
696       },
697       {
698         "pin1": {
699           "compName": "DeserializedSubmodelComponent#0",
700           "pinName": "Y"
701         },
702         "pin2": {
703           "compName": "WireCrossPoint#3",
704           "pinName": ""
705         },
706         "name": "unnamedWire#5",
707         "path": []
708       },
709       {
710         "pin1": {
711           "compName": "WireCrossPoint#3",
712           "pinName": ""
713         },
714         "pin2": {
715           "compName": "GUINandGate#0",
716           "pinName": "A"
717         },
718         "name": "unnamedWire#6",
719         "path": []
720       },
721       {
722         "pin1": {
723           "compName": "GUINandGate#0",
724           "pinName": "B"
725         },
726         "pin2": {
727           "compName": "WireCrossPoint#2",
728           "pinName": ""
729         },
730         "name": "unnamedWire#7",
731         "path": []
732       },
733       {
734         "pin1": {
735           "compName": "WireCrossPoint#3",
736           "pinName": ""
737         },
738         "pin2": {
739           "compName": "WireCrossPoint#2",
740           "pinName": ""
741         },
742         "name": "unnamedWire#8",
743         "path": []
744       },
745       {
746         "pin1": {
747           "compName": "GUINandGate#1",
748           "pinName": "Y"
749         },
750         "pin2": {
751           "compName": "WireCrossPoint#7",
752           "pinName": ""
753         },
754         "name": "unnamedWire#9",
755         "path": []
756       }
757     ],
758     "version": "0.1.1"
759   },
760   "symbolRendererSnippetID": "class:net.mograsim.logic.model.snippets.symbolrenderers.SimpleRectangularLikeSymbolRenderer",
761   "symbolRendererParams": {
762     "centerText": "Test\nlogic",
763     "centerTextHeight": 5.0,
764     "horizontalComponentCenter": 17.5,
765     "pinLabelHeight": 3.5,
766     "pinLabelMargin": 0.5
767   },
768   "outlineRendererSnippetID": "class:net.mograsim.logic.model.snippets.outlinerenderers.DefaultOutlineRenderer",
769   "highLevelStateHandlerSnippetID": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.StandardHighLevelStateHandler",
770   "highLevelStateHandlerParams": {
771     "subcomponentHighLevelStates": {},
772     "atomicHighLevelStates": {}
773   },
774   "version": "0.1.5"
775 }