Cleaned dff4
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Sat, 10 Oct 2020 20:39:55 +0000 (22:39 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Sat, 10 Oct 2020 20:39:55 +0000 (22:39 +0200)
plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/am2901/Am2901.json
plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/dff4.json

index 2cf5fb1..8415f84 100644 (file)
         "id": "Splitter",
         "name": "Splitter#12",
         "pos": {
-          "x": 240.0,
-          "y": 930.0
+          "x": 135.0,
+          "y": 965.0
         },
         "params": {
           "logicWidth": 4,
-          "orientation": "LEFT"
+          "orientation": "RIGHT"
         }
       },
       {
         "name": "Splitter#13",
         "pos": {
           "x": 135.0,
-          "y": 965.0
+          "y": 1035.0
         },
         "params": {
           "logicWidth": 4,
         "id": "Splitter",
         "name": "Splitter#14",
         "pos": {
-          "x": 135.0,
-          "y": 1035.0
+          "x": 840.0,
+          "y": 760.0
         },
         "params": {
-          "logicWidth": 4,
+          "logicWidth": 3,
           "orientation": "RIGHT"
         }
       },
         "id": "Splitter",
         "name": "Splitter#15",
         "pos": {
-          "x": 840.0,
-          "y": 760.0
+          "x": 695.0,
+          "y": 175.0
         },
         "params": {
-          "logicWidth": 3,
-          "orientation": "RIGHT"
+          "logicWidth": 4,
+          "orientation": "LEFT"
         }
       },
       {
         "id": "Splitter",
         "name": "Splitter#16",
         "pos": {
-          "x": 695.0,
-          "y": 175.0
+          "x": 190.0,
+          "y": 930.0
         },
         "params": {
           "logicWidth": 4,
         "id": "WireCrossPoint",
         "name": "WireCrossPoint#7",
         "pos": {
-          "x": 254.0,
+          "x": 259.0,
           "y": 944.0
         },
         "params": 4
         "id": "dff4",
         "name": "dff4#0",
         "pos": {
-          "x": 200.0,
-          "y": 925.0
+          "x": 220.0,
+          "y": 930.0
         }
       },
       {
     "wires": [
       {
         "pin1": {
-          "compName": "Splitter#15",
+          "compName": "Splitter#14",
           "pinName": "O0"
         },
         "pin2": {
           "pinName": "O7"
         },
         "pin2": {
-          "compName": "Splitter#15",
+          "compName": "Splitter#14",
           "pinName": "O1"
         },
         "name": "unnamedWire#15",
             "y": 900.0
           },
           {
-            "x": 195.0,
+            "x": 210.0,
             "y": 900.0
           },
           {
-            "x": 195.0,
-            "y": 970.0
+            "x": 210.0,
+            "y": 955.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "Splitter#16",
+          "compName": "Splitter#15",
           "pinName": "O3"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#16",
+          "compName": "Splitter#15",
           "pinName": "O2"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#16",
+          "compName": "Splitter#15",
           "pinName": "O1"
         },
         "pin2": {
           "pinName": "QA1"
         },
         "pin2": {
-          "compName": "Splitter#16",
+          "compName": "Splitter#15",
           "pinName": "O0"
         },
         "name": "unnamedWire#38",
       },
       {
         "pin1": {
-          "compName": "Splitter#12",
-          "pinName": "O3"
+          "compName": "dff4#0",
+          "pinName": "Q"
         },
         "pin2": {
-          "compName": "dff4#0",
-          "pinName": "Q4"
+          "compName": "WireCrossPoint#7",
+          "pinName": ""
         },
         "name": "unnamedWire#57",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#12",
-          "pinName": "O2"
+          "compName": "Splitter#16",
+          "pinName": "I"
         },
         "pin2": {
           "compName": "dff4#0",
-          "pinName": "Q3"
+          "pinName": "D"
         },
         "name": "unnamedWire#58",
         "path": []
       },
       {
         "pin1": {
-          "compName": "dff4#0",
-          "pinName": "Q2"
+          "compName": "sel3_4#1",
+          "pinName": "Y4"
         },
         "pin2": {
-          "compName": "Splitter#12",
-          "pinName": "O1"
+          "compName": "Splitter#16",
+          "pinName": "O3"
         },
         "name": "unnamedWire#59",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#12",
-          "pinName": "O0"
+          "compName": "sel3_4#1",
+          "pinName": "Y3"
         },
         "pin2": {
-          "compName": "dff4#0",
-          "pinName": "Q1"
+          "compName": "Splitter#16",
+          "pinName": "O2"
         },
         "name": "unnamedWire#60",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#12",
-          "pinName": "I"
+          "compName": "sel3_4#1",
+          "pinName": "Y2"
         },
         "pin2": {
-          "compName": "WireCrossPoint#7",
-          "pinName": ""
+          "compName": "Splitter#16",
+          "pinName": "O1"
         },
         "name": "unnamedWire#61",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#14",
+          "compName": "Splitter#13",
           "pinName": "O2"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#14",
+          "compName": "Splitter#13",
           "pinName": "O1"
         },
         "pin2": {
           "pinName": ""
         },
         "pin2": {
-          "compName": "Splitter#14",
+          "compName": "Splitter#13",
           "pinName": "I"
         },
         "name": "unnamedWire#67",
             "y": 1090.0
           },
           {
-            "x": 255.0,
+            "x": 260.0,
             "y": 1090.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#15",
+          "compName": "Splitter#14",
           "pinName": "O2"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#13",
+          "compName": "Splitter#12",
           "pinName": "I"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#13",
+          "compName": "Splitter#12",
           "pinName": "O0"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "Splitter#14",
+          "compName": "Splitter#13",
           "pinName": "O3"
         },
         "pin2": {
       },
       {
         "pin1": {
-          "compName": "sel3_4#1",
-          "pinName": "Y1"
-        },
-        "pin2": {
-          "compName": "dff4#0",
-          "pinName": "D1"
-        },
-        "name": "unnamedWire#79",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "sel3_4#1",
-          "pinName": "Y2"
-        },
-        "pin2": {
-          "compName": "dff4#0",
-          "pinName": "D2"
-        },
-        "name": "unnamedWire#80",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "sel3_4#1",
-          "pinName": "Y3"
+          "compName": "Splitter#16",
+          "pinName": "O0"
         },
         "pin2": {
-          "compName": "dff4#0",
-          "pinName": "D3"
-        },
-        "name": "unnamedWire#81",
-        "path": []
-      },
-      {
-        "pin1": {
           "compName": "sel3_4#1",
-          "pinName": "Y4"
-        },
-        "pin2": {
-          "compName": "dff4#0",
-          "pinName": "D4"
+          "pinName": "Y1"
         },
-        "name": "unnamedWire#82",
+        "name": "unnamedWire#79",
         "path": []
       },
       {
           "compName": "_submodelinterface",
           "pinName": "Cn+4"
         },
-        "name": "unnamedWire#83",
+        "name": "unnamedWire#80",
         "path": [
           {
             "x": 615.0,
           "compName": "_submodelinterface",
           "pinName": "OVR"
         },
-        "name": "unnamedWire#84",
+        "name": "unnamedWire#81",
         "path": [
           {
             "x": 610.0,
           "compName": "TriStateBuffer#3",
           "pinName": "IN"
         },
-        "name": "unnamedWire#85",
+        "name": "unnamedWire#82",
         "path": [
           {
             "x": 365.0,
           "compName": "or4#0",
           "pinName": "A1"
         },
-        "name": "unnamedWire#86",
+        "name": "unnamedWire#83",
         "path": []
       },
       {
           "compName": "WireCrossPoint#11",
           "pinName": ""
         },
-        "name": "unnamedWire#87",
+        "name": "unnamedWire#84",
         "path": []
       },
       {
           "compName": "TriStateBuffer#3",
           "pinName": "EN"
         },
-        "name": "unnamedWire#88",
+        "name": "unnamedWire#85",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "C4"
         },
-        "name": "unnamedWire#89",
+        "name": "unnamedWire#86",
         "path": [
           {
             "x": 435.0,
           "compName": "_submodelinterface",
           "pinName": "RAMn+3"
         },
-        "name": "unnamedWire#90",
+        "name": "unnamedWire#87",
         "path": [
           {
             "x": 455.0,
           "compName": "or4#0",
           "pinName": "A2"
         },
-        "name": "unnamedWire#91",
+        "name": "unnamedWire#88",
         "path": []
       },
       {
           "compName": "or4#0",
           "pinName": "A3"
         },
-        "name": "unnamedWire#92",
+        "name": "unnamedWire#89",
         "path": []
       },
       {
           "compName": "or4#0",
           "pinName": "A4"
         },
-        "name": "unnamedWire#93",
+        "name": "unnamedWire#90",
         "path": []
       },
       {
           "compName": "Splitter#4",
           "pinName": "I"
         },
-        "name": "unnamedWire#94",
+        "name": "unnamedWire#91",
         "path": []
       },
       {
           "compName": "WireCrossPoint#13",
           "pinName": ""
         },
-        "name": "unnamedWire#95",
+        "name": "unnamedWire#92",
         "path": []
       },
       {
           "compName": "WireCrossPoint#25",
           "pinName": ""
         },
-        "name": "unnamedWire#96",
+        "name": "unnamedWire#93",
         "path": [
           {
             "x": 380.0,
           "compName": "WireCrossPoint#13",
           "pinName": ""
         },
-        "name": "unnamedWire#97",
+        "name": "unnamedWire#94",
         "path": [
           {
             "x": 105.0,
           "compName": "Splitter#5",
           "pinName": "I"
         },
-        "name": "unnamedWire#98",
+        "name": "unnamedWire#95",
         "path": []
       },
       {
           "compName": "Splitter#5",
           "pinName": "O2"
         },
-        "name": "unnamedWire#99",
+        "name": "unnamedWire#96",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "A3"
         },
-        "name": "unnamedWire#100",
+        "name": "unnamedWire#97",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "A2"
         },
-        "name": "unnamedWire#101",
+        "name": "unnamedWire#98",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "B1"
         },
-        "name": "unnamedWire#102",
+        "name": "unnamedWire#99",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "B2"
         },
-        "name": "unnamedWire#103",
+        "name": "unnamedWire#100",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "B3"
         },
-        "name": "unnamedWire#104",
+        "name": "unnamedWire#101",
         "path": []
       },
       {
           "compName": "WireCrossPoint#18",
           "pinName": ""
         },
-        "name": "unnamedWire#105",
+        "name": "unnamedWire#102",
         "path": [
           {
             "x": 100.0,
           "compName": "sel3_4#0",
           "pinName": "B4"
         },
-        "name": "unnamedWire#106",
+        "name": "unnamedWire#103",
         "path": []
       },
       {
           "compName": "WireCrossPoint#15",
           "pinName": ""
         },
-        "name": "unnamedWire#107",
+        "name": "unnamedWire#104",
         "path": []
       },
       {
           "compName": "WireCrossPoint#14",
           "pinName": ""
         },
-        "name": "unnamedWire#108",
+        "name": "unnamedWire#105",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "C3"
         },
-        "name": "unnamedWire#109",
+        "name": "unnamedWire#106",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "C2"
         },
-        "name": "unnamedWire#110",
+        "name": "unnamedWire#107",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "C1"
         },
-        "name": "unnamedWire#111",
+        "name": "unnamedWire#108",
         "path": []
       },
       {
           "compName": "WireCrossPoint#16",
           "pinName": ""
         },
-        "name": "unnamedWire#112",
+        "name": "unnamedWire#109",
         "path": []
       },
       {
           "compName": "Splitter#7",
           "pinName": "I"
         },
-        "name": "unnamedWire#113",
+        "name": "unnamedWire#110",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#13",
+          "compName": "Splitter#12",
           "pinName": "O1"
         },
         "pin2": {
           "compName": "sel3_4#1",
           "pinName": "A3"
         },
-        "name": "unnamedWire#114",
+        "name": "unnamedWire#111",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#13",
+          "compName": "Splitter#12",
           "pinName": "O2"
         },
         "pin2": {
           "compName": "sel3_4#1",
           "pinName": "A4"
         },
-        "name": "unnamedWire#115",
+        "name": "unnamedWire#112",
         "path": []
       },
       {
           "compName": "WireCrossPoint#16",
           "pinName": ""
         },
-        "name": "unnamedWire#116",
+        "name": "unnamedWire#113",
         "path": [
           {
             "x": 105.0,
           "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
           "pinName": "F"
         },
-        "name": "unnamedWire#117",
+        "name": "unnamedWire#114",
         "path": [
           {
             "x": 610.0,
           "compName": "TriStateBuffer#0",
           "pinName": "IN"
         },
-        "name": "unnamedWire#118",
+        "name": "unnamedWire#115",
         "path": []
       },
       {
           "compName": "ram4#0",
           "pinName": "D1"
         },
-        "name": "unnamedWire#119",
+        "name": "unnamedWire#116",
         "path": [
           {
             "x": 195.0,
           "compName": "ram4#0",
           "pinName": "D2"
         },
-        "name": "unnamedWire#120",
+        "name": "unnamedWire#117",
         "path": [
           {
             "x": 200.0,
           "compName": "ram4#0",
           "pinName": "D3"
         },
-        "name": "unnamedWire#121",
+        "name": "unnamedWire#118",
         "path": [
           {
             "x": 205.0,
           "compName": "ram4#0",
           "pinName": "D4"
         },
-        "name": "unnamedWire#122",
+        "name": "unnamedWire#119",
         "path": [
           {
             "x": 210.0,
           "compName": "and#0",
           "pinName": "A"
         },
-        "name": "unnamedWire#123",
+        "name": "unnamedWire#120",
         "path": []
       },
       {
           "compName": "and#0",
           "pinName": "B"
         },
-        "name": "unnamedWire#124"
+        "name": "unnamedWire#121"
       },
       {
         "pin1": {
           "compName": "ram4#0",
           "pinName": "WE"
         },
-        "name": "unnamedWire#125",
+        "name": "unnamedWire#122",
         "path": [
           {
             "x": 630.0,
           "compName": "dff4#0",
           "pinName": "WE"
         },
-        "name": "unnamedWire#126",
+        "name": "unnamedWire#123",
         "path": [
           {
             "x": 450.0,
             "y": 245.0
           },
           {
-            "x": 190.0,
+            "x": 215.0,
             "y": 245.0
           },
           {
-            "x": 190.0,
-            "y": 980.0
+            "x": 215.0,
+            "y": 935.0
           }
         ]
       },
           "compName": "TriStateBuffer#2",
           "pinName": "IN"
         },
-        "name": "unnamedWire#127",
+        "name": "unnamedWire#124",
         "path": []
       },
       {
           "compName": "WireCrossPoint#17",
           "pinName": ""
         },
-        "name": "unnamedWire#128",
+        "name": "unnamedWire#125",
         "path": []
       },
       {
           "compName": "NandGate#1",
           "pinName": "A"
         },
-        "name": "unnamedWire#129",
+        "name": "unnamedWire#126",
         "path": [
           {
             "x": 415.0,
           "compName": "NandGate#1",
           "pinName": "B"
         },
-        "name": "unnamedWire#130",
+        "name": "unnamedWire#127",
         "path": [
           {
             "x": 415.0,
           "compName": "_submodelinterface",
           "pinName": "F\u003d0"
         },
-        "name": "unnamedWire#131",
+        "name": "unnamedWire#128",
         "path": [
           {
             "x": 445.0,
           "compName": "TriStateBuffer#0",
           "pinName": "OUT"
         },
-        "name": "unnamedWire#132",
+        "name": "unnamedWire#129",
         "path": [
           {
             "x": 100.0,
           "compName": "Splitter#11",
           "pinName": "I"
         },
-        "name": "unnamedWire#133",
+        "name": "unnamedWire#130",
         "path": []
       },
       {
           "compName": "sel3_4#0",
           "pinName": "A1"
         },
-        "name": "unnamedWire#134",
+        "name": "unnamedWire#131",
         "path": [
           {
             "x": 100.0,
           "compName": "TriStateBuffer#1",
           "pinName": "OUT"
         },
-        "name": "unnamedWire#135",
+        "name": "unnamedWire#132",
         "path": [
           {
             "x": 100.0,
           "compName": "WireCrossPoint#5",
           "pinName": ""
         },
-        "name": "unnamedWire#136",
+        "name": "unnamedWire#133",
         "path": []
       },
       {
           "compName": "TriStateBuffer#1",
           "pinName": "EN"
         },
-        "name": "unnamedWire#137",
+        "name": "unnamedWire#134",
         "path": [
           {
             "x": 395.0,
           "compName": "TriStateBuffer#0",
           "pinName": "EN"
         },
-        "name": "unnamedWire#138",
+        "name": "unnamedWire#135",
         "path": []
       },
       {
           "compName": "WireCrossPoint#20",
           "pinName": ""
         },
-        "name": "unnamedWire#139",
+        "name": "unnamedWire#136",
         "path": []
       },
       {
           "compName": "WireCrossPoint#3",
           "pinName": ""
         },
-        "name": "unnamedWire#140",
+        "name": "unnamedWire#137",
         "path": []
       },
       {
           "compName": "WireCrossPoint#23",
           "pinName": ""
         },
-        "name": "unnamedWire#141",
+        "name": "unnamedWire#138",
         "path": []
       },
       {
           "compName": "WireCrossPoint#23",
           "pinName": ""
         },
-        "name": "unnamedWire#142",
+        "name": "unnamedWire#139",
         "path": []
       },
       {
           "compName": "WireCrossPoint#24",
           "pinName": ""
         },
-        "name": "unnamedWire#143",
+        "name": "unnamedWire#140",
         "path": [
           {
             "x": 145.0,
           "compName": "TriStateBuffer#2",
           "pinName": "OUT"
         },
-        "name": "unnamedWire#144",
+        "name": "unnamedWire#141",
         "path": [
           {
             "x": 425.0,
           "compName": "_submodelinterface",
           "pinName": "Qn+3"
         },
-        "name": "unnamedWire#145",
+        "name": "unnamedWire#142",
         "path": [
           {
             "x": 425.0,
           "compName": "WireCrossPoint#25",
           "pinName": ""
         },
-        "name": "unnamedWire#146",
+        "name": "unnamedWire#143",
         "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#15",
+          "compName": "Splitter#14",
           "pinName": "I"
         },
         "pin2": {
           "compName": "Am2901DestDecode#0",
           "pinName": "I"
         },
-        "name": "unnamedWire#147",
+        "name": "unnamedWire#144",
         "path": [
           {
             "x": 835.0,
       },
       {
         "pin1": {
-          "compName": "Splitter#16",
+          "compName": "Splitter#15",
           "pinName": "I"
         },
         "pin2": {
           "compName": "dlatch4#0",
           "pinName": "D"
         },
-        "name": "unnamedWire#148",
+        "name": "unnamedWire#145",
         "path": []
       }
     ],
index cb73c0e..b7b85a9 100644 (file)
@@ -1,92 +1,38 @@
 {
   "width": 35.0,
-  "height": 60.0,
+  "height": 30.0,
   "interfacePins": [
     {
       "location": {
         "x": 0.0,
-        "y": 45.0
+        "y": 25.0
       },
       "name": "C",
       "logicWidth": 1,
       "usage": "INPUT"
     },
-    {
-      "location": {
-        "x": 0.0,
-        "y": 5.0
-      },
-      "name": "D1",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
     {
       "location": {
         "x": 0.0,
         "y": 15.0
       },
-      "name": "D2",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 0.0,
-        "y": 25.0
-      },
-      "name": "D3",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 0.0,
-        "y": 35.0
-      },
-      "name": "D4",
-      "logicWidth": 1,
+      "name": "D",
+      "logicWidth": 4,
       "usage": "INPUT"
     },
-    {
-      "location": {
-        "x": 35.0,
-        "y": 5.0
-      },
-      "name": "Q1",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
     {
       "location": {
         "x": 35.0,
         "y": 15.0
       },
-      "name": "Q2",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
-    {
-      "location": {
-        "x": 35.0,
-        "y": 25.0
-      },
-      "name": "Q3",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
-    {
-      "location": {
-        "x": 35.0,
-        "y": 35.0
-      },
-      "name": "Q4",
-      "logicWidth": 1,
+      "name": "Q",
+      "logicWidth": 4,
       "usage": "OUTPUT"
     },
     {
       "location": {
         "x": 0.0,
-        "y": 55.0
+        "y": 5.0
       },
       "name": "WE",
       "logicWidth": 1,
         "id": "Splitter",
         "name": "Splitter#0",
         "pos": {
-          "x": 140.0,
-          "y": 200.0
-        },
-        "params": {
-          "logicWidth": 4,
-          "orientation": "RIGHT"
-        }
-      },
-      {
-        "id": "Splitter",
-        "name": "Splitter#1",
-        "pos": {
-          "x": 25.0,
-          "y": 105.0
+          "x": 155.0,
+          "y": 60.0
         },
         "params": {
           "logicWidth": 4,
       },
       {
         "id": "Splitter",
-        "name": "Splitter#2",
+        "name": "Splitter#1",
         "pos": {
-          "x": 75.0,
-          "y": 100.0
+          "x": 70.0,
+          "y": 25.0
         },
         "params": {
           "logicWidth": 4,
         "id": "WireCrossPoint",
         "name": "WireCrossPoint#0",
         "pos": {
-          "x": 109.0,
-          "y": 184.0
+          "x": 99.0,
+          "y": 109.0
         },
         "params": 1
       },
         "id": "WireCrossPoint",
         "name": "WireCrossPoint#1",
         "pos": {
-          "x": 109.0,
-          "y": 84.0
+          "x": 99.0,
+          "y": 59.0
         },
         "params": 1
       },
         "id": "WireCrossPoint",
         "name": "WireCrossPoint#2",
         "pos": {
-          "x": 109.0,
-          "y": 134.0
+          "x": 99.0,
+          "y": 84.0
         },
         "params": 1
       },
         "name": "WireCrossPoint#3",
         "pos": {
           "x": 169.0,
-          "y": 24.0
-        },
-        "params": 1
-      },
-      {
-        "id": "WireCrossPoint",
-        "name": "WireCrossPoint#4",
-        "pos": {
-          "x": 164.0,
           "y": 74.0
         },
-        "params": 1
-      },
-      {
-        "id": "WireCrossPoint",
-        "name": "WireCrossPoint#5",
-        "pos": {
-          "x": 159.0,
-          "y": 124.0
-        },
-        "params": 1
-      },
-      {
-        "id": "WireCrossPoint",
-        "name": "WireCrossPoint#6",
-        "pos": {
-          "x": 154.0,
-          "y": 174.0
-        },
-        "params": 1
+        "params": 4
       },
       {
         "id": "dff",
         "name": "dff#0",
         "pos": {
-          "x": 115.0,
+          "x": 105.0,
           "y": 20.0
         }
       },
         "id": "dff",
         "name": "dff#1",
         "pos": {
-          "x": 115.0,
-          "y": 70.0
+          "x": 105.0,
+          "y": 45.0
         }
       },
       {
         "id": "dff",
         "name": "dff#2",
         "pos": {
-          "x": 115.0,
-          "y": 120.0
+          "x": 105.0,
+          "y": 70.0
         }
       },
       {
         "id": "dff",
         "name": "dff#3",
         "pos": {
-          "x": 115.0,
-          "y": 170.0
+          "x": 105.0,
+          "y": 95.0
         }
       },
       {
         "id": "mux1_4",
         "name": "mux1_4#0",
         "pos": {
-          "x": 40.0,
-          "y": 5.0
+          "x": 15.0,
+          "y": 20.0
         }
       }
     ],
         "name": "unnamedWire#0",
         "path": [
           {
-            "x": 110.0,
+            "x": 100.0,
             "y": 35.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#2",
-          "pinName": "O0"
+          "compName": "Splitter#1",
+          "pinName": "O3"
         },
         "pin2": {
           "compName": "dff#0",
           "pinName": "D"
         },
         "name": "unnamedWire#1",
-        "path": [
-          {
-            "x": 105.0,
-            "y": 130.0
-          },
-          {
-            "x": 105.0,
-            "y": 25.0
-          }
-        ]
+        "path": []
       },
       {
         "pin1": {
-          "compName": "Splitter#2",
-          "pinName": "O1"
+          "compName": "Splitter#1",
+          "pinName": "O2"
         },
         "pin2": {
           "compName": "dff#1",
         "name": "unnamedWire#2",
         "path": [
           {
-            "x": 100.0,
-            "y": 120.0
+            "x": 95.0,
+            "y": 35.0
           },
           {
-            "x": 100.0,
-            "y": 75.0
+            "x": 95.0,
+            "y": 50.0
           }
         ]
       },
         "name": "unnamedWire#8",
         "path": [
           {
-            "x": 20.0,
-            "y": 225.0
-          },
-          {
-            "x": 20.0,
-            "y": 185.0
+            "x": 100.0,
+            "y": 125.0
           }
         ]
       },
           "pinName": "S0"
         },
         "name": "unnamedWire#9",
-        "path": [
-          {
-            "x": 45.0,
-            "y": 275.0
-          },
-          {
-            "x": 45.0,
-            "y": 95.0
-          },
-          {
-            "x": 30.0,
-            "y": 95.0
-          },
-          {
-            "x": 30.0,
-            "y": 10.0
-          }
-        ]
+        "path": []
       },
       {
         "pin1": {
           "compName": "_submodelinterface",
-          "pinName": "D1"
+          "pinName": "D"
         },
         "pin2": {
-          "compName": "Splitter#1",
-          "pinName": "O0"
+          "compName": "mux1_4#0",
+          "pinName": "I1"
         },
         "name": "unnamedWire#10",
         "path": [
           {
-            "x": 20.0,
-            "y": 25.0
-          },
-          {
-            "x": 20.0,
-            "y": 135.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D2"
-        },
-        "pin2": {
-          "compName": "Splitter#1",
-          "pinName": "O1"
-        },
-        "name": "unnamedWire#11",
-        "path": [
-          {
-            "x": 15.0,
+            "x": 5.0,
             "y": 75.0
           },
           {
-            "x": 15.0,
-            "y": 125.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D3"
-        },
-        "pin2": {
-          "compName": "Splitter#1",
-          "pinName": "O2"
-        },
-        "name": "unnamedWire#12",
-        "path": [
-          {
-            "x": 10.0,
-            "y": 125.0
-          },
-          {
-            "x": 10.0,
-            "y": 115.0
+            "x": 5.0,
+            "y": 70.0
           }
         ]
       },
-      {
-        "pin1": {
-          "compName": "dff#0",
-          "pinName": "Q"
-        },
-        "pin2": {
-          "compName": "WireCrossPoint#3",
-          "pinName": ""
-        },
-        "name": "unnamedWire#13",
-        "path": []
-      },
       {
         "pin1": {
           "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Q1"
-        },
-        "name": "unnamedWire#14",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "Q2"
-        },
-        "pin2": {
-          "compName": "WireCrossPoint#4",
-          "pinName": ""
+          "compName": "Splitter#0",
+          "pinName": "I"
         },
-        "name": "unnamedWire#15",
+        "name": "unnamedWire#11",
         "path": []
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#4",
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compName": "dff#1",
-          "pinName": "Q"
-        },
-        "name": "unnamedWire#16",
-        "path": []
-      },
-      {
-        "pin1": {
           "compName": "_submodelinterface",
-          "pinName": "D4"
-        },
-        "pin2": {
-          "compName": "Splitter#1",
-          "pinName": "O3"
-        },
-        "name": "unnamedWire#17",
-        "path": [
-          {
-            "x": 5.0,
-            "y": 175.0
-          },
-          {
-            "x": 5.0,
-            "y": 105.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "dff#2",
           "pinName": "Q"
         },
-        "pin2": {
-          "compName": "WireCrossPoint#5",
-          "pinName": ""
-        },
-        "name": "unnamedWire#18",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "WireCrossPoint#5",
-          "pinName": ""
-        },
-        "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Q3"
-        },
-        "name": "unnamedWire#19",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "WireCrossPoint#6",
-          "pinName": ""
-        },
-        "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Q4"
-        },
-        "name": "unnamedWire#20",
+        "name": "unnamedWire#12",
         "path": []
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#6",
+          "compName": "WireCrossPoint#3",
           "pinName": ""
         },
         "pin2": {
-          "compName": "dff#3",
-          "pinName": "Q"
-        },
-        "name": "unnamedWire#21",
-        "path": []
-      },
-      {
-        "pin1": {
-          "compName": "Splitter#2",
-          "pinName": "O2"
-        },
-        "pin2": {
-          "compName": "dff#2",
-          "pinName": "D"
+          "compName": "mux1_4#0",
+          "pinName": "I0"
         },
-        "name": "unnamedWire#22",
+        "name": "unnamedWire#13",
         "path": [
           {
-            "x": 95.0,
-            "y": 110.0
+            "x": 170.0,
+            "y": 140.0
           },
           {
-            "x": 95.0,
-            "y": 125.0
+            "x": 10.0,
+            "y": 140.0
+          },
+          {
+            "x": 10.0,
+            "y": 40.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#2",
-          "pinName": "O3"
+          "compName": "dff#2",
+          "pinName": "D"
         },
         "pin2": {
-          "compName": "dff#3",
-          "pinName": "D"
+          "compName": "Splitter#1",
+          "pinName": "O1"
         },
-        "name": "unnamedWire#23",
+        "name": "unnamedWire#14",
         "path": [
           {
             "x": 90.0,
-            "y": 100.0
+            "y": 75.0
           },
           {
             "x": 90.0,
-            "y": 175.0
+            "y": 45.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#0",
+          "compName": "Splitter#1",
           "pinName": "O0"
         },
         "pin2": {
-          "compName": "WireCrossPoint#3",
-          "pinName": ""
+          "compName": "dff#3",
+          "pinName": "D"
         },
-        "name": "unnamedWire#24",
+        "name": "unnamedWire#15",
         "path": [
           {
-            "x": 170.0,
-            "y": 230.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "WireCrossPoint#4",
-          "pinName": ""
-        },
-        "pin2": {
-          "compName": "Splitter#0",
-          "pinName": "O1"
-        },
-        "name": "unnamedWire#25",
-        "path": [
+            "x": 85.0,
+            "y": 55.0
+          },
           {
-            "x": 165.0,
-            "y": 220.0
+            "x": 85.0,
+            "y": 100.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "WireCrossPoint#5",
-          "pinName": ""
+          "compName": "dff#0",
+          "pinName": "Q"
         },
         "pin2": {
           "compName": "Splitter#0",
-          "pinName": "O2"
+          "pinName": "O3"
         },
-        "name": "unnamedWire#26",
+        "name": "unnamedWire#16",
         "path": [
           {
-            "x": 160.0,
-            "y": 210.0
+            "x": 150.0,
+            "y": 25.0
+          },
+          {
+            "x": 150.0,
+            "y": 60.0
           }
         ]
       },
       {
         "pin1": {
           "compName": "Splitter#0",
-          "pinName": "O3"
+          "pinName": "O2"
         },
         "pin2": {
-          "compName": "WireCrossPoint#6",
-          "pinName": ""
+          "compName": "dff#1",
+          "pinName": "Q"
         },
-        "name": "unnamedWire#27",
+        "name": "unnamedWire#17",
         "path": [
           {
-            "x": 155.0,
-            "y": 200.0
+            "x": 145.0,
+            "y": 70.0
+          },
+          {
+            "x": 145.0,
+            "y": 50.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#0",
-          "pinName": "I"
+          "compName": "dff#2",
+          "pinName": "Q"
         },
         "pin2": {
-          "compName": "mux1_4#0",
-          "pinName": "I0"
+          "compName": "Splitter#0",
+          "pinName": "O1"
         },
-        "name": "unnamedWire#28",
+        "name": "unnamedWire#18",
         "path": [
           {
-            "x": 50.0,
-            "y": 215.0
-          },
-          {
-            "x": 50.0,
-            "y": 90.0
-          },
-          {
-            "x": 35.0,
-            "y": 90.0
+            "x": 145.0,
+            "y": 75.0
           },
           {
-            "x": 35.0,
-            "y": 25.0
+            "x": 145.0,
+            "y": 80.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#1",
-          "pinName": "I"
+          "compName": "Splitter#0",
+          "pinName": "O0"
         },
         "pin2": {
-          "compName": "mux1_4#0",
-          "pinName": "I1"
+          "compName": "dff#3",
+          "pinName": "Q"
         },
-        "name": "unnamedWire#29",
+        "name": "unnamedWire#19",
         "path": [
           {
-            "x": 40.0,
-            "y": 120.0
-          },
-          {
-            "x": 40.0,
-            "y": 100.0
+            "x": 145.0,
+            "y": 90.0
           },
           {
-            "x": 25.0,
+            "x": 145.0,
             "y": 100.0
-          },
-          {
-            "x": 25.0,
-            "y": 55.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "Splitter#2",
+          "compName": "Splitter#1",
           "pinName": "I"
         },
         "pin2": {
           "compName": "mux1_4#0",
           "pinName": "Y"
         },
-        "name": "unnamedWire#30",
-        "path": [
-          {
-            "x": 70.0,
-            "y": 115.0
-          },
-          {
-            "x": 70.0,
-            "y": 90.0
-          },
-          {
-            "x": 95.0,
-            "y": 90.0
-          },
-          {
-            "x": 95.0,
-            "y": 25.0
-          }
-        ]
+        "name": "unnamedWire#20",
+        "path": []
       }
     ],
     "version": "0.1.1"
       "q1": {
         "id": "delegating",
         "params": {
-          "delegateTarget": "dff#0",
+          "delegateTarget": "dff#3",
           "subStateID": "q"
         }
       },
       "q2": {
         "id": "delegating",
         "params": {
-          "delegateTarget": "dff#1",
+          "delegateTarget": "dff#2",
           "subStateID": "q"
         }
       },
       "q3": {
         "id": "delegating",
         "params": {
-          "delegateTarget": "dff#2",
+          "delegateTarget": "dff#1",
           "subStateID": "q"
         }
       },
       "q4": {
         "id": "delegating",
         "params": {
-          "delegateTarget": "dff#3",
+          "delegateTarget": "dff#0",
           "subStateID": "q"
         }
       }