3884fc0babe15ee82af0cdfce0da4c5b791c41b8
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / dlatch.json
1 {
2   "width": 35.0,
3   "height": 20.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 5.0
9       },
10       "name": "D",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 15.0
18       },
19       "name": "E",
20       "logicWidth": 1,
21       "usage": "INPUT"
22     },
23     {
24       "location": {
25         "x": 35.0,
26         "y": 5.0
27       },
28       "name": "Q",
29       "logicWidth": 1,
30       "usage": "OUTPUT"
31     },
32     {
33       "location": {
34         "x": 35.0,
35         "y": 15.0
36       },
37       "name": "_Q",
38       "logicWidth": 1,
39       "usage": "OUTPUT"
40     }
41   ],
42   "innerScale": 0.4,
43   "submodel": {
44     "components": [
45       {
46         "id": "NandGate",
47         "name": "NandGate#0",
48         "pos": {
49           "x": 10.0,
50           "y": 2.5
51         },
52         "params": 1
53       },
54       {
55         "id": "NandGate",
56         "name": "NandGate#1",
57         "pos": {
58           "x": 15.0,
59           "y": 27.5
60         },
61         "params": 1
62       },
63       {
64         "id": "WireCrossPoint",
65         "name": "WireCrossPoint#0",
66         "pos": {
67           "x": 4.0,
68           "y": 36.5
69         },
70         "params": 1
71       },
72       {
73         "id": "WireCrossPoint",
74         "name": "WireCrossPoint#1",
75         "pos": {
76           "x": 34.0,
77           "y": 11.5
78         },
79         "params": 1
80       },
81       {
82         "id": "_rsLatch",
83         "name": "_rsLatch#0",
84         "pos": {
85           "x": 45.0,
86           "y": 7.5
87         }
88       }
89     ],
90     "wires": [
91       {
92         "pin1": {
93           "compName": "_submodelinterface",
94           "pinName": "D"
95         },
96         "pin2": {
97           "compName": "NandGate#0",
98           "pinName": "A"
99         },
100         "name": "unnamedWire#0"
101       },
102       {
103         "pin1": {
104           "compName": "_submodelinterface",
105           "pinName": "E"
106         },
107         "pin2": {
108           "compName": "WireCrossPoint#0",
109           "pinName": ""
110         },
111         "name": "unnamedWire#1",
112         "path": []
113       },
114       {
115         "pin1": {
116           "compName": "WireCrossPoint#0",
117           "pinName": ""
118         },
119         "pin2": {
120           "compName": "NandGate#0",
121           "pinName": "B"
122         },
123         "name": "unnamedWire#2",
124         "path": [
125           {
126             "x": 5.0,
127             "y": 17.5
128           }
129         ]
130       },
131       {
132         "pin1": {
133           "compName": "WireCrossPoint#0",
134           "pinName": ""
135         },
136         "pin2": {
137           "compName": "NandGate#1",
138           "pinName": "B"
139         },
140         "name": "unnamedWire#3",
141         "path": [
142           {
143             "x": 5.0,
144             "y": 42.5
145           }
146         ]
147       },
148       {
149         "pin1": {
150           "compName": "NandGate#0",
151           "pinName": "Y"
152         },
153         "pin2": {
154           "compName": "WireCrossPoint#1",
155           "pinName": ""
156         },
157         "name": "unnamedWire#4",
158         "path": []
159       },
160       {
161         "pin1": {
162           "compName": "WireCrossPoint#1",
163           "pinName": ""
164         },
165         "pin2": {
166           "compName": "NandGate#1",
167           "pinName": "A"
168         },
169         "name": "unnamedWire#5",
170         "path": [
171           {
172             "x": 35.0,
173             "y": 25.0
174           },
175           {
176             "x": 10.0,
177             "y": 25.0
178           },
179           {
180             "x": 10.0,
181             "y": 32.5
182           }
183         ]
184       },
185       {
186         "pin1": {
187           "compName": "WireCrossPoint#1",
188           "pinName": ""
189         },
190         "pin2": {
191           "compName": "_rsLatch#0",
192           "pinName": "_S"
193         },
194         "name": "unnamedWire#6",
195         "path": []
196       },
197       {
198         "pin1": {
199           "compName": "NandGate#1",
200           "pinName": "Y"
201         },
202         "pin2": {
203           "compName": "_rsLatch#0",
204           "pinName": "_R"
205         },
206         "name": "unnamedWire#7",
207         "path": [
208           {
209             "x": 40.0,
210             "y": 37.5
211           },
212           {
213             "x": 40.0,
214             "y": 22.5
215           }
216         ]
217       },
218       {
219         "pin1": {
220           "compName": "_rsLatch#0",
221           "pinName": "Q"
222         },
223         "pin2": {
224           "compName": "_submodelinterface",
225           "pinName": "Q"
226         },
227         "name": "unnamedWire#8",
228         "path": []
229       },
230       {
231         "pin1": {
232           "compName": "_rsLatch#0",
233           "pinName": "_Q"
234         },
235         "pin2": {
236           "compName": "_submodelinterface",
237           "pinName": "_Q"
238         },
239         "name": "unnamedWire#9"
240       }
241     ],
242     "version": "0.1.1"
243   },
244   "symbolRendererSnippetID": "simpleRectangularLike",
245   "symbolRendererParams": {
246     "centerText": "dlatch",
247     "centerTextHeight": 5.0,
248     "horizontalComponentCenter": 17.5,
249     "pinLabelHeight": 3.5,
250     "pinLabelMargin": 0.5
251   },
252   "outlineRendererSnippetID": "default",
253   "highLevelStateHandlerSnippetID": "standard",
254   "highLevelStateHandlerParams": {
255     "subcomponentHighLevelStates": {},
256     "atomicHighLevelStates": {
257       "q": {
258         "id": "delegating",
259         "params": {
260           "delegateTarget": "_rsLatch#0",
261           "subStateID": "q"
262         }
263       }
264     }
265   },
266   "version": "0.1.5"
267 }