A proposal for resolving the loading problem of json files
[Mograsim.git] / net.mograsim.logic.model.am2900 / components / GUInand3.json
index f9fbb80..28b9a60 100644 (file)
@@ -1,4 +1,3 @@
-mograsim version: 0.1.3
 {
   "width": 35.0,
   "height": 30.0,
@@ -9,7 +8,8 @@ mograsim version: 0.1.3
         "y": 5.0
       },
       "name": "A",
-      "logicWidth": 1
+      "logicWidth": 1,
+      "usage": "INPUT"
     },
     {
       "location": {
@@ -17,7 +17,8 @@ mograsim version: 0.1.3
         "y": 15.0
       },
       "name": "B",
-      "logicWidth": 1
+      "logicWidth": 1,
+      "usage": "INPUT"
     },
     {
       "location": {
@@ -25,7 +26,8 @@ mograsim version: 0.1.3
         "y": 25.0
       },
       "name": "C",
-      "logicWidth": 1
+      "logicWidth": 1,
+      "usage": "INPUT"
     },
     {
       "location": {
@@ -33,50 +35,51 @@ mograsim version: 0.1.3
         "y": 5.0
       },
       "name": "Y",
-      "logicWidth": 1
+      "logicWidth": 1,
+      "usage": "OUTPUT"
     }
   ],
+  "innerScale": 0.4,
   "submodel": {
-    "innerScale": 0.4,
-    "subComps": [
+    "components": [
       {
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
         "pos": {
-          "x": 35.0,
+          "x": 10.0,
           "y": 15.0
         },
-        "id": "GUINandGate",
-        "name": "GUINandGate#1",
         "params": 1
       },
       {
+        "id": "GUINandGate",
+        "name": "GUINandGate#1",
         "pos": {
-          "x": 10.0,
+          "x": 35.0,
           "y": 15.0
         },
-        "id": "GUINandGate",
-        "name": "GUINandGate#0",
         "params": 1
       },
       {
+        "id": "GUINandGate",
+        "name": "GUINandGate#2",
         "pos": {
           "x": 62.5,
           "y": 2.5
         },
-        "id": "GUINandGate",
-        "name": "GUINandGate#2",
         "params": 1
       },
       {
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#0",
         "pos": {
           "x": 31.5,
           "y": 24.0
         },
-        "id": "WireCrossPoint",
-        "name": "WireCrossPoint#0",
         "params": 1
       }
     ],
-    "innerWires": [
+    "wires": [
       {
         "pin1": {
           "compName": "_submodelinterface",
@@ -85,7 +88,8 @@ mograsim version: 0.1.3
         "pin2": {
           "compName": "GUINandGate#0",
           "pinName": "A"
-        }
+        },
+        "name": "unnamedWire#0"
       },
       {
         "pin1": {
@@ -95,7 +99,8 @@ mograsim version: 0.1.3
         "pin2": {
           "compName": "GUINandGate#0",
           "pinName": "B"
-        }
+        },
+        "name": "unnamedWire#1"
       },
       {
         "pin1": {
@@ -106,6 +111,7 @@ mograsim version: 0.1.3
           "compName": "WireCrossPoint#0",
           "pinName": ""
         },
+        "name": "unnamedWire#2",
         "path": []
       },
       {
@@ -117,6 +123,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#1",
           "pinName": "A"
         },
+        "name": "unnamedWire#3",
         "path": [
           {
             "x": 32.5,
@@ -133,6 +140,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#1",
           "pinName": "B"
         },
+        "name": "unnamedWire#4",
         "path": [
           {
             "x": 32.5,
@@ -149,6 +157,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#2",
           "pinName": "A"
         },
+        "name": "unnamedWire#5",
         "path": [
           {
             "x": 57.5,
@@ -169,6 +178,7 @@ mograsim version: 0.1.3
           "compName": "GUINandGate#2",
           "pinName": "B"
         },
+        "name": "unnamedWire#6",
         "path": [
           {
             "x": 60.0,
@@ -189,9 +199,11 @@ mograsim version: 0.1.3
           "compName": "_submodelinterface",
           "pinName": "Y"
         },
+        "name": "unnamedWire#7",
         "path": []
       }
-    ]
+    ],
+    "version": "0.1.1"
   },
   "symbolRendererSnippetID": "simpleRectangularLike",
   "symbolRendererParams": {
@@ -200,5 +212,8 @@ mograsim version: 0.1.3
     "horizontalComponentCenter": 17.5,
     "pinLabelHeight": 3.5,
     "pinLabelMargin": 0.5
-  }
+  },
+  "outlineRendererSnippetID": "default",
+  "highLevelStateHandlerSnippetID": "default",
+  "version": "0.1.5"
 }
\ No newline at end of file