A proposal for resolving the loading problem of json files
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / GUIdlatch.json
index d83cc99..b09c439 100644 (file)
@@ -1,90 +1,93 @@
-mograsim version: 0.1.3
 {
   "width": 35.0,
   "height": 20.0,
   "interfacePins": [
     {
       "location": {
-        "x": 35.0,
+        "x": 0.0,
         "y": 5.0
       },
-      "name": "Q",
-      "logicWidth": 1
+      "name": "D",
+      "logicWidth": 1,
+      "usage": "INPUT"
     },
     {
       "location": {
-        "x": 35.0,
+        "x": 0.0,
         "y": 15.0
       },
-      "name": "_Q",
-      "logicWidth": 1
+      "name": "E",
+      "logicWidth": 1,
+      "usage": "INPUT"
     },
     {
       "location": {
-        "x": 0.0,
+        "x": 35.0,
         "y": 5.0
       },
-      "name": "D",
-      "logicWidth": 1
+      "name": "Q",
+      "logicWidth": 1,
+      "usage": "OUTPUT"
     },
     {
       "location": {
-        "x": 0.0,
+        "x": 35.0,
         "y": 15.0
       },
-      "name": "E",
-      "logicWidth": 1
+      "name": "_Q",
+      "logicWidth": 1,
+      "usage": "OUTPUT"
     }
   ],
+  "innerScale": 0.4,
   "submodel": {
-    "innerScale": 0.4,
-    "subComps": [
+    "components": [
       {
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
         "pos": {
-          "x": 15.0,
-          "y": 27.5
+          "x": 10.0,
+          "y": 2.5
         },
+        "params": 1
+      },
+      {
         "id": "GUINandGate",
         "name": "GUINandGate#1",
+        "pos": {
+          "x": 15.0,
+          "y": 27.5
+        },
         "params": 1
       },
       {
+        "id": "GUI_rsLatch",
+        "name": "GUI_rsLatch#0",
         "pos": {
           "x": 45.0,
           "y": 7.5
-        },
-        "id": "GUI_rsLatch",
-        "name": "GUI_rsLatch#0"
+        }
       },
       {
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#0",
         "pos": {
-          "x": 10.0,
-          "y": 2.5
+          "x": 4.0,
+          "y": 36.5
         },
-        "id": "GUINandGate",
-        "name": "GUINandGate#0",
         "params": 1
       },
       {
-        "pos": {
-          "x": 34.0,
-          "y": 11.5
-        },
         "id": "WireCrossPoint",
         "name": "WireCrossPoint#1",
-        "params": 1
-      },
-      {
         "pos": {
-          "x": 4.0,
-          "y": 36.5
+          "x": 34.0,
+          "y": 11.5
         },
-        "id": "WireCrossPoint",
-        "name": "WireCrossPoint#0",
         "params": 1
       }
     ],
-    "innerWires": [
+    "wires": [
       {
         "pin1": {
           "compName": "_submodelinterface",
@@ -93,7 +96,8 @@ mograsim version: 0.1.3
         "pin2": {
           "compName": "GUINandGate#0",
           "pinName": "A"
-        }
+        },
+        "name": "unnamedWire#0"
       },
       {
         "pin1": {
@@ -104,6 +108,7 @@ mograsim version: 0.1.3
           "compName": "WireCrossPoint#0",
           "pinName": ""
         },
+        "name": "unnamedWire#1",
         "path": []
       },
       {
@@ -115,6 +120,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#0",
           "pinName": "B"
         },
+        "name": "unnamedWire#2",
         "path": [
           {
             "x": 5.0,
@@ -131,6 +137,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#1",
           "pinName": "B"
         },
+        "name": "unnamedWire#3",
         "path": [
           {
             "x": 5.0,
@@ -147,6 +154,7 @@ mograsim version: 0.1.3
           "compName": "WireCrossPoint#1",
           "pinName": ""
         },
+        "name": "unnamedWire#4",
         "path": []
       },
       {
@@ -158,6 +166,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#1",
           "pinName": "A"
         },
+        "name": "unnamedWire#5",
         "path": [
           {
             "x": 35.0,
@@ -182,6 +191,7 @@ mograsim version: 0.1.3
           "compName": "GUI_rsLatch#0",
           "pinName": "_S"
         },
+        "name": "unnamedWire#6",
         "path": []
       },
       {
@@ -193,6 +203,7 @@ mograsim version: 0.1.3
           "compName": "GUI_rsLatch#0",
           "pinName": "_R"
         },
+        "name": "unnamedWire#7",
         "path": [
           {
             "x": 40.0,
@@ -213,6 +224,7 @@ mograsim version: 0.1.3
           "compName": "_submodelinterface",
           "pinName": "Q"
         },
+        "name": "unnamedWire#8",
         "path": []
       },
       {
@@ -223,9 +235,11 @@ mograsim version: 0.1.3
         "pin2": {
           "compName": "_submodelinterface",
           "pinName": "_Q"
-        }
+        },
+        "name": "unnamedWire#9"
       }
-    ]
+    ],
+    "version": "0.1.1"
   },
   "symbolRendererSnippetID": "simpleRectangularLike",
   "symbolRendererParams": {
@@ -234,5 +248,20 @@ mograsim version: 0.1.3
     "horizontalComponentCenter": 17.5,
     "pinLabelHeight": 3.5,
     "pinLabelMargin": 0.5
-  }
+  },
+  "outlineRendererSnippetID": "default",
+  "highLevelStateHandlerSnippetID": "standard",
+  "highLevelStateHandlerParams": {
+    "subcomponentHighLevelStates": {},
+    "atomicHighLevelStates": {
+      "q": {
+        "id": "delegating",
+        "params": {
+          "delegateTarget": "GUI_rsLatch#0",
+          "subStateID": "q"
+        }
+      }
+    }
+  },
+  "version": "0.1.5"
 }
\ No newline at end of file