Updated SubmodelComponentParams json format
[Mograsim.git] / net.mograsim.logic.ui / FullAdder.json
index 782652d..40c51c7 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": 0.0,
         "y": 25.0
       },
+      "name": "C",
       "logicWidth": 1
     },
     {
@@ -30,6 +33,7 @@ mograsim version: 0.1.0
         "x": 35.0,
         "y": 5.0
       },
+      "name": "Y",
       "logicWidth": 1
     },
     {
@@ -37,6 +41,7 @@ mograsim version: 0.1.0
         "x": 35.0,
         "y": 15.0
       },
+      "name": "Z",
       "logicWidth": 1
     }
   ],
@@ -49,7 +54,7 @@ mograsim version: 0.1.0
           "y": 40.0
         },
         "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder",
-        "logicWidth": 1
+        "params": {}
       },
       {
         "pos": {
@@ -57,7 +62,7 @@ mograsim version: 0.1.0
           "y": 7.5
         },
         "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder",
-        "logicWidth": 1
+        "params": {}
       },
       {
         "pos": {
@@ -65,81 +70,83 @@ mograsim version: 0.1.0
           "y": 40.0
         },
         "type": "class:net.mograsim.logic.ui.model.components.GUINandGate",
-        "logicWidth": 1
+        "params": {
+          "logicWidth": 1
+        }
       }
     ],
     "innerWires": [
       {
         "pin1": {
           "compId": 0,
-          "pinIndex": 0
+          "pinName": "A"
         },
         "pin2": {
           "compId": 2,
-          "pinIndex": 0
+          "pinName": "A"
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 0,
-          "pinIndex": 1
+          "pinName": "B"
         },
         "pin2": {
           "compId": 1,
-          "pinIndex": 0
+          "pinName": "A"
         }
       },
       {
         "pin1": {
           "compId": 0,
-          "pinIndex": 2
+          "pinName": "C"
         },
         "pin2": {
           "compId": 1,
-          "pinIndex": 1
+          "pinName": "B"
         }
       },
       {
         "pin1": {
           "compId": 1,
-          "pinIndex": 2
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 2,
-          "pinIndex": 1
+          "pinName": "B"
         }
       },
       {
         "pin1": {
           "compId": 1,
-          "pinIndex": 3
+          "pinName": "_Z"
         },
         "pin2": {
           "compId": 3,
-          "pinIndex": 2
+          "pinName": "B"
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 2,
-          "pinIndex": 2
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 0,
-          "pinIndex": 3
+          "pinName": "Y"
         },
         "path": []
       },
       {
         "pin1": {
           "compId": 2,
-          "pinIndex": 3
+          "pinName": "_Z"
         },
         "pin2": {
           "compId": 3,
-          "pinIndex": 1
+          "pinName": "A"
         },
         "path": [
           {
@@ -163,11 +170,11 @@ mograsim version: 0.1.0
       {
         "pin1": {
           "compId": 3,
-          "pinIndex": 0
+          "pinName": "Y"
         },
         "pin2": {
           "compId": 0,
-          "pinIndex": 4
+          "pinName": "Z"
         }
       }
     ]