X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Fcomponents%2FGUIfulladder.json;fp=net.mograsim.logic.model.am2900%2Fcomponents%2FGUIfulladder.json;h=dc4c6162b2d25f46e983e1819112feec8310ba2f;hb=b5d8c2d71e27350ea7c9314e40df5bb0584271cd;hp=0000000000000000000000000000000000000000;hpb=69cb6725ef670328959d55649257ded6ac924b33;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/components/GUIfulladder.json b/net.mograsim.logic.model.am2900/components/GUIfulladder.json new file mode 100644 index 00000000..dc4c6162 --- /dev/null +++ b/net.mograsim.logic.model.am2900/components/GUIfulladder.json @@ -0,0 +1,188 @@ +mograsim version: 0.1.3 +{ + "width": 35.0, + "height": 30.0, + "interfacePins": [ + { + "location": { + "x": 0.0, + "y": 5.0 + }, + "name": "A", + "logicWidth": 1 + }, + { + "location": { + "x": 0.0, + "y": 15.0 + }, + "name": "B", + "logicWidth": 1 + }, + { + "location": { + "x": 0.0, + "y": 25.0 + }, + "name": "C", + "logicWidth": 1 + }, + { + "location": { + "x": 35.0, + "y": 5.0 + }, + "name": "Y", + "logicWidth": 1 + }, + { + "location": { + "x": 35.0, + "y": 15.0 + }, + "name": "Z", + "logicWidth": 1 + } + ], + "submodel": { + "innerScale": 0.4, + "subComps": [ + { + "pos": { + "x": 57.5, + "y": 40.0 + }, + "id": "GUINandGate", + "name": "GUINandGate#0", + "params": 1 + }, + { + "pos": { + "x": 5.0, + "y": 40.0 + }, + "id": "GUIhalfadder", + "name": "GUIhalfadder#0" + }, + { + "pos": { + "x": 45.0, + "y": 7.5 + }, + "id": "GUIhalfadder", + "name": "GUIhalfadder#1" + } + ], + "innerWires": [ + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "A" + }, + "pin2": { + "compName": "GUIhalfadder#1", + "pinName": "A" + }, + "path": [] + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "B" + }, + "pin2": { + "compName": "GUIhalfadder#0", + "pinName": "A" + } + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "C" + }, + "pin2": { + "compName": "GUIhalfadder#0", + "pinName": "B" + } + }, + { + "pin1": { + "compName": "GUIhalfadder#0", + "pinName": "Y" + }, + "pin2": { + "compName": "GUIhalfadder#1", + "pinName": "B" + } + }, + { + "pin1": { + "compName": "GUIhalfadder#0", + "pinName": "_Z" + }, + "pin2": { + "compName": "GUINandGate#0", + "pinName": "B" + }, + "path": [] + }, + { + "pin1": { + "compName": "GUIhalfadder#1", + "pinName": "Y" + }, + "pin2": { + "compName": "_submodelinterface", + "pinName": "Y" + }, + "path": [] + }, + { + "pin1": { + "compName": "GUIhalfadder#1", + "pinName": "_Z" + }, + "pin2": { + "compName": "GUINandGate#0", + "pinName": "A" + }, + "path": [ + { + "x": 82.5, + "y": 22.5 + }, + { + "x": 82.5, + "y": 35.0 + }, + { + "x": 52.5, + "y": 35.0 + }, + { + "x": 52.5, + "y": 45.0 + } + ] + }, + { + "pin1": { + "compName": "GUINandGate#0", + "pinName": "Y" + }, + "pin2": { + "compName": "_submodelinterface", + "pinName": "Z" + } + } + ] + }, + "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer", + "symbolRendererParams": { + "centerText": "GUIfulladder", + "horizontalComponentCenter": 17.5, + "centerTextHeight": 5.0, + "pinLabelHeight": 3.5, + "pinLabelMargin": 0.5 + } +} \ No newline at end of file