X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=blobdiff_plain;f=plugins%2Fnet.mograsim.logic.model.am2900%2Fcomponents%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2Fsel3_4.json;fp=plugins%2Fnet.mograsim.logic.model.am2900%2Fcomponents%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2Fsel3_4.json;h=0bc14dd54a78dbf21a7b9d5cb049dee841cf84f9;hp=aaddfdf34546f0d6f288f93056834c3a40621950;hb=e2afca47e58e69b03378537c5f1d1a15a806a10d;hpb=2c32f5e4b0549a6b97a32cc96a36971c495ce11d diff --git a/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/sel3_4.json b/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/sel3_4.json index aaddfdf3..0bc14dd5 100644 --- a/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/sel3_4.json +++ b/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/sel3_4.json @@ -1,14 +1,14 @@ { - "width": 35.0, - "height": 150.0, + "width": 60.0, + "height": 80.0, "interfacePins": [ { "location": { "x": 0.0, "y": 35.0 }, - "name": "A1", - "logicWidth": 1, + "name": "A", + "logicWidth": 4, "usage": "INPUT" }, { @@ -16,8 +16,8 @@ "x": 0.0, "y": 45.0 }, - "name": "A2", - "logicWidth": 1, + "name": "B", + "logicWidth": 4, "usage": "INPUT" }, { @@ -25,89 +25,8 @@ "x": 0.0, "y": 55.0 }, - "name": "A3", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 65.0 - }, - "name": "A4", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 75.0 - }, - "name": "B1", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 85.0 - }, - "name": "B2", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 95.0 - }, - "name": "B3", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 105.0 - }, - "name": "B4", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 115.0 - }, - "name": "C1", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 125.0 - }, - "name": "C2", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 135.0 - }, - "name": "C3", - "logicWidth": 1, - "usage": "INPUT" - }, - { - "location": { - "x": 0.0, - "y": 145.0 - }, - "name": "C4", - "logicWidth": 1, + "name": "C", + "logicWidth": 4, "usage": "INPUT" }, { @@ -115,7 +34,7 @@ "x": 0.0, "y": 5.0 }, - "name": "SA", + "name": "S1", "logicWidth": 1, "usage": "INPUT" }, @@ -124,7 +43,7 @@ "x": 0.0, "y": 15.0 }, - "name": "SB", + "name": "S2", "logicWidth": 1, "usage": "INPUT" }, @@ -133,56 +52,29 @@ "x": 0.0, "y": 25.0 }, - "name": "SC", + "name": "S3", "logicWidth": 1, "usage": "INPUT" }, { "location": { - "x": 35.0, - "y": 5.0 - }, - "name": "Y1", - "logicWidth": 1, - "usage": "OUTPUT" - }, - { - "location": { - "x": 35.0, - "y": 15.0 - }, - "name": "Y2", - "logicWidth": 1, - "usage": "OUTPUT" - }, - { - "location": { - "x": 35.0, - "y": 25.0 - }, - "name": "Y3", - "logicWidth": 1, - "usage": "OUTPUT" - }, - { - "location": { - "x": 35.0, - "y": 35.0 + "x": 60.0, + "y": 55.0 }, - "name": "Y4", - "logicWidth": 1, + "name": "Y", + "logicWidth": 4, "usage": "OUTPUT" } ], - "innerScale": 0.2, + "innerScale": 0.4, "submodel": { "components": [ { "id": "NandGate", "name": "NandGate#0", "pos": { - "x": 50.0, - "y": 570.0 + "x": 35.0, + "y": 97.5 }, "params": 1 }, @@ -190,8 +82,8 @@ "id": "NandGate", "name": "NandGate#1", "pos": { - "x": 50.0, - "y": 620.0 + "x": 35.0, + "y": 122.5 }, "params": 1 }, @@ -199,8 +91,8 @@ "id": "NandGate", "name": "NandGate#2", "pos": { - "x": 50.0, - "y": 670.0 + "x": 35.0, + "y": 147.5 }, "params": 1 }, @@ -208,8 +100,8 @@ "id": "NandGate", "name": "NandGate#3", "pos": { - "x": 50.0, - "y": 720.0 + "x": 35.0, + "y": 172.5 }, "params": 1 }, @@ -217,8 +109,8 @@ "id": "NandGate", "name": "NandGate#4", "pos": { - "x": 152.5, - "y": 15.0 + "x": 100.0, + "y": 92.5 }, "params": 1 }, @@ -226,8 +118,8 @@ "id": "NandGate", "name": "NandGate#5", "pos": { - "x": 152.5, - "y": 65.0 + "x": 100.0, + "y": 117.5 }, "params": 1 }, @@ -235,8 +127,8 @@ "id": "NandGate", "name": "NandGate#6", "pos": { - "x": 152.5, - "y": 115.0 + "x": 100.0, + "y": 142.5 }, "params": 1 }, @@ -244,8 +136,8 @@ "id": "NandGate", "name": "NandGate#7", "pos": { - "x": 152.5, - "y": 165.0 + "x": 100.0, + "y": 167.5 }, "params": 1 }, @@ -254,19 +146,31 @@ "name": "Splitter#0", "pos": { "x": 100.0, - "y": 205.0 + "y": 57.5 }, "params": { "logicWidth": 4, - "orientation": "RIGHT" + "orientation": "LEFT" } }, { "id": "Splitter", "name": "Splitter#1", "pos": { - "x": 75.0, - "y": 255.0 + "x": 5.0, + "y": 122.5 + }, + "params": { + "logicWidth": 4, + "orientation": "RIGHT" + } + }, + { + "id": "Splitter", + "name": "Splitter#2", + "pos": { + "x": 135.0, + "y": 122.5 }, "params": { "logicWidth": 4, @@ -278,7 +182,7 @@ "name": "WireCrossPoint#0", "pos": { "x": 29.0, - "y": 584.0 + "y": 111.5 }, "params": 1 }, @@ -287,7 +191,7 @@ "name": "WireCrossPoint#1", "pos": { "x": 29.0, - "y": 634.0 + "y": 136.5 }, "params": 1 }, @@ -296,7 +200,7 @@ "name": "WireCrossPoint#2", "pos": { "x": 29.0, - "y": 684.0 + "y": 161.5 }, "params": 1 }, @@ -304,292 +208,309 @@ "id": "not4", "name": "not4#0", "pos": { - "x": 60.0, - "y": 200.0 + "x": 80.0, + "y": 12.5 } }, { "id": "sel2_4", "name": "sel2_4#0", "pos": { - "x": 35.0, - "y": 250.0 + "x": 20.0, + "y": 7.5 } } ], "wires": [ { "pin1": { - "compName": "_submodelinterface", - "pinName": "SA" + "compName": "sel2_4#0", + "pinName": "S1" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "SA" + "compName": "_submodelinterface", + "pinName": "S1" }, "name": "unnamedWire#0", - "path": [ - { - "x": 25.0, - "y": 25.0 - }, - { - "x": 25.0, - "y": 255.0 - } - ] + "path": [] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "SB" + "pinName": "S2" }, "pin2": { "compName": "sel2_4#0", - "pinName": "SB" + "pinName": "S2" }, "name": "unnamedWire#1", "path": [ { - "x": 20.0, - "y": 75.0 + "x": 5.0, + "y": 37.5 }, { - "x": 20.0, - "y": 265.0 + "x": 5.0, + "y": 22.5 } ] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "A1" + "pinName": "A" }, "pin2": { "compName": "sel2_4#0", - "pinName": "A1" + "pinName": "A" }, "name": "unnamedWire#2", "path": [ { - "x": 15.0, - "y": 175.0 + "x": 10.0, + "y": 87.5 }, { - "x": 15.0, - "y": 275.0 + "x": 10.0, + "y": 32.5 } ] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "A2" + "pinName": "B" }, "pin2": { "compName": "sel2_4#0", - "pinName": "A2" + "pinName": "B" }, "name": "unnamedWire#3", "path": [ { - "x": 10.0, - "y": 225.0 + "x": 15.0, + "y": 112.5 }, { - "x": 10.0, - "y": 285.0 + "x": 15.0, + "y": 52.5 } ] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "A3" + "pinName": "C" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "A3" + "compName": "Splitter#1", + "pinName": "I" }, "name": "unnamedWire#4", - "path": [ - { - "x": 5.0, - "y": 275.0 - }, - { - "x": 5.0, - "y": 295.0 - } - ] + "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "A4" + "compName": "Splitter#1", + "pinName": "O3" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "A4" + "compName": "NandGate#0", + "pinName": "A" }, "name": "unnamedWire#5", "path": [ { - "x": 5.0, - "y": 325.0 + "x": 20.0, + "y": 122.5 }, { - "x": 5.0, - "y": 305.0 + "x": 20.0, + "y": 102.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "B1" + "compName": "Splitter#1", + "pinName": "O2" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "B1" + "compName": "NandGate#1", + "pinName": "A" }, "name": "unnamedWire#6", "path": [ { - "x": 10.0, - "y": 375.0 + "x": 20.0, + "y": 132.5 }, { - "x": 10.0, - "y": 315.0 + "x": 20.0, + "y": 127.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "B2" + "compName": "Splitter#1", + "pinName": "O1" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "B2" + "compName": "NandGate#2", + "pinName": "A" }, "name": "unnamedWire#7", "path": [ { - "x": 15.0, - "y": 425.0 + "x": 25.0, + "y": 142.5 }, { - "x": 15.0, - "y": 325.0 + "x": 25.0, + "y": 152.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "B3" + "compName": "NandGate#3", + "pinName": "A" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "B3" + "compName": "Splitter#1", + "pinName": "O0" }, "name": "unnamedWire#8", "path": [ { "x": 20.0, - "y": 475.0 + "y": 177.5 }, { "x": 20.0, - "y": 335.0 + "y": 152.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "B4" + "compName": "NandGate#4", + "pinName": "Y" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "B4" + "compName": "Splitter#2", + "pinName": "O3" }, "name": "unnamedWire#9", "path": [ { - "x": 25.0, - "y": 525.0 + "x": 130.0, + "y": 102.5 }, { - "x": 25.0, - "y": 345.0 + "x": 130.0, + "y": 122.5 } ] }, { "pin1": { "compName": "sel2_4#0", - "pinName": "Y1" + "pinName": "Y" }, "pin2": { - "compName": "Splitter#1", - "pinName": "O3" + "compName": "not4#0", + "pinName": "A" }, "name": "unnamedWire#10", "path": [] }, { "pin1": { - "compName": "Splitter#1", - "pinName": "O2" + "compName": "WireCrossPoint#0", + "pinName": "" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "Y2" + "compName": "_submodelinterface", + "pinName": "S3" }, "name": "unnamedWire#11", - "path": [] + "path": [ + { + "x": 30.0, + "y": 92.5 + }, + { + "x": 5.0, + "y": 92.5 + }, + { + "x": 5.0, + "y": 62.5 + } + ] }, { "pin1": { - "compName": "sel2_4#0", - "pinName": "Y3" + "compName": "Splitter#2", + "pinName": "O2" }, "pin2": { - "compName": "Splitter#1", - "pinName": "O1" + "compName": "NandGate#5", + "pinName": "Y" }, "name": "unnamedWire#12", - "path": [] + "path": [ + { + "x": 130.0, + "y": 132.5 + }, + { + "x": 130.0, + "y": 127.5 + } + ] }, { "pin1": { - "compName": "Splitter#1", - "pinName": "O0" + "compName": "Splitter#2", + "pinName": "O1" }, "pin2": { - "compName": "sel2_4#0", - "pinName": "Y4" + "compName": "NandGate#6", + "pinName": "Y" }, "name": "unnamedWire#13", - "path": [] + "path": [ + { + "x": 125.0, + "y": 142.5 + }, + { + "x": 125.0, + "y": 152.5 + } + ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "SC" + "compName": "Splitter#2", + "pinName": "O0" }, "pin2": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "NandGate#7", + "pinName": "Y" }, "name": "unnamedWire#14", "path": [ { - "x": 30.0, - "y": 125.0 + "x": 130.0, + "y": 152.5 + }, + { + "x": 130.0, + "y": 177.5 } ] }, @@ -615,12 +536,7 @@ "pinName": "" }, "name": "unnamedWire#16", - "path": [ - { - "x": 30.0, - "y": 125.0 - } - ] + "path": [] }, { "pin1": { @@ -644,12 +560,7 @@ "pinName": "" }, "name": "unnamedWire#18", - "path": [ - { - "x": 30.0, - "y": 125.0 - } - ] + "path": [] }, { "pin1": { @@ -676,57 +587,42 @@ "path": [ { "x": 30.0, - "y": 735.0 + "y": 187.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "C1" + "compName": "Splitter#2", + "pinName": "I" }, "pin2": { - "compName": "NandGate#0", - "pinName": "A" + "compName": "_submodelinterface", + "pinName": "Y" }, "name": "unnamedWire#21", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "C2" + "compName": "Splitter#0", + "pinName": "I" }, "pin2": { - "compName": "NandGate#1", - "pinName": "A" + "compName": "not4#0", + "pinName": "Y" }, "name": "unnamedWire#22", - "path": [] - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "C3" - }, - "pin2": { - "compName": "NandGate#2", - "pinName": "A" - }, - "name": "unnamedWire#23", - "path": [] - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "C4" - }, - "pin2": { - "compName": "NandGate#3", - "pinName": "A" - }, - "name": "unnamedWire#24", - "path": [] + "path": [ + { + "x": 120.0, + "y": 72.5 + }, + { + "x": 120.0, + "y": 32.5 + } + ] }, { "pin1": { @@ -737,15 +633,15 @@ "compName": "NandGate#4", "pinName": "A" }, - "name": "unnamedWire#25", + "name": "unnamedWire#23", "path": [ { - "x": 115.0, - "y": 205.0 + "x": 80.0, + "y": 57.5 }, { - "x": 115.0, - "y": 20.0 + "x": 80.0, + "y": 97.5 } ] }, @@ -758,15 +654,15 @@ "compName": "NandGate#5", "pinName": "A" }, - "name": "unnamedWire#26", + "name": "unnamedWire#24", "path": [ { - "x": 120.0, - "y": 215.0 + "x": 85.0, + "y": 67.5 }, { - "x": 120.0, - "y": 70.0 + "x": 85.0, + "y": 122.5 } ] }, @@ -779,15 +675,15 @@ "compName": "NandGate#6", "pinName": "A" }, - "name": "unnamedWire#27", + "name": "unnamedWire#25", "path": [ { - "x": 125.0, - "y": 225.0 + "x": 90.0, + "y": 77.5 }, { - "x": 125.0, - "y": 120.0 + "x": 90.0, + "y": 147.5 } ] }, @@ -800,15 +696,15 @@ "compName": "NandGate#7", "pinName": "A" }, - "name": "unnamedWire#28", + "name": "unnamedWire#26", "path": [ { - "x": 130.0, - "y": 235.0 + "x": 95.0, + "y": 87.5 }, { - "x": 130.0, - "y": 170.0 + "x": 95.0, + "y": 172.5 } ] }, @@ -821,17 +717,8 @@ "compName": "NandGate#4", "pinName": "B" }, - "name": "unnamedWire#29", - "path": [ - { - "x": 135.0, - "y": 580.0 - }, - { - "x": 135.0, - "y": 30.0 - } - ] + "name": "unnamedWire#27", + "path": [] }, { "pin1": { @@ -842,17 +729,8 @@ "compName": "NandGate#5", "pinName": "B" }, - "name": "unnamedWire#30", - "path": [ - { - "x": 140.0, - "y": 630.0 - }, - { - "x": 140.0, - "y": 80.0 - } - ] + "name": "unnamedWire#28", + "path": [] }, { "pin1": { @@ -863,17 +741,8 @@ "compName": "NandGate#6", "pinName": "B" }, - "name": "unnamedWire#31", - "path": [ - { - "x": 145.0, - "y": 680.0 - }, - { - "x": 145.0, - "y": 130.0 - } - ] + "name": "unnamedWire#29", + "path": [] }, { "pin1": { @@ -884,105 +753,7 @@ "compName": "NandGate#7", "pinName": "B" }, - "name": "unnamedWire#32", - "path": [ - { - "x": 150.0, - "y": 730.0 - }, - { - "x": 150.0, - "y": 180.0 - } - ] - }, - { - "pin1": { - "compName": "NandGate#4", - "pinName": "Y" - }, - "pin2": { - "compName": "_submodelinterface", - "pinName": "Y1" - }, - "name": "unnamedWire#33", - "path": [] - }, - { - "pin1": { - "compName": "NandGate#5", - "pinName": "Y" - }, - "pin2": { - "compName": "_submodelinterface", - "pinName": "Y2" - }, - "name": "unnamedWire#34", - "path": [] - }, - { - "pin1": { - "compName": "NandGate#6", - "pinName": "Y" - }, - "pin2": { - "compName": "_submodelinterface", - "pinName": "Y3" - }, - "name": "unnamedWire#35", - "path": [] - }, - { - "pin1": { - "compName": "NandGate#7", - "pinName": "Y" - }, - "pin2": { - "compName": "_submodelinterface", - "pinName": "Y4" - }, - "name": "unnamedWire#36", - "path": [] - }, - { - "pin1": { - "compName": "Splitter#1", - "pinName": "I" - }, - "pin2": { - "compName": "not4#0", - "pinName": "A" - }, - "name": "unnamedWire#37", - "path": [ - { - "x": 90.0, - "y": 270.0 - }, - { - "x": 90.0, - "y": 245.0 - }, - { - "x": 55.0, - "y": 245.0 - }, - { - "x": 55.0, - "y": 220.0 - } - ] - }, - { - "pin1": { - "compName": "not4#0", - "pinName": "Y" - }, - "pin2": { - "compName": "Splitter#0", - "pinName": "I" - }, - "name": "unnamedWire#38", + "name": "unnamedWire#30", "path": [] } ],