X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui.am2900%2Fcomponents%2FGUIhalfadder.json;fp=net.mograsim.logic.ui.am2900%2Fcomponents%2FGUIhalfadder.json;h=5e1371e16bc2c643a14f39f6cfa07773e2aebc2a;hb=70d9098dd01dfe29142a4184438175d5a013bb5b;hp=0000000000000000000000000000000000000000;hpb=b37ba7609a925cc945bbac0f6ead619d07912238;p=Mograsim.git diff --git a/net.mograsim.logic.ui.am2900/components/GUIhalfadder.json b/net.mograsim.logic.ui.am2900/components/GUIhalfadder.json new file mode 100644 index 00000000..5e1371e1 --- /dev/null +++ b/net.mograsim.logic.ui.am2900/components/GUIhalfadder.json @@ -0,0 +1,330 @@ +mograsim version: 0.1.2 +{ + "type": "SimpleRectangularSubmodelComponent", + "name": "GUIhalfadder", + "width": 35.0, + "height": 20.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": 35.0, + "y": 5.0 + }, + "name": "Y", + "logicWidth": 1 + }, + { + "location": { + "x": 35.0, + "y": 15.0 + }, + "name": "_Z", + "logicWidth": 1 + } + ], + "composition": { + "innerScale": 0.4, + "subComps": [ + { + "pos": { + "x": 10.0, + "y": 15.0 + }, + "name": "GUINandGate", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 40.0, + "y": 2.5 + }, + "name": "GUINandGate", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 40.0, + "y": 27.5 + }, + "name": "GUINandGate", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 65.0, + "y": 2.5 + }, + "name": "GUINandGate", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 4.0, + "y": 11.5 + }, + "name": "WireCrossPoint", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 4.0, + "y": 36.5 + }, + "name": "WireCrossPoint", + "params": { + "logicWidth": 1 + } + }, + { + "pos": { + "x": 34.0, + "y": 24.0 + }, + "name": "WireCrossPoint", + "params": { + "logicWidth": 1 + } + } + ], + "innerWires": [ + { + "pin1": { + "compId": 0, + "pinName": "A" + }, + "pin2": { + "compId": 5, + "pinName": "" + }, + "path": [] + }, + { + "pin1": { + "compId": 5, + "pinName": "" + }, + "pin2": { + "compId": 2, + "pinName": "A" + }, + "path": [ + { + "x": 5.0, + "y": 7.5 + } + ] + }, + { + "pin1": { + "compId": 5, + "pinName": "" + }, + "pin2": { + "compId": 1, + "pinName": "A" + }, + "path": [ + { + "x": 5.0, + "y": 20.0 + } + ] + }, + { + "pin1": { + "compId": 0, + "pinName": "B" + }, + "pin2": { + "compId": 6, + "pinName": "" + }, + "path": [] + }, + { + "pin1": { + "compId": 6, + "pinName": "" + }, + "pin2": { + "compId": 3, + "pinName": "B" + }, + "path": [ + { + "x": 5.0, + "y": 42.5 + } + ] + }, + { + "pin1": { + "compId": 6, + "pinName": "" + }, + "pin2": { + "compId": 1, + "pinName": "B" + }, + "path": [ + { + "x": 5.0, + "y": 30.0 + } + ] + }, + { + "pin1": { + "compId": 1, + "pinName": "Y" + }, + "pin2": { + "compId": 7, + "pinName": "" + }, + "path": [] + }, + { + "pin1": { + "compId": 7, + "pinName": "" + }, + "pin2": { + "compId": 0, + "pinName": "_Z" + }, + "path": [ + { + "x": 80.0, + "y": 25.0 + }, + { + "x": 80.0, + "y": 37.5 + } + ] + }, + { + "pin1": { + "compId": 7, + "pinName": "" + }, + "pin2": { + "compId": 2, + "pinName": "B" + }, + "path": [ + { + "x": 35.0, + "y": 17.5 + } + ] + }, + { + "pin1": { + "compId": 7, + "pinName": "" + }, + "pin2": { + "compId": 3, + "pinName": "A" + }, + "path": [ + { + "x": 35.0, + "y": 32.5 + } + ] + }, + { + "pin1": { + "compId": 2, + "pinName": "Y" + }, + "pin2": { + "compId": 4, + "pinName": "A" + }, + "path": [ + { + "x": 62.5, + "y": 12.5 + }, + { + "x": 62.5, + "y": 7.5 + } + ] + }, + { + "pin1": { + "compId": 3, + "pinName": "Y" + }, + "pin2": { + "compId": 4, + "pinName": "B" + }, + "path": [ + { + "x": 62.5, + "y": 37.5 + }, + { + "x": 62.5, + "y": 17.5 + } + ] + }, + { + "pin1": { + "compId": 4, + "pinName": "Y" + }, + "pin2": { + "compId": 0, + "pinName": "Y" + }, + "path": [] + } + ] + }, + "specialized": { + "input_count": [ + "A", + "B" + ], + "label": "GUIhalfadder", + "logic_width": 1, + "output_count": [ + "Y", + "_Z" + ] + } +} \ No newline at end of file