X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui.am2900%2Fcomponents%2FGUIfulladder.json;h=dc4c6162b2d25f46e983e1819112feec8310ba2f;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=259ba27027a741a3fe50f8b3682d12298a164d23;hpb=70d9098dd01dfe29142a4184438175d5a013bb5b;p=Mograsim.git diff --git a/net.mograsim.logic.ui.am2900/components/GUIfulladder.json b/net.mograsim.logic.ui.am2900/components/GUIfulladder.json index 259ba270..dc4c6162 100644 --- a/net.mograsim.logic.ui.am2900/components/GUIfulladder.json +++ b/net.mograsim.logic.ui.am2900/components/GUIfulladder.json @@ -1,7 +1,5 @@ -mograsim version: 0.1.2 +mograsim version: 0.1.3 { - "type": "SimpleRectangularSubmodelComponent", - "name": "GUIfulladder", "width": 35.0, "height": 30.0, "interfacePins": [ @@ -46,107 +44,106 @@ mograsim version: 0.1.2 "logicWidth": 1 } ], - "composition": { + "submodel": { "innerScale": 0.4, "subComps": [ { "pos": { - "x": 5.0, + "x": 57.5, "y": 40.0 }, - "name": "GUIhalfadder", - "params": {} + "id": "GUINandGate", + "name": "GUINandGate#0", + "params": 1 }, { "pos": { - "x": 45.0, - "y": 7.5 + "x": 5.0, + "y": 40.0 }, - "name": "GUIhalfadder", - "params": {} + "id": "GUIhalfadder", + "name": "GUIhalfadder#0" }, { "pos": { - "x": 57.5, - "y": 40.0 + "x": 45.0, + "y": 7.5 }, - "name": "GUINandGate", - "params": { - "logicWidth": 1 - } + "id": "GUIhalfadder", + "name": "GUIhalfadder#1" } ], "innerWires": [ { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "A" }, "pin2": { - "compId": 2, + "compName": "GUIhalfadder#1", "pinName": "A" }, "path": [] }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "B" }, "pin2": { - "compId": 1, + "compName": "GUIhalfadder#0", "pinName": "A" } }, { "pin1": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "C" }, "pin2": { - "compId": 1, + "compName": "GUIhalfadder#0", "pinName": "B" } }, { "pin1": { - "compId": 1, + "compName": "GUIhalfadder#0", "pinName": "Y" }, "pin2": { - "compId": 2, + "compName": "GUIhalfadder#1", "pinName": "B" } }, { "pin1": { - "compId": 1, + "compName": "GUIhalfadder#0", "pinName": "_Z" }, "pin2": { - "compId": 3, + "compName": "GUINandGate#0", "pinName": "B" }, "path": [] }, { "pin1": { - "compId": 2, + "compName": "GUIhalfadder#1", "pinName": "Y" }, "pin2": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "Y" }, "path": [] }, { "pin1": { - "compId": 2, + "compName": "GUIhalfadder#1", "pinName": "_Z" }, "pin2": { - "compId": 3, + "compName": "GUINandGate#0", "pinName": "A" }, "path": [ @@ -170,27 +167,22 @@ mograsim version: 0.1.2 }, { "pin1": { - "compId": 3, + "compName": "GUINandGate#0", "pinName": "Y" }, "pin2": { - "compId": 0, + "compName": "_submodelinterface", "pinName": "Z" } } ] }, - "specialized": { - "input_count": [ - "A", - "B", - "C" - ], - "label": "GUIfulladder", - "logic_width": 1, - "output_count": [ - "Y", - "Z" - ] + "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer", + "symbolRendererParams": { + "centerText": "GUIfulladder", + "horizontalComponentCenter": 17.5, + "centerTextHeight": 5.0, + "pinLabelHeight": 3.5, + "pinLabelMargin": 0.5 } } \ No newline at end of file