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