X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.logic.model.am2900%2Fcomponents%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2Fdlatch4.json;h=d7b5651f1738f2172fd03fc28a947fecf7ef6d2f;hb=e2afca47e58e69b03378537c5f1d1a15a806a10d;hp=87f53700cca0520fe5ab1b714ca5d642e9282880;hpb=58babf45ae7d259a296656451d796dbe601377a4;p=Mograsim.git diff --git a/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/dlatch4.json b/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/dlatch4.json index 87f53700..d7b5651f 100644 --- a/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/dlatch4.json +++ b/plugins/net.mograsim.logic.model.am2900/components/net/mograsim/logic/model/am2900/components/dlatch4.json @@ -1,98 +1,68 @@ { - "width": 35.0, - "height": 50.0, + "width": 40.0, + "height": 40.0, "interfacePins": [ { "location": { "x": 0.0, - "y": 45.0 + "y": 35.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, + "name": "D", + "logicWidth": 4, "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, - "usage": "INPUT" - }, - { - "location": { - "x": 35.0, - "y": 5.0 - }, - "name": "Q1", - "logicWidth": 1, - "usage": "OUTPUT" - }, - { - "location": { - "x": 35.0, + "x": 40.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" } ], "innerScale": 0.4, "submodel": { "components": [ + { + "id": "Splitter", + "name": "Splitter#0", + "pos": { + "x": 85.0, + "y": 22.5 + }, + "params": { + "logicWidth": 4, + "orientation": "LEFT" + } + }, + { + "id": "Splitter", + "name": "Splitter#1", + "pos": { + "x": 5.0, + "y": 22.5 + }, + "params": { + "logicWidth": 4, + "orientation": "RIGHT" + } + }, { "id": "WireCrossPoint", "name": "WireCrossPoint#0", "pos": { - "x": 14.0, - "y": 46.5 + "x": 29.0, + "y": 41.5 }, "params": 1 }, @@ -100,8 +70,8 @@ "id": "WireCrossPoint", "name": "WireCrossPoint#1", "pos": { - "x": 14.0, - "y": 71.5 + "x": 29.0, + "y": 66.5 }, "params": 1 }, @@ -109,8 +79,8 @@ "id": "WireCrossPoint", "name": "WireCrossPoint#2", "pos": { - "x": 14.0, - "y": 96.5 + "x": 29.0, + "y": 86.5 }, "params": 1 }, @@ -118,32 +88,32 @@ "id": "dlatch", "name": "dlatch#0", "pos": { - "x": 30.0, - "y": 7.5 + "x": 35.0, + "y": 2.5 } }, { "id": "dlatch", "name": "dlatch#1", "pos": { - "x": 30.0, - "y": 32.5 + "x": 35.0, + "y": 27.5 } }, { "id": "dlatch", "name": "dlatch#2", "pos": { - "x": 30.0, - "y": 57.5 + "x": 35.0, + "y": 52.5 } }, { "id": "dlatch", "name": "dlatch#3", "pos": { - "x": 30.0, - "y": 82.5 + "x": 35.0, + "y": 77.5 } } ], @@ -158,10 +128,22 @@ "pinName": "" }, "name": "unnamedWire#0", + "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#2", + "pinName": "" + }, + "pin2": { + "compName": "dlatch#3", + "pinName": "E" + }, + "name": "unnamedWire#1", "path": [ { - "x": 15.0, - "y": 112.5 + "x": 30.0, + "y": 92.5 } ] }, @@ -171,171 +153,237 @@ "pinName": "" }, "pin2": { - "compName": "dlatch#3", - "pinName": "E" + "compName": "WireCrossPoint#1", + "pinName": "" }, - "name": "unnamedWire#1", + "name": "unnamedWire#2", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D4" + "compName": "WireCrossPoint#1", + "pinName": "" }, "pin2": { - "compName": "dlatch#3", - "pinName": "D" + "compName": "dlatch#2", + "pinName": "E" }, - "name": "unnamedWire#10", + "name": "unnamedWire#3", "path": [] }, { "pin1": { - "compName": "dlatch#0", - "pinName": "Q" + "compName": "WireCrossPoint#1", + "pinName": "" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q1" + "compName": "WireCrossPoint#0", + "pinName": "" }, - "name": "unnamedWire#11", + "name": "unnamedWire#4", "path": [] }, { "pin1": { - "compName": "dlatch#1", - "pinName": "Q" + "compName": "WireCrossPoint#0", + "pinName": "" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q2" + "compName": "dlatch#1", + "pinName": "E" }, - "name": "unnamedWire#12", + "name": "unnamedWire#5", "path": [] }, { "pin1": { - "compName": "dlatch#2", - "pinName": "Q" + "compName": "WireCrossPoint#0", + "pinName": "" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q3" + "compName": "dlatch#0", + "pinName": "E" }, - "name": "unnamedWire#13", - "path": [] + "name": "unnamedWire#6", + "path": [ + { + "x": 30.0, + "y": 17.5 + } + ] }, { "pin1": { - "compName": "dlatch#3", - "pinName": "Q" + "compName": "Splitter#1", + "pinName": "O3" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q4" + "compName": "dlatch#0", + "pinName": "D" }, - "name": "unnamedWire#14", - "path": [] + "name": "unnamedWire#7", + "path": [ + { + "x": 20.0, + "y": 22.5 + }, + { + "x": 20.0, + "y": 7.5 + } + ] }, { "pin1": { - "compName": "WireCrossPoint#2", - "pinName": "" + "compName": "dlatch#1", + "pinName": "D" }, "pin2": { - "compName": "WireCrossPoint#1", - "pinName": "" + "compName": "Splitter#1", + "pinName": "O2" }, - "name": "unnamedWire#2", + "name": "unnamedWire#8", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#1", - "pinName": "" + "compName": "Splitter#1", + "pinName": "O1" }, "pin2": { "compName": "dlatch#2", - "pinName": "E" + "pinName": "D" }, - "name": "unnamedWire#3", - "path": [] + "name": "unnamedWire#9", + "path": [ + { + "x": 25.0, + "y": 42.5 + }, + { + "x": 25.0, + "y": 57.5 + } + ] }, { "pin1": { - "compName": "WireCrossPoint#1", - "pinName": "" + "compName": "dlatch#3", + "pinName": "D" }, "pin2": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "Splitter#1", + "pinName": "O0" }, - "name": "unnamedWire#4", - "path": [] + "name": "unnamedWire#10", + "path": [ + { + "x": 20.0, + "y": 82.5 + }, + { + "x": 20.0, + "y": 52.5 + } + ] }, { "pin1": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "dlatch#0", + "pinName": "Q" }, "pin2": { + "compName": "Splitter#0", + "pinName": "O3" + }, + "name": "unnamedWire#11", + "path": [ + { + "x": 80.0, + "y": 7.5 + }, + { + "x": 80.0, + "y": 22.5 + } + ] + }, + { + "pin1": { "compName": "dlatch#1", - "pinName": "E" + "pinName": "Q" }, - "name": "unnamedWire#5", + "pin2": { + "compName": "Splitter#0", + "pinName": "O2" + }, + "name": "unnamedWire#12", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "Splitter#0", + "pinName": "O1" }, "pin2": { - "compName": "dlatch#0", - "pinName": "E" + "compName": "dlatch#2", + "pinName": "Q" }, - "name": "unnamedWire#6", + "name": "unnamedWire#13", "path": [ { - "x": 15.0, - "y": 22.5 + "x": 75.0, + "y": 42.5 + }, + { + "x": 75.0, + "y": 57.5 } ] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D1" + "compName": "dlatch#3", + "pinName": "Q" }, "pin2": { - "compName": "dlatch#0", - "pinName": "D" + "compName": "Splitter#0", + "pinName": "O0" }, - "name": "unnamedWire#7", - "path": [] + "name": "unnamedWire#14", + "path": [ + { + "x": 80.0, + "y": 82.5 + }, + { + "x": 80.0, + "y": 52.5 + } + ] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "D2" + "pinName": "D" }, "pin2": { - "compName": "dlatch#1", - "pinName": "D" + "compName": "Splitter#1", + "pinName": "I" }, - "name": "unnamedWire#8", + "name": "unnamedWire#15", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D3" + "compName": "Splitter#0", + "pinName": "I" }, "pin2": { - "compName": "dlatch#2", - "pinName": "D" + "compName": "_submodelinterface", + "pinName": "Q" }, - "name": "unnamedWire#9", + "name": "unnamedWire#16", "path": [] } ], @@ -374,28 +422,28 @@ "q1": { "id": "delegating", "params": { - "delegateTarget": "dlatch#0", + "delegateTarget": "dlatch#3", "subStateID": "q" } }, "q2": { "id": "delegating", "params": { - "delegateTarget": "dlatch#1", + "delegateTarget": "dlatch#2", "subStateID": "q" } }, "q3": { "id": "delegating", "params": { - "delegateTarget": "dlatch#2", + "delegateTarget": "dlatch#1", "subStateID": "q" } }, "q4": { "id": "delegating", "params": { - "delegateTarget": "dlatch#3", + "delegateTarget": "dlatch#0", "subStateID": "q" } }