63eb1ca8209d5c2b085f04b0edec5abd3b205234
[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": 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": 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": 25.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": 32.5
51         },
52         "params": 1
53       },
54       {
55         "id": "WireCrossPoint",
56         "name": "WireCrossPoint#0",
57         "pos": {
58           "x": 19.0,
59           "y": 36.5
60         },
61         "params": 1
62       },
63       {
64         "id": "halfadder_invz",
65         "name": "halfadder_invz#0",
66         "pos": {
67           "x": 10.0,
68           "y": 5.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": 20.0
87           },
88           {
89             "x": 50.0,
90             "y": 27.5
91           },
92           {
93             "x": 20.0,
94             "y": 27.5
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       {
111         "pin1": {
112           "compName": "WireCrossPoint#0",
113           "pinName": ""
114         },
115         "pin2": {
116           "compName": "NandGate#0",
117           "pinName": "B"
118         },
119         "name": "unnamedWire#2",
120         "path": [
121           {
122             "x": 20.0,
123             "y": 47.5
124           }
125         ]
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       {
140         "pin1": {
141           "compName": "_submodelinterface",
142           "pinName": "B"
143         },
144         "pin2": {
145           "compName": "halfadder_invz#0",
146           "pinName": "B"
147         },
148         "name": "unnamedWire#4",
149         "path": [
150           {
151             "x": 5.0,
152             "y": 30.0
153           },
154           {
155             "x": 5.0,
156             "y": 20.0
157           }
158         ]
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": 42.5
174           },
175           {
176             "x": 50.0,
177             "y": 55.0
178           },
179           {
180             "x": 15.0,
181             "y": 55.0
182           },
183           {
184             "x": 15.0,
185             "y": 50.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     ],
202     "version": "0.1.1"
203   },
204   "symbolRendererSnippetID": "simpleRectangularLike",
205   "symbolRendererParams": {
206     "centerText": "halfadder",
207     "centerTextHeight": 5.0,
208     "horizontalComponentCenter": 15.0,
209     "pinLabelHeight": 3.5,
210     "pinLabelMargin": 0.5
211   },
212   "outlineRendererSnippetID": "default",
213   "highLevelStateHandlerSnippetID": "default",
214   "version": "0.1.5"
215 }