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