Commented GUIWire
[Mograsim.git] / net.mograsim.logic.ui / HalfAdder.json
index 802ba0d..48c1980 100644 (file)
@@ -1,4 +1,4 @@
-mograsim version: 0.1.0
+mograsim version: 0.1.1
 {
   "type": "SimpleRectangularSubmodelComponent",
   "width": 35.0,
@@ -9,6 +9,7 @@ mograsim version: 0.1.0
         "x": 0.0,
         "y": 5.0
       },
+      "name": "A",
       "logicWidth": 1
     },
     {
@@ -16,6 +17,7 @@ mograsim version: 0.1.0
         "x": 0.0,
         "y": 15.0
       },
+      "name": "B",
       "logicWidth": 1
     },
     {
@@ -23,6 +25,7 @@ mograsim version: 0.1.0
         "x": 35.0,
         "y": 5.0
       },
+      "name": "Y",
       "logicWidth": 1
     },
     {
@@ -30,6 +33,7 @@ mograsim version: 0.1.0
         "x": 35.0,
         "y": 15.0
       },
+      "name": "_Z",
       "logicWidth": 1
     }
   ],
@@ -42,7 +46,9 @@ mograsim version: 0.1.0
           "y": 15.0
         },
         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -50,7 +56,9 @@ mograsim version: 0.1.0
           "y": 2.5
         },
         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -58,7 +66,9 @@ mograsim version: 0.1.0
           "y": 27.5
         },
         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -66,7 +76,9 @@ mograsim version: 0.1.0
           "y": 2.5
         },
         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -74,7 +86,9 @@ mograsim version: 0.1.0
           "y": 11.5
         },
         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -82,7 +96,9 @@ mograsim version: 0.1.0
           "y": 36.5
         },
         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       },
       {
         "pos": {
@@ -90,29 +106,31 @@ mograsim version: 0.1.0
           "y": 24.0
         },
         "type": "class:net.mograsim.logic.ui.model.wires.WireCrossPoint",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       }
     ],
     "innerWires": [
       {
         "pin1": {
           "compId": 0,
-          "pinIndex": 0
+          "pinName": "A"
         },
         "pin2": {
           "compId": 5,
-          "pinIndex": 0
+          "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 5,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 2,
-          "pinIndex": 1
+          "pinName": "A"
         },
         "path": [
           {
@@ -124,11 +142,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 5,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 1,
-          "pinIndex": 1
+          "pinName": "A"
         },
         "path": [
           {
@@ -140,22 +158,22 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 0,
-          "pinIndex": 1
+          "pinName": "B"
         },
         "pin2": {
           "compId": 6,
-          "pinIndex": 0
+          "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 6,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 3,
-          "pinIndex": 2
+          "pinName": "B"
         },
         "path": [
           {
@@ -167,11 +185,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 6,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 1,
-          "pinIndex": 2
+          "pinName": "B"
         },
         "path": [
           {
@@ -183,22 +201,22 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 1,
-          "pinIndex": 0
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 7,
-          "pinIndex": 0
+          "pinName": ""
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 7,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 0,
-          "pinIndex": 3
+          "pinName": "_Z"
         },
         "path": [
           {
@@ -214,11 +232,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 7,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 2,
-          "pinIndex": 2
+          "pinName": "B"
         },
         "path": [
           {
@@ -230,11 +248,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 7,
-          "pinIndex": 0
+          "pinName": ""
         },
         "pin2": {
           "compId": 3,
-          "pinIndex": 1
+          "pinName": "A"
         },
         "path": [
           {
@@ -246,11 +264,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 2,
-          "pinIndex": 0
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 4,
-          "pinIndex": 1
+          "pinName": "A"
         },
         "path": [
           {
@@ -266,11 +284,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 3,
-          "pinIndex": 0
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 4,
-          "pinIndex": 2
+          "pinName": "B"
         },
         "path": [
           {
@@ -286,11 +304,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 4,
-          "pinIndex": 0
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 0,
-          "pinIndex": 2
+          "pinName": "Y"
         },
         "path": []
       }