GUIWires now have names
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / GUIand.json
1 mograsim version: 0.1.3
2 {
3   "width": 35.0,
4   "height": 20.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": 35.0,
25         "y": 5.0
26       },
27       "name": "Y",
28       "logicWidth": 1
29     }
30   ],
31   "submodel": {
32     "innerScale": 0.4,
33     "subComps": [
34       {
35         "id": "GUINandGate",
36         "name": "GUINandGate#1",
37         "pos": {
38           "x": 50.0,
39           "y": 15.0
40         },
41         "params": 1
42       },
43       {
44         "id": "GUINandGate",
45         "name": "GUINandGate#0",
46         "pos": {
47           "x": 20.0,
48           "y": 15.0
49         },
50         "params": 1
51       },
52       {
53         "id": "WireCrossPoint",
54         "name": "WireCrossPoint#0",
55         "pos": {
56           "x": 44.0,
57           "y": 24.0
58         },
59         "params": 1
60       }
61     ],
62     "innerWires": [
63       {
64         "pin1": {
65           "compName": "_submodelinterface",
66           "pinName": "B"
67         },
68         "pin2": {
69           "compName": "GUINandGate#0",
70           "pinName": "B"
71         },
72         "name": "unnamedWire#1"
73       },
74       {
75         "pin1": {
76           "compName": "_submodelinterface",
77           "pinName": "A"
78         },
79         "pin2": {
80           "compName": "GUINandGate#0",
81           "pinName": "A"
82         },
83         "name": "unnamedWire#0"
84       },
85       {
86         "pin1": {
87           "compName": "GUINandGate#1",
88           "pinName": "Y"
89         },
90         "pin2": {
91           "compName": "_submodelinterface",
92           "pinName": "Y"
93         },
94         "name": "unnamedWire#5"
95       },
96       {
97         "pin1": {
98           "compName": "WireCrossPoint#0",
99           "pinName": ""
100         },
101         "pin2": {
102           "compName": "GUINandGate#1",
103           "pinName": "B"
104         },
105         "name": "unnamedWire#4",
106         "path": [
107           {
108             "x": 45.0,
109             "y": 30.0
110           }
111         ]
112       },
113       {
114         "pin1": {
115           "compName": "WireCrossPoint#0",
116           "pinName": ""
117         },
118         "pin2": {
119           "compName": "GUINandGate#1",
120           "pinName": "A"
121         },
122         "name": "unnamedWire#3",
123         "path": [
124           {
125             "x": 45.0,
126             "y": 20.0
127           }
128         ]
129       },
130       {
131         "pin1": {
132           "compName": "GUINandGate#0",
133           "pinName": "Y"
134         },
135         "pin2": {
136           "compName": "WireCrossPoint#0",
137           "pinName": ""
138         },
139         "name": "unnamedWire#2",
140         "path": []
141       }
142     ]
143   },
144   "symbolRendererSnippetID": "simpleRectangularLike",
145   "symbolRendererParams": {
146     "centerText": "GUIand",
147     "centerTextHeight": 5.0,
148     "horizontalComponentCenter": 17.5,
149     "pinLabelHeight": 3.5,
150     "pinLabelMargin": 0.5
151   }
152 }