005cabe4159a67c045579b493ff331a0eab7f038
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / dff4_invwe.json
1 {
2   "width": 35.0,
3   "height": 60.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 45.0
9       },
10       "name": "C",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 5.0
18       },
19       "name": "D1",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 0.0,
26         "y": 15.0
27       },
28       "name": "D2",
29       "logicWidth": 1,
30       "usage": "INPUT"
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 25.0
36       },
37       "name": "D3",
38       "logicWidth": 1,
39       "usage": "INPUT"
40     },
41     {
42       "location": {
43         "x": 0.0,
44         "y": 35.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": 55.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": 184.0
105         },
106         "params": 1
107       },
108       {
109         "id": "WireCrossPoint",
110         "name": "WireCrossPoint#1",
111         "pos": {
112           "x": 104.0,
113           "y": 84.0
114         },
115         "params": 1
116       },
117       {
118         "id": "WireCrossPoint",
119         "name": "WireCrossPoint#2",
120         "pos": {
121           "x": 104.0,
122           "y": 134.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": 60.0
200         }
201       }
202     ],
203     "wires": [
204       {
205         "pin1": {
206           "compName": "WireCrossPoint#1",
207           "pinName": ""
208         },
209         "pin2": {
210           "compName": "dff#0",
211           "pinName": "C"
212         },
213         "name": "unnamedWire#0",
214         "path": [
215           {
216             "x": 105.0,
217             "y": 35.0
218           }
219         ]
220       },
221       {
222         "pin1": {
223           "compName": "mux1_4#0",
224           "pinName": "Y1"
225         },
226         "pin2": {
227           "compName": "dff#0",
228           "pinName": "D"
229         },
230         "name": "unnamedWire#1",
231         "path": [
232           {
233             "x": 100.0,
234             "y": 65.0
235           },
236           {
237             "x": 100.0,
238             "y": 25.0
239           }
240         ]
241       },
242       {
243         "pin1": {
244           "compName": "_submodelinterface",
245           "pinName": "D1"
246         },
247         "pin2": {
248           "compName": "mux1_4#0",
249           "pinName": "I0_1"
250         },
251         "name": "unnamedWire#10",
252         "path": [
253           {
254             "x": 25.0,
255             "y": 25.0
256           },
257           {
258             "x": 25.0,
259             "y": 75.0
260           }
261         ]
262       },
263       {
264         "pin1": {
265           "compName": "_submodelinterface",
266           "pinName": "D2"
267         },
268         "pin2": {
269           "compName": "mux1_4#0",
270           "pinName": "I0_2"
271         },
272         "name": "unnamedWire#11",
273         "path": [
274           {
275             "x": 20.0,
276             "y": 75.0
277           },
278           {
279             "x": 20.0,
280             "y": 85.0
281           }
282         ]
283       },
284       {
285         "pin1": {
286           "compName": "_submodelinterface",
287           "pinName": "D3"
288         },
289         "pin2": {
290           "compName": "mux1_4#0",
291           "pinName": "I0_3"
292         },
293         "name": "unnamedWire#12",
294         "path": [
295           {
296             "x": 20.0,
297             "y": 125.0
298           },
299           {
300             "x": 20.0,
301             "y": 95.0
302           }
303         ]
304       },
305       {
306         "pin1": {
307           "compName": "dff#0",
308           "pinName": "Q"
309         },
310         "pin2": {
311           "compName": "WireCrossPoint#3",
312           "pinName": ""
313         },
314         "name": "unnamedWire#13",
315         "path": []
316       },
317       {
318         "pin1": {
319           "compName": "WireCrossPoint#3",
320           "pinName": ""
321         },
322         "pin2": {
323           "compName": "_submodelinterface",
324           "pinName": "Q1"
325         },
326         "name": "unnamedWire#14",
327         "path": []
328       },
329       {
330         "pin1": {
331           "compName": "_submodelinterface",
332           "pinName": "Q2"
333         },
334         "pin2": {
335           "compName": "WireCrossPoint#4",
336           "pinName": ""
337         },
338         "name": "unnamedWire#15",
339         "path": []
340       },
341       {
342         "pin1": {
343           "compName": "WireCrossPoint#4",
344           "pinName": ""
345         },
346         "pin2": {
347           "compName": "dff#1",
348           "pinName": "Q"
349         },
350         "name": "unnamedWire#16",
351         "path": []
352       },
353       {
354         "pin1": {
355           "compName": "_submodelinterface",
356           "pinName": "D4"
357         },
358         "pin2": {
359           "compName": "mux1_4#0",
360           "pinName": "I0_4"
361         },
362         "name": "unnamedWire#17",
363         "path": [
364           {
365             "x": 25.0,
366             "y": 175.0
367           },
368           {
369             "x": 25.0,
370             "y": 105.0
371           }
372         ]
373       },
374       {
375         "pin1": {
376           "compName": "dff#2",
377           "pinName": "Q"
378         },
379         "pin2": {
380           "compName": "WireCrossPoint#5",
381           "pinName": ""
382         },
383         "name": "unnamedWire#18",
384         "path": []
385       },
386       {
387         "pin1": {
388           "compName": "WireCrossPoint#5",
389           "pinName": ""
390         },
391         "pin2": {
392           "compName": "_submodelinterface",
393           "pinName": "Q3"
394         },
395         "name": "unnamedWire#19",
396         "path": []
397       },
398       {
399         "pin1": {
400           "compName": "mux1_4#0",
401           "pinName": "Y2"
402         },
403         "pin2": {
404           "compName": "dff#1",
405           "pinName": "D"
406         },
407         "name": "unnamedWire#2",
408         "path": []
409       },
410       {
411         "pin1": {
412           "compName": "WireCrossPoint#6",
413           "pinName": ""
414         },
415         "pin2": {
416           "compName": "_submodelinterface",
417           "pinName": "Q4"
418         },
419         "name": "unnamedWire#20",
420         "path": []
421       },
422       {
423         "pin1": {
424           "compName": "WireCrossPoint#6",
425           "pinName": ""
426         },
427         "pin2": {
428           "compName": "dff#3",
429           "pinName": "Q"
430         },
431         "name": "unnamedWire#21",
432         "path": []
433       },
434       {
435         "pin1": {
436           "compName": "mux1_4#0",
437           "pinName": "Y3"
438         },
439         "pin2": {
440           "compName": "dff#2",
441           "pinName": "D"
442         },
443         "name": "unnamedWire#22",
444         "path": [
445           {
446             "x": 100.0,
447             "y": 85.0
448           },
449           {
450             "x": 100.0,
451             "y": 125.0
452           }
453         ]
454       },
455       {
456         "pin1": {
457           "compName": "mux1_4#0",
458           "pinName": "Y4"
459         },
460         "pin2": {
461           "compName": "dff#3",
462           "pinName": "D"
463         },
464         "name": "unnamedWire#23",
465         "path": [
466           {
467             "x": 95.0,
468             "y": 95.0
469           },
470           {
471             "x": 95.0,
472             "y": 175.0
473           }
474         ]
475       },
476       {
477         "pin1": {
478           "compName": "WireCrossPoint#3",
479           "pinName": ""
480         },
481         "pin2": {
482           "compName": "mux1_4#0",
483           "pinName": "I1_1"
484         },
485         "name": "unnamedWire#24",
486         "path": [
487           {
488             "x": 170.0,
489             "y": 205.0
490           },
491           {
492             "x": 50.0,
493             "y": 205.0
494           },
495           {
496             "x": 50.0,
497             "y": 115.0
498           }
499         ]
500       },
501       {
502         "pin1": {
503           "compName": "WireCrossPoint#4",
504           "pinName": ""
505         },
506         "pin2": {
507           "compName": "mux1_4#0",
508           "pinName": "I1_2"
509         },
510         "name": "unnamedWire#25",
511         "path": [
512           {
513             "x": 165.0,
514             "y": 210.0
515           },
516           {
517             "x": 45.0,
518             "y": 210.0
519           },
520           {
521             "x": 45.0,
522             "y": 125.0
523           }
524         ]
525       },
526       {
527         "pin1": {
528           "compName": "WireCrossPoint#5",
529           "pinName": ""
530         },
531         "pin2": {
532           "compName": "mux1_4#0",
533           "pinName": "I1_3"
534         },
535         "name": "unnamedWire#26",
536         "path": [
537           {
538             "x": 160.0,
539             "y": 215.0
540           },
541           {
542             "x": 40.0,
543             "y": 215.0
544           },
545           {
546             "x": 40.0,
547             "y": 135.0
548           }
549         ]
550       },
551       {
552         "pin1": {
553           "compName": "WireCrossPoint#6",
554           "pinName": ""
555         },
556         "pin2": {
557           "compName": "mux1_4#0",
558           "pinName": "I1_4"
559         },
560         "name": "unnamedWire#27",
561         "path": [
562           {
563             "x": 155.0,
564             "y": 220.0
565           },
566           {
567             "x": 35.0,
568             "y": 220.0
569           },
570           {
571             "x": 35.0,
572             "y": 145.0
573           }
574         ]
575       },
576       {
577         "pin1": {
578           "compName": "WireCrossPoint#0",
579           "pinName": ""
580         },
581         "pin2": {
582           "compName": "dff#3",
583           "pinName": "C"
584         },
585         "name": "unnamedWire#3",
586         "path": []
587       },
588       {
589         "pin1": {
590           "compName": "WireCrossPoint#0",
591           "pinName": ""
592         },
593         "pin2": {
594           "compName": "WireCrossPoint#2",
595           "pinName": ""
596         },
597         "name": "unnamedWire#4",
598         "path": []
599       },
600       {
601         "pin1": {
602           "compName": "WireCrossPoint#1",
603           "pinName": ""
604         },
605         "pin2": {
606           "compName": "dff#1",
607           "pinName": "C"
608         },
609         "name": "unnamedWire#5",
610         "path": []
611       },
612       {
613         "pin1": {
614           "compName": "WireCrossPoint#1",
615           "pinName": ""
616         },
617         "pin2": {
618           "compName": "WireCrossPoint#2",
619           "pinName": ""
620         },
621         "name": "unnamedWire#6",
622         "path": []
623       },
624       {
625         "pin1": {
626           "compName": "WireCrossPoint#2",
627           "pinName": ""
628         },
629         "pin2": {
630           "compName": "dff#2",
631           "pinName": "C"
632         },
633         "name": "unnamedWire#7",
634         "path": []
635       },
636       {
637         "pin1": {
638           "compName": "_submodelinterface",
639           "pinName": "C"
640         },
641         "pin2": {
642           "compName": "WireCrossPoint#0",
643           "pinName": ""
644         },
645         "name": "unnamedWire#8",
646         "path": [
647           {
648             "x": 20.0,
649             "y": 225.0
650           },
651           {
652             "x": 20.0,
653             "y": 185.0
654           }
655         ]
656       },
657       {
658         "pin1": {
659           "compName": "_submodelinterface",
660           "pinName": "_WE"
661         },
662         "pin2": {
663           "compName": "mux1_4#0",
664           "pinName": "S0"
665         },
666         "name": "unnamedWire#9",
667         "path": [
668           {
669             "x": 10.0,
670             "y": 275.0
671           },
672           {
673             "x": 10.0,
674             "y": 65.0
675           }
676         ]
677       }
678     ],
679     "version": "0.1.1"
680   },
681   "symbolRendererSnippetID": "simpleRectangularLike",
682   "symbolRendererParams": {
683     "centerText": "D flip flop\n4 bit",
684     "centerTextHeight": 5.0,
685     "horizontalComponentCenter": 17.5,
686     "pinLabelHeight": 3.5,
687     "pinLabelMargin": 0.5
688   },
689   "outlineRendererSnippetID": "default",
690   "highLevelStateHandlerSnippetID": "standard",
691   "highLevelStateHandlerParams": {
692     "subcomponentHighLevelStates": {},
693     "atomicHighLevelStates": {
694       "q": {
695         "id": "bitVectorSplitting",
696         "params": {
697           "vectorPartTargets": [
698             "q4",
699             "q3",
700             "q2",
701             "q1"
702           ],
703           "vectorPartLengthes": [
704             1,
705             1,
706             1,
707             1
708           ]
709         }
710       },
711       "q1": {
712         "id": "delegating",
713         "params": {
714           "delegateTarget": "dff#0",
715           "subStateID": "q"
716         }
717       },
718       "q2": {
719         "id": "delegating",
720         "params": {
721           "delegateTarget": "dff#1",
722           "subStateID": "q"
723         }
724       },
725       "q3": {
726         "id": "delegating",
727         "params": {
728           "delegateTarget": "dff#2",
729           "subStateID": "q"
730         }
731       },
732       "q4": {
733         "id": "delegating",
734         "params": {
735           "delegateTarget": "dff#3",
736           "subStateID": "q"
737         }
738       }
739     }
740   },
741   "version": "0.1.5"
742 }