ab44304174e6c542262600047ba41c16813c4f19
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / am2904 / Am2904TestLogic.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": "NandGate",
92         "name": "NandGate#0",
93         "pos": {
94           "x": 85.0,
95           "y": 20.0
96         },
97         "params": 1
98       },
99       {
100         "id": "NandGate",
101         "name": "NandGate#1",
102         "pos": {
103           "x": 45.0,
104           "y": 50.0
105         },
106         "params": 1
107       },
108       {
109         "id": "NandGate",
110         "name": "NandGate#2",
111         "pos": {
112           "x": 120.0,
113           "y": 15.0
114         },
115         "params": 1
116       },
117       {
118         "id": "NandGate",
119         "name": "NandGate#3",
120         "pos": {
121           "x": 45.0,
122           "y": 105.0
123         },
124         "params": 1
125       },
126       {
127         "id": "NandGate",
128         "name": "NandGate#4",
129         "pos": {
130           "x": 80.0,
131           "y": 115.0
132         },
133         "params": 1
134       },
135       {
136         "id": "NandGate",
137         "name": "NandGate#5",
138         "pos": {
139           "x": 80.0,
140           "y": 165.0
141         },
142         "params": 1
143       },
144       {
145         "id": "Splitter",
146         "name": "Splitter#0",
147         "pos": {
148           "x": 5.0,
149           "y": 110.0
150         },
151         "params": 4
152       },
153       {
154         "id": "WireCrossPoint",
155         "name": "WireCrossPoint#0",
156         "pos": {
157           "x": 29.0,
158           "y": 129.0
159         },
160         "params": 1
161       },
162       {
163         "id": "WireCrossPoint",
164         "name": "WireCrossPoint#1",
165         "pos": {
166           "x": 34.0,
167           "y": 99.0
168         },
169         "params": 1
170       },
171       {
172         "id": "WireCrossPoint",
173         "name": "WireCrossPoint#10",
174         "pos": {
175           "x": 39.0,
176           "y": 109.0
177         },
178         "params": 1
179       },
180       {
181         "id": "WireCrossPoint",
182         "name": "WireCrossPoint#2",
183         "pos": {
184           "x": 79.0,
185           "y": 34.0
186         },
187         "params": 1
188       },
189       {
190         "id": "WireCrossPoint",
191         "name": "WireCrossPoint#3",
192         "pos": {
193           "x": 79.0,
194           "y": 24.0
195         },
196         "params": 1
197       },
198       {
199         "id": "WireCrossPoint",
200         "name": "WireCrossPoint#4",
201         "pos": {
202           "x": 19.0,
203           "y": 74.0
204         },
205         "params": 1
206       },
207       {
208         "id": "WireCrossPoint",
209         "name": "WireCrossPoint#5",
210         "pos": {
211           "x": 24.0,
212           "y": 119.0
213         },
214         "params": 1
215       },
216       {
217         "id": "WireCrossPoint",
218         "name": "WireCrossPoint#6",
219         "pos": {
220           "x": 39.0,
221           "y": 64.0
222         },
223         "params": 1
224       },
225       {
226         "id": "WireCrossPoint",
227         "name": "WireCrossPoint#7",
228         "pos": {
229           "x": 74.0,
230           "y": 59.0
231         },
232         "params": 1
233       },
234       {
235         "id": "WireCrossPoint",
236         "name": "WireCrossPoint#8",
237         "pos": {
238           "x": 74.0,
239           "y": 119.0
240         },
241         "params": 1
242       },
243       {
244         "id": "WireCrossPoint",
245         "name": "WireCrossPoint#9",
246         "pos": {
247           "x": 24.0,
248           "y": 149.0
249         },
250         "params": 1
251       },
252       {
253         "id": "xor",
254         "name": "xor#0",
255         "pos": {
256           "x": 40.0,
257           "y": 20.0
258         }
259       }
260     ],
261     "wires": [
262       {
263         "pin1": {
264           "compName": "_submodelinterface",
265           "pinName": "I"
266         },
267         "pin2": {
268           "compName": "Splitter#0",
269           "pinName": "I"
270         },
271         "name": "unnamedWire#0",
272         "path": []
273       },
274       {
275         "pin1": {
276           "compName": "WireCrossPoint#5",
277           "pinName": ""
278         },
279         "pin2": {
280           "compName": "Splitter#0",
281           "pinName": "O2"
282         },
283         "name": "unnamedWire#1",
284         "path": []
285       },
286       {
287         "pin1": {
288           "compName": "NandGate#2",
289           "pinName": "A"
290         },
291         "pin2": {
292           "compName": "NandGate#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": "NandGate#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": "NandGate#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": "NandGate#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": "NandGate#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": "Splitter#0",
435           "pinName": "O1"
436         },
437         "pin2": {
438           "compName": "WireCrossPoint#0",
439           "pinName": ""
440         },
441         "name": "unnamedWire#2",
442         "path": []
443       },
444       {
445         "pin1": {
446           "compName": "WireCrossPoint#1",
447           "pinName": ""
448         },
449         "pin2": {
450           "compName": "_submodelinterface",
451           "pinName": "Y011"
452         },
453         "name": "unnamedWire#20",
454         "path": []
455       },
456       {
457         "pin1": {
458           "compName": "Splitter#0",
459           "pinName": "O0"
460         },
461         "pin2": {
462           "compName": "WireCrossPoint#1",
463           "pinName": ""
464         },
465         "name": "unnamedWire#21",
466         "path": [
467           {
468             "x": 35.0,
469             "y": 140.0
470           }
471         ]
472       },
473       {
474         "pin1": {
475           "compName": "WireCrossPoint#4",
476           "pinName": ""
477         },
478         "pin2": {
479           "compName": "_submodelinterface",
480           "pinName": "Y010"
481         },
482         "name": "unnamedWire#22",
483         "path": []
484       },
485       {
486         "pin1": {
487           "compName": "NandGate#4",
488           "pinName": "Y"
489         },
490         "pin2": {
491           "compName": "_submodelinterface",
492           "pinName": "Y100"
493         },
494         "name": "unnamedWire#23",
495         "path": []
496       },
497       {
498         "pin1": {
499           "compName": "NandGate#3",
500           "pinName": "Y"
501         },
502         "pin2": {
503           "compName": "NandGate#4",
504           "pinName": "B"
505         },
506         "name": "unnamedWire#24",
507         "path": [
508           {
509             "x": 70.0,
510             "y": 115.0
511           },
512           {
513             "x": 70.0,
514             "y": 130.0
515           }
516         ]
517       },
518       {
519         "pin1": {
520           "compName": "WireCrossPoint#7",
521           "pinName": ""
522         },
523         "pin2": {
524           "compName": "WireCrossPoint#8",
525           "pinName": ""
526         },
527         "name": "unnamedWire#25",
528         "path": []
529       },
530       {
531         "pin1": {
532           "compName": "WireCrossPoint#8",
533           "pinName": ""
534         },
535         "pin2": {
536           "compName": "NandGate#4",
537           "pinName": "A"
538         },
539         "name": "unnamedWire#26",
540         "path": []
541       },
542       {
543         "pin1": {
544           "compName": "WireCrossPoint#10",
545           "pinName": ""
546         },
547         "pin2": {
548           "compName": "NandGate#3",
549           "pinName": "A"
550         },
551         "name": "unnamedWire#27",
552         "path": []
553       },
554       {
555         "pin1": {
556           "compName": "_submodelinterface",
557           "pinName": "Y101"
558         },
559         "pin2": {
560           "compName": "WireCrossPoint#9",
561           "pinName": ""
562         },
563         "name": "unnamedWire#28",
564         "path": []
565       },
566       {
567         "pin1": {
568           "compName": "_submodelinterface",
569           "pinName": "Y110"
570         },
571         "pin2": {
572           "compName": "NandGate#5",
573           "pinName": "Y"
574         },
575         "name": "unnamedWire#29",
576         "path": []
577       },
578       {
579         "pin1": {
580           "compName": "WireCrossPoint#0",
581           "pinName": ""
582         },
583         "pin2": {
584           "compName": "xor#0",
585           "pinName": "A"
586         },
587         "name": "unnamedWire#3",
588         "path": [
589           {
590             "x": 30.0,
591             "y": 25.0
592           }
593         ]
594       },
595       {
596         "pin1": {
597           "compName": "NandGate#5",
598           "pinName": "A"
599         },
600         "pin2": {
601           "compName": "WireCrossPoint#8",
602           "pinName": ""
603         },
604         "name": "unnamedWire#30",
605         "path": [
606           {
607             "x": 75.0,
608             "y": 170.0
609           }
610         ]
611       },
612       {
613         "pin1": {
614           "compName": "NandGate#3",
615           "pinName": "B"
616         },
617         "pin2": {
618           "compName": "WireCrossPoint#10",
619           "pinName": ""
620         },
621         "name": "unnamedWire#31",
622         "path": [
623           {
624             "x": 40.0,
625             "y": 120.0
626           }
627         ]
628       },
629       {
630         "pin1": {
631           "compName": "WireCrossPoint#9",
632           "pinName": ""
633         },
634         "pin2": {
635           "compName": "NandGate#5",
636           "pinName": "B"
637         },
638         "name": "unnamedWire#32",
639         "path": [
640           {
641             "x": 25.0,
642             "y": 180.0
643           }
644         ]
645       },
646       {
647         "pin1": {
648           "compName": "_submodelinterface",
649           "pinName": "Y111"
650         },
651         "pin2": {
652           "compName": "WireCrossPoint#0",
653           "pinName": ""
654         },
655         "name": "unnamedWire#33",
656         "path": [
657           {
658             "x": 30.0,
659             "y": 200.0
660           }
661         ]
662       },
663       {
664         "pin1": {
665           "compName": "Splitter#0",
666           "pinName": "O3"
667         },
668         "pin2": {
669           "compName": "WireCrossPoint#4",
670           "pinName": ""
671         },
672         "name": "unnamedWire#34",
673         "path": [
674           {
675             "x": 20.0,
676             "y": 110.0
677           }
678         ]
679       },
680       {
681         "pin1": {
682           "compName": "WireCrossPoint#1",
683           "pinName": ""
684         },
685         "pin2": {
686           "compName": "xor#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": "xor#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": "NandGate#0",
716           "pinName": "A"
717         },
718         "name": "unnamedWire#6",
719         "path": []
720       },
721       {
722         "pin1": {
723           "compName": "NandGate#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": "NandGate#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": "simpleRectangularLike",
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": "default",
769   "highLevelStateHandlerSnippetID": "default",
770   "version": "0.1.5"
771 }