X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui.am2900%2Fcomponents%2Fam2901%2FGUIAm2901ALUOneBit.json;h=b6b05e1df297a7f6853b265c09cc9f98c5bc12ed;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=5466a04e0b94e99eb5e142d7fb4d47cd444ad8d2;hpb=70d9098dd01dfe29142a4184438175d5a013bb5b;p=Mograsim.git diff --git a/net.mograsim.logic.ui.am2900/components/am2901/GUIAm2901ALUOneBit.json b/net.mograsim.logic.ui.am2900/components/am2901/GUIAm2901ALUOneBit.json index 5466a04e..b6b05e1d 100644 --- a/net.mograsim.logic.ui.am2900/components/am2901/GUIAm2901ALUOneBit.json +++ b/net.mograsim.logic.ui.am2900/components/am2901/GUIAm2901ALUOneBit.json @@ -1,7 +1,5 @@ -mograsim version: 0.1.2 +mograsim version: 0.1.3 { - "type": "SimpleRectangularSubmodelComponent", - "name": "GUIAm2901ALUOneBit", "width": 35.0, "height": 90.0, "interfacePins": [ @@ -94,115 +92,112 @@ mograsim version: 0.1.2 "logicWidth": 1 } ], - "composition": { + "submodel": { "innerScale": 0.2, "subComps": [ { "pos": { - "x": 10.0, - "y": 20.0 + "x": 60.0, + "y": 55.0 }, - "name": "GUIand", - "params": {} + "id": "GUINandGate", + "name": "GUINandGate#0", + "params": 1 }, { "pos": { - "x": 10.0, - "y": 190.0 + "x": 54.0, + "y": 69.0 }, - "name": "GUIxor", - "params": {} + "id": "WireCrossPoint", + "name": "WireCrossPoint#1", + "params": 1 }, { "pos": { - "x": 10.0, - "y": 290.0 + "x": 49.0, + "y": 59.0 }, - "name": "GUIxor", - "params": {} + "id": "WireCrossPoint", + "name": "WireCrossPoint#0", + "params": 1 }, { "pos": { - "x": 60.0, - "y": 20.0 + "x": 90.0, + "y": 70.0 }, - "name": "GUIfulladder", - "params": {} + "id": "GUImux1", + "name": "GUImux1#0" }, { "pos": { - "x": 60.0, - "y": 55.0 + "x": 10.0, + "y": 20.0 }, - "name": "GUINandGate", - "params": { - "logicWidth": 1 - } + "id": "GUIand", + "name": "GUIand#0" }, { "pos": { - "x": 135.0, - "y": 20.0 + "x": 10.0, + "y": 290.0 }, - "name": "GUIand", - "params": {} + "id": "GUIxor", + "name": "GUIxor#1" }, { "pos": { - "x": 90.0, + "x": 135.0, "y": 70.0 }, - "name": "GUImux1", - "params": {} + "id": "GUIxor", + "name": "GUIxor#2" }, { "pos": { - "x": 135.0, - "y": 70.0 + "x": 60.0, + "y": 20.0 }, - "name": "GUIxor", - "params": {} + "id": "GUIfulladder", + "name": "GUIfulladder#0" }, { "pos": { - "x": 49.0, - "y": 59.0 + "x": 10.0, + "y": 190.0 }, - "name": "WireCrossPoint", - "params": { - "logicWidth": 1 - } + "id": "GUIxor", + "name": "GUIxor#0" }, { "pos": { - "x": 54.0, - "y": 69.0 + "x": 135.0, + "y": 20.0 }, - "name": "WireCrossPoint", - "params": { - "logicWidth": 1 - } + "id": "GUIand", + "name": "GUIand#1" } ], "innerWires": [ { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "Cin" }, "pin2": { - "compId": 1, + "compName": "GUIand#0", "pinName": "A" }, "path": [] }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "CoutE" }, "pin2": { - "compId": 6, + "compName": "GUIand#1", "pinName": "A" }, "path": [ @@ -226,11 +221,11 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "CinE" }, "pin2": { - "compId": 1, + "compName": "GUIand#0", "pinName": "B" }, "path": [ @@ -246,51 +241,51 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "R" }, "pin2": { - "compId": 2, + "compName": "GUIxor#0", "pinName": "A" } }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "RN" }, "pin2": { - "compId": 2, + "compName": "GUIxor#0", "pinName": "B" } }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "S" }, "pin2": { - "compId": 3, + "compName": "GUIxor#1", "pinName": "A" } }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "SN" }, "pin2": { - "compId": 3, + "compName": "GUIxor#1", "pinName": "B" } }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "FN" }, "pin2": { - "compId": 8, + "compName": "GUIxor#2", "pinName": "B" }, "path": [ @@ -306,11 +301,11 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "L" }, "pin2": { - "compId": 7, + "compName": "GUImux1#0", "pinName": "S0" }, "path": [ @@ -326,22 +321,22 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 1, + "compName": "GUIand#0", "pinName": "Y" }, "pin2": { - "compId": 4, + "compName": "GUIfulladder#0", "pinName": "A" }, "path": [] }, { "pin1": { - "compId": 2, + "compName": "GUIxor#0", "pinName": "Y" }, "pin2": { - "compId": 9, + "compName": "WireCrossPoint#0", "pinName": "" }, "path": [ @@ -353,11 +348,11 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 9, + "compName": "WireCrossPoint#0", "pinName": "" }, "pin2": { - "compId": 4, + "compName": "GUIfulladder#0", "pinName": "B" }, "path": [ @@ -369,22 +364,22 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 9, + "compName": "WireCrossPoint#0", "pinName": "" }, "pin2": { - "compId": 5, + "compName": "GUINandGate#0", "pinName": "A" }, "path": [] }, { "pin1": { - "compId": 3, + "compName": "GUIxor#1", "pinName": "Y" }, "pin2": { - "compId": 10, + "compName": "WireCrossPoint#1", "pinName": "" }, "path": [ @@ -396,11 +391,11 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 10, + "compName": "WireCrossPoint#1", "pinName": "" }, "pin2": { - "compId": 4, + "compName": "GUIfulladder#0", "pinName": "C" }, "path": [ @@ -412,22 +407,22 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 10, + "compName": "WireCrossPoint#1", "pinName": "" }, "pin2": { - "compId": 5, + "compName": "GUINandGate#0", "pinName": "B" }, "path": [] }, { "pin1": { - "compId": 4, + "compName": "GUIfulladder#0", "pinName": "Y" }, "pin2": { - "compId": 7, + "compName": "GUImux1#0", "pinName": "I0" }, "path": [ @@ -451,22 +446,22 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 4, + "compName": "GUIfulladder#0", "pinName": "Z" }, "pin2": { - "compId": 6, + "compName": "GUIand#1", "pinName": "B" }, "path": [] }, { "pin1": { - "compId": 5, + "compName": "GUINandGate#0", "pinName": "Y" }, "pin2": { - "compId": 7, + "compName": "GUImux1#0", "pinName": "I1" }, "path": [ @@ -482,56 +477,45 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 7, + "compName": "GUImux1#0", "pinName": "Y" }, "pin2": { - "compId": 8, + "compName": "GUIxor#2", "pinName": "A" }, "path": [] }, { "pin1": { - "compId": 6, + "compName": "GUIand#1", "pinName": "Y" }, "pin2": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "Cout" }, "path": [] }, { "pin1": { - "compId": 8, + "compName": "GUIxor#2", "pinName": "Y" }, "pin2": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "F" }, "path": [] } ] }, - "specialized": { - "input_count": [ - "Cin", - "CoutE", - "CinE", - "R", - "RN", - "S", - "SN", - "FN", - "L" - ], - "label": "GUIAm2901ALUOneBit", - "logic_width": 1, - "output_count": [ - "Cout", - "F" - ] + "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer", + "symbolRendererParams": { + "centerText": "GUIAm2901ALUOneBit", + "horizontalComponentCenter": 17.5, + "centerTextHeight": 5.0, + "pinLabelHeight": 3.5, + "pinLabelMargin": 0.5 } } \ No newline at end of file