9195303f80b2e80761cdf7b298cb028e718ce0b9
[Mograsim.git] / net.mograsim.logic.ui / components / GUI_rsLatch.json
1 mograsim version: 0.1.1
2 {
3   "type": "SimpleRectangularSubmodelComponent",
4   "name": "GUI_rsLatch",
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": 15.0
28       },
29       "name": "_R",
30       "logicWidth": 1
31     },
32     {
33       "location": {
34         "x": 0.0,
35         "y": 5.0
36       },
37       "name": "_S",
38       "logicWidth": 1
39     }
40   ],
41   "composition": {
42     "innerScale": 0.4,
43     "subComps": [
44       {
45         "pos": {
46           "x": 10.0,
47           "y": 7.5
48         },
49         "name": "GUINandGate",
50         "params": {
51           "logicWidth": 1
52         }
53       },
54       {
55         "pos": {
56           "x": 40.0,
57           "y": 12.5
58         },
59         "name": "GUINandGate",
60         "params": {
61           "logicWidth": 1
62         }
63       },
64       {
65         "pos": {
66           "x": 34.0,
67           "y": 16.5
68         },
69         "name": "WireCrossPoint",
70         "params": {
71           "logicWidth": 1
72         }
73       },
74       {
75         "pos": {
76           "x": 64.0,
77           "y": 36.5
78         },
79         "name": "WireCrossPoint",
80         "params": {
81           "logicWidth": 1
82         }
83       }
84     ],
85     "innerWires": [
86       {
87         "pin1": {
88           "compId": 0,
89           "pinName": "_S"
90         },
91         "pin2": {
92           "compId": 1,
93           "pinName": "A"
94         },
95         "path": []
96       },
97       {
98         "pin1": {
99           "compId": 0,
100           "pinName": "_R"
101         },
102         "pin2": {
103           "compId": 2,
104           "pinName": "B"
105         },
106         "path": [
107           {
108             "x": 35.0,
109             "y": 37.5
110           },
111           {
112             "x": 35.0,
113             "y": 27.5
114           }
115         ]
116       },
117       {
118         "pin1": {
119           "compId": 1,
120           "pinName": "Y"
121         },
122         "pin2": {
123           "compId": 3,
124           "pinName": ""
125         },
126         "path": []
127       },
128       {
129         "pin1": {
130           "compId": 2,
131           "pinName": "Y"
132         },
133         "pin2": {
134           "compId": 4,
135           "pinName": ""
136         },
137         "path": [
138           {
139             "x": 65.0,
140             "y": 22.5
141           }
142         ]
143       },
144       {
145         "pin1": {
146           "compId": 3,
147           "pinName": ""
148         },
149         "pin2": {
150           "compId": 2,
151           "pinName": "A"
152         },
153         "path": []
154       },
155       {
156         "pin1": {
157           "compId": 4,
158           "pinName": ""
159         },
160         "pin2": {
161           "compId": 1,
162           "pinName": "B"
163         },
164         "path": [
165           {
166             "x": 65.0,
167             "y": 42.5
168           },
169           {
170             "x": 5.0,
171             "y": 42.5
172           },
173           {
174             "x": 5.0,
175             "y": 22.5
176           }
177         ]
178       },
179       {
180         "pin1": {
181           "compId": 3,
182           "pinName": ""
183         },
184         "pin2": {
185           "compId": 0,
186           "pinName": "Q"
187         },
188         "path": [
189           {
190             "x": 35.0,
191             "y": 17.5
192           },
193           {
194             "x": 35.0,
195             "y": 7.5
196           },
197           {
198             "x": 65.0,
199             "y": 7.5
200           },
201           {
202             "x": 65.0,
203             "y": 12.5
204           }
205         ]
206       },
207       {
208         "pin1": {
209           "compId": 4,
210           "pinName": ""
211         },
212         "pin2": {
213           "compId": 0,
214           "pinName": "_Q"
215         },
216         "path": []
217       }
218     ]
219   },
220   "specialized": {
221     "input_count": [
222       "_S",
223       "_R"
224     ],
225     "label": "_rsLatch",
226     "logic_width": 1,
227     "output_count": [
228       "Q",
229       "_Q"
230     ]
231   }
232 }