Reserialized components
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 18:27:23 +0000 (20:27 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 18:27:23 +0000 (20:27 +0200)
plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/Am2900.json
plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/Am2900MemoryController.json
plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/ReserializeAndVerifyJSONs.java

index fe7cde2..730810e 100644 (file)
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#53",
+        "name": "WireCrossPoint#44",
         "pos": {
           "x": 169.0,
           "y": 359.0
           "pinName": ""
         },
         "pin2": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#44",
           "pinName": ""
         },
         "name": "unnamedWire#346",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#44",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#44",
           "pinName": ""
         },
         "pin2": {
index cfc5955..304ed63 100644 (file)
@@ -89,7 +89,7 @@
     "components": [
       {
         "id": "NandGate",
-        "name": "NandGate#7",
+        "name": "NandGate#0",
         "pos": {
           "x": 10.0,
           "y": 125.0
@@ -98,7 +98,7 @@
       },
       {
         "id": "TriStateBuffer",
-        "name": "TriStateBuffer#4",
+        "name": "TriStateBuffer#0",
         "pos": {
           "x": 190.0,
           "y": 35.0
       },
       {
         "id": "TriStateBuffer",
-        "name": "TriStateBuffer#5",
+        "name": "TriStateBuffer#1",
         "pos": {
           "x": 190.0,
           "y": 5.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#44",
+        "name": "WireCrossPoint#2",
         "pos": {
           "x": 124.0,
           "y": 159.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#45",
+        "name": "WireCrossPoint#3",
         "pos": {
           "x": 74.0,
           "y": 159.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#46",
+        "name": "WireCrossPoint#4",
         "pos": {
           "x": 74.0,
           "y": 134.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#48",
+        "name": "WireCrossPoint#5",
         "pos": {
           "x": 29.0,
           "y": 99.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#49",
+        "name": "WireCrossPoint#6",
         "pos": {
           "x": 4.0,
           "y": 129.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#50",
+        "name": "WireCrossPoint#7",
         "pos": {
           "x": 219.0,
           "y": 24.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#51",
+        "name": "WireCrossPoint#8",
         "pos": {
           "x": 184.0,
           "y": 14.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#52",
+        "name": "WireCrossPoint#9",
         "pos": {
           "x": 4.0,
           "y": 139.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#53",
+        "name": "WireCrossPoint#10",
         "pos": {
           "x": 74.0,
           "y": 109.0
       },
       {
         "id": "WireCrossPoint",
-        "name": "WireCrossPoint#54",
+        "name": "WireCrossPoint#11",
         "pos": {
           "x": 124.0,
           "y": 134.0
       },
       {
         "id": "and",
-        "name": "and#3",
+        "name": "and#0",
         "pos": {
           "x": 35.0,
           "y": 95.0
       },
       {
         "id": "and",
-        "name": "and#4",
+        "name": "and#1",
         "pos": {
           "x": 35.0,
           "y": 120.0
       },
       {
         "id": "dff16",
-        "name": "dff16#1",
+        "name": "dff16#0",
         "pos": {
           "x": 80.0,
           "y": 35.0
     "wires": [
       {
         "pin1": {
-          "compName": "WireCrossPoint#46",
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#10",
           "pinName": ""
         },
         "name": "unnamedWire#0",
           "pinName": "C"
         },
         "pin2": {
-          "compName": "WireCrossPoint#44",
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "name": "unnamedWire#1",
           "pinName": "Dmach"
         },
         "pin2": {
-          "compName": "WireCrossPoint#51",
+          "compName": "WireCrossPoint#8",
           "pinName": ""
         },
         "name": "unnamedWire#2",
           "pinName": "Amach"
         },
         "pin2": {
-          "compName": "dff16#1",
+          "compName": "dff16#0",
           "pinName": "D"
         },
         "name": "unnamedWire#3",
       },
       {
         "pin1": {
-          "compName": "dff16#1",
+          "compName": "dff16#0",
           "pinName": "Q"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#50",
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#52",
+          "compName": "WireCrossPoint#9",
           "pinName": ""
         },
         "pin2": {
           "pinName": "EN"
         },
         "pin2": {
-          "compName": "WireCrossPoint#48",
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "name": "unnamedWire#7",
           "pinName": "Q"
         },
         "pin2": {
-          "compName": "TriStateBuffer#5",
+          "compName": "TriStateBuffer#1",
           "pinName": "EN"
         },
         "name": "unnamedWire#8",
           "pinName": "Q"
         },
         "pin2": {
-          "compName": "TriStateBuffer#4",
+          "compName": "TriStateBuffer#0",
           "pinName": "EN"
         },
         "name": "unnamedWire#9",
           "pinName": "_C"
         },
         "pin2": {
-          "compName": "WireCrossPoint#45",
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "name": "unnamedWire#11",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#10",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#53",
+          "compName": "WireCrossPoint#10",
           "pinName": ""
         },
         "pin2": {
-          "compName": "dff16#1",
+          "compName": "dff16#0",
           "pinName": "C"
         },
         "name": "unnamedWire#13",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#54",
+          "compName": "WireCrossPoint#11",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#49",
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
           "pinName": ""
         },
         "pin2": {
-          "compName": "and#3",
+          "compName": "and#0",
           "pinName": "B"
         },
         "name": "unnamedWire#20",
       },
       {
         "pin1": {
-          "compName": "TriStateBuffer#4",
+          "compName": "TriStateBuffer#0",
           "pinName": "OUT"
         },
         "pin2": {
-          "compName": "WireCrossPoint#50",
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "name": "unnamedWire#21",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#52",
+          "compName": "WireCrossPoint#9",
           "pinName": ""
         },
         "pin2": {
-          "compName": "NandGate#7",
+          "compName": "NandGate#0",
           "pinName": "B"
         },
         "name": "unnamedWire#22",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#45",
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#45",
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compName": "WireCrossPoint#46",
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "name": "unnamedWire#25",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#49",
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "pin2": {
-          "compName": "NandGate#7",
+          "compName": "NandGate#0",
           "pinName": "A"
         },
         "name": "unnamedWire#27",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#48",
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compName": "and#3",
+          "compName": "and#0",
           "pinName": "A"
         },
         "name": "unnamedWire#28",
       },
       {
         "pin1": {
-          "compName": "and#4",
+          "compName": "and#1",
           "pinName": "Y"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#48",
+          "compName": "WireCrossPoint#5",
           "pinName": ""
         },
         "pin2": {
-          "compName": "and#4",
+          "compName": "and#1",
           "pinName": "A"
         },
         "name": "unnamedWire#30",
       },
       {
         "pin1": {
-          "compName": "and#3",
+          "compName": "and#0",
           "pinName": "Y"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "NandGate#7",
+          "compName": "NandGate#0",
           "pinName": "Y"
         },
         "pin2": {
-          "compName": "and#4",
+          "compName": "and#1",
           "pinName": "B"
         },
         "name": "unnamedWire#32",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#51",
+          "compName": "WireCrossPoint#8",
           "pinName": ""
         },
         "pin2": {
-          "compName": "TriStateBuffer#5",
+          "compName": "TriStateBuffer#1",
           "pinName": "OUT"
         },
         "name": "unnamedWire#33",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#51",
+          "compName": "WireCrossPoint#8",
           "pinName": ""
         },
         "pin2": {
-          "compName": "TriStateBuffer#4",
+          "compName": "TriStateBuffer#0",
           "pinName": "IN"
         },
         "name": "unnamedWire#34",
       },
       {
         "pin1": {
-          "compName": "TriStateBuffer#5",
+          "compName": "TriStateBuffer#1",
           "pinName": "IN"
         },
         "pin2": {
-          "compName": "WireCrossPoint#50",
+          "compName": "WireCrossPoint#7",
           "pinName": ""
         },
         "name": "unnamedWire#35",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#52",
+          "compName": "WireCrossPoint#9",
           "pinName": ""
         },
         "pin2": {
-          "compName": "WireCrossPoint#49",
+          "compName": "WireCrossPoint#6",
           "pinName": ""
         },
         "name": "unnamedWire#36",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#46",
+          "compName": "WireCrossPoint#4",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#44",
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#44",
+          "compName": "WireCrossPoint#2",
           "pinName": ""
         },
         "pin2": {
-          "compName": "WireCrossPoint#54",
+          "compName": "WireCrossPoint#11",
           "pinName": ""
         },
         "name": "unnamedWire#40",
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#54",
+          "compName": "WireCrossPoint#11",
           "pinName": ""
         },
         "pin2": {
index cf12111..1aa7c3a 100644 (file)
@@ -46,8 +46,8 @@ public class ReserializeAndVerifyJSONs
 {
        public static double GRIDSIZE = 2.5;
        public static boolean changePinUsages = false;
-       public static boolean changeComponentNames = false;
-       public static boolean forceDefaultComponentNames = false;
+       public static boolean changeComponentNames = true;
+       public static boolean forceDefaultComponentNames = true;
        public static boolean changeWireNames = true;
        public static boolean forceDefaultWireNames = true;
        public static boolean snapWCPs = true;