Added an visual-only text component and modelling helper class
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / GUIdlatch.json
1 mograsim version: 0.1.2
2 {
3   "type": "SimpleRectangularSubmodelComponent",
4   "name": "GUIdlatch",
5   "width": 35.0,
6   "height": 20.0,
7   "interfacePins": [
8     {
9       "location": {
10         "x": 35.0,
11         "y": 5.0
12       },
13       "name": "Q",
14       "logicWidth": 1
15     },
16     {
17       "location": {
18         "x": 35.0,
19         "y": 15.0
20       },
21       "name": "_Q",
22       "logicWidth": 1
23     },
24     {
25       "location": {
26         "x": 0.0,
27         "y": 5.0
28       },
29       "name": "D",
30       "logicWidth": 1
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 15.0
36       },
37       "name": "E",
38       "logicWidth": 1
39     }
40   ],
41   "composition": {
42     "innerScale": 0.4,
43     "subComps": [
44       {
45         "pos": {
46           "x": 10.0,
47           "y": 2.5
48         },
49         "name": "GUINandGate",
50         "params": {
51           "logicWidth": 1
52         }
53       },
54       {
55         "pos": {
56           "x": 15.0,
57           "y": 27.5
58         },
59         "name": "GUINandGate",
60         "params": {
61           "logicWidth": 1
62         }
63       },
64       {
65         "pos": {
66           "x": 45.0,
67           "y": 7.5
68         },
69         "name": "GUI_rsLatch",
70         "params": {}
71       },
72       {
73         "pos": {
74           "x": 4.0,
75           "y": 36.5
76         },
77         "name": "WireCrossPoint",
78         "params": {
79           "logicWidth": 1
80         }
81       },
82       {
83         "pos": {
84           "x": 34.0,
85           "y": 11.5
86         },
87         "name": "WireCrossPoint",
88         "params": {
89           "logicWidth": 1
90         }
91       }
92     ],
93     "innerWires": [
94       {
95         "pin1": {
96           "compId": 0,
97           "pinName": "D"
98         },
99         "pin2": {
100           "compId": 1,
101           "pinName": "A"
102         }
103       },
104       {
105         "pin1": {
106           "compId": 0,
107           "pinName": "E"
108         },
109         "pin2": {
110           "compId": 4,
111           "pinName": ""
112         },
113         "path": []
114       },
115       {
116         "pin1": {
117           "compId": 4,
118           "pinName": ""
119         },
120         "pin2": {
121           "compId": 1,
122           "pinName": "B"
123         },
124         "path": [
125           {
126             "x": 5.0,
127             "y": 17.5
128           }
129         ]
130       },
131       {
132         "pin1": {
133           "compId": 4,
134           "pinName": ""
135         },
136         "pin2": {
137           "compId": 2,
138           "pinName": "B"
139         },
140         "path": [
141           {
142             "x": 5.0,
143             "y": 42.5
144           }
145         ]
146       },
147       {
148         "pin1": {
149           "compId": 1,
150           "pinName": "Y"
151         },
152         "pin2": {
153           "compId": 5,
154           "pinName": ""
155         },
156         "path": []
157       },
158       {
159         "pin1": {
160           "compId": 5,
161           "pinName": ""
162         },
163         "pin2": {
164           "compId": 2,
165           "pinName": "A"
166         },
167         "path": [
168           {
169             "x": 35.0,
170             "y": 25.0
171           },
172           {
173             "x": 10.0,
174             "y": 25.0
175           },
176           {
177             "x": 10.0,
178             "y": 32.5
179           }
180         ]
181       },
182       {
183         "pin1": {
184           "compId": 5,
185           "pinName": ""
186         },
187         "pin2": {
188           "compId": 3,
189           "pinName": "_S"
190         },
191         "path": []
192       },
193       {
194         "pin1": {
195           "compId": 2,
196           "pinName": "Y"
197         },
198         "pin2": {
199           "compId": 3,
200           "pinName": "_R"
201         },
202         "path": [
203           {
204             "x": 40.0,
205             "y": 37.5
206           },
207           {
208             "x": 40.0,
209             "y": 22.5
210           }
211         ]
212       },
213       {
214         "pin1": {
215           "compId": 3,
216           "pinName": "Q"
217         },
218         "pin2": {
219           "compId": 0,
220           "pinName": "Q"
221         },
222         "path": []
223       },
224       {
225         "pin1": {
226           "compId": 3,
227           "pinName": "_Q"
228         },
229         "pin2": {
230           "compId": 0,
231           "pinName": "_Q"
232         }
233       }
234     ]
235   },
236   "specialized": {
237     "input_count": [
238       "D",
239       "E"
240     ],
241     "label": "GUIdlatch",
242     "logic_width": 1,
243     "output_count": [
244       "Q",
245       "_Q"
246     ]
247   }
248 }