2c771c0702ab2b6ee3ecbffa472d16d118495ff0
[Mograsim.git] / plugins / net.mograsim.logic.model.am2900 / components / net / mograsim / logic / model / am2900 / components / dff.json
1 {
2   "width": 35.0,
3   "height": 20.0,
4   "interfacePins": [
5     {
6       "location": {
7         "x": 0.0,
8         "y": 15.0
9       },
10       "name": "C",
11       "logicWidth": 1,
12       "usage": "INPUT"
13     },
14     {
15       "location": {
16         "x": 0.0,
17         "y": 5.0
18       },
19       "name": "D",
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.2,
43   "submodel": {
44     "components": [
45       {
46         "id": "NandGate",
47         "name": "NandGate#0",
48         "pos": {
49           "x": 120.0,
50           "y": 20.0
51         },
52         "params": 1
53       },
54       {
55         "id": "WireCrossPoint",
56         "name": "WireCrossPoint#0",
57         "pos": {
58           "x": 9.0,
59           "y": 74.0
60         },
61         "params": 1
62       },
63       {
64         "id": "WireCrossPoint",
65         "name": "WireCrossPoint#1",
66         "pos": {
67           "x": 19.0,
68           "y": 54.0
69         },
70         "params": 1
71       },
72       {
73         "id": "WireCrossPoint",
74         "name": "WireCrossPoint#2",
75         "pos": {
76           "x": 94.0,
77           "y": 64.0
78         },
79         "params": 1
80       },
81       {
82         "id": "WireCrossPoint",
83         "name": "WireCrossPoint#3",
84         "pos": {
85           "x": 104.0,
86           "y": 34.0
87         },
88         "params": 1
89       },
90       {
91         "id": "_rsLatch",
92         "name": "_rsLatch#0",
93         "pos": {
94           "x": 40.0,
95           "y": 70.0
96         }
97       },
98       {
99         "id": "_rsLatch",
100         "name": "_rsLatch#1",
101         "pos": {
102           "x": 120.0,
103           "y": 45.0
104         }
105       },
106       {
107         "id": "nand3",
108         "name": "nand3#0",
109         "pos": {
110           "x": 40.0,
111           "y": 30.0
112         }
113       }
114     ],
115     "wires": [
116       {
117         "pin1": {
118           "compName": "_submodelinterface",
119           "pinName": "C"
120         },
121         "pin2": {
122           "compName": "WireCrossPoint#0",
123           "pinName": ""
124         },
125         "name": "unnamedWire#0",
126         "path": []
127       },
128       {
129         "pin1": {
130           "compName": "WireCrossPoint#0",
131           "pinName": ""
132         },
133         "pin2": {
134           "compName": "_rsLatch#0",
135           "pinName": "_R"
136         },
137         "name": "unnamedWire#1",
138         "path": [
139           {
140             "x": 10.0,
141             "y": 85.0
142           }
143         ]
144       },
145       {
146         "pin1": {
147           "compName": "nand3#0",
148           "pinName": "Y"
149         },
150         "pin2": {
151           "compName": "WireCrossPoint#3",
152           "pinName": ""
153         },
154         "name": "unnamedWire#10",
155         "path": []
156       },
157       {
158         "pin1": {
159           "compName": "WireCrossPoint#3",
160           "pinName": ""
161         },
162         "pin2": {
163           "compName": "_rsLatch#1",
164           "pinName": "_R"
165         },
166         "name": "unnamedWire#11",
167         "path": [
168           {
169             "x": 105.0,
170             "y": 60.0
171           }
172         ]
173       },
174       {
175         "pin1": {
176           "compName": "WireCrossPoint#3",
177           "pinName": ""
178         },
179         "pin2": {
180           "compName": "NandGate#0",
181           "pinName": "B"
182         },
183         "name": "unnamedWire#12",
184         "path": []
185       },
186       {
187         "pin1": {
188           "compName": "_rsLatch#1",
189           "pinName": "Q"
190         },
191         "pin2": {
192           "compName": "_submodelinterface",
193           "pinName": "Q"
194         },
195         "name": "unnamedWire#13"
196       },
197       {
198         "pin1": {
199           "compName": "_rsLatch#1",
200           "pinName": "_Q"
201         },
202         "pin2": {
203           "compName": "_submodelinterface",
204           "pinName": "_Q"
205         },
206         "name": "unnamedWire#14"
207       },
208       {
209         "pin1": {
210           "compName": "WireCrossPoint#0",
211           "pinName": ""
212         },
213         "pin2": {
214           "compName": "nand3#0",
215           "pinName": "B"
216         },
217         "name": "unnamedWire#2",
218         "path": [
219           {
220             "x": 10.0,
221             "y": 45.0
222           }
223         ]
224       },
225       {
226         "pin1": {
227           "compName": "_submodelinterface",
228           "pinName": "D"
229         },
230         "pin2": {
231           "compName": "NandGate#0",
232           "pinName": "A"
233         },
234         "name": "unnamedWire#3",
235         "path": []
236       },
237       {
238         "pin1": {
239           "compName": "NandGate#0",
240           "pinName": "Y"
241         },
242         "pin2": {
243           "compName": "WireCrossPoint#1",
244           "pinName": ""
245         },
246         "name": "unnamedWire#4",
247         "path": [
248           {
249             "x": 145.0,
250             "y": 30.0
251           },
252           {
253             "x": 145.0,
254             "y": 10.0
255           },
256           {
257             "x": 20.0,
258             "y": 10.0
259           }
260         ]
261       },
262       {
263         "pin1": {
264           "compName": "WireCrossPoint#1",
265           "pinName": ""
266         },
267         "pin2": {
268           "compName": "_rsLatch#0",
269           "pinName": "_S"
270         },
271         "name": "unnamedWire#5",
272         "path": [
273           {
274             "x": 20.0,
275             "y": 75.0
276           }
277         ]
278       },
279       {
280         "pin1": {
281           "compName": "WireCrossPoint#1",
282           "pinName": ""
283         },
284         "pin2": {
285           "compName": "nand3#0",
286           "pinName": "C"
287         },
288         "name": "unnamedWire#6",
289         "path": []
290       },
291       {
292         "pin1": {
293           "compName": "_rsLatch#0",
294           "pinName": "_Q"
295         },
296         "pin2": {
297           "compName": "WireCrossPoint#2",
298           "pinName": ""
299         },
300         "name": "unnamedWire#7",
301         "path": [
302           {
303             "x": 95.0,
304             "y": 85.0
305           }
306         ]
307       },
308       {
309         "pin1": {
310           "compName": "WireCrossPoint#2",
311           "pinName": ""
312         },
313         "pin2": {
314           "compName": "nand3#0",
315           "pinName": "A"
316         },
317         "name": "unnamedWire#8",
318         "path": [
319           {
320             "x": 30.0,
321             "y": 65.0
322           },
323           {
324             "x": 30.0,
325             "y": 35.0
326           }
327         ]
328       },
329       {
330         "pin1": {
331           "compName": "WireCrossPoint#2",
332           "pinName": ""
333         },
334         "pin2": {
335           "compName": "_rsLatch#1",
336           "pinName": "_S"
337         },
338         "name": "unnamedWire#9",
339         "path": [
340           {
341             "x": 95.0,
342             "y": 50.0
343           }
344         ]
345       }
346     ],
347     "version": "0.1.1"
348   },
349   "symbolRendererSnippetID": "simpleRectangularLike",
350   "symbolRendererParams": {
351     "centerText": "dff",
352     "centerTextHeight": 5.0,
353     "horizontalComponentCenter": 17.5,
354     "pinLabelHeight": 3.5,
355     "pinLabelMargin": 0.5
356   },
357   "outlineRendererSnippetID": "default",
358   "highLevelStateHandlerSnippetID": "standard",
359   "highLevelStateHandlerParams": {
360     "subcomponentHighLevelStates": {},
361     "atomicHighLevelStates": {
362       "q": {
363         "id": "delegating",
364         "params": {
365           "delegateTarget": "_rsLatch#1",
366           "subStateID": "q"
367         }
368       }
369     }
370   },
371   "version": "0.1.5"
372 }