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