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