Cleaned dlatch4
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / dlatch4.json
1 {
2   "width": 40.0,
3   "height": 40.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 35.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": 4,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 40.0,
26         "y": 15.0
27       },
28       "name": "Q",
29       "logicWidth": 4,
30       "usage": "OUTPUT"
31     }
32   ],
33   "innerScale": 0.4,
34   "submodel": {
35     "components": [
36       {
37         "id": "Splitter",
38         "name": "Splitter#0",
39         "pos": {
40           "x": 85.0,
41           "y": 22.5
42         },
43         "params": {
44           "logicWidth": 4,
45           "orientation": "LEFT"
46         }
47       },
48       {
49         "id": "Splitter",
50         "name": "Splitter#1",
51         "pos": {
52           "x": 5.0,
53           "y": 22.5
54         },
55         "params": {
56           "logicWidth": 4,
57           "orientation": "RIGHT"
58         }
59       },
60       {
61         "id": "WireCrossPoint",
62         "name": "WireCrossPoint#0",
63         "pos": {
64           "x": 29.0,
65           "y": 41.5
66         },
67         "params": 1
68       },
69       {
70         "id": "WireCrossPoint",
71         "name": "WireCrossPoint#1",
72         "pos": {
73           "x": 29.0,
74           "y": 66.5
75         },
76         "params": 1
77       },
78       {
79         "id": "WireCrossPoint",
80         "name": "WireCrossPoint#2",
81         "pos": {
82           "x": 29.0,
83           "y": 86.5
84         },
85         "params": 1
86       },
87       {
88         "id": "dlatch",
89         "name": "dlatch#0",
90         "pos": {
91           "x": 35.0,
92           "y": 2.5
93         }
94       },
95       {
96         "id": "dlatch",
97         "name": "dlatch#1",
98         "pos": {
99           "x": 35.0,
100           "y": 27.5
101         }
102       },
103       {
104         "id": "dlatch",
105         "name": "dlatch#2",
106         "pos": {
107           "x": 35.0,
108           "y": 52.5
109         }
110       },
111       {
112         "id": "dlatch",
113         "name": "dlatch#3",
114         "pos": {
115           "x": 35.0,
116           "y": 77.5
117         }
118       }
119     ],
120     "wires": [
121       {
122         "pin1": {
123           "compName": "_submodelinterface",
124           "pinName": "C"
125         },
126         "pin2": {
127           "compName": "WireCrossPoint#2",
128           "pinName": ""
129         },
130         "name": "unnamedWire#0",
131         "path": []
132       },
133       {
134         "pin1": {
135           "compName": "WireCrossPoint#2",
136           "pinName": ""
137         },
138         "pin2": {
139           "compName": "dlatch#3",
140           "pinName": "E"
141         },
142         "name": "unnamedWire#1",
143         "path": [
144           {
145             "x": 30.0,
146             "y": 92.5
147           }
148         ]
149       },
150       {
151         "pin1": {
152           "compName": "WireCrossPoint#2",
153           "pinName": ""
154         },
155         "pin2": {
156           "compName": "WireCrossPoint#1",
157           "pinName": ""
158         },
159         "name": "unnamedWire#2",
160         "path": []
161       },
162       {
163         "pin1": {
164           "compName": "WireCrossPoint#1",
165           "pinName": ""
166         },
167         "pin2": {
168           "compName": "dlatch#2",
169           "pinName": "E"
170         },
171         "name": "unnamedWire#3",
172         "path": []
173       },
174       {
175         "pin1": {
176           "compName": "WireCrossPoint#1",
177           "pinName": ""
178         },
179         "pin2": {
180           "compName": "WireCrossPoint#0",
181           "pinName": ""
182         },
183         "name": "unnamedWire#4",
184         "path": []
185       },
186       {
187         "pin1": {
188           "compName": "WireCrossPoint#0",
189           "pinName": ""
190         },
191         "pin2": {
192           "compName": "dlatch#1",
193           "pinName": "E"
194         },
195         "name": "unnamedWire#5",
196         "path": []
197       },
198       {
199         "pin1": {
200           "compName": "WireCrossPoint#0",
201           "pinName": ""
202         },
203         "pin2": {
204           "compName": "dlatch#0",
205           "pinName": "E"
206         },
207         "name": "unnamedWire#6",
208         "path": [
209           {
210             "x": 30.0,
211             "y": 17.5
212           }
213         ]
214       },
215       {
216         "pin1": {
217           "compName": "Splitter#1",
218           "pinName": "O3"
219         },
220         "pin2": {
221           "compName": "dlatch#0",
222           "pinName": "D"
223         },
224         "name": "unnamedWire#7",
225         "path": [
226           {
227             "x": 20.0,
228             "y": 22.5
229           },
230           {
231             "x": 20.0,
232             "y": 7.5
233           }
234         ]
235       },
236       {
237         "pin1": {
238           "compName": "dlatch#1",
239           "pinName": "D"
240         },
241         "pin2": {
242           "compName": "Splitter#1",
243           "pinName": "O2"
244         },
245         "name": "unnamedWire#8",
246         "path": []
247       },
248       {
249         "pin1": {
250           "compName": "Splitter#1",
251           "pinName": "O1"
252         },
253         "pin2": {
254           "compName": "dlatch#2",
255           "pinName": "D"
256         },
257         "name": "unnamedWire#9",
258         "path": [
259           {
260             "x": 25.0,
261             "y": 42.5
262           },
263           {
264             "x": 25.0,
265             "y": 57.5
266           }
267         ]
268       },
269       {
270         "pin1": {
271           "compName": "dlatch#3",
272           "pinName": "D"
273         },
274         "pin2": {
275           "compName": "Splitter#1",
276           "pinName": "O0"
277         },
278         "name": "unnamedWire#10",
279         "path": [
280           {
281             "x": 20.0,
282             "y": 82.5
283           },
284           {
285             "x": 20.0,
286             "y": 52.5
287           }
288         ]
289       },
290       {
291         "pin1": {
292           "compName": "dlatch#0",
293           "pinName": "Q"
294         },
295         "pin2": {
296           "compName": "Splitter#0",
297           "pinName": "O3"
298         },
299         "name": "unnamedWire#11",
300         "path": [
301           {
302             "x": 80.0,
303             "y": 7.5
304           },
305           {
306             "x": 80.0,
307             "y": 22.5
308           }
309         ]
310       },
311       {
312         "pin1": {
313           "compName": "dlatch#1",
314           "pinName": "Q"
315         },
316         "pin2": {
317           "compName": "Splitter#0",
318           "pinName": "O2"
319         },
320         "name": "unnamedWire#12",
321         "path": []
322       },
323       {
324         "pin1": {
325           "compName": "Splitter#0",
326           "pinName": "O1"
327         },
328         "pin2": {
329           "compName": "dlatch#2",
330           "pinName": "Q"
331         },
332         "name": "unnamedWire#13",
333         "path": [
334           {
335             "x": 75.0,
336             "y": 42.5
337           },
338           {
339             "x": 75.0,
340             "y": 57.5
341           }
342         ]
343       },
344       {
345         "pin1": {
346           "compName": "dlatch#3",
347           "pinName": "Q"
348         },
349         "pin2": {
350           "compName": "Splitter#0",
351           "pinName": "O0"
352         },
353         "name": "unnamedWire#14",
354         "path": [
355           {
356             "x": 80.0,
357             "y": 82.5
358           },
359           {
360             "x": 80.0,
361             "y": 52.5
362           }
363         ]
364       },
365       {
366         "pin1": {
367           "compName": "_submodelinterface",
368           "pinName": "D"
369         },
370         "pin2": {
371           "compName": "Splitter#1",
372           "pinName": "I"
373         },
374         "name": "unnamedWire#15",
375         "path": []
376       },
377       {
378         "pin1": {
379           "compName": "Splitter#0",
380           "pinName": "I"
381         },
382         "pin2": {
383           "compName": "_submodelinterface",
384           "pinName": "Q"
385         },
386         "name": "unnamedWire#16",
387         "path": []
388       }
389     ],
390     "version": "0.1.1"
391   },
392   "symbolRendererSnippetID": "simpleRectangularLike",
393   "symbolRendererParams": {
394     "centerText": "dlatch4",
395     "centerTextHeight": 5.0,
396     "horizontalComponentCenter": 17.5,
397     "pinLabelHeight": 3.5,
398     "pinLabelMargin": 0.5
399   },
400   "outlineRendererSnippetID": "default",
401   "highLevelStateHandlerSnippetID": "standard",
402   "highLevelStateHandlerParams": {
403     "subcomponentHighLevelStates": {},
404     "atomicHighLevelStates": {
405       "q": {
406         "id": "bitVectorSplitting",
407         "params": {
408           "vectorPartTargets": [
409             "q4",
410             "q3",
411             "q2",
412             "q1"
413           ],
414           "vectorPartLengthes": [
415             1,
416             1,
417             1,
418             1
419           ]
420         }
421       },
422       "q1": {
423         "id": "delegating",
424         "params": {
425           "delegateTarget": "dlatch#3",
426           "subStateID": "q"
427         }
428       },
429       "q2": {
430         "id": "delegating",
431         "params": {
432           "delegateTarget": "dlatch#2",
433           "subStateID": "q"
434         }
435       },
436       "q3": {
437         "id": "delegating",
438         "params": {
439           "delegateTarget": "dlatch#1",
440           "subStateID": "q"
441         }
442       },
443       "q4": {
444         "id": "delegating",
445         "params": {
446           "delegateTarget": "dlatch#0",
447           "subStateID": "q"
448         }
449       }
450     }
451   },
452   "version": "0.1.5"
453 }