Merge branch 'development' of
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / dff4.json
1 {
2   "width": 35.0,
3   "height": 60.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": 25.0
18       },
19       "name": "D1",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 0.0,
26         "y": 35.0
27       },
28       "name": "D2",
29       "logicWidth": 1,
30       "usage": "INPUT"
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 45.0
36       },
37       "name": "D3",
38       "logicWidth": 1,
39       "usage": "INPUT"
40     },
41     {
42       "location": {
43         "x": 0.0,
44         "y": 55.0
45       },
46       "name": "D4",
47       "logicWidth": 1,
48       "usage": "INPUT"
49     },
50     {
51       "location": {
52         "x": 35.0,
53         "y": 5.0
54       },
55       "name": "Q1",
56       "logicWidth": 1,
57       "usage": "OUTPUT"
58     },
59     {
60       "location": {
61         "x": 35.0,
62         "y": 15.0
63       },
64       "name": "Q2",
65       "logicWidth": 1,
66       "usage": "OUTPUT"
67     },
68     {
69       "location": {
70         "x": 35.0,
71         "y": 25.0
72       },
73       "name": "Q3",
74       "logicWidth": 1,
75       "usage": "OUTPUT"
76     },
77     {
78       "location": {
79         "x": 35.0,
80         "y": 35.0
81       },
82       "name": "Q4",
83       "logicWidth": 1,
84       "usage": "OUTPUT"
85     },
86     {
87       "location": {
88         "x": 0.0,
89         "y": 15.0
90       },
91       "name": "WE",
92       "logicWidth": 1,
93       "usage": "INPUT"
94     }
95   ],
96   "innerScale": 0.2,
97   "submodel": {
98     "components": [
99       {
100         "id": "WireCrossPoint",
101         "name": "WireCrossPoint#0",
102         "pos": {
103           "x": 104.0,
104           "y": 24.0
105         },
106         "params": 1
107       },
108       {
109         "id": "WireCrossPoint",
110         "name": "WireCrossPoint#1",
111         "pos": {
112           "x": 104.0,
113           "y": 74.0
114         },
115         "params": 1
116       },
117       {
118         "id": "WireCrossPoint",
119         "name": "WireCrossPoint#2",
120         "pos": {
121           "x": 104.0,
122           "y": 124.0
123         },
124         "params": 1
125       },
126       {
127         "id": "WireCrossPoint",
128         "name": "WireCrossPoint#3",
129         "pos": {
130           "x": 169.0,
131           "y": 24.0
132         },
133         "params": 1
134       },
135       {
136         "id": "WireCrossPoint",
137         "name": "WireCrossPoint#4",
138         "pos": {
139           "x": 164.0,
140           "y": 74.0
141         },
142         "params": 1
143       },
144       {
145         "id": "WireCrossPoint",
146         "name": "WireCrossPoint#5",
147         "pos": {
148           "x": 159.0,
149           "y": 124.0
150         },
151         "params": 1
152       },
153       {
154         "id": "WireCrossPoint",
155         "name": "WireCrossPoint#6",
156         "pos": {
157           "x": 154.0,
158           "y": 174.0
159         },
160         "params": 1
161       },
162       {
163         "id": "dff",
164         "name": "dff#0",
165         "pos": {
166           "x": 115.0,
167           "y": 20.0
168         }
169       },
170       {
171         "id": "dff",
172         "name": "dff#1",
173         "pos": {
174           "x": 115.0,
175           "y": 70.0
176         }
177       },
178       {
179         "id": "dff",
180         "name": "dff#2",
181         "pos": {
182           "x": 115.0,
183           "y": 120.0
184         }
185       },
186       {
187         "id": "dff",
188         "name": "dff#3",
189         "pos": {
190           "x": 115.0,
191           "y": 170.0
192         }
193       },
194       {
195         "id": "mux1_4",
196         "name": "mux1_4#0",
197         "pos": {
198           "x": 55.0,
199           "y": 70.0
200         }
201       }
202     ],
203     "wires": [
204       {
205         "pin1": {
206           "compName": "_submodelinterface",
207           "pinName": "C"
208         },
209         "pin2": {
210           "compName": "WireCrossPoint#0",
211           "pinName": ""
212         },
213         "name": "unnamedWire#0",
214         "path": []
215       },
216       {
217         "pin1": {
218           "compName": "mux1_4#0",
219           "pinName": "Y1"
220         },
221         "pin2": {
222           "compName": "dff#0",
223           "pinName": "D"
224         },
225         "name": "unnamedWire#1",
226         "path": [
227           {
228             "x": 100.0,
229             "y": 75.0
230           },
231           {
232             "x": 100.0,
233             "y": 35.0
234           }
235         ]
236       },
237       {
238         "pin1": {
239           "compName": "_submodelinterface",
240           "pinName": "D1"
241         },
242         "pin2": {
243           "compName": "mux1_4#0",
244           "pinName": "I1_1"
245         },
246         "name": "unnamedWire#10",
247         "path": []
248       },
249       {
250         "pin1": {
251           "compName": "_submodelinterface",
252           "pinName": "D2"
253         },
254         "pin2": {
255           "compName": "mux1_4#0",
256           "pinName": "I1_2"
257         },
258         "name": "unnamedWire#11",
259         "path": [
260           {
261             "x": 5.0,
262             "y": 175.0
263           },
264           {
265             "x": 5.0,
266             "y": 135.0
267           }
268         ]
269       },
270       {
271         "pin1": {
272           "compName": "_submodelinterface",
273           "pinName": "D3"
274         },
275         "pin2": {
276           "compName": "mux1_4#0",
277           "pinName": "I1_3"
278         },
279         "name": "unnamedWire#12",
280         "path": [
281           {
282             "x": 10.0,
283             "y": 225.0
284           },
285           {
286             "x": 10.0,
287             "y": 145.0
288           }
289         ]
290       },
291       {
292         "pin1": {
293           "compName": "dff#0",
294           "pinName": "Q"
295         },
296         "pin2": {
297           "compName": "WireCrossPoint#3",
298           "pinName": ""
299         },
300         "name": "unnamedWire#13",
301         "path": []
302       },
303       {
304         "pin1": {
305           "compName": "WireCrossPoint#3",
306           "pinName": ""
307         },
308         "pin2": {
309           "compName": "_submodelinterface",
310           "pinName": "Q1"
311         },
312         "name": "unnamedWire#14",
313         "path": []
314       },
315       {
316         "pin1": {
317           "compName": "_submodelinterface",
318           "pinName": "Q2"
319         },
320         "pin2": {
321           "compName": "WireCrossPoint#4",
322           "pinName": ""
323         },
324         "name": "unnamedWire#15",
325         "path": []
326       },
327       {
328         "pin1": {
329           "compName": "WireCrossPoint#4",
330           "pinName": ""
331         },
332         "pin2": {
333           "compName": "dff#1",
334           "pinName": "Q"
335         },
336         "name": "unnamedWire#16",
337         "path": []
338       },
339       {
340         "pin1": {
341           "compName": "_submodelinterface",
342           "pinName": "D4"
343         },
344         "pin2": {
345           "compName": "mux1_4#0",
346           "pinName": "I1_4"
347         },
348         "name": "unnamedWire#17",
349         "path": [
350           {
351             "x": 15.0,
352             "y": 275.0
353           },
354           {
355             "x": 15.0,
356             "y": 155.0
357           }
358         ]
359       },
360       {
361         "pin1": {
362           "compName": "dff#2",
363           "pinName": "Q"
364         },
365         "pin2": {
366           "compName": "WireCrossPoint#5",
367           "pinName": ""
368         },
369         "name": "unnamedWire#18",
370         "path": []
371       },
372       {
373         "pin1": {
374           "compName": "WireCrossPoint#5",
375           "pinName": ""
376         },
377         "pin2": {
378           "compName": "_submodelinterface",
379           "pinName": "Q3"
380         },
381         "name": "unnamedWire#19",
382         "path": []
383       },
384       {
385         "pin1": {
386           "compName": "mux1_4#0",
387           "pinName": "Y2"
388         },
389         "pin2": {
390           "compName": "dff#1",
391           "pinName": "D"
392         },
393         "name": "unnamedWire#2",
394         "path": []
395       },
396       {
397         "pin1": {
398           "compName": "WireCrossPoint#6",
399           "pinName": ""
400         },
401         "pin2": {
402           "compName": "_submodelinterface",
403           "pinName": "Q4"
404         },
405         "name": "unnamedWire#20",
406         "path": []
407       },
408       {
409         "pin1": {
410           "compName": "WireCrossPoint#6",
411           "pinName": ""
412         },
413         "pin2": {
414           "compName": "dff#3",
415           "pinName": "Q"
416         },
417         "name": "unnamedWire#21",
418         "path": []
419       },
420       {
421         "pin1": {
422           "compName": "mux1_4#0",
423           "pinName": "Y3"
424         },
425         "pin2": {
426           "compName": "dff#2",
427           "pinName": "D"
428         },
429         "name": "unnamedWire#22",
430         "path": [
431           {
432             "x": 100.0,
433             "y": 95.0
434           },
435           {
436             "x": 100.0,
437             "y": 135.0
438           }
439         ]
440       },
441       {
442         "pin1": {
443           "compName": "mux1_4#0",
444           "pinName": "Y4"
445         },
446         "pin2": {
447           "compName": "dff#3",
448           "pinName": "D"
449         },
450         "name": "unnamedWire#23",
451         "path": [
452           {
453             "x": 95.0,
454             "y": 105.0
455           },
456           {
457             "x": 95.0,
458             "y": 185.0
459           }
460         ]
461       },
462       {
463         "pin1": {
464           "compName": "WireCrossPoint#3",
465           "pinName": ""
466         },
467         "pin2": {
468           "compName": "mux1_4#0",
469           "pinName": "I0_1"
470         },
471         "name": "unnamedWire#24",
472         "path": [
473           {
474             "x": 170.0,
475             "y": 195.0
476           },
477           {
478             "x": 50.0,
479             "y": 195.0
480           },
481           {
482             "x": 50.0,
483             "y": 85.0
484           }
485         ]
486       },
487       {
488         "pin1": {
489           "compName": "WireCrossPoint#4",
490           "pinName": ""
491         },
492         "pin2": {
493           "compName": "mux1_4#0",
494           "pinName": "I0_2"
495         },
496         "name": "unnamedWire#25",
497         "path": [
498           {
499             "x": 165.0,
500             "y": 200.0
501           },
502           {
503             "x": 45.0,
504             "y": 200.0
505           },
506           {
507             "x": 45.0,
508             "y": 95.0
509           }
510         ]
511       },
512       {
513         "pin1": {
514           "compName": "WireCrossPoint#5",
515           "pinName": ""
516         },
517         "pin2": {
518           "compName": "mux1_4#0",
519           "pinName": "I0_3"
520         },
521         "name": "unnamedWire#26",
522         "path": [
523           {
524             "x": 160.0,
525             "y": 205.0
526           },
527           {
528             "x": 40.0,
529             "y": 205.0
530           },
531           {
532             "x": 40.0,
533             "y": 105.0
534           }
535         ]
536       },
537       {
538         "pin1": {
539           "compName": "WireCrossPoint#6",
540           "pinName": ""
541         },
542         "pin2": {
543           "compName": "mux1_4#0",
544           "pinName": "I0_4"
545         },
546         "name": "unnamedWire#27",
547         "path": [
548           {
549             "x": 155.0,
550             "y": 210.0
551           },
552           {
553             "x": 35.0,
554             "y": 210.0
555           },
556           {
557             "x": 35.0,
558             "y": 115.0
559           }
560         ]
561       },
562       {
563         "pin1": {
564           "compName": "WireCrossPoint#0",
565           "pinName": ""
566         },
567         "pin2": {
568           "compName": "dff#0",
569           "pinName": "C"
570         },
571         "name": "unnamedWire#3",
572         "path": []
573       },
574       {
575         "pin1": {
576           "compName": "WireCrossPoint#0",
577           "pinName": ""
578         },
579         "pin2": {
580           "compName": "WireCrossPoint#1",
581           "pinName": ""
582         },
583         "name": "unnamedWire#4",
584         "path": []
585       },
586       {
587         "pin1": {
588           "compName": "WireCrossPoint#1",
589           "pinName": ""
590         },
591         "pin2": {
592           "compName": "dff#1",
593           "pinName": "C"
594         },
595         "name": "unnamedWire#5",
596         "path": []
597       },
598       {
599         "pin1": {
600           "compName": "WireCrossPoint#1",
601           "pinName": ""
602         },
603         "pin2": {
604           "compName": "WireCrossPoint#2",
605           "pinName": ""
606         },
607         "name": "unnamedWire#6",
608         "path": []
609       },
610       {
611         "pin1": {
612           "compName": "WireCrossPoint#2",
613           "pinName": ""
614         },
615         "pin2": {
616           "compName": "dff#2",
617           "pinName": "C"
618         },
619         "name": "unnamedWire#7",
620         "path": []
621       },
622       {
623         "pin1": {
624           "compName": "WireCrossPoint#2",
625           "pinName": ""
626         },
627         "pin2": {
628           "compName": "dff#3",
629           "pinName": "C"
630         },
631         "name": "unnamedWire#8",
632         "path": [
633           {
634             "x": 105.0,
635             "y": 175.0
636           }
637         ]
638       },
639       {
640         "pin1": {
641           "compName": "_submodelinterface",
642           "pinName": "WE"
643         },
644         "pin2": {
645           "compName": "mux1_4#0",
646           "pinName": "S0"
647         },
648         "name": "unnamedWire#9",
649         "path": []
650       }
651     ],
652     "version": "0.1.1"
653   },
654   "symbolRendererSnippetID": "simpleRectangularLike",
655   "symbolRendererParams": {
656     "centerText": "D flip flop\n4 bit",
657     "centerTextHeight": 5.0,
658     "horizontalComponentCenter": 17.5,
659     "pinLabelHeight": 3.5,
660     "pinLabelMargin": 0.5
661   },
662   "outlineRendererSnippetID": "default",
663   "highLevelStateHandlerSnippetID": "standard",
664   "highLevelStateHandlerParams": {
665     "subcomponentHighLevelStates": {},
666     "atomicHighLevelStates": {
667       "q": {
668         "id": "bitVectorSplitting",
669         "params": {
670           "vectorPartTargets": [
671             "q4",
672             "q3",
673             "q2",
674             "q1"
675           ],
676           "vectorPartLengthes": [
677             1,
678             1,
679             1,
680             1
681           ]
682         }
683       },
684       "q1": {
685         "id": "delegating",
686         "params": {
687           "delegateTarget": "dff#0",
688           "subStateID": "q"
689         }
690       },
691       "q2": {
692         "id": "delegating",
693         "params": {
694           "delegateTarget": "dff#1",
695           "subStateID": "q"
696         }
697       },
698       "q3": {
699         "id": "delegating",
700         "params": {
701           "delegateTarget": "dff#2",
702           "subStateID": "q"
703         }
704       },
705       "q4": {
706         "id": "delegating",
707         "params": {
708           "delegateTarget": "dff#3",
709           "subStateID": "q"
710         }
711       }
712     }
713   },
714   "version": "0.1.5"
715 }