X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fcomponents%2Fam2901%2FGUIAm2901ALUOneBit.json;h=1fd3ed88fab1f894e8cfbdb090132b3823ab1326;hb=b9a28b4d657716f65a276535a717bb8edb2190a4;hp=b6b05e1df297a7f6853b265c09cc9f98c5bc12ed;hpb=a393b0a2a9899707af54c9ee77a01f28ac967bd1;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/components/am2901/GUIAm2901ALUOneBit.json b/net.mograsim.logic.model.editor/components/am2901/GUIAm2901ALUOneBit.json index b6b05e1d..1fd3ed88 100644 --- a/net.mograsim.logic.model.editor/components/am2901/GUIAm2901ALUOneBit.json +++ b/net.mograsim.logic.model.editor/components/am2901/GUIAm2901ALUOneBit.json @@ -1,4 +1,3 @@ -mograsim version: 0.1.3 { "width": 35.0, "height": 90.0, @@ -6,180 +5,191 @@ mograsim version: 0.1.3 { "location": { "x": 0.0, - "y": 35.0 + "y": 5.0 }, - "name": "R", - "logicWidth": 1 + "name": "Cin", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 55.0 + "y": 25.0 }, - "name": "S", - "logicWidth": 1 + "name": "CinE", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 35.0, - "y": 15.0 + "y": 5.0 }, - "name": "F", - "logicWidth": 1 + "name": "Cout", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { "x": 0.0, - "y": 75.0 + "y": 15.0 }, - "name": "FN", - "logicWidth": 1 + "name": "CoutE", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { - "x": 0.0, - "y": 5.0 + "x": 35.0, + "y": 15.0 }, - "name": "Cin", - "logicWidth": 1 + "name": "F", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { "x": 0.0, - "y": 65.0 + "y": 75.0 }, - "name": "SN", - "logicWidth": 1 + "name": "FN", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { - "x": 35.0, - "y": 5.0 + "x": 0.0, + "y": 85.0 }, - "name": "Cout", - "logicWidth": 1 + "name": "L", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 45.0 + "y": 35.0 }, - "name": "RN", - "logicWidth": 1 + "name": "R", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 85.0 + "y": 45.0 }, - "name": "L", - "logicWidth": 1 + "name": "RN", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 25.0 + "y": 55.0 }, - "name": "CinE", - "logicWidth": 1 + "name": "S", + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 0.0, - "y": 15.0 + "y": 65.0 }, - "name": "CoutE", - "logicWidth": 1 + "name": "SN", + "logicWidth": 1, + "usage": "INPUT" } ], + "innerScale": 0.2, "submodel": { - "innerScale": 0.2, - "subComps": [ + "components": [ { + "id": "GUINandGate", + "name": "GUINandGate#0", "pos": { "x": 60.0, "y": 55.0 }, - "id": "GUINandGate", - "name": "GUINandGate#0", "params": 1 }, { + "id": "GUIand", + "name": "GUIand#0", "pos": { - "x": 54.0, - "y": 69.0 - }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#1", - "params": 1 + "x": 10.0, + "y": 20.0 + } }, { + "id": "GUIand", + "name": "GUIand#1", "pos": { - "x": 49.0, - "y": 59.0 - }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#0", - "params": 1 + "x": 135.0, + "y": 20.0 + } }, { + "id": "GUIfulladder", + "name": "GUIfulladder#0", + "pos": { + "x": 60.0, + "y": 20.0 + } + }, + { + "id": "GUImux1", + "name": "GUImux1#0", "pos": { "x": 90.0, "y": 70.0 - }, - "id": "GUImux1", - "name": "GUImux1#0" + } }, { + "id": "GUIxor", + "name": "GUIxor#0", "pos": { "x": 10.0, - "y": 20.0 - }, - "id": "GUIand", - "name": "GUIand#0" + "y": 190.0 + } }, { + "id": "GUIxor", + "name": "GUIxor#1", "pos": { "x": 10.0, "y": 290.0 - }, - "id": "GUIxor", - "name": "GUIxor#1" + } }, { + "id": "GUIxor", + "name": "GUIxor#2", "pos": { "x": 135.0, "y": 70.0 - }, - "id": "GUIxor", - "name": "GUIxor#2" - }, - { - "pos": { - "x": 60.0, - "y": 20.0 - }, - "id": "GUIfulladder", - "name": "GUIfulladder#0" + } }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#0", "pos": { - "x": 10.0, - "y": 190.0 + "x": 49.0, + "y": 59.0 }, - "id": "GUIxor", - "name": "GUIxor#0" + "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#1", "pos": { - "x": 135.0, - "y": 20.0 + "x": 54.0, + "y": 69.0 }, - "id": "GUIand", - "name": "GUIand#1" + "params": 1 } ], - "innerWires": [ + "wires": [ { "pin1": { "compName": "_submodelinterface", @@ -189,6 +199,7 @@ mograsim version: 0.1.3 "compName": "GUIand#0", "pinName": "A" }, + "name": "unnamedWire#0", "path": [] }, { @@ -200,6 +211,7 @@ mograsim version: 0.1.3 "compName": "GUIand#1", "pinName": "A" }, + "name": "unnamedWire#1", "path": [ { "x": 5.0, @@ -219,117 +231,6 @@ mograsim version: 0.1.3 } ] }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "CinE" - }, - "pin2": { - "compName": "GUIand#0", - "pinName": "B" - }, - "path": [ - { - "x": 7.5, - "y": 125.0 - }, - { - "x": 7.5, - "y": 35.0 - } - ] - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "R" - }, - "pin2": { - "compName": "GUIxor#0", - "pinName": "A" - } - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "RN" - }, - "pin2": { - "compName": "GUIxor#0", - "pinName": "B" - } - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "S" - }, - "pin2": { - "compName": "GUIxor#1", - "pinName": "A" - } - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "SN" - }, - "pin2": { - "compName": "GUIxor#1", - "pinName": "B" - } - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "FN" - }, - "pin2": { - "compName": "GUIxor#2", - "pinName": "B" - }, - "path": [ - { - "x": 130.0, - "y": 375.0 - }, - { - "x": 130.0, - "y": 85.0 - } - ] - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "L" - }, - "pin2": { - "compName": "GUImux1#0", - "pinName": "S0" - }, - "path": [ - { - "x": 87.5, - "y": 425.0 - }, - { - "x": 87.5, - "y": 75.0 - } - ] - }, - { - "pin1": { - "compName": "GUIand#0", - "pinName": "Y" - }, - "pin2": { - "compName": "GUIfulladder#0", - "pinName": "A" - }, - "path": [] - }, { "pin1": { "compName": "GUIxor#0", @@ -339,6 +240,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#0", "pinName": "" }, + "name": "unnamedWire#10", "path": [ { "x": 50.0, @@ -355,6 +257,7 @@ mograsim version: 0.1.3 "compName": "GUIfulladder#0", "pinName": "B" }, + "name": "unnamedWire#11", "path": [ { "x": 50.0, @@ -371,6 +274,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#0", "pinName": "A" }, + "name": "unnamedWire#12", "path": [] }, { @@ -382,6 +286,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#1", "pinName": "" }, + "name": "unnamedWire#13", "path": [ { "x": 55.0, @@ -398,6 +303,7 @@ mograsim version: 0.1.3 "compName": "GUIfulladder#0", "pinName": "C" }, + "name": "unnamedWire#14", "path": [ { "x": 55.0, @@ -414,6 +320,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#0", "pinName": "B" }, + "name": "unnamedWire#15", "path": [] }, { @@ -425,6 +332,7 @@ mograsim version: 0.1.3 "compName": "GUImux1#0", "pinName": "I0" }, + "name": "unnamedWire#16", "path": [ { "x": 100.0, @@ -453,6 +361,7 @@ mograsim version: 0.1.3 "compName": "GUIand#1", "pinName": "B" }, + "name": "unnamedWire#17", "path": [] }, { @@ -464,6 +373,7 @@ mograsim version: 0.1.3 "compName": "GUImux1#0", "pinName": "I1" }, + "name": "unnamedWire#18", "path": [ { "x": 82.5, @@ -484,8 +394,30 @@ mograsim version: 0.1.3 "compName": "GUIxor#2", "pinName": "A" }, + "name": "unnamedWire#19", "path": [] }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "CinE" + }, + "pin2": { + "compName": "GUIand#0", + "pinName": "B" + }, + "name": "unnamedWire#2", + "path": [ + { + "x": 7.5, + "y": 125.0 + }, + { + "x": 7.5, + "y": 35.0 + } + ] + }, { "pin1": { "compName": "GUIand#1", @@ -495,6 +427,7 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "Cout" }, + "name": "unnamedWire#20", "path": [] }, { @@ -506,16 +439,119 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "F" }, + "name": "unnamedWire#21", + "path": [] + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "R" + }, + "pin2": { + "compName": "GUIxor#0", + "pinName": "A" + }, + "name": "unnamedWire#3" + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "RN" + }, + "pin2": { + "compName": "GUIxor#0", + "pinName": "B" + }, + "name": "unnamedWire#4" + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "S" + }, + "pin2": { + "compName": "GUIxor#1", + "pinName": "A" + }, + "name": "unnamedWire#5" + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "SN" + }, + "pin2": { + "compName": "GUIxor#1", + "pinName": "B" + }, + "name": "unnamedWire#6" + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "FN" + }, + "pin2": { + "compName": "GUIxor#2", + "pinName": "B" + }, + "name": "unnamedWire#7", + "path": [ + { + "x": 130.0, + "y": 375.0 + }, + { + "x": 130.0, + "y": 85.0 + } + ] + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "L" + }, + "pin2": { + "compName": "GUImux1#0", + "pinName": "S0" + }, + "name": "unnamedWire#8", + "path": [ + { + "x": 87.5, + "y": 425.0 + }, + { + "x": 87.5, + "y": 75.0 + } + ] + }, + { + "pin1": { + "compName": "GUIand#0", + "pinName": "Y" + }, + "pin2": { + "compName": "GUIfulladder#0", + "pinName": "A" + }, + "name": "unnamedWire#9", "path": [] } - ] + ], + "version": "0.1.1" }, - "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer", + "symbolRendererSnippetID": "simpleRectangularLike", "symbolRendererParams": { "centerText": "GUIAm2901ALUOneBit", - "horizontalComponentCenter": 17.5, "centerTextHeight": 5.0, + "horizontalComponentCenter": 17.5, "pinLabelHeight": 3.5, "pinLabelMargin": 0.5 - } + }, + "outlineRendererSnippetID": "default", + "highLevelStateHandlerSnippetID": "default", + "version": "0.1.5" } \ No newline at end of file