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