Added DeserializedSubmodelComponent Editor project
[Mograsim.git] / net.mograsim.logic.ui.am2900 / HalfAdder.json
1 mograsim version: 0.1.1
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         "params": {
50           "logicWidth": 1
51         }
52       },
53       {
54         "pos": {
55           "x": 40.0,
56           "y": 2.5
57         },
58         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
59         "params": {
60           "logicWidth": 1
61         }
62       },
63       {
64         "pos": {
65           "x": 40.0,
66           "y": 27.5
67         },
68         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
69         "params": {
70           "logicWidth": 1
71         }
72       },
73       {
74         "pos": {
75           "x": 65.0,
76           "y": 2.5
77         },
78         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
79         "params": {
80           "logicWidth": 1
81         }
82       },
83       {
84         "pos": {
85           "x": 4.0,
86           "y": 11.5
87         },
88         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
89         "params": {
90           "logicWidth": 1
91         }
92       },
93       {
94         "pos": {
95           "x": 4.0,
96           "y": 36.5
97         },
98         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
99         "params": {
100           "logicWidth": 1
101         }
102       },
103       {
104         "pos": {
105           "x": 34.0,
106           "y": 24.0
107         },
108         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
109         "params": {
110           "logicWidth": 1
111         }
112       }
113     ],
114     "innerWires": [
115       {
116         "pin1": {
117           "compId": 0,
118           "pinName": "A"
119         },
120         "pin2": {
121           "compId": 5,
122           "pinName": ""
123         },
124         "path": []
125       },
126       {
127         "pin1": {
128           "compId": 5,
129           "pinName": ""
130         },
131         "pin2": {
132           "compId": 2,
133           "pinName": "A"
134         },
135         "path": [
136           {
137             "x": 5.0,
138             "y": 7.5
139           }
140         ]
141       },
142       {
143         "pin1": {
144           "compId": 5,
145           "pinName": ""
146         },
147         "pin2": {
148           "compId": 1,
149           "pinName": "A"
150         },
151         "path": [
152           {
153             "x": 5.0,
154             "y": 20.0
155           }
156         ]
157       },
158       {
159         "pin1": {
160           "compId": 0,
161           "pinName": "B"
162         },
163         "pin2": {
164           "compId": 6,
165           "pinName": ""
166         },
167         "path": []
168       },
169       {
170         "pin1": {
171           "compId": 6,
172           "pinName": ""
173         },
174         "pin2": {
175           "compId": 3,
176           "pinName": "B"
177         },
178         "path": [
179           {
180             "x": 5.0,
181             "y": 42.5
182           }
183         ]
184       },
185       {
186         "pin1": {
187           "compId": 6,
188           "pinName": ""
189         },
190         "pin2": {
191           "compId": 1,
192           "pinName": "B"
193         },
194         "path": [
195           {
196             "x": 5.0,
197             "y": 30.0
198           }
199         ]
200       },
201       {
202         "pin1": {
203           "compId": 1,
204           "pinName": "Y"
205         },
206         "pin2": {
207           "compId": 7,
208           "pinName": ""
209         },
210         "path": []
211       },
212       {
213         "pin1": {
214           "compId": 7,
215           "pinName": ""
216         },
217         "pin2": {
218           "compId": 0,
219           "pinName": "_Z"
220         },
221         "path": [
222           {
223             "x": 80.0,
224             "y": 25.0
225           },
226           {
227             "x": 80.0,
228             "y": 37.5
229           }
230         ]
231       },
232       {
233         "pin1": {
234           "compId": 7,
235           "pinName": ""
236         },
237         "pin2": {
238           "compId": 2,
239           "pinName": "B"
240         },
241         "path": [
242           {
243             "x": 35.0,
244             "y": 17.5
245           }
246         ]
247       },
248       {
249         "pin1": {
250           "compId": 7,
251           "pinName": ""
252         },
253         "pin2": {
254           "compId": 3,
255           "pinName": "A"
256         },
257         "path": [
258           {
259             "x": 35.0,
260             "y": 32.5
261           }
262         ]
263       },
264       {
265         "pin1": {
266           "compId": 2,
267           "pinName": "Y"
268         },
269         "pin2": {
270           "compId": 4,
271           "pinName": "A"
272         },
273         "path": [
274           {
275             "x": 62.5,
276             "y": 12.5
277           },
278           {
279             "x": 62.5,
280             "y": 7.5
281           }
282         ]
283       },
284       {
285         "pin1": {
286           "compId": 3,
287           "pinName": "Y"
288         },
289         "pin2": {
290           "compId": 4,
291           "pinName": "B"
292         },
293         "path": [
294           {
295             "x": 62.5,
296             "y": 37.5
297           },
298           {
299             "x": 62.5,
300             "y": 17.5
301           }
302         ]
303       },
304       {
305         "pin1": {
306           "compId": 4,
307           "pinName": "Y"
308         },
309         "pin2": {
310           "compId": 0,
311           "pinName": "Y"
312         },
313         "path": []
314       }
315     ]
316   },
317   "specialized": {
318     "input_count": 2,
319     "label": "GUIhalfadder",
320     "logic_width": 1,
321     "output_count": 2
322   }
323 }