X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fcomponents%2FGUIdlatch4.json;h=3bc4df724938d5ead8e956fe8f3eb68f33ebdbd6;hb=148a58630b38b30d4d24a21e3f55c357f5b4d0bc;hp=28021dffabe470ec9347d7a6088d5c144e1cb47c;hpb=40fa7adb9fe05cd2d2eeb18a787b98299b76136a;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/components/GUIdlatch4.json b/net.mograsim.logic.model.editor/components/GUIdlatch4.json index 28021dff..3bc4df72 100644 --- a/net.mograsim.logic.model.editor/components/GUIdlatch4.json +++ b/net.mograsim.logic.model.editor/components/GUIdlatch4.json @@ -1,4 +1,3 @@ -mograsim version: 0.1.3 { "width": 35.0, "height": 50.0, @@ -6,105 +5,95 @@ mograsim version: 0.1.3 { "location": { "x": 0.0, - "y": 35.0 + "y": 45.0 }, - "name": "D4", - "logicWidth": 1 + "name": "C", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { - "x": 35.0, + "x": 0.0, "y": 5.0 }, - "name": "Q1", - "logicWidth": 1 + "name": "D1", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { - "x": 35.0, + "x": 0.0, "y": 15.0 }, - "name": "Q2", - "logicWidth": 1 + "name": "D2", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { - "x": 35.0, + "x": 0.0, "y": 25.0 }, - "name": "Q3", - "logicWidth": 1 + "name": "D3", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 45.0 + "y": 35.0 }, - "name": "C", - "logicWidth": 1 + "name": "D4", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 35.0, - "y": 35.0 + "y": 5.0 }, - "name": "Q4", - "logicWidth": 1 + "name": "Q1", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { - "x": 0.0, - "y": 5.0 + "x": 35.0, + "y": 15.0 }, - "name": "D1", - "logicWidth": 1 + "name": "Q2", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { - "x": 0.0, - "y": 15.0 + "x": 35.0, + "y": 25.0 }, - "name": "D2", - "logicWidth": 1 + "name": "Q3", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { - "x": 0.0, - "y": 25.0 + "x": 35.0, + "y": 35.0 }, - "name": "D3", - "logicWidth": 1 + "name": "Q4", + "logicWidth": 1, + "usage": "OUTPUT" } ], + "innerScale": 0.4, "submodel": { - "innerScale": 0.4, - "subComps": [ - { - "id": "WireCrossPoint", - "name": "WireCrossPoint#1", - "pos": { - "x": 14.0, - "y": 71.5 - }, - "params": 1 - }, + "components": [ { - "id": "WireCrossPoint", - "name": "WireCrossPoint#0", - "pos": { - "x": 14.0, - "y": 46.5 - }, - "params": 1 - }, - { - "id": "WireCrossPoint", - "name": "WireCrossPoint#2", + "id": "GUIdlatch", + "name": "GUIdlatch#0", "pos": { - "x": 14.0, - "y": 96.5 - }, - "params": 1 + "x": 30.0, + "y": 7.5 + } }, { "id": "GUIdlatch", @@ -116,10 +105,10 @@ mograsim version: 0.1.3 }, { "id": "GUIdlatch", - "name": "GUIdlatch#0", + "name": "GUIdlatch#2", "pos": { "x": 30.0, - "y": 7.5 + "y": 57.5 } }, { @@ -131,208 +120,228 @@ mograsim version: 0.1.3 } }, { - "id": "GUIdlatch", - "name": "GUIdlatch#2", + "id": "WireCrossPoint", + "name": "WireCrossPoint#0", "pos": { - "x": 30.0, - "y": 57.5 - } + "x": 14.0, + "y": 46.5 + }, + "params": 1 + }, + { + "id": "WireCrossPoint", + "name": "WireCrossPoint#1", + "pos": { + "x": 14.0, + "y": 71.5 + }, + "params": 1 + }, + { + "id": "WireCrossPoint", + "name": "WireCrossPoint#2", + "pos": { + "x": 14.0, + "y": 96.5 + }, + "params": 1 } ], - "innerWires": [ + "wires": [ { "pin1": { - "compName": "GUIdlatch#3", - "pinName": "Q" + "compName": "_submodelinterface", + "pinName": "C" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q4" + "compName": "WireCrossPoint#2", + "pinName": "" }, - "name": "unnamedWire#14", - "path": [] + "name": "unnamedWire#0", + "path": [ + { + "x": 15.0, + "y": 112.5 + } + ] }, { "pin1": { - "compName": "GUIdlatch#2", - "pinName": "Q" + "compName": "WireCrossPoint#2", + "pinName": "" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q3" + "compName": "GUIdlatch#3", + "pinName": "E" }, - "name": "unnamedWire#13", + "name": "unnamedWire#1", "path": [] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "D3" + "pinName": "D4" }, "pin2": { - "compName": "GUIdlatch#2", + "compName": "GUIdlatch#3", "pinName": "D" }, - "name": "unnamedWire#9", + "name": "unnamedWire#10", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D2" + "compName": "GUIdlatch#0", + "pinName": "Q" }, "pin2": { - "compName": "GUIdlatch#1", - "pinName": "D" + "compName": "_submodelinterface", + "pinName": "Q1" }, - "name": "unnamedWire#8", + "name": "unnamedWire#11", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D1" + "compName": "GUIdlatch#1", + "pinName": "Q" }, "pin2": { - "compName": "GUIdlatch#0", - "pinName": "D" + "compName": "_submodelinterface", + "pinName": "Q2" }, - "name": "unnamedWire#7", + "name": "unnamedWire#12", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "GUIdlatch#2", + "pinName": "Q" }, "pin2": { - "compName": "GUIdlatch#0", - "pinName": "E" + "compName": "_submodelinterface", + "pinName": "Q3" }, - "name": "unnamedWire#6", - "path": [ - { - "x": 15.0, - "y": 22.5 - } - ] + "name": "unnamedWire#13", + "path": [] }, { "pin1": { - "compName": "WireCrossPoint#2", - "pinName": "" + "compName": "GUIdlatch#3", + "pinName": "Q" }, "pin2": { - "compName": "GUIdlatch#3", - "pinName": "E" + "compName": "_submodelinterface", + "pinName": "Q4" }, - "name": "unnamedWire#1", + "name": "unnamedWire#14", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "C" + "compName": "WireCrossPoint#2", + "pinName": "" }, "pin2": { - "compName": "WireCrossPoint#2", + "compName": "WireCrossPoint#1", "pinName": "" }, - "name": "unnamedWire#0", - "path": [ - { - "x": 15.0, - "y": 112.5 - } - ] + "name": "unnamedWire#2", + "path": [] }, { "pin1": { - "compName": "WireCrossPoint#0", + "compName": "WireCrossPoint#1", "pinName": "" }, "pin2": { - "compName": "GUIdlatch#1", + "compName": "GUIdlatch#2", "pinName": "E" }, - "name": "unnamedWire#5", + "name": "unnamedWire#3", "path": [] }, { "pin1": { - "compName": "_submodelinterface", - "pinName": "D4" + "compName": "WireCrossPoint#1", + "pinName": "" }, "pin2": { - "compName": "GUIdlatch#3", - "pinName": "D" + "compName": "WireCrossPoint#0", + "pinName": "" }, - "name": "unnamedWire#10", + "name": "unnamedWire#4", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#1", + "compName": "WireCrossPoint#0", "pinName": "" }, "pin2": { - "compName": "WireCrossPoint#0", - "pinName": "" + "compName": "GUIdlatch#1", + "pinName": "E" }, - "name": "unnamedWire#4", + "name": "unnamedWire#5", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#1", + "compName": "WireCrossPoint#0", "pinName": "" }, "pin2": { - "compName": "GUIdlatch#2", + "compName": "GUIdlatch#0", "pinName": "E" }, - "name": "unnamedWire#3", - "path": [] + "name": "unnamedWire#6", + "path": [ + { + "x": 15.0, + "y": 22.5 + } + ] }, { "pin1": { - "compName": "GUIdlatch#1", - "pinName": "Q" + "compName": "_submodelinterface", + "pinName": "D1" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q2" + "compName": "GUIdlatch#0", + "pinName": "D" }, - "name": "unnamedWire#12", + "name": "unnamedWire#7", "path": [] }, { "pin1": { - "compName": "WireCrossPoint#2", - "pinName": "" + "compName": "_submodelinterface", + "pinName": "D2" }, "pin2": { - "compName": "WireCrossPoint#1", - "pinName": "" + "compName": "GUIdlatch#1", + "pinName": "D" }, - "name": "unnamedWire#2", + "name": "unnamedWire#8", "path": [] }, { "pin1": { - "compName": "GUIdlatch#0", - "pinName": "Q" + "compName": "_submodelinterface", + "pinName": "D3" }, "pin2": { - "compName": "_submodelinterface", - "pinName": "Q1" + "compName": "GUIdlatch#2", + "pinName": "D" }, - "name": "unnamedWire#11", + "name": "unnamedWire#9", "path": [] } - ] + ], + "version": "0.1.1" }, - "symbolRendererSnippetID": "class:net.mograsim.logic.model.snippets.symbolrenderers.SimpleRectangularLikeSymbolRenderer", + "symbolRendererSnippetID": "simpleRectangularLike", "symbolRendererParams": { "centerText": "GUIdlatch4", "centerTextHeight": 5.0, @@ -340,27 +349,27 @@ mograsim version: 0.1.3 "pinLabelHeight": 3.5, "pinLabelMargin": 0.5 }, - "outlineRendererSnippetID": "class:net.mograsim.logic.model.snippets.outlinerenderers.DefaultOutlineRenderer", - "highLevelStateHandlerSnippetID": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.StandardHighLevelStateHandler", + "outlineRendererSnippetID": "default", + "highLevelStateHandlerSnippetID": "standard", "highLevelStateHandlerParams": { "subcomponentHighLevelStates": {}, "atomicHighLevelStates": { "q1": { - "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.DelegatingAtomicHighLevelStateHandler", + "id": "delegating", "params": { "delegateTarget": "GUIdlatch#0", "subStateID": "q" } }, "q2": { - "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.DelegatingAtomicHighLevelStateHandler", + "id": "delegating", "params": { "delegateTarget": "GUIdlatch#1", "subStateID": "q" } }, "q": { - "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.BitVectorSplittingAtomicHighLevelStateHandler", + "id": "bitVectorSplitting", "params": { "vectorPartTargets": [ "q1", @@ -377,19 +386,20 @@ mograsim version: 0.1.3 } }, "q3": { - "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.DelegatingAtomicHighLevelStateHandler", + "id": "delegating", "params": { "delegateTarget": "GUIdlatch#2", "subStateID": "q" } }, "q4": { - "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.DelegatingAtomicHighLevelStateHandler", + "id": "delegating", "params": { "delegateTarget": "GUIdlatch#3", "subStateID": "q" } } } - } + }, + "version": "0.1.5" } \ No newline at end of file