Changed incrementer layout to have the MSB on top
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / halfadder.json
1 {
2   "width": 30.0,
3   "height": 30.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 15.0
9       },
10       "name": "A",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 25.0
18       },
19       "name": "B",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 30.0,
26         "y": 5.0
27       },
28       "name": "Y",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 5.0
36       },
37       "name": "Z",
38       "logicWidth": 1,
39       "usage": "OUTPUT"
40     }
41   ],
42   "innerScale": 0.5,
43   "submodel": {
44     "components": [
45       {
46         "id": "NandGate",
47         "name": "NandGate#0",
48         "pos": {
49           "x": 25.0,
50           "y": 7.5
51         },
52         "params": 1
53       },
54       {
55         "id": "WireCrossPoint",
56         "name": "WireCrossPoint#0",
57         "pos": {
58           "x": 19.0,
59           "y": 21.5
60         },
61         "params": 1
62       },
63       {
64         "id": "halfadder_invz",
65         "name": "halfadder_invz#0",
66         "pos": {
67           "x": 10.0,
68           "y": 35.0
69         }
70       }
71     ],
72     "wires": [
73       {
74         "pin1": {
75           "compName": "halfadder_invz#0",
76           "pinName": "_Z"
77         },
78         "pin2": {
79           "compName": "WireCrossPoint#0",
80           "pinName": ""
81         },
82         "name": "unnamedWire#0",
83         "path": [
84           {
85             "x": 50.0,
86             "y": 50.0
87           },
88           {
89             "x": 50.0,
90             "y": 30.0
91           },
92           {
93             "x": 20.0,
94             "y": 30.0
95           }
96         ]
97       },
98       {
99         "pin1": {
100           "compName": "WireCrossPoint#0",
101           "pinName": ""
102         },
103         "pin2": {
104           "compName": "NandGate#0",
105           "pinName": "A"
106         },
107         "name": "unnamedWire#1",
108         "path": [
109           {
110             "x": 20.0,
111             "y": 12.5
112           }
113         ]
114       },
115       {
116         "pin1": {
117           "compName": "WireCrossPoint#0",
118           "pinName": ""
119         },
120         "pin2": {
121           "compName": "NandGate#0",
122           "pinName": "B"
123         },
124         "name": "unnamedWire#2",
125         "path": []
126       },
127       {
128         "pin1": {
129           "compName": "_submodelinterface",
130           "pinName": "A"
131         },
132         "pin2": {
133           "compName": "halfadder_invz#0",
134           "pinName": "A"
135         },
136         "name": "unnamedWire#3",
137         "path": [
138           {
139             "x": 5.0,
140             "y": 30.0
141           },
142           {
143             "x": 5.0,
144             "y": 40.0
145           }
146         ]
147       },
148       {
149         "pin1": {
150           "compName": "_submodelinterface",
151           "pinName": "B"
152         },
153         "pin2": {
154           "compName": "halfadder_invz#0",
155           "pinName": "B"
156         },
157         "name": "unnamedWire#4",
158         "path": []
159       },
160       {
161         "pin1": {
162           "compName": "NandGate#0",
163           "pinName": "Y"
164         },
165         "pin2": {
166           "compName": "_submodelinterface",
167           "pinName": "Z"
168         },
169         "name": "unnamedWire#5",
170         "path": [
171           {
172             "x": 50.0,
173             "y": 17.5
174           },
175           {
176             "x": 50.0,
177             "y": 5.0
178           },
179           {
180             "x": 5.0,
181             "y": 5.0
182           },
183           {
184             "x": 5.0,
185             "y": 10.0
186           }
187         ]
188       },
189       {
190         "pin1": {
191           "compName": "halfadder_invz#0",
192           "pinName": "Y"
193         },
194         "pin2": {
195           "compName": "_submodelinterface",
196           "pinName": "Y"
197         },
198         "name": "unnamedWire#6",
199         "path": [
200           {
201             "x": 55.0,
202             "y": 40.0
203           },
204           {
205             "x": 55.0,
206             "y": 10.0
207           }
208         ]
209       }
210     ],
211     "version": "0.1.1"
212   },
213   "symbolRendererSnippetID": "simpleRectangularLike",
214   "symbolRendererParams": {
215     "centerText": "halfadder",
216     "centerTextHeight": 5.0,
217     "horizontalComponentCenter": 15.0,
218     "pinLabelHeight": 3.5,
219     "pinLabelMargin": 0.5
220   },
221   "outlineRendererSnippetID": "default",
222   "highLevelStateHandlerSnippetID": "default",
223   "version": "0.1.5"
224 }