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