X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2FFullAdder.json;h=40c51c76156b72d37e8ab6a5de683a0bfadc98b9;hb=c223a9de7b0ef783bcb4f7612da350583ca29abd;hp=4740f057ccbfe793ea15169189b36510655a5bfe;hpb=5bbe52e7d69c17c18c5b22d5e9fce19a29e35515;p=Mograsim.git diff --git a/net.mograsim.logic.ui/FullAdder.json b/net.mograsim.logic.ui/FullAdder.json index 4740f057..40c51c76 100644 --- a/net.mograsim.logic.ui/FullAdder.json +++ b/net.mograsim.logic.ui/FullAdder.json @@ -1,3 +1,4 @@ +mograsim version: 0.1.1 { "type": "SimpleRectangularSubmodelComponent", "width": 35.0, @@ -8,6 +9,7 @@ "x": 0.0, "y": 5.0 }, + "name": "A", "logicWidth": 1 }, { @@ -15,6 +17,7 @@ "x": 0.0, "y": 15.0 }, + "name": "B", "logicWidth": 1 }, { @@ -22,6 +25,7 @@ "x": 0.0, "y": 25.0 }, + "name": "C", "logicWidth": 1 }, { @@ -29,6 +33,7 @@ "x": 35.0, "y": 5.0 }, + "name": "Y", "logicWidth": 1 }, { @@ -36,6 +41,7 @@ "x": 35.0, "y": 15.0 }, + "name": "Z", "logicWidth": 1 } ], @@ -48,7 +54,7 @@ "y": 40.0 }, "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder", - "logicWidth": 1 + "params": {} }, { "pos": { @@ -56,7 +62,7 @@ "y": 7.5 }, "type": "class:net.mograsim.logic.ui.model.components.mi.nandbased.GUIhalfadder", - "logicWidth": 1 + "params": {} }, { "pos": { @@ -64,81 +70,83 @@ "y": 40.0 }, "type": "class:net.mograsim.logic.ui.model.components.GUINandGate", - "logicWidth": 1 + "params": { + "logicWidth": 1 + } } ], "innerWires": [ { "pin1": { "compId": 0, - "pinIndex": 0 + "pinName": "A" }, "pin2": { "compId": 2, - "pinIndex": 0 + "pinName": "A" }, "path": [] }, { "pin1": { "compId": 0, - "pinIndex": 1 + "pinName": "B" }, "pin2": { "compId": 1, - "pinIndex": 0 + "pinName": "A" } }, { "pin1": { "compId": 0, - "pinIndex": 2 + "pinName": "C" }, "pin2": { "compId": 1, - "pinIndex": 1 + "pinName": "B" } }, { "pin1": { "compId": 1, - "pinIndex": 2 + "pinName": "Y" }, "pin2": { "compId": 2, - "pinIndex": 1 + "pinName": "B" } }, { "pin1": { "compId": 1, - "pinIndex": 3 + "pinName": "_Z" }, "pin2": { "compId": 3, - "pinIndex": 2 + "pinName": "B" }, "path": [] }, { "pin1": { "compId": 2, - "pinIndex": 2 + "pinName": "Y" }, "pin2": { "compId": 0, - "pinIndex": 3 + "pinName": "Y" }, "path": [] }, { "pin1": { "compId": 2, - "pinIndex": 3 + "pinName": "_Z" }, "pin2": { "compId": 3, - "pinIndex": 1 + "pinName": "A" }, "path": [ { @@ -162,11 +170,11 @@ { "pin1": { "compId": 3, - "pinIndex": 0 + "pinName": "Y" }, "pin2": { "compId": 0, - "pinIndex": 4 + "pinName": "Z" } } ]