Unified D-input of the Am2901; fixed Y input bit order
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 12 Sep 2019 12:25:22 +0000 (14:25 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Thu, 12 Sep 2019 12:25:22 +0000 (14:25 +0200)
net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/am2901/Am2901.json

index 61938dd..bd5a844 100644 (file)
       "logicWidth": 1,
       "usage": "OUTPUT"
     },
-    {
-      "location": {
-        "x": 55.0,
-        "y": 0.0
-      },
-      "name": "D1",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
     {
       "location": {
         "x": 60.0,
         "y": 0.0
       },
-      "name": "D2",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 65.0,
-        "y": 0.0
-      },
-      "name": "D3",
-      "logicWidth": 1,
-      "usage": "INPUT"
-    },
-    {
-      "location": {
-        "x": 70.0,
-        "y": 0.0
-      },
-      "name": "D4",
-      "logicWidth": 1,
+      "name": "D",
+      "logicWidth": 4,
       "usage": "INPUT"
     },
     {
           "orientation": "UP"
         }
       },
+      {
+        "id": "Splitter",
+        "name": "Splitter#2",
+        "pos": {
+          "x": 485.0,
+          "y": 620.0
+        },
+        "params": {
+          "logicWidth": 4,
+          "orientation": "RIGHT"
+        }
+      },
       {
         "id": "TriStateBuffer",
         "name": "TriStateBuffer#0",
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "D4"
+        },
+        "pin2": {
+          "compName": "Splitter#2",
+          "pinName": "O0"
+        },
+        "name": "unnamedWire#149",
+        "path": [
+          {
+            "x": 500.0,
+            "y": 645.0
+          },
+          {
+            "x": 500.0,
+            "y": 650.0
+          }
+        ]
+      },
       {
         "pin1": {
           "compName": "Splitter#0",
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "Splitter#2",
+          "pinName": "O1"
+        },
+        "pin2": {
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "D3"
+        },
+        "name": "unnamedWire#150",
+        "path": []
+      },
       {
         "pin1": {
           "compName": "_submodelinterface",
       {
         "pin1": {
           "compName": "mux1_4#0",
-          "pinName": "Y2"
+          "pinName": "Y3"
         },
         "pin2": {
           "compName": "Splitter#1",
         "path": [
           {
             "x": 555.0,
-            "y": 365.0
+            "y": 375.0
           },
           {
             "x": 555.0,
         },
         "pin2": {
           "compName": "mux1_4#0",
-          "pinName": "Y4"
+          "pinName": "Y1"
         },
         "name": "unnamedWire#157",
         "path": [
           },
           {
             "x": 565.0,
-            "y": 385.0
+            "y": 355.0
           }
         ]
       },
       {
         "pin1": {
           "compName": "mux1_4#0",
-          "pinName": "Y1"
+          "pinName": "Y4"
         },
         "pin2": {
           "compName": "Splitter#1",
         "path": [
           {
             "x": 550.0,
-            "y": 355.0
+            "y": 385.0
           },
           {
             "x": 550.0,
           }
         ]
       },
+      {
+        "pin1": {
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "D2"
+        },
+        "pin2": {
+          "compName": "Splitter#2",
+          "pinName": "O2"
+        },
+        "name": "unnamedWire#175",
+        "path": [
+          {
+            "x": 500.0,
+            "y": 635.0
+          },
+          {
+            "x": 500.0,
+            "y": 630.0
+          }
+        ]
+      },
+      {
+        "pin1": {
+          "compName": "Splitter#2",
+          "pinName": "O3"
+        },
+        "pin2": {
+          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
+          "pinName": "D1"
+        },
+        "name": "unnamedWire#176",
+        "path": [
+          {
+            "x": 505.0,
+            "y": 620.0
+          },
+          {
+            "x": 505.0,
+            "y": 630.0
+          }
+        ]
+      },
+      {
+        "pin1": {
+          "compName": "_submodelinterface",
+          "pinName": "D"
+        },
+        "pin2": {
+          "compName": "Splitter#2",
+          "pinName": "I"
+        },
+        "name": "unnamedWire#177",
+        "path": [
+          {
+            "x": 600.0,
+            "y": 480.0
+          },
+          {
+            "x": 480.0,
+            "y": 480.0
+          },
+          {
+            "x": 480.0,
+            "y": 635.0
+          }
+        ]
+      },
       {
         "pin1": {
           "compName": "Am2901DestDecode#0",
           }
         ]
       },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D1"
-        },
-        "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "D1"
-        },
-        "name": "unnamedWire#44",
-        "path": [
-          {
-            "x": 550.0,
-            "y": 55.0
-          },
-          {
-            "x": 600.0,
-            "y": 55.0
-          },
-          {
-            "x": 600.0,
-            "y": 485.0
-          },
-          {
-            "x": 505.0,
-            "y": 485.0
-          },
-          {
-            "x": 505.0,
-            "y": 630.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D2"
-        },
-        "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "D2"
-        },
-        "name": "unnamedWire#45",
-        "path": [
-          {
-            "x": 600.0,
-            "y": 50.0
-          },
-          {
-            "x": 595.0,
-            "y": 50.0
-          },
-          {
-            "x": 595.0,
-            "y": 480.0
-          },
-          {
-            "x": 500.0,
-            "y": 480.0
-          },
-          {
-            "x": 500.0,
-            "y": 635.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D3"
-        },
-        "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "D3"
-        },
-        "name": "unnamedWire#46",
-        "path": [
-          {
-            "x": 650.0,
-            "y": 45.0
-          },
-          {
-            "x": 590.0,
-            "y": 45.0
-          },
-          {
-            "x": 590.0,
-            "y": 475.0
-          },
-          {
-            "x": 495.0,
-            "y": 475.0
-          },
-          {
-            "x": 495.0,
-            "y": 640.0
-          }
-        ]
-      },
-      {
-        "pin1": {
-          "compName": "_submodelinterface",
-          "pinName": "D4"
-        },
-        "pin2": {
-          "compName": "Am2901ALUInclSourceDecodeInclFunctionDecode#0",
-          "pinName": "D4"
-        },
-        "name": "unnamedWire#47",
-        "path": [
-          {
-            "x": 700.0,
-            "y": 40.0
-          },
-          {
-            "x": 585.0,
-            "y": 40.0
-          },
-          {
-            "x": 585.0,
-            "y": 470.0
-          },
-          {
-            "x": 490.0,
-            "y": 470.0
-          },
-          {
-            "x": 490.0,
-            "y": 645.0
-          }
-        ]
-      },
       {
         "pin1": {
           "compName": "dlatch4#0",
         },
         "pin2": {
           "compName": "mux1_4#0",
-          "pinName": "Y3"
+          "pinName": "Y2"
         },
         "name": "unnamedWire#8",
         "path": [
           },
           {
             "x": 560.0,
-            "y": 375.0
+            "y": 365.0
           }
         ]
       },