2c007e546fa59f122ea43d8dea8252467990a91a
[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": {
152           "logicWidth": 4,
153           "orientation": "RIGHT"
154         }
155       },
156       {
157         "id": "WireCrossPoint",
158         "name": "WireCrossPoint#0",
159         "pos": {
160           "x": 29.0,
161           "y": 129.0
162         },
163         "params": 1
164       },
165       {
166         "id": "WireCrossPoint",
167         "name": "WireCrossPoint#1",
168         "pos": {
169           "x": 34.0,
170           "y": 99.0
171         },
172         "params": 1
173       },
174       {
175         "id": "WireCrossPoint",
176         "name": "WireCrossPoint#10",
177         "pos": {
178           "x": 39.0,
179           "y": 109.0
180         },
181         "params": 1
182       },
183       {
184         "id": "WireCrossPoint",
185         "name": "WireCrossPoint#2",
186         "pos": {
187           "x": 79.0,
188           "y": 34.0
189         },
190         "params": 1
191       },
192       {
193         "id": "WireCrossPoint",
194         "name": "WireCrossPoint#3",
195         "pos": {
196           "x": 79.0,
197           "y": 24.0
198         },
199         "params": 1
200       },
201       {
202         "id": "WireCrossPoint",
203         "name": "WireCrossPoint#4",
204         "pos": {
205           "x": 19.0,
206           "y": 74.0
207         },
208         "params": 1
209       },
210       {
211         "id": "WireCrossPoint",
212         "name": "WireCrossPoint#5",
213         "pos": {
214           "x": 24.0,
215           "y": 119.0
216         },
217         "params": 1
218       },
219       {
220         "id": "WireCrossPoint",
221         "name": "WireCrossPoint#6",
222         "pos": {
223           "x": 39.0,
224           "y": 64.0
225         },
226         "params": 1
227       },
228       {
229         "id": "WireCrossPoint",
230         "name": "WireCrossPoint#7",
231         "pos": {
232           "x": 74.0,
233           "y": 59.0
234         },
235         "params": 1
236       },
237       {
238         "id": "WireCrossPoint",
239         "name": "WireCrossPoint#8",
240         "pos": {
241           "x": 74.0,
242           "y": 119.0
243         },
244         "params": 1
245       },
246       {
247         "id": "WireCrossPoint",
248         "name": "WireCrossPoint#9",
249         "pos": {
250           "x": 24.0,
251           "y": 149.0
252         },
253         "params": 1
254       },
255       {
256         "id": "xor",
257         "name": "xor#0",
258         "pos": {
259           "x": 40.0,
260           "y": 20.0
261         }
262       }
263     ],
264     "wires": [
265       {
266         "pin1": {
267           "compName": "_submodelinterface",
268           "pinName": "I"
269         },
270         "pin2": {
271           "compName": "Splitter#0",
272           "pinName": "I"
273         },
274         "name": "unnamedWire#0",
275         "path": []
276       },
277       {
278         "pin1": {
279           "compName": "WireCrossPoint#5",
280           "pinName": ""
281         },
282         "pin2": {
283           "compName": "Splitter#0",
284           "pinName": "O2"
285         },
286         "name": "unnamedWire#1",
287         "path": []
288       },
289       {
290         "pin1": {
291           "compName": "NandGate#2",
292           "pinName": "A"
293         },
294         "pin2": {
295           "compName": "NandGate#0",
296           "pinName": "Y"
297         },
298         "name": "unnamedWire#10",
299         "path": [
300           {
301             "x": 110.0,
302             "y": 20.0
303           },
304           {
305             "x": 110.0,
306             "y": 30.0
307           }
308         ]
309       },
310       {
311         "pin1": {
312           "compName": "WireCrossPoint#4",
313           "pinName": ""
314         },
315         "pin2": {
316           "compName": "WireCrossPoint#6",
317           "pinName": ""
318         },
319         "name": "unnamedWire#11",
320         "path": [
321           {
322             "x": 20.0,
323             "y": 65.0
324           }
325         ]
326       },
327       {
328         "pin1": {
329           "compName": "WireCrossPoint#6",
330           "pinName": ""
331         },
332         "pin2": {
333           "compName": "NandGate#1",
334           "pinName": "A"
335         },
336         "name": "unnamedWire#12",
337         "path": [
338           {
339             "x": 40.0,
340             "y": 55.0
341           }
342         ]
343       },
344       {
345         "pin1": {
346           "compName": "WireCrossPoint#6",
347           "pinName": ""
348         },
349         "pin2": {
350           "compName": "NandGate#1",
351           "pinName": "B"
352         },
353         "name": "unnamedWire#13",
354         "path": []
355       },
356       {
357         "pin1": {
358           "compName": "WireCrossPoint#7",
359           "pinName": ""
360         },
361         "pin2": {
362           "compName": "NandGate#2",
363           "pinName": "B"
364         },
365         "name": "unnamedWire#14",
366         "path": [
367           {
368             "x": 115.0,
369             "y": 60.0
370           },
371           {
372             "x": 115.0,
373             "y": 30.0
374           }
375         ]
376       },
377       {
378         "pin1": {
379           "compName": "WireCrossPoint#2",
380           "pinName": ""
381         },
382         "pin2": {
383           "compName": "_submodelinterface",
384           "pinName": "Y001"
385         },
386         "name": "unnamedWire#15",
387         "path": [
388           {
389             "x": 80.0,
390             "y": 50.0
391           }
392         ]
393       },
394       {
395         "pin1": {
396           "compName": "NandGate#2",
397           "pinName": "Y"
398         },
399         "pin2": {
400           "compName": "_submodelinterface",
401           "pinName": "Y000"
402         },
403         "name": "unnamedWire#16",
404         "path": []
405       },
406       {
407         "pin1": {
408           "compName": "WireCrossPoint#5",
409           "pinName": ""
410         },
411         "pin2": {
412           "compName": "WireCrossPoint#10",
413           "pinName": ""
414         },
415         "name": "unnamedWire#17",
416         "path": [
417           {
418             "x": 25.0,
419             "y": 110.0
420           }
421         ]
422       },
423       {
424         "pin1": {
425           "compName": "WireCrossPoint#5",
426           "pinName": ""
427         },
428         "pin2": {
429           "compName": "WireCrossPoint#9",
430           "pinName": ""
431         },
432         "name": "unnamedWire#18",
433         "path": []
434       },
435       {
436         "pin1": {
437           "compName": "Splitter#0",
438           "pinName": "O1"
439         },
440         "pin2": {
441           "compName": "WireCrossPoint#0",
442           "pinName": ""
443         },
444         "name": "unnamedWire#2",
445         "path": []
446       },
447       {
448         "pin1": {
449           "compName": "WireCrossPoint#1",
450           "pinName": ""
451         },
452         "pin2": {
453           "compName": "_submodelinterface",
454           "pinName": "Y011"
455         },
456         "name": "unnamedWire#20",
457         "path": []
458       },
459       {
460         "pin1": {
461           "compName": "Splitter#0",
462           "pinName": "O0"
463         },
464         "pin2": {
465           "compName": "WireCrossPoint#1",
466           "pinName": ""
467         },
468         "name": "unnamedWire#21",
469         "path": [
470           {
471             "x": 35.0,
472             "y": 140.0
473           }
474         ]
475       },
476       {
477         "pin1": {
478           "compName": "WireCrossPoint#4",
479           "pinName": ""
480         },
481         "pin2": {
482           "compName": "_submodelinterface",
483           "pinName": "Y010"
484         },
485         "name": "unnamedWire#22",
486         "path": []
487       },
488       {
489         "pin1": {
490           "compName": "NandGate#4",
491           "pinName": "Y"
492         },
493         "pin2": {
494           "compName": "_submodelinterface",
495           "pinName": "Y100"
496         },
497         "name": "unnamedWire#23",
498         "path": []
499       },
500       {
501         "pin1": {
502           "compName": "NandGate#3",
503           "pinName": "Y"
504         },
505         "pin2": {
506           "compName": "NandGate#4",
507           "pinName": "B"
508         },
509         "name": "unnamedWire#24",
510         "path": [
511           {
512             "x": 70.0,
513             "y": 115.0
514           },
515           {
516             "x": 70.0,
517             "y": 130.0
518           }
519         ]
520       },
521       {
522         "pin1": {
523           "compName": "WireCrossPoint#7",
524           "pinName": ""
525         },
526         "pin2": {
527           "compName": "WireCrossPoint#8",
528           "pinName": ""
529         },
530         "name": "unnamedWire#25",
531         "path": []
532       },
533       {
534         "pin1": {
535           "compName": "WireCrossPoint#8",
536           "pinName": ""
537         },
538         "pin2": {
539           "compName": "NandGate#4",
540           "pinName": "A"
541         },
542         "name": "unnamedWire#26",
543         "path": []
544       },
545       {
546         "pin1": {
547           "compName": "WireCrossPoint#10",
548           "pinName": ""
549         },
550         "pin2": {
551           "compName": "NandGate#3",
552           "pinName": "A"
553         },
554         "name": "unnamedWire#27",
555         "path": []
556       },
557       {
558         "pin1": {
559           "compName": "_submodelinterface",
560           "pinName": "Y101"
561         },
562         "pin2": {
563           "compName": "WireCrossPoint#9",
564           "pinName": ""
565         },
566         "name": "unnamedWire#28",
567         "path": []
568       },
569       {
570         "pin1": {
571           "compName": "_submodelinterface",
572           "pinName": "Y110"
573         },
574         "pin2": {
575           "compName": "NandGate#5",
576           "pinName": "Y"
577         },
578         "name": "unnamedWire#29",
579         "path": []
580       },
581       {
582         "pin1": {
583           "compName": "WireCrossPoint#0",
584           "pinName": ""
585         },
586         "pin2": {
587           "compName": "xor#0",
588           "pinName": "A"
589         },
590         "name": "unnamedWire#3",
591         "path": [
592           {
593             "x": 30.0,
594             "y": 25.0
595           }
596         ]
597       },
598       {
599         "pin1": {
600           "compName": "NandGate#5",
601           "pinName": "A"
602         },
603         "pin2": {
604           "compName": "WireCrossPoint#8",
605           "pinName": ""
606         },
607         "name": "unnamedWire#30",
608         "path": [
609           {
610             "x": 75.0,
611             "y": 170.0
612           }
613         ]
614       },
615       {
616         "pin1": {
617           "compName": "NandGate#3",
618           "pinName": "B"
619         },
620         "pin2": {
621           "compName": "WireCrossPoint#10",
622           "pinName": ""
623         },
624         "name": "unnamedWire#31",
625         "path": [
626           {
627             "x": 40.0,
628             "y": 120.0
629           }
630         ]
631       },
632       {
633         "pin1": {
634           "compName": "WireCrossPoint#9",
635           "pinName": ""
636         },
637         "pin2": {
638           "compName": "NandGate#5",
639           "pinName": "B"
640         },
641         "name": "unnamedWire#32",
642         "path": [
643           {
644             "x": 25.0,
645             "y": 180.0
646           }
647         ]
648       },
649       {
650         "pin1": {
651           "compName": "_submodelinterface",
652           "pinName": "Y111"
653         },
654         "pin2": {
655           "compName": "WireCrossPoint#0",
656           "pinName": ""
657         },
658         "name": "unnamedWire#33",
659         "path": [
660           {
661             "x": 30.0,
662             "y": 200.0
663           }
664         ]
665       },
666       {
667         "pin1": {
668           "compName": "Splitter#0",
669           "pinName": "O3"
670         },
671         "pin2": {
672           "compName": "WireCrossPoint#4",
673           "pinName": ""
674         },
675         "name": "unnamedWire#34",
676         "path": [
677           {
678             "x": 20.0,
679             "y": 110.0
680           }
681         ]
682       },
683       {
684         "pin1": {
685           "compName": "WireCrossPoint#1",
686           "pinName": ""
687         },
688         "pin2": {
689           "compName": "xor#0",
690           "pinName": "B"
691         },
692         "name": "unnamedWire#4",
693         "path": [
694           {
695             "x": 35.0,
696             "y": 35.0
697           }
698         ]
699       },
700       {
701         "pin1": {
702           "compName": "xor#0",
703           "pinName": "Y"
704         },
705         "pin2": {
706           "compName": "WireCrossPoint#3",
707           "pinName": ""
708         },
709         "name": "unnamedWire#5",
710         "path": []
711       },
712       {
713         "pin1": {
714           "compName": "WireCrossPoint#3",
715           "pinName": ""
716         },
717         "pin2": {
718           "compName": "NandGate#0",
719           "pinName": "A"
720         },
721         "name": "unnamedWire#6",
722         "path": []
723       },
724       {
725         "pin1": {
726           "compName": "NandGate#0",
727           "pinName": "B"
728         },
729         "pin2": {
730           "compName": "WireCrossPoint#2",
731           "pinName": ""
732         },
733         "name": "unnamedWire#7",
734         "path": []
735       },
736       {
737         "pin1": {
738           "compName": "WireCrossPoint#3",
739           "pinName": ""
740         },
741         "pin2": {
742           "compName": "WireCrossPoint#2",
743           "pinName": ""
744         },
745         "name": "unnamedWire#8",
746         "path": []
747       },
748       {
749         "pin1": {
750           "compName": "NandGate#1",
751           "pinName": "Y"
752         },
753         "pin2": {
754           "compName": "WireCrossPoint#7",
755           "pinName": ""
756         },
757         "name": "unnamedWire#9",
758         "path": []
759       }
760     ],
761     "version": "0.1.1"
762   },
763   "symbolRendererSnippetID": "simpleRectangularLike",
764   "symbolRendererParams": {
765     "centerText": "Test\nlogic",
766     "centerTextHeight": 5.0,
767     "horizontalComponentCenter": 17.5,
768     "pinLabelHeight": 3.5,
769     "pinLabelMargin": 0.5
770   },
771   "outlineRendererSnippetID": "default",
772   "highLevelStateHandlerSnippetID": "default",
773   "version": "0.1.5"
774 }