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