Added file version and closed resource leak
[Mograsim.git] / net.mograsim.logic.ui / FullAdder.json
1 mograsim version: 0.1.0
2 {
3   "type": "SimpleRectangularSubmodelComponent",
4   "width": 35.0,
5   "height": 30.0,
6   "interfacePins": [
7     {
8       "location": {
9         "x": 0.0,
10         "y": 5.0
11       },
12       "logicWidth": 1
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 15.0
18       },
19       "logicWidth": 1
20     },
21     {
22       "location": {
23         "x": 0.0,
24         "y": 25.0
25       },
26       "logicWidth": 1
27     },
28     {
29       "location": {
30         "x": 35.0,
31         "y": 5.0
32       },
33       "logicWidth": 1
34     },
35     {
36       "location": {
37         "x": 35.0,
38         "y": 15.0
39       },
40       "logicWidth": 1
41     }
42   ],
43   "composition": {
44     "innerScale": 0.4,
45     "subComps": [
46       {
47         "pos": {
48           "x": 5.0,
49           "y": 40.0
50         },
51         "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder",
52         "logicWidth": 1
53       },
54       {
55         "pos": {
56           "x": 45.0,
57           "y": 7.5
58         },
59         "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder",
60         "logicWidth": 1
61       },
62       {
63         "pos": {
64           "x": 57.5,
65           "y": 40.0
66         },
67         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
68         "logicWidth": 1
69       }
70     ],
71     "innerWires": [
72       {
73         "pin1": {
74           "compId": 0,
75           "pinIndex": 0
76         },
77         "pin2": {
78           "compId": 2,
79           "pinIndex": 0
80         },
81         "path": []
82       },
83       {
84         "pin1": {
85           "compId": 0,
86           "pinIndex": 1
87         },
88         "pin2": {
89           "compId": 1,
90           "pinIndex": 0
91         }
92       },
93       {
94         "pin1": {
95           "compId": 0,
96           "pinIndex": 2
97         },
98         "pin2": {
99           "compId": 1,
100           "pinIndex": 1
101         }
102       },
103       {
104         "pin1": {
105           "compId": 1,
106           "pinIndex": 2
107         },
108         "pin2": {
109           "compId": 2,
110           "pinIndex": 1
111         }
112       },
113       {
114         "pin1": {
115           "compId": 1,
116           "pinIndex": 3
117         },
118         "pin2": {
119           "compId": 3,
120           "pinIndex": 2
121         },
122         "path": []
123       },
124       {
125         "pin1": {
126           "compId": 2,
127           "pinIndex": 2
128         },
129         "pin2": {
130           "compId": 0,
131           "pinIndex": 3
132         },
133         "path": []
134       },
135       {
136         "pin1": {
137           "compId": 2,
138           "pinIndex": 3
139         },
140         "pin2": {
141           "compId": 3,
142           "pinIndex": 1
143         },
144         "path": [
145           {
146             "x": 82.5,
147             "y": 22.5
148           },
149           {
150             "x": 82.5,
151             "y": 35.0
152           },
153           {
154             "x": 52.5,
155             "y": 35.0
156           },
157           {
158             "x": 52.5,
159             "y": 45.0
160           }
161         ]
162       },
163       {
164         "pin1": {
165           "compId": 3,
166           "pinIndex": 0
167         },
168         "pin2": {
169           "compId": 0,
170           "pinIndex": 4
171         }
172       }
173     ]
174   },
175   "specialized": {
176     "input_count": 3,
177     "label": "GUIfulladder",
178     "logic_width": 1,
179     "output_count": 2
180   }
181 }