GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / am2901 / GUIAm2901ALUOneBit.json
index 5466a04..b6b05e1 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIAm2901ALUOneBit",
   "width": 35.0,
   "height": 90.0,
   "interfacePins": [
@@ -94,115 +92,112 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.2,
     "subComps": [
       {
         "pos": {
-          "x": 10.0,
-          "y": 20.0
+          "x": 60.0,
+          "y": 55.0
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUINandGate",
+        "name": "GUINandGate#0",
+        "params": 1
       },
       {
         "pos": {
-          "x": 10.0,
-          "y": 190.0
+          "x": 54.0,
+          "y": 69.0
         },
-        "name": "GUIxor",
-        "params": {}
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#1",
+        "params": 1
       },
       {
         "pos": {
-          "x": 10.0,
-          "y": 290.0
+          "x": 49.0,
+          "y": 59.0
         },
-        "name": "GUIxor",
-        "params": {}
+        "id": "WireCrossPoint",
+        "name": "WireCrossPoint#0",
+        "params": 1
       },
       {
         "pos": {
-          "x": 60.0,
-          "y": 20.0
+          "x": 90.0,
+          "y": 70.0
         },
-        "name": "GUIfulladder",
-        "params": {}
+        "id": "GUImux1",
+        "name": "GUImux1#0"
       },
       {
         "pos": {
-          "x": 60.0,
-          "y": 55.0
+          "x": 10.0,
+          "y": 20.0
         },
-        "name": "GUINandGate",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUIand",
+        "name": "GUIand#0"
       },
       {
         "pos": {
-          "x": 135.0,
-          "y": 20.0
+          "x": 10.0,
+          "y": 290.0
         },
-        "name": "GUIand",
-        "params": {}
+        "id": "GUIxor",
+        "name": "GUIxor#1"
       },
       {
         "pos": {
-          "x": 90.0,
+          "x": 135.0,
           "y": 70.0
         },
-        "name": "GUImux1",
-        "params": {}
+        "id": "GUIxor",
+        "name": "GUIxor#2"
       },
       {
         "pos": {
-          "x": 135.0,
-          "y": 70.0
+          "x": 60.0,
+          "y": 20.0
         },
-        "name": "GUIxor",
-        "params": {}
+        "id": "GUIfulladder",
+        "name": "GUIfulladder#0"
       },
       {
         "pos": {
-          "x": 49.0,
-          "y": 59.0
+          "x": 10.0,
+          "y": 190.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUIxor",
+        "name": "GUIxor#0"
       },
       {
         "pos": {
-          "x": 54.0,
-          "y": 69.0
+          "x": 135.0,
+          "y": 20.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "GUIand",
+        "name": "GUIand#1"
       }
     ],
     "innerWires": [
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Cin"
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUIand#0",
           "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "CoutE"
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUIand#1",
           "pinName": "A"
         },
         "path": [
@@ -226,11 +221,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "CinE"
         },
         "pin2": {
-          "compId": 1,
+          "compName": "GUIand#0",
           "pinName": "B"
         },
         "path": [
@@ -246,51 +241,51 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "R"
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUIxor#0",
           "pinName": "A"
         }
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "RN"
         },
         "pin2": {
-          "compId": 2,
+          "compName": "GUIxor#0",
           "pinName": "B"
         }
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "S"
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUIxor#1",
           "pinName": "A"
         }
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "SN"
         },
         "pin2": {
-          "compId": 3,
+          "compName": "GUIxor#1",
           "pinName": "B"
         }
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "FN"
         },
         "pin2": {
-          "compId": 8,
+          "compName": "GUIxor#2",
           "pinName": "B"
         },
         "path": [
@@ -306,11 +301,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "L"
         },
         "pin2": {
-          "compId": 7,
+          "compName": "GUImux1#0",
           "pinName": "S0"
         },
         "path": [
@@ -326,22 +321,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 1,
+          "compName": "GUIand#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUIfulladder#0",
           "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 2,
+          "compName": "GUIxor#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 9,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "path": [
@@ -353,11 +348,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 9,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUIfulladder#0",
           "pinName": "B"
         },
         "path": [
@@ -369,22 +364,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 9,
+          "compName": "WireCrossPoint#0",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUINandGate#0",
           "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 3,
+          "compName": "GUIxor#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 10,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "path": [
@@ -396,11 +391,11 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 10,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 4,
+          "compName": "GUIfulladder#0",
           "pinName": "C"
         },
         "path": [
@@ -412,22 +407,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 10,
+          "compName": "WireCrossPoint#1",
           "pinName": ""
         },
         "pin2": {
-          "compId": 5,
+          "compName": "GUINandGate#0",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 4,
+          "compName": "GUIfulladder#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 7,
+          "compName": "GUImux1#0",
           "pinName": "I0"
         },
         "path": [
@@ -451,22 +446,22 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 4,
+          "compName": "GUIfulladder#0",
           "pinName": "Z"
         },
         "pin2": {
-          "compId": 6,
+          "compName": "GUIand#1",
           "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 5,
+          "compName": "GUINandGate#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 7,
+          "compName": "GUImux1#0",
           "pinName": "I1"
         },
         "path": [
@@ -482,56 +477,45 @@ mograsim version: 0.1.2
       },
       {
         "pin1": {
-          "compId": 7,
+          "compName": "GUImux1#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 8,
+          "compName": "GUIxor#2",
           "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 6,
+          "compName": "GUIand#1",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "Cout"
         },
         "path": []
       },
       {
         "pin1": {
-          "compId": 8,
+          "compName": "GUIxor#2",
           "pinName": "Y"
         },
         "pin2": {
-          "compId": 0,
+          "compName": "_submodelinterface",
           "pinName": "F"
         },
         "path": []
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "Cin",
-      "CoutE",
-      "CinE",
-      "R",
-      "RN",
-      "S",
-      "SN",
-      "FN",
-      "L"
-    ],
-    "label": "GUIAm2901ALUOneBit",
-    "logic_width": 1,
-    "output_count": [
-      "Cout",
-      "F"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "GUIAm2901ALUOneBit",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5.0,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file