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