X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Fcomponents%2FGUIsel1.json;h=093657b9f0f569432f20690e3fc4cd42bf3c119c;hb=8e8d5776ccc95a08885789834abd55cc50e18a24;hp=26a25cfbe7f8c32c577fa18f8ddd2eef5735573b;hpb=29f0c5000b9d7626d7fcd6425cd0acc5a8c33187;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/components/GUIsel1.json b/net.mograsim.logic.model.am2900/components/GUIsel1.json index 26a25cfb..093657b9 100644 --- a/net.mograsim.logic.model.am2900/components/GUIsel1.json +++ b/net.mograsim.logic.model.am2900/components/GUIsel1.json @@ -1,4 +1,3 @@ -mograsim version: 0.1.3 { "width": 35.0, "height": 40.0, @@ -9,7 +8,8 @@ mograsim version: 0.1.3 "y": 25.0 }, "name": "I1", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { @@ -17,15 +17,8 @@ mograsim version: 0.1.3 "y": 35.0 }, "name": "I2", - "logicWidth": 1 - }, - { - "location": { - "x": 35.0, - "y": 5.0 - }, - "name": "Y", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { @@ -33,7 +26,8 @@ mograsim version: 0.1.3 "y": 5.0 }, "name": "S1", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { @@ -41,12 +35,22 @@ mograsim version: 0.1.3 "y": 15.0 }, "name": "S2", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" + }, + { + "location": { + "x": 35.0, + "y": 5.0 + }, + "name": "Y", + "logicWidth": 1, + "usage": "OUTPUT" } ], + "innerScale": 0.4, "submodel": { - "innerScale": 0.4, - "subComps": [ + "components": [ { "id": "GUINandGate", "name": "GUINandGate#1", @@ -58,64 +62,42 @@ mograsim version: 0.1.3 }, { "id": "GUINandGate", - "name": "GUINandGate#3", + "name": "GUINandGate#2", "pos": { - "x": 60.0, - "y": 40.0 + "x": 35.0, + "y": 55.0 }, "params": 1 }, { "id": "GUINandGate", - "name": "GUINandGate#2", + "name": "GUINandGate#3", "pos": { - "x": 35.0, - "y": 55.0 + "x": 60.0, + "y": 40.0 }, "params": 1 } ], - "innerWires": [ + "wires": [ { "pin1": { - "compName": "GUINandGate#2", - "pinName": "Y" + "compName": "_submodelinterface", + "pinName": "S1" }, "pin2": { - "compName": "GUINandGate#3", - "pinName": "B" - }, - "name": "unnamedWire#9" - }, - { - "pin1": { "compName": "GUINandGate#1", - "pinName": "Y" - }, - "pin2": { - "compName": "GUINandGate#3", "pinName": "A" }, - "name": "unnamedWire#8" - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "I2" - }, - "pin2": { - "compName": "GUINandGate#2", - "pinName": "B" - }, - "name": "unnamedWire#7", + "name": "unnamedWire#0", "path": [ { - "x": 15.0, - "y": 87.5 + "x": 25.0, + "y": 12.5 }, { - "x": 15.0, - "y": 70.0 + "x": 25.0, + "y": 35.0 } ] }, @@ -142,58 +124,81 @@ mograsim version: 0.1.3 }, { "pin1": { + "compName": "GUINandGate#3", + "pinName": "Y" + }, + "pin2": { "compName": "_submodelinterface", - "pinName": "S1" + "pinName": "Y" + }, + "name": "unnamedWire#10" + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "I1" }, "pin2": { "compName": "GUINandGate#1", - "pinName": "A" + "pinName": "B" }, - "name": "unnamedWire#0", + "name": "unnamedWire#5", "path": [ { "x": 25.0, - "y": 12.5 + "y": 62.5 }, { "x": 25.0, - "y": 35.0 + "y": 45.0 } ] }, { "pin1": { "compName": "_submodelinterface", - "pinName": "I1" + "pinName": "I2" }, "pin2": { - "compName": "GUINandGate#1", + "compName": "GUINandGate#2", "pinName": "B" }, - "name": "unnamedWire#5", + "name": "unnamedWire#7", "path": [ { - "x": 25.0, - "y": 62.5 + "x": 15.0, + "y": 87.5 }, { - "x": 25.0, - "y": 45.0 + "x": 15.0, + "y": 70.0 } ] }, { "pin1": { - "compName": "GUINandGate#3", + "compName": "GUINandGate#1", "pinName": "Y" }, "pin2": { - "compName": "_submodelinterface", + "compName": "GUINandGate#3", + "pinName": "A" + }, + "name": "unnamedWire#8" + }, + { + "pin1": { + "compName": "GUINandGate#2", "pinName": "Y" }, - "name": "unnamedWire#10" + "pin2": { + "compName": "GUINandGate#3", + "pinName": "B" + }, + "name": "unnamedWire#9" } - ] + ], + "version": "0.1.1" }, "symbolRendererSnippetID": "simpleRectangularLike", "symbolRendererParams": { @@ -204,5 +209,6 @@ mograsim version: 0.1.3 "pinLabelMargin": 0.5 }, "outlineRendererSnippetID": "default", - "highLevelStateHandlerSnippetID": "default" + "highLevelStateHandlerSnippetID": "default", + "version": "0.1.5" } \ No newline at end of file