X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2FFullAdder.json;fp=net.mograsim.logic.model.am2900%2FFullAdder.json;h=40c51c76156b72d37e8ab6a5de683a0bfadc98b9;hb=b5d8c2d71e27350ea7c9314e40df5bb0584271cd;hp=0000000000000000000000000000000000000000;hpb=69cb6725ef670328959d55649257ded6ac924b33;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/FullAdder.json b/net.mograsim.logic.model.am2900/FullAdder.json new file mode 100644 index 00000000..40c51c76 --- /dev/null +++ b/net.mograsim.logic.model.am2900/FullAdder.json @@ -0,0 +1,188 @@ +mograsim version: 0.1.1 +{ + "type": "SimpleRectangularSubmodelComponent", + "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 + } + ], + "composition": { + "innerScale": 0.4, + "subComps": [ + { + "pos": { + "x": 5.0, + "y": 40.0 + }, + "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder", + "params": {} + }, + { + "pos": { + "x": 45.0, + "y": 7.5 + }, + "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder", + "params": {} + }, + { + "pos": { + "x": 57.5, + "y": 40.0 + }, + "type": "class:net.mograsim.logic.ui.model.components.GUINandGate", + "params": { + "logicWidth": 1 + } + } + ], + "innerWires": [ + { + "pin1": { + "compId": 0, + "pinName": "A" + }, + "pin2": { + "compId": 2, + "pinName": "A" + }, + "path": [] + }, + { + "pin1": { + "compId": 0, + "pinName": "B" + }, + "pin2": { + "compId": 1, + "pinName": "A" + } + }, + { + "pin1": { + "compId": 0, + "pinName": "C" + }, + "pin2": { + "compId": 1, + "pinName": "B" + } + }, + { + "pin1": { + "compId": 1, + "pinName": "Y" + }, + "pin2": { + "compId": 2, + "pinName": "B" + } + }, + { + "pin1": { + "compId": 1, + "pinName": "_Z" + }, + "pin2": { + "compId": 3, + "pinName": "B" + }, + "path": [] + }, + { + "pin1": { + "compId": 2, + "pinName": "Y" + }, + "pin2": { + "compId": 0, + "pinName": "Y" + }, + "path": [] + }, + { + "pin1": { + "compId": 2, + "pinName": "_Z" + }, + "pin2": { + "compId": 3, + "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": { + "compId": 3, + "pinName": "Y" + }, + "pin2": { + "compId": 0, + "pinName": "Z" + } + } + ] + }, + "specialized": { + "input_count": 3, + "label": "GUIfulladder", + "logic_width": 1, + "output_count": 2 + } +} \ No newline at end of file