e9b9f7449299c12e99274907d0faa6587073fd75
[Mograsim.git] / net.mograsim.logic.ui / HalfAdder.json
1 mograsim version: 0.1.0
2 {
3   "type": "SimpleRectangularSubmodelComponent",
4   "width": 35.0,
5   "height": 20.0,
6   "interfacePins": [
7     {
8       "location": {
9         "x": 0.0,
10         "y": 5.0
11       },
12       "name": "A",
13       "logicWidth": 1
14     },
15     {
16       "location": {
17         "x": 0.0,
18         "y": 15.0
19       },
20       "name": "B",
21       "logicWidth": 1
22     },
23     {
24       "location": {
25         "x": 35.0,
26         "y": 5.0
27       },
28       "name": "Y",
29       "logicWidth": 1
30     },
31     {
32       "location": {
33         "x": 35.0,
34         "y": 15.0
35       },
36       "name": "_Z",
37       "logicWidth": 1
38     }
39   ],
40   "composition": {
41     "innerScale": 0.4,
42     "subComps": [
43       {
44         "pos": {
45           "x": 10.0,
46           "y": 15.0
47         },
48         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
49         "logicWidth": 1
50       },
51       {
52         "pos": {
53           "x": 40.0,
54           "y": 2.5
55         },
56         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
57         "logicWidth": 1
58       },
59       {
60         "pos": {
61           "x": 40.0,
62           "y": 27.5
63         },
64         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
65         "logicWidth": 1
66       },
67       {
68         "pos": {
69           "x": 65.0,
70           "y": 2.5
71         },
72         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
73         "logicWidth": 1
74       },
75       {
76         "pos": {
77           "x": 4.0,
78           "y": 11.5
79         },
80         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
81         "logicWidth": 1
82       },
83       {
84         "pos": {
85           "x": 4.0,
86           "y": 36.5
87         },
88         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
89         "logicWidth": 1
90       },
91       {
92         "pos": {
93           "x": 34.0,
94           "y": 24.0
95         },
96         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
97         "logicWidth": 1
98       }
99     ],
100     "innerWires": [
101       {
102         "pin1": {
103           "compId": 0,
104           "pinName": "A"
105         },
106         "pin2": {
107           "compId": 5,
108           "pinName": ""
109         },
110         "path": []
111       },
112       {
113         "pin1": {
114           "compId": 5,
115           "pinName": ""
116         },
117         "pin2": {
118           "compId": 2,
119           "pinName": "A"
120         },
121         "path": [
122           {
123             "x": 5.0,
124             "y": 7.5
125           }
126         ]
127       },
128       {
129         "pin1": {
130           "compId": 5,
131           "pinName": ""
132         },
133         "pin2": {
134           "compId": 1,
135           "pinName": "A"
136         },
137         "path": [
138           {
139             "x": 5.0,
140             "y": 20.0
141           }
142         ]
143       },
144       {
145         "pin1": {
146           "compId": 0,
147           "pinName": "B"
148         },
149         "pin2": {
150           "compId": 6,
151           "pinName": ""
152         },
153         "path": []
154       },
155       {
156         "pin1": {
157           "compId": 6,
158           "pinName": ""
159         },
160         "pin2": {
161           "compId": 3,
162           "pinName": "B"
163         },
164         "path": [
165           {
166             "x": 5.0,
167             "y": 42.5
168           }
169         ]
170       },
171       {
172         "pin1": {
173           "compId": 6,
174           "pinName": ""
175         },
176         "pin2": {
177           "compId": 1,
178           "pinName": "B"
179         },
180         "path": [
181           {
182             "x": 5.0,
183             "y": 30.0
184           }
185         ]
186       },
187       {
188         "pin1": {
189           "compId": 1,
190           "pinName": "Y"
191         },
192         "pin2": {
193           "compId": 7,
194           "pinName": ""
195         },
196         "path": []
197       },
198       {
199         "pin1": {
200           "compId": 7,
201           "pinName": ""
202         },
203         "pin2": {
204           "compId": 0,
205           "pinName": "_Z"
206         },
207         "path": [
208           {
209             "x": 80.0,
210             "y": 25.0
211           },
212           {
213             "x": 80.0,
214             "y": 37.5
215           }
216         ]
217       },
218       {
219         "pin1": {
220           "compId": 7,
221           "pinName": ""
222         },
223         "pin2": {
224           "compId": 2,
225           "pinName": "B"
226         },
227         "path": [
228           {
229             "x": 35.0,
230             "y": 17.5
231           }
232         ]
233       },
234       {
235         "pin1": {
236           "compId": 7,
237           "pinName": ""
238         },
239         "pin2": {
240           "compId": 3,
241           "pinName": "A"
242         },
243         "path": [
244           {
245             "x": 35.0,
246             "y": 32.5
247           }
248         ]
249       },
250       {
251         "pin1": {
252           "compId": 2,
253           "pinName": "Y"
254         },
255         "pin2": {
256           "compId": 4,
257           "pinName": "A"
258         },
259         "path": [
260           {
261             "x": 62.5,
262             "y": 12.5
263           },
264           {
265             "x": 62.5,
266             "y": 7.5
267           }
268         ]
269       },
270       {
271         "pin1": {
272           "compId": 3,
273           "pinName": "Y"
274         },
275         "pin2": {
276           "compId": 4,
277           "pinName": "B"
278         },
279         "path": [
280           {
281             "x": 62.5,
282             "y": 37.5
283           },
284           {
285             "x": 62.5,
286             "y": 17.5
287           }
288         ]
289       },
290       {
291         "pin1": {
292           "compId": 4,
293           "pinName": "Y"
294         },
295         "pin2": {
296           "compId": 0,
297           "pinName": "Y"
298         },
299         "path": []
300       }
301     ]
302   },
303   "specialized": {
304     "input_count": 2,
305     "label": "GUIhalfadder",
306     "logic_width": 1,
307     "output_count": 2
308   }
309 }