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