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