Updated to new SWTHelper version
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / GUIdemux2.json
index d6b01c6..5ded84b 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIdemux2",
   "width": 35.0,
   "height": 40.0,
   "interfacePins": [
@@ -54,172 +52,162 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.4,
     "subComps": [
       {
         "pos": {
           "x": 10.0,
-          "y": 2.5
+          "y": 27.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#1",
+        "params": 1
       },
       {
         "pos": {
           "x": 10.0,
-          "y": 27.5
+          "y": 2.5
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
+        "params": 1
       },
       {
         "pos": {
           "x": 40.0,
           "y": 2.5
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUIand",
+        "name": "GUIand#0"
       },
       {
         "pos": {
           "x": 40.0,
-          "y": 27.5
+          "y": 52.5
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUIand",
+        "name": "GUIand#2"
       },
       {
         "pos": {
           "x": 40.0,
-          "y": 52.5
+          "y": 27.5
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUIand",
+        "name": "GUIand#1"
       },
       {
         "pos": {
           "x": 40.0,
           "y": 77.5
         },
-        "name": "GUIand",
-        "params": {}
-      },
-      {
-        "pos": {
-          "x": 6.5,
-          "y": 11.5
-        },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUIand",
+        "name": "GUIand#3"
       },
       {
         "pos": {
           "x": 6.5,
           "y": 16.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#1",
+        "params": 1
       },
       {
         "pos": {
-          "x": 36.5,
-          "y": 61.5
+          "x": 6.5,
+          "y": 11.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#0",
+        "params": 1
       },
       {
         "pos": {
           "x": 4.0,
           "y": 36.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#3",
+        "params": 1
       },
       {
         "pos": {
-          "x": 4.0,
-          "y": 41.5
+          "x": 36.5,
+          "y": 61.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#2",
+        "params": 1
       },
       {
         "pos": {
           "x": 31.5,
           "y": 66.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#5",
+        "params": 1
       },
       {
         "pos": {
-          "x": 31.5,
-          "y": 11.5
+          "x": 4.0,
+          "y": 41.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#4",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 36.5
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#7",
+        "params": 1
+      },
+      {
+        "pos": {
+          "x": 31.5,
+          "y": 11.5
+        },
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#6",
+        "params": 1
       }
     ],
     "innerWires": [
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "S0"
         },
         "pin2": {
-          "compId": 7,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "S1"
         },
         "pin2": {
-          "compId": 10,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 7,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "A"
         },
         "path": [
@@ -231,11 +219,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 10,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "A"
         },
         "path": [
@@ -247,55 +235,55 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 7,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 8,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 10,
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compId": 11,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 8,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 11,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 8,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 9,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "path": [
@@ -307,11 +295,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 11,
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
-          "compId": 12,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "path": [
@@ -327,33 +315,33 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 1,
+          "compName": "GUINandGate#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 13,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 2,
+          "compName": "GUINandGate#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 14,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 13,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUIand#0",
           "pinName": "A"
         },
         "path": [
@@ -365,11 +353,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 14,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUIand#0",
           "pinName": "B"
         },
         "path": [
@@ -381,11 +369,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 9,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUIand#1",
           "pinName": "A"
         },
         "path": [
@@ -397,11 +385,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 14,
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUIand#1",
           "pinName": "B"
         },
         "path": [
@@ -413,11 +401,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 13,
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUIand#2",
           "pinName": "A"
         },
         "path": [
@@ -429,22 +417,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 12,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUIand#2",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 9,
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUIand#3",
           "pinName": "A"
         },
         "path": [
@@ -456,11 +444,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 12,
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUIand#3",
           "pinName": "B"
         },
         "path": [
@@ -472,58 +460,52 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 3,
+          "compName": "GUIand#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y00"
         }
       },
       {
         "pin1": {
-          "compId": 4,
+          "compName": "GUIand#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y01"
         }
       },
       {
         "pin1": {
-          "compId": 5,
+          "compName": "GUIand#2",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y10"
         }
       },
       {
         "pin1": {
-          "compId": 6,
+          "compName": "GUIand#3",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Y11"
         }
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "S0",
-      "S1"
-    ],
-    "label": "GUIdemux2",
-    "logic_width": 1,
-    "output_count": [
-      "Y00",
-      "Y01",
-      "Y10",
-      "Y11"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "GUIdemux2",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5.0,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file