Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / or_4.json
1 {
2   "width": 35.0,
3   "height": 80.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 5.0
9       },
10       "name": "A1",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 15.0
18       },
19       "name": "A2",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 0.0,
26         "y": 25.0
27       },
28       "name": "A3",
29       "logicWidth": 1,
30       "usage": "INPUT"
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 35.0
36       },
37       "name": "A4",
38       "logicWidth": 1,
39       "usage": "INPUT"
40     },
41     {
42       "location": {
43         "x": 0.0,
44         "y": 45.0
45       },
46       "name": "B1",
47       "logicWidth": 1,
48       "usage": "INPUT"
49     },
50     {
51       "location": {
52         "x": 0.0,
53         "y": 55.0
54       },
55       "name": "B2",
56       "logicWidth": 1,
57       "usage": "INPUT"
58     },
59     {
60       "location": {
61         "x": 0.0,
62         "y": 65.0
63       },
64       "name": "B3",
65       "logicWidth": 1,
66       "usage": "INPUT"
67     },
68     {
69       "location": {
70         "x": 0.0,
71         "y": 75.0
72       },
73       "name": "B4",
74       "logicWidth": 1,
75       "usage": "INPUT"
76     },
77     {
78       "location": {
79         "x": 35.0,
80         "y": 5.0
81       },
82       "name": "Y1",
83       "logicWidth": 1,
84       "usage": "OUTPUT"
85     },
86     {
87       "location": {
88         "x": 35.0,
89         "y": 15.0
90       },
91       "name": "Y2",
92       "logicWidth": 1,
93       "usage": "OUTPUT"
94     },
95     {
96       "location": {
97         "x": 35.0,
98         "y": 25.0
99       },
100       "name": "Y3",
101       "logicWidth": 1,
102       "usage": "OUTPUT"
103     },
104     {
105       "location": {
106         "x": 35.0,
107         "y": 35.0
108       },
109       "name": "Y4",
110       "logicWidth": 1,
111       "usage": "OUTPUT"
112     }
113   ],
114   "innerScale": 0.4,
115   "submodel": {
116     "components": [
117       {
118         "id": "NandGate",
119         "name": "NandGate#0",
120         "pos": {
121           "x": 15.0,
122           "y": 2.5
123         },
124         "params": 1
125       },
126       {
127         "id": "NandGate",
128         "name": "NandGate#1",
129         "pos": {
130           "x": 15.0,
131           "y": 27.5
132         },
133         "params": 1
134       },
135       {
136         "id": "NandGate",
137         "name": "NandGate#10",
138         "pos": {
139           "x": 65.0,
140           "y": 52.5
141         },
142         "params": 1
143       },
144       {
145         "id": "NandGate",
146         "name": "NandGate#11",
147         "pos": {
148           "x": 65.0,
149           "y": 77.5
150         },
151         "params": 1
152       },
153       {
154         "id": "NandGate",
155         "name": "NandGate#2",
156         "pos": {
157           "x": 15.0,
158           "y": 52.5
159         },
160         "params": 1
161       },
162       {
163         "id": "NandGate",
164         "name": "NandGate#3",
165         "pos": {
166           "x": 15.0,
167           "y": 77.5
168         },
169         "params": 1
170       },
171       {
172         "id": "NandGate",
173         "name": "NandGate#4",
174         "pos": {
175           "x": 15.0,
176           "y": 102.5
177         },
178         "params": 1
179       },
180       {
181         "id": "NandGate",
182         "name": "NandGate#5",
183         "pos": {
184           "x": 15.0,
185           "y": 127.5
186         },
187         "params": 1
188       },
189       {
190         "id": "NandGate",
191         "name": "NandGate#6",
192         "pos": {
193           "x": 15.0,
194           "y": 152.5
195         },
196         "params": 1
197       },
198       {
199         "id": "NandGate",
200         "name": "NandGate#7",
201         "pos": {
202           "x": 15.0,
203           "y": 177.5
204         },
205         "params": 1
206       },
207       {
208         "id": "NandGate",
209         "name": "NandGate#8",
210         "pos": {
211           "x": 65.0,
212           "y": 2.5
213         },
214         "params": 1
215       },
216       {
217         "id": "NandGate",
218         "name": "NandGate#9",
219         "pos": {
220           "x": 65.0,
221           "y": 27.5
222         },
223         "params": 1
224       },
225       {
226         "id": "WireCrossPoint",
227         "name": "WireCrossPoint#0",
228         "pos": {
229           "x": 6.5,
230           "y": 11.5
231         },
232         "params": 1
233       },
234       {
235         "id": "WireCrossPoint",
236         "name": "WireCrossPoint#1",
237         "pos": {
238           "x": 6.5,
239           "y": 36.5
240         },
241         "params": 1
242       },
243       {
244         "id": "WireCrossPoint",
245         "name": "WireCrossPoint#2",
246         "pos": {
247           "x": 6.5,
248           "y": 61.5
249         },
250         "params": 1
251       },
252       {
253         "id": "WireCrossPoint",
254         "name": "WireCrossPoint#3",
255         "pos": {
256           "x": 6.5,
257           "y": 86.5
258         },
259         "params": 1
260       },
261       {
262         "id": "WireCrossPoint",
263         "name": "WireCrossPoint#4",
264         "pos": {
265           "x": 6.5,
266           "y": 111.5
267         },
268         "params": 1
269       },
270       {
271         "id": "WireCrossPoint",
272         "name": "WireCrossPoint#5",
273         "pos": {
274           "x": 6.5,
275           "y": 136.5
276         },
277         "params": 1
278       },
279       {
280         "id": "WireCrossPoint",
281         "name": "WireCrossPoint#6",
282         "pos": {
283           "x": 6.5,
284           "y": 161.5
285         },
286         "params": 1
287       },
288       {
289         "id": "WireCrossPoint",
290         "name": "WireCrossPoint#7",
291         "pos": {
292           "x": 6.5,
293           "y": 186.5
294         },
295         "params": 1
296       }
297     ],
298     "wires": [
299       {
300         "pin1": {
301           "compName": "_submodelinterface",
302           "pinName": "A1"
303         },
304         "pin2": {
305           "compName": "WireCrossPoint#0",
306           "pinName": ""
307         },
308         "name": "unnamedWire#0",
309         "path": []
310       },
311       {
312         "pin1": {
313           "compName": "_submodelinterface",
314           "pinName": "A2"
315         },
316         "pin2": {
317           "compName": "WireCrossPoint#1",
318           "pinName": ""
319         },
320         "name": "unnamedWire#1",
321         "path": []
322       },
323       {
324         "pin1": {
325           "compName": "WireCrossPoint#1",
326           "pinName": ""
327         },
328         "pin2": {
329           "compName": "NandGate#1",
330           "pinName": "A"
331         },
332         "name": "unnamedWire#10",
333         "path": [
334           {
335             "x": 7.5,
336             "y": 32.5
337           }
338         ]
339       },
340       {
341         "pin1": {
342           "compName": "WireCrossPoint#1",
343           "pinName": ""
344         },
345         "pin2": {
346           "compName": "NandGate#1",
347           "pinName": "B"
348         },
349         "name": "unnamedWire#11",
350         "path": [
351           {
352             "x": 7.5,
353             "y": 42.5
354           }
355         ]
356       },
357       {
358         "pin1": {
359           "compName": "WireCrossPoint#2",
360           "pinName": ""
361         },
362         "pin2": {
363           "compName": "NandGate#2",
364           "pinName": "A"
365         },
366         "name": "unnamedWire#12",
367         "path": [
368           {
369             "x": 7.5,
370             "y": 57.5
371           }
372         ]
373       },
374       {
375         "pin1": {
376           "compName": "WireCrossPoint#2",
377           "pinName": ""
378         },
379         "pin2": {
380           "compName": "NandGate#2",
381           "pinName": "B"
382         },
383         "name": "unnamedWire#13",
384         "path": [
385           {
386             "x": 7.5,
387             "y": 67.5
388           }
389         ]
390       },
391       {
392         "pin1": {
393           "compName": "WireCrossPoint#3",
394           "pinName": ""
395         },
396         "pin2": {
397           "compName": "NandGate#3",
398           "pinName": "A"
399         },
400         "name": "unnamedWire#14",
401         "path": [
402           {
403             "x": 7.5,
404             "y": 82.5
405           }
406         ]
407       },
408       {
409         "pin1": {
410           "compName": "WireCrossPoint#3",
411           "pinName": ""
412         },
413         "pin2": {
414           "compName": "NandGate#3",
415           "pinName": "B"
416         },
417         "name": "unnamedWire#15",
418         "path": [
419           {
420             "x": 7.5,
421             "y": 92.5
422           }
423         ]
424       },
425       {
426         "pin1": {
427           "compName": "WireCrossPoint#4",
428           "pinName": ""
429         },
430         "pin2": {
431           "compName": "NandGate#4",
432           "pinName": "A"
433         },
434         "name": "unnamedWire#16",
435         "path": [
436           {
437             "x": 7.5,
438             "y": 107.5
439           }
440         ]
441       },
442       {
443         "pin1": {
444           "compName": "WireCrossPoint#4",
445           "pinName": ""
446         },
447         "pin2": {
448           "compName": "NandGate#4",
449           "pinName": "B"
450         },
451         "name": "unnamedWire#17",
452         "path": [
453           {
454             "x": 7.5,
455             "y": 117.5
456           }
457         ]
458       },
459       {
460         "pin1": {
461           "compName": "WireCrossPoint#5",
462           "pinName": ""
463         },
464         "pin2": {
465           "compName": "NandGate#5",
466           "pinName": "A"
467         },
468         "name": "unnamedWire#18",
469         "path": [
470           {
471             "x": 7.5,
472             "y": 132.5
473           }
474         ]
475       },
476       {
477         "pin1": {
478           "compName": "WireCrossPoint#5",
479           "pinName": ""
480         },
481         "pin2": {
482           "compName": "NandGate#5",
483           "pinName": "B"
484         },
485         "name": "unnamedWire#19",
486         "path": [
487           {
488             "x": 7.5,
489             "y": 142.5
490           }
491         ]
492       },
493       {
494         "pin1": {
495           "compName": "_submodelinterface",
496           "pinName": "A3"
497         },
498         "pin2": {
499           "compName": "WireCrossPoint#2",
500           "pinName": ""
501         },
502         "name": "unnamedWire#2",
503         "path": []
504       },
505       {
506         "pin1": {
507           "compName": "WireCrossPoint#6",
508           "pinName": ""
509         },
510         "pin2": {
511           "compName": "NandGate#6",
512           "pinName": "A"
513         },
514         "name": "unnamedWire#20",
515         "path": [
516           {
517             "x": 7.5,
518             "y": 157.5
519           }
520         ]
521       },
522       {
523         "pin1": {
524           "compName": "WireCrossPoint#6",
525           "pinName": ""
526         },
527         "pin2": {
528           "compName": "NandGate#6",
529           "pinName": "B"
530         },
531         "name": "unnamedWire#21",
532         "path": [
533           {
534             "x": 7.5,
535             "y": 167.5
536           }
537         ]
538       },
539       {
540         "pin1": {
541           "compName": "WireCrossPoint#7",
542           "pinName": ""
543         },
544         "pin2": {
545           "compName": "NandGate#7",
546           "pinName": "A"
547         },
548         "name": "unnamedWire#22",
549         "path": [
550           {
551             "x": 7.5,
552             "y": 182.5
553           }
554         ]
555       },
556       {
557         "pin1": {
558           "compName": "WireCrossPoint#7",
559           "pinName": ""
560         },
561         "pin2": {
562           "compName": "NandGate#7",
563           "pinName": "B"
564         },
565         "name": "unnamedWire#23",
566         "path": [
567           {
568             "x": 7.5,
569             "y": 192.5
570           }
571         ]
572       },
573       {
574         "pin1": {
575           "compName": "NandGate#0",
576           "pinName": "Y"
577         },
578         "pin2": {
579           "compName": "NandGate#8",
580           "pinName": "A"
581         },
582         "name": "unnamedWire#24",
583         "path": [
584           {
585             "x": 40.0,
586             "y": 12.5
587           },
588           {
589             "x": 40.0,
590             "y": 7.5
591           }
592         ]
593       },
594       {
595         "pin1": {
596           "compName": "NandGate#4",
597           "pinName": "Y"
598         },
599         "pin2": {
600           "compName": "NandGate#8",
601           "pinName": "B"
602         },
603         "name": "unnamedWire#25",
604         "path": [
605           {
606             "x": 45.0,
607             "y": 112.5
608           },
609           {
610             "x": 45.0,
611             "y": 17.5
612           }
613         ]
614       },
615       {
616         "pin1": {
617           "compName": "NandGate#1",
618           "pinName": "Y"
619         },
620         "pin2": {
621           "compName": "NandGate#9",
622           "pinName": "A"
623         },
624         "name": "unnamedWire#26",
625         "path": [
626           {
627             "x": 40.0,
628             "y": 37.5
629           },
630           {
631             "x": 40.0,
632             "y": 32.5
633           }
634         ]
635       },
636       {
637         "pin1": {
638           "compName": "NandGate#5",
639           "pinName": "Y"
640         },
641         "pin2": {
642           "compName": "NandGate#9",
643           "pinName": "B"
644         },
645         "name": "unnamedWire#27",
646         "path": [
647           {
648             "x": 50.0,
649             "y": 137.5
650           },
651           {
652             "x": 50.0,
653             "y": 42.5
654           }
655         ]
656       },
657       {
658         "pin1": {
659           "compName": "NandGate#2",
660           "pinName": "Y"
661         },
662         "pin2": {
663           "compName": "NandGate#10",
664           "pinName": "A"
665         },
666         "name": "unnamedWire#28",
667         "path": [
668           {
669             "x": 40.0,
670             "y": 62.5
671           },
672           {
673             "x": 40.0,
674             "y": 57.5
675           }
676         ]
677       },
678       {
679         "pin1": {
680           "compName": "NandGate#6",
681           "pinName": "Y"
682         },
683         "pin2": {
684           "compName": "NandGate#10",
685           "pinName": "B"
686         },
687         "name": "unnamedWire#29",
688         "path": [
689           {
690             "x": 55.0,
691             "y": 162.5
692           },
693           {
694             "x": 55.0,
695             "y": 67.5
696           }
697         ]
698       },
699       {
700         "pin1": {
701           "compName": "_submodelinterface",
702           "pinName": "A4"
703         },
704         "pin2": {
705           "compName": "WireCrossPoint#3",
706           "pinName": ""
707         },
708         "name": "unnamedWire#3",
709         "path": []
710       },
711       {
712         "pin1": {
713           "compName": "NandGate#3",
714           "pinName": "Y"
715         },
716         "pin2": {
717           "compName": "NandGate#11",
718           "pinName": "A"
719         },
720         "name": "unnamedWire#30",
721         "path": [
722           {
723             "x": 40.0,
724             "y": 87.5
725           },
726           {
727             "x": 40.0,
728             "y": 82.5
729           }
730         ]
731       },
732       {
733         "pin1": {
734           "compName": "NandGate#7",
735           "pinName": "Y"
736         },
737         "pin2": {
738           "compName": "NandGate#11",
739           "pinName": "B"
740         },
741         "name": "unnamedWire#31",
742         "path": [
743           {
744             "x": 60.0,
745             "y": 187.5
746           },
747           {
748             "x": 60.0,
749             "y": 92.5
750           }
751         ]
752       },
753       {
754         "pin1": {
755           "compName": "NandGate#8",
756           "pinName": "Y"
757         },
758         "pin2": {
759           "compName": "_submodelinterface",
760           "pinName": "Y1"
761         },
762         "name": "unnamedWire#32",
763         "path": []
764       },
765       {
766         "pin1": {
767           "compName": "NandGate#9",
768           "pinName": "Y"
769         },
770         "pin2": {
771           "compName": "_submodelinterface",
772           "pinName": "Y2"
773         },
774         "name": "unnamedWire#33",
775         "path": []
776       },
777       {
778         "pin1": {
779           "compName": "NandGate#10",
780           "pinName": "Y"
781         },
782         "pin2": {
783           "compName": "_submodelinterface",
784           "pinName": "Y3"
785         },
786         "name": "unnamedWire#34",
787         "path": []
788       },
789       {
790         "pin1": {
791           "compName": "NandGate#11",
792           "pinName": "Y"
793         },
794         "pin2": {
795           "compName": "_submodelinterface",
796           "pinName": "Y4"
797         },
798         "name": "unnamedWire#35",
799         "path": []
800       },
801       {
802         "pin1": {
803           "compName": "_submodelinterface",
804           "pinName": "B1"
805         },
806         "pin2": {
807           "compName": "WireCrossPoint#4",
808           "pinName": ""
809         },
810         "name": "unnamedWire#4",
811         "path": []
812       },
813       {
814         "pin1": {
815           "compName": "_submodelinterface",
816           "pinName": "B2"
817         },
818         "pin2": {
819           "compName": "WireCrossPoint#5",
820           "pinName": ""
821         },
822         "name": "unnamedWire#5",
823         "path": []
824       },
825       {
826         "pin1": {
827           "compName": "_submodelinterface",
828           "pinName": "B3"
829         },
830         "pin2": {
831           "compName": "WireCrossPoint#6",
832           "pinName": ""
833         },
834         "name": "unnamedWire#6",
835         "path": []
836       },
837       {
838         "pin1": {
839           "compName": "_submodelinterface",
840           "pinName": "B4"
841         },
842         "pin2": {
843           "compName": "WireCrossPoint#7",
844           "pinName": ""
845         },
846         "name": "unnamedWire#7",
847         "path": []
848       },
849       {
850         "pin1": {
851           "compName": "WireCrossPoint#0",
852           "pinName": ""
853         },
854         "pin2": {
855           "compName": "NandGate#0",
856           "pinName": "A"
857         },
858         "name": "unnamedWire#8",
859         "path": [
860           {
861             "x": 7.5,
862             "y": 7.5
863           }
864         ]
865       },
866       {
867         "pin1": {
868           "compName": "WireCrossPoint#0",
869           "pinName": ""
870         },
871         "pin2": {
872           "compName": "NandGate#0",
873           "pinName": "B"
874         },
875         "name": "unnamedWire#9",
876         "path": [
877           {
878             "x": 7.5,
879             "y": 17.5
880           }
881         ]
882       }
883     ],
884     "version": "0.1.1"
885   },
886   "symbolRendererSnippetID": "simpleRectangularLike",
887   "symbolRendererParams": {
888     "centerText": "or_4",
889     "centerTextHeight": 5.0,
890     "horizontalComponentCenter": 17.5,
891     "pinLabelHeight": 3.5,
892     "pinLabelMargin": 0.5
893   },
894   "outlineRendererSnippetID": "default",
895   "highLevelStateHandlerSnippetID": "default",
896   "version": "0.1.5"
897 }