Unified Am2901 I- and Y-inputs
authorFabian Stemmler <stemmler@in.tum.de>
Thu, 12 Sep 2019 12:04:24 +0000 (14:04 +0200)
committerFabian Stemmler <stemmler@in.tum.de>
Thu, 12 Sep 2019 12:04:24 +0000 (14:04 +0200)
net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/am2901/Am2901.json

index 9ef2749..61938dd 100644 (file)
       "logicWidth": 1,
       "usage": "OUTPUT"
     },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 100.0
-      },
-      "name": "I0",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 95.0
-      },
-      "name": "I1",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 90.0
-      },
-      "name": "I2",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 85.0
-      },
-      "name": "I3",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
     {
       "location": {
         "x": 90.0,
         "y": 80.0
       },
-      "name": "I4",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 75.0
-      },
-      "name": "I5",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 70.0
-      },
-      "name": "I6",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 65.0
-      },
-      "name": "I7",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 90.0,
-        "y": 60.0
-      },
-      "name": "I8",
-      "logicWidth": 1,
+      "name": "I",
+      "logicWidth": 9,
       "usage": "INPUT"
     },
     {
       "logicWidth": 1,
       "usage": "TRISTATE"
     },
-    {
-      "location": {
-        "x": 65.0,
-        "y": 125.0
-      },
-      "name": "Y1",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
-    {
-      "location": {
-        "x": 70.0,
-        "y": 125.0
-      },
-      "name": "Y2",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
     {
       "location": {
         "x": 75.0,
         "y": 125.0
       },
-      "name": "Y3",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
-    },
-    {
-      "location": {
-        "x": 80.0,
-        "y": 125.0
-      },
-      "name": "Y4",
-      "logicWidth": 1,
-      "usage": "OUTPUT"
+      "name": "Y",
+      "logicWidth": 4,
+      "usage": "INPUT"
     }
   ],
   "innerScale": 0.1,
         },
         "params": 1
       },
+      {
+        "id": "Splitter",
+        "name": "Splitter#0",
+        "pos": {
+          "x": 855.0,
+          "y": 760.0
+        },
+        "params": {
+          "logicWidth": 9,
+          "orientation": "LEFT"
+        }
+      },
+      {
+        "id": "Splitter",
+        "name": "Splitter#1",
+        "pos": {
+          "x": 735.0,
+          "y": 1235.0
+        },
+        "params": {
+          "logicWidth": 4,
+          "orientation": "UP"
+        }
+      },
       {
         "id": "TriStateBuffer",
         "name": "TriStateBuffer#0",
     "wires": [
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I8"
+          "compName": "Splitter#0",
+          "pinName": "O6"
         },
         "pin2": {
           "compName": "Am2901DestDecode#0",
-          "pinName": "I8"
+          "pinName": "I6"
         },
         "name": "unnamedWire#0",
         "path": [
           {
-            "x": 835.0,
-            "y": 600.0
+            "x": 845.0,
+            "y": 780.0
           },
           {
-            "x": 835.0,
-            "y": 315.0
+            "x": 845.0,
+            "y": 305.0
           },
           {
-            "x": 365.0,
-            "y": 315.0
+            "x": 375.0,
+            "y": 305.0
           },
           {
-            "x": 365.0,
-            "y": 165.0
+            "x": 375.0,
+            "y": 185.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I7"
+          "compName": "Splitter#0",
+          "pinName": "O5"
         },
         "pin2": {
-          "compName": "Am2901DestDecode#0",
-          "pinName": "I7"
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "I5"
         },
         "name": "unnamedWire#1",
         "path": [
           {
-            "x": 840.0,
-            "y": 650.0
-          },
-          {
-            "x": 840.0,
-            "y": 310.0
+            "x": 805.0,
+            "y": 790.0
           },
           {
-            "x": 370.0,
-            "y": 310.0
+            "x": 805.0,
+            "y": 615.0
           },
           {
-            "x": 370.0,
-            "y": 175.0
+            "x": 585.0,
+            "y": 615.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "mux1_4#0",
-          "pinName": "Y1"
+          "compName": "Splitter#0",
+          "pinName": "O8"
         },
         "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Y1"
+          "compName": "Am2901DestDecode#0",
+          "pinName": "I8"
         },
-        "name": "unnamedWire#149",
+        "name": "unnamedWire#15",
         "path": [
           {
-            "x": 550.0,
-            "y": 355.0
-          },
-          {
-            "x": 550.0,
-            "y": 525.0
+            "x": 835.0,
+            "y": 760.0
           },
           {
-            "x": 725.0,
-            "y": 525.0
+            "x": 835.0,
+            "y": 315.0
           },
           {
-            "x": 735.0,
-            "y": 1240.0
+            "x": 365.0,
+            "y": 315.0
           },
           {
-            "x": 650.0,
-            "y": 1240.0
+            "x": 365.0,
+            "y": 165.0
           }
         ]
       },
       {
         "pin1": {
-          "compName": "mux1_4#0",
-          "pinName": "Y2"
-        },
-        "pin2": {
           "compName": "_submodelinterface",
-          "pinName": "Y2"
-        },
-        "name": "unnamedWire#150",
-        "path": [
-          {
-            "x": 555.0,
-            "y": 365.0
-          },
-          {
-            "x": 555.0,
-            "y": 520.0
-          },
-          {
-            "x": 730.0,
-            "y": 520.0
-          },
-          {
-            "x": 740.0,
-            "y": 1245.0
-          },
-          {
-            "x": 700.0,
-            "y": 1245.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "mux1_4#0",
-          "pinName": "Y3"
+          "pinName": "Y"
         },
         "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Y3"
+          "compName": "Splitter#1",
+          "pinName": "I"
         },
         "name": "unnamedWire#151",
-        "path": [
-          {
-            "x": 560.0,
-            "y": 375.0
-          },
-          {
-            "x": 560.0,
-            "y": 515.0
-          },
-          {
-            "x": 735.0,
-            "y": 515.0
-          },
-          {
-            "x": 745.0,
-            "y": 1245.0
-          },
-          {
-            "x": 750.0,
-            "y": 1245.0
-          }
-        ]
+        "path": []
       },
       {
         "pin1": {
           "compName": "mux1_4#0",
-          "pinName": "Y4"
+          "pinName": "Y2"
         },
         "pin2": {
-          "compName": "_submodelinterface",
-          "pinName": "Y4"
+          "compName": "Splitter#1",
+          "pinName": "O2"
         },
         "name": "unnamedWire#152",
         "path": [
           {
-            "x": 565.0,
-            "y": 385.0
+            "x": 555.0,
+            "y": 365.0
           },
           {
-            "x": 565.0,
-            "y": 510.0
+            "x": 555.0,
+            "y": 520.0
           },
           {
             "x": 740.0,
-            "y": 510.0
+            "y": 520.0
           },
           {
-            "x": 750.0,
-            "y": 1240.0
+            "x": 740.0,
+            "y": 1230.0
           },
           {
-            "x": 800.0,
-            "y": 1240.0
+            "x": 745.0,
+            "y": 1230.0
           }
         ]
       },
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "Splitter#1",
+          "pinName": "O0"
+        },
+        "pin2": {
+          "compName": "mux1_4#0",
+          "pinName": "Y4"
+        },
+        "name": "unnamedWire#157",
+        "path": [
+          {
+            "x": 765.0,
+            "y": 1220.0
+          },
+          {
+            "x": 750.0,
+            "y": 1220.0
+          },
+          {
+            "x": 750.0,
+            "y": 510.0
+          },
+          {
+            "x": 565.0,
+            "y": 510.0
+          },
+          {
+            "x": 565.0,
+            "y": 385.0
+          }
+        ]
+      },
       {
         "pin1": {
           "compName": "WireCrossPoint#40",
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "mux1_4#0",
+          "pinName": "Y1"
+        },
+        "pin2": {
+          "compName": "Splitter#1",
+          "pinName": "O3"
+        },
+        "name": "unnamedWire#163",
+        "path": [
+          {
+            "x": 550.0,
+            "y": 355.0
+          },
+          {
+            "x": 550.0,
+            "y": 525.0
+          },
+          {
+            "x": 735.0,
+            "y": 525.0
+          }
+        ]
+      },
       {
         "pin1": {
           "compName": "WireCrossPoint#42",
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I6"
+          "compName": "Splitter#0",
+          "pinName": "O4"
         },
         "pin2": {
-          "compName": "Am2901DestDecode#0",
-          "pinName": "I6"
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "I4"
         },
         "name": "unnamedWire#2",
         "path": [
           {
-            "x": 845.0,
-            "y": 700.0
-          },
-          {
-            "x": 845.0,
-            "y": 305.0
+            "x": 800.0,
+            "y": 800.0
           },
           {
-            "x": 375.0,
-            "y": 305.0
+            "x": 800.0,
+            "y": 610.0
           },
           {
-            "x": 375.0,
-            "y": 185.0
+            "x": 575.0,
+            "y": 610.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I5"
+          "compName": "Splitter#0",
+          "pinName": "O3"
         },
         "pin2": {
           "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I5"
+          "pinName": "I3"
         },
         "name": "unnamedWire#3",
         "path": [
           {
-            "x": 805.0,
-            "y": 750.0
+            "x": 795.0,
+            "y": 810.0
           },
           {
-            "x": 805.0,
-            "y": 615.0
+            "x": 795.0,
+            "y": 605.0
           },
           {
-            "x": 585.0,
-            "y": 615.0
+            "x": 565.0,
+            "y": 605.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I4"
+          "compName": "Splitter#0",
+          "pinName": "O2"
         },
         "pin2": {
           "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I4"
+          "pinName": "I2"
         },
         "name": "unnamedWire#4",
         "path": [
           {
-            "x": 800.0,
-            "y": 800.0
+            "x": 790.0,
+            "y": 820.0
           },
           {
-            "x": 800.0,
-            "y": 610.0
+            "x": 790.0,
+            "y": 600.0
           },
           {
-            "x": 575.0,
-            "y": 610.0
+            "x": 555.0,
+            "y": 600.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I3"
+          "compName": "Splitter#0",
+          "pinName": "O1"
         },
         "pin2": {
           "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I3"
+          "pinName": "I1"
         },
         "name": "unnamedWire#5",
         "path": [
           {
-            "x": 795.0,
-            "y": 850.0
+            "x": 785.0,
+            "y": 830.0
           },
           {
-            "x": 795.0,
-            "y": 605.0
+            "x": 785.0,
+            "y": 595.0
           },
           {
-            "x": 565.0,
-            "y": 605.0
+            "x": 545.0,
+            "y": 595.0
           }
         ]
       },
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I2"
+          "compName": "Splitter#0",
+          "pinName": "O0"
         },
         "pin2": {
           "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I2"
+          "pinName": "I0"
         },
         "name": "unnamedWire#6",
         "path": [
           {
-            "x": 790.0,
-            "y": 900.0
+            "x": 780.0,
+            "y": 840.0
           },
           {
-            "x": 790.0,
-            "y": 600.0
+            "x": 780.0,
+            "y": 590.0
           },
           {
-            "x": 555.0,
-            "y": 600.0
+            "x": 535.0,
+            "y": 590.0
           }
         ]
       },
       {
         "pin1": {
           "compName": "_submodelinterface",
-          "pinName": "I1"
+          "pinName": "I"
         },
         "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I1"
+          "compName": "Splitter#0",
+          "pinName": "I"
         },
         "name": "unnamedWire#7",
-        "path": [
-          {
-            "x": 785.0,
-            "y": 950.0
-          },
-          {
-            "x": 785.0,
-            "y": 595.0
-          },
-          {
-            "x": 545.0,
-            "y": 595.0
-          }
-        ]
+        "path": []
       },
       {
         "pin1": {
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "Splitter#0",
+          "pinName": "O7"
+        },
+        "pin2": {
+          "compName": "Am2901DestDecode#0",
+          "pinName": "I7"
+        },
+        "name": "unnamedWire#77",
+        "path": [
+          {
+            "x": 840.0,
+            "y": 770.0
+          },
+          {
+            "x": 840.0,
+            "y": 310.0
+          },
+          {
+            "x": 370.0,
+            "y": 310.0
+          },
+          {
+            "x": 370.0,
+            "y": 175.0
+          }
+        ]
+      },
       {
         "pin1": {
           "compName": "_submodelinterface",
       },
       {
         "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "I0"
+          "compName": "Splitter#1",
+          "pinName": "O1"
         },
         "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "I0"
+          "compName": "mux1_4#0",
+          "pinName": "Y3"
         },
         "name": "unnamedWire#8",
         "path": [
           {
-            "x": 780.0,
-            "y": 1000.0
+            "x": 755.0,
+            "y": 1225.0
           },
           {
-            "x": 780.0,
-            "y": 590.0
+            "x": 745.0,
+            "y": 1225.0
           },
           {
-            "x": 535.0,
-            "y": 590.0
+            "x": 745.0,
+            "y": 515.0
+          },
+          {
+            "x": 560.0,
+            "y": 515.0
+          },
+          {
+            "x": 560.0,
+            "y": 375.0
           }
         ]
       },