Pins of demux2 are now ordered MSB on top; improved ram5_12 a bit
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / demux2.json
1 {
2   "width": 35.0,
3   "height": 40.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 15.0
9       },
10       "name": "S0",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 5.0
18       },
19       "name": "S1",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 35.0,
26         "y": 35.0
27       },
28       "name": "Y00",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 35.0,
35         "y": 25.0
36       },
37       "name": "Y01",
38       "logicWidth": 1,
39       "usage": "OUTPUT"
40     },
41     {
42       "location": {
43         "x": 35.0,
44         "y": 15.0
45       },
46       "name": "Y10",
47       "logicWidth": 1,
48       "usage": "OUTPUT"
49     },
50     {
51       "location": {
52         "x": 35.0,
53         "y": 5.0
54       },
55       "name": "Y11",
56       "logicWidth": 1,
57       "usage": "OUTPUT"
58     }
59   ],
60   "innerScale": 0.4,
61   "submodel": {
62     "components": [
63       {
64         "id": "NandGate",
65         "name": "NandGate#0",
66         "pos": {
67           "x": 15.0,
68           "y": 32.5
69         },
70         "params": 1
71       },
72       {
73         "id": "NandGate",
74         "name": "NandGate#1",
75         "pos": {
76           "x": 15.0,
77           "y": 57.5
78         },
79         "params": 1
80       },
81       {
82         "id": "WireCrossPoint",
83         "name": "WireCrossPoint#0",
84         "pos": {
85           "x": 9.0,
86           "y": 36.5
87         },
88         "params": 1
89       },
90       {
91         "id": "WireCrossPoint",
92         "name": "WireCrossPoint#1",
93         "pos": {
94           "x": 39.0,
95           "y": 26.5
96         },
97         "params": 1
98       },
99       {
100         "id": "WireCrossPoint",
101         "name": "WireCrossPoint#2",
102         "pos": {
103           "x": 4.0,
104           "y": 11.5
105         },
106         "params": 1
107       },
108       {
109         "id": "WireCrossPoint",
110         "name": "WireCrossPoint#3",
111         "pos": {
112           "x": 4.0,
113           "y": 61.5
114         },
115         "params": 1
116       },
117       {
118         "id": "WireCrossPoint",
119         "name": "WireCrossPoint#4",
120         "pos": {
121           "x": 44.0,
122           "y": 11.5
123         },
124         "params": 1
125       },
126       {
127         "id": "WireCrossPoint",
128         "name": "WireCrossPoint#5",
129         "pos": {
130           "x": 44.0,
131           "y": 41.5
132         },
133         "params": 1
134       },
135       {
136         "id": "WireCrossPoint",
137         "name": "WireCrossPoint#6",
138         "pos": {
139           "x": 39.0,
140           "y": 66.5
141         },
142         "params": 1
143       },
144       {
145         "id": "and",
146         "name": "and#0",
147         "pos": {
148           "x": 50.0,
149           "y": 77.5
150         }
151       },
152       {
153         "id": "and",
154         "name": "and#1",
155         "pos": {
156           "x": 50.0,
157           "y": 52.5
158         }
159       },
160       {
161         "id": "and",
162         "name": "and#2",
163         "pos": {
164           "x": 50.0,
165           "y": 27.5
166         }
167       },
168       {
169         "id": "and",
170         "name": "and#3",
171         "pos": {
172           "x": 50.0,
173           "y": 2.5
174         }
175       }
176     ],
177     "wires": [
178       {
179         "pin1": {
180           "compName": "WireCrossPoint#0",
181           "pinName": ""
182         },
183         "pin2": {
184           "compName": "WireCrossPoint#1",
185           "pinName": ""
186         },
187         "name": "unnamedWire#0",
188         "path": [
189           {
190             "x": 10.0,
191             "y": 27.5
192           }
193         ]
194       },
195       {
196         "pin1": {
197           "compName": "_submodelinterface",
198           "pinName": "S1"
199         },
200         "pin2": {
201           "compName": "WireCrossPoint#2",
202           "pinName": ""
203         },
204         "name": "unnamedWire#1",
205         "path": []
206       },
207       {
208         "pin1": {
209           "compName": "_submodelinterface",
210           "pinName": "S0"
211         },
212         "pin2": {
213           "compName": "WireCrossPoint#0",
214           "pinName": ""
215         },
216         "name": "unnamedWire#2",
217         "path": []
218       },
219       {
220         "pin1": {
221           "compName": "NandGate#1",
222           "pinName": "A"
223         },
224         "pin2": {
225           "compName": "WireCrossPoint#3",
226           "pinName": ""
227         },
228         "name": "unnamedWire#3",
229         "path": []
230       },
231       {
232         "pin1": {
233           "compName": "WireCrossPoint#2",
234           "pinName": ""
235         },
236         "pin2": {
237           "compName": "WireCrossPoint#3",
238           "pinName": ""
239         },
240         "name": "unnamedWire#4",
241         "path": []
242       },
243       {
244         "pin1": {
245           "compName": "WireCrossPoint#0",
246           "pinName": ""
247         },
248         "pin2": {
249           "compName": "NandGate#0",
250           "pinName": "B"
251         },
252         "name": "unnamedWire#5",
253         "path": [
254           {
255             "x": 10.0,
256             "y": 47.5
257           }
258         ]
259       },
260       {
261         "pin1": {
262           "compName": "WireCrossPoint#3",
263           "pinName": ""
264         },
265         "pin2": {
266           "compName": "NandGate#1",
267           "pinName": "B"
268         },
269         "name": "unnamedWire#6",
270         "path": [
271           {
272             "x": 5.0,
273             "y": 72.5
274           }
275         ]
276       },
277       {
278         "pin1": {
279           "compName": "WireCrossPoint#2",
280           "pinName": ""
281         },
282         "pin2": {
283           "compName": "WireCrossPoint#4",
284           "pinName": ""
285         },
286         "name": "unnamedWire#7",
287         "path": []
288       },
289       {
290         "pin1": {
291           "compName": "NandGate#0",
292           "pinName": "Y"
293         },
294         "pin2": {
295           "compName": "WireCrossPoint#5",
296           "pinName": ""
297         },
298         "name": "unnamedWire#8",
299         "path": []
300       },
301       {
302         "pin1": {
303           "compName": "NandGate#1",
304           "pinName": "Y"
305         },
306         "pin2": {
307           "compName": "WireCrossPoint#6",
308           "pinName": ""
309         },
310         "name": "unnamedWire#9",
311         "path": []
312       },
313       {
314         "pin1": {
315           "compName": "WireCrossPoint#5",
316           "pinName": ""
317         },
318         "pin2": {
319           "compName": "and#0",
320           "pinName": "A"
321         },
322         "name": "unnamedWire#10",
323         "path": [
324           {
325             "x": 45.0,
326             "y": 82.5
327           }
328         ]
329       },
330       {
331         "pin1": {
332           "compName": "WireCrossPoint#6",
333           "pinName": ""
334         },
335         "pin2": {
336           "compName": "and#0",
337           "pinName": "B"
338         },
339         "name": "unnamedWire#11",
340         "path": [
341           {
342             "x": 40.0,
343             "y": 92.5
344           }
345         ]
346       },
347       {
348         "pin1": {
349           "compName": "WireCrossPoint#1",
350           "pinName": ""
351         },
352         "pin2": {
353           "compName": "and#1",
354           "pinName": "A"
355         },
356         "name": "unnamedWire#12",
357         "path": [
358           {
359             "x": 40.0,
360             "y": 57.5
361           }
362         ]
363       },
364       {
365         "pin1": {
366           "compName": "WireCrossPoint#6",
367           "pinName": ""
368         },
369         "pin2": {
370           "compName": "and#1",
371           "pinName": "B"
372         },
373         "name": "unnamedWire#13",
374         "path": []
375       },
376       {
377         "pin1": {
378           "compName": "WireCrossPoint#5",
379           "pinName": ""
380         },
381         "pin2": {
382           "compName": "and#2",
383           "pinName": "B"
384         },
385         "name": "unnamedWire#14",
386         "path": []
387       },
388       {
389         "pin1": {
390           "compName": "WireCrossPoint#4",
391           "pinName": ""
392         },
393         "pin2": {
394           "compName": "and#2",
395           "pinName": "A"
396         },
397         "name": "unnamedWire#15",
398         "path": [
399           {
400             "x": 45.0,
401             "y": 32.5
402           }
403         ]
404       },
405       {
406         "pin1": {
407           "compName": "WireCrossPoint#1",
408           "pinName": ""
409         },
410         "pin2": {
411           "compName": "and#3",
412           "pinName": "B"
413         },
414         "name": "unnamedWire#16",
415         "path": [
416           {
417             "x": 40.0,
418             "y": 17.5
419           }
420         ]
421       },
422       {
423         "pin1": {
424           "compName": "WireCrossPoint#4",
425           "pinName": ""
426         },
427         "pin2": {
428           "compName": "and#3",
429           "pinName": "A"
430         },
431         "name": "unnamedWire#17",
432         "path": [
433           {
434             "x": 45.0,
435             "y": 7.5
436           }
437         ]
438       },
439       {
440         "pin1": {
441           "compName": "and#0",
442           "pinName": "Y"
443         },
444         "pin2": {
445           "compName": "_submodelinterface",
446           "pinName": "Y00"
447         },
448         "name": "unnamedWire#18",
449         "path": [
450           {
451             "x": 80.0,
452             "y": 82.5
453           },
454           {
455             "x": 80.0,
456             "y": 87.5
457           }
458         ]
459       },
460       {
461         "pin1": {
462           "compName": "and#1",
463           "pinName": "Y"
464         },
465         "pin2": {
466           "compName": "_submodelinterface",
467           "pinName": "Y01"
468         },
469         "name": "unnamedWire#19",
470         "path": [
471           {
472             "x": 80.0,
473             "y": 57.5
474           },
475           {
476             "x": 80.0,
477             "y": 62.5
478           }
479         ]
480       },
481       {
482         "pin1": {
483           "compName": "and#2",
484           "pinName": "Y"
485         },
486         "pin2": {
487           "compName": "_submodelinterface",
488           "pinName": "Y10"
489         },
490         "name": "unnamedWire#20",
491         "path": [
492           {
493             "x": 80.0,
494             "y": 32.5
495           },
496           {
497             "x": 80.0,
498             "y": 37.5
499           }
500         ]
501       },
502       {
503         "pin1": {
504           "compName": "and#3",
505           "pinName": "Y"
506         },
507         "pin2": {
508           "compName": "_submodelinterface",
509           "pinName": "Y11"
510         },
511         "name": "unnamedWire#21",
512         "path": [
513           {
514             "x": 80.0,
515             "y": 7.5
516           },
517           {
518             "x": 80.0,
519             "y": 12.5
520           }
521         ]
522       },
523       {
524         "pin1": {
525           "compName": "WireCrossPoint#0",
526           "pinName": ""
527         },
528         "pin2": {
529           "compName": "NandGate#0",
530           "pinName": "A"
531         },
532         "name": "unnamedWire#22",
533         "path": []
534       }
535     ],
536     "version": "0.1.1"
537   },
538   "symbolRendererSnippetID": "simpleRectangularLike",
539   "symbolRendererParams": {
540     "centerText": "demux2",
541     "centerTextHeight": 5.0,
542     "horizontalComponentCenter": 17.5,
543     "pinLabelHeight": 3.5,
544     "pinLabelMargin": 0.5
545   },
546   "outlineRendererSnippetID": "default",
547   "highLevelStateHandlerSnippetID": "default",
548   "version": "0.1.5"
549 }