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