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