Added two SymbolRendererProviders
[Mograsim.git] / net.mograsim.logic.ui.am2900 / components / GUIram2.json
index df20ab5..dd05167 100644 (file)
@@ -1,7 +1,5 @@
-mograsim version: 0.1.2
+mograsim version: 0.1.3
 {
-  "type": "SimpleRectangularSubmodelComponent",
-  "name": "GUIram2",
   "width": 35.0,
   "height": 90.0,
   "interfacePins": [
@@ -142,7 +140,7 @@ mograsim version: 0.1.2
       "logicWidth": 1
     }
   ],
-  "composition": {
+  "submodel": {
     "innerScale": 0.1,
     "subComps": [
       {
@@ -150,440 +148,361 @@ mograsim version: 0.1.2
           "x": 55.0,
           "y": 45.0
         },
-        "name": "GUIdemux2",
-        "params": {}
+        "id": "GUIdemux2"
       },
       {
         "pos": {
           "x": 55.0,
           "y": 150.0
         },
-        "name": "GUIdemux2",
-        "params": {}
+        "id": "GUIdemux2"
       },
       {
         "pos": {
           "x": 130.0,
           "y": 150.0
         },
-        "name": "GUIand41",
-        "params": {}
+        "id": "GUIand41"
       },
       {
         "pos": {
           "x": 55.0,
           "y": 325.0
         },
-        "name": "GUIdlatch4",
-        "params": {}
+        "id": "GUIdlatch4"
       },
       {
         "pos": {
           "x": 55.0,
           "y": 475.0
         },
-        "name": "GUIdlatch4",
-        "params": {}
+        "id": "GUIdlatch4"
       },
       {
         "pos": {
           "x": 55.0,
           "y": 625.0
         },
-        "name": "GUIdlatch4",
-        "params": {}
+        "id": "GUIdlatch4"
       },
       {
         "pos": {
           "x": 55.0,
           "y": 775.0
         },
-        "name": "GUIdlatch4",
-        "params": {}
+        "id": "GUIdlatch4"
       },
       {
         "pos": {
           "x": 235.0,
           "y": 375.0
         },
-        "name": "GUIand41",
-        "params": {}
+        "id": "GUIand41"
       },
       {
         "pos": {
           "x": 235.0,
           "y": 485.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 235.0,
           "y": 635.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 235.0,
           "y": 785.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 135.0,
           "y": 325.0
         },
-        "name": "GUIand41",
-        "params": {}
+        "id": "GUIand41"
       },
       {
         "pos": {
           "x": 135.0,
           "y": 435.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 135.0,
           "y": 585.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 135.0,
           "y": 735.0
         },
-        "name": "GUIandor414",
-        "params": {}
+        "id": "GUIandor414"
       },
       {
         "pos": {
           "x": 109.0,
           "y": 154.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 104.0,
           "y": 164.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 99.0,
           "y": 174.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 94.0,
           "y": 184.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 549.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 39.0,
           "y": 649.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 44.0,
           "y": 749.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 49.0,
           "y": 809.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 479.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 39.0,
           "y": 489.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 44.0,
           "y": 499.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 49.0,
           "y": 509.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 34.0,
           "y": 629.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 39.0,
           "y": 639.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 44.0,
           "y": 649.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 49.0,
           "y": 659.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 129.0,
           "y": 329.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 124.0,
           "y": 339.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 119.0,
           "y": 349.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 114.0,
           "y": 359.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 129.0,
           "y": 479.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 124.0,
           "y": 489.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 119.0,
           "y": 499.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 114.0,
           "y": 509.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 129.0,
           "y": 629.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 124.0,
           "y": 639.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 119.0,
           "y": 649.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 114.0,
           "y": 659.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 129.0,
           "y": 779.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 124.0,
           "y": 789.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 119.0,
           "y": 799.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       },
       {
         "pos": {
           "x": 114.0,
           "y": 809.0
         },
-        "name": "WireCrossPoint",
-        "params": {
-          "logicWidth": 1
-        }
+        "id": "WireCrossPoint",
+        "params": 1
       }
     ],
     "innerWires": [
@@ -2852,29 +2771,12 @@ mograsim version: 0.1.2
       }
     ]
   },
-  "specialized": {
-    "input_count": [
-      "A0",
-      "A1",
-      "B0",
-      "B1",
-      "WE",
-      "D1",
-      "D2",
-      "D3",
-      "D4"
-    ],
-    "label": "GUIram2",
-    "logic_width": 1,
-    "output_count": [
-      "QA1",
-      "QA2",
-      "QA3",
-      "QA4",
-      "QB1",
-      "QB2",
-      "QB3",
-      "QB4"
-    ]
+  "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+  "symbolRendererParams": {
+    "centerText": "ram2",
+    "horizontalComponentCenter": 17.5,
+    "centerTextHeight": 5,
+    "pinLabelHeight": 3.5,
+    "pinLabelMargin": 0.5
   }
 }
\ No newline at end of file