{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-gate-and-2", "id": "and1", "top": 86.4, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor1", "top": 19.2, "left": -144, "attrs": {} },
{
"type": "wokwi-text",
"id": "text1",
"top": 67.2,
"left": -144,
"attrs": { "text": "Carry" }
},
{ "type": "wokwi-text", "id": "text2", "top": 0, "left": -144, "attrs": { "text": "Sum" } },
{
"type": "wokwi-led",
"id": "led1",
"top": -3.6,
"left": 215.4,
"attrs": { "color": "green", "flip": "1" }
},
{ "type": "wokwi-gate-and-2", "id": "and3", "top": 230.4, "left": -28.8, "attrs": {} },
{
"type": "wokwi-text",
"id": "text3",
"top": 240,
"left": 115.2,
"attrs": { "text": "Carry" }
},
{ "type": "wokwi-text", "id": "text4", "top": 144, "left": 0, "attrs": { "text": "Sum" } },
{
"type": "wokwi-text",
"id": "text5",
"top": -9.6,
"left": -38.4,
"attrs": { "text": "Half Adder" }
},
{
"type": "wokwi-text",
"id": "text6",
"top": 124.8,
"left": -28.8,
"attrs": { "text": "Full Adder" }
},
{ "type": "wokwi-gate-xor-2", "id": "xor4", "top": 153.6, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor5", "top": 163.2, "left": -28.8, "attrs": {} },
{
"type": "wokwi-led",
"id": "led3",
"top": 140.4,
"left": 215.4,
"attrs": { "color": "green", "flip": "1" }
},
{ "type": "wokwi-gate-or-2", "id": "or2", "top": 259.2, "left": 86.4, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and4", "top": 268.8, "left": -144, "attrs": {} },
{
"type": "wokwi-text",
"id": "text7",
"top": 240,
"left": 115.2,
"attrs": { "text": "Carry" }
},
{ "type": "wokwi-text", "id": "text8", "top": 144, "left": 0, "attrs": { "text": "Sum" } },
{ "type": "wokwi-gate-xor-2", "id": "xor6", "top": 374.4, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor7", "top": 384, "left": -28.8, "attrs": {} },
{
"type": "wokwi-led",
"id": "led4",
"top": 361.2,
"left": 215.4,
"attrs": { "color": "green", "flip": "1" }
},
{ "type": "wokwi-gate-or-2", "id": "or3", "top": 480, "left": 86.4, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and6", "top": 489.6, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and7", "top": 451.2, "left": -28.8, "attrs": {} },
{
"type": "wokwi-text",
"id": "text10",
"top": 460.8,
"left": 115.2,
"attrs": { "text": "Carry" }
},
{ "type": "wokwi-text", "id": "text11", "top": 364.8, "left": 0, "attrs": { "text": "Sum" } },
{
"type": "wokwi-text",
"id": "text12",
"top": 345.6,
"left": -28.8,
"attrs": { "text": "Full Adder" }
},
{ "type": "wokwi-gate-xor-2", "id": "xor8", "top": 585.6, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor9", "top": 595.2, "left": -28.8, "attrs": {} },
{
"type": "wokwi-led",
"id": "led5",
"top": 572.4,
"left": 215.4,
"attrs": { "color": "green", "flip": "1" }
},
{ "type": "wokwi-gate-or-2", "id": "or4", "top": 691.2, "left": 86.4, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and8", "top": 700.8, "left": -144, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and9", "top": 662.4, "left": -28.8, "attrs": {} },
{
"type": "wokwi-text",
"id": "text13",
"top": 672,
"left": 115.2,
"attrs": { "text": "Overflow" }
},
{ "type": "wokwi-text", "id": "text14", "top": 576, "left": 0, "attrs": { "text": "Sum" } },
{
"type": "wokwi-text",
"id": "text15",
"top": 556.8,
"left": -28.8,
"attrs": { "text": "Full Adder" }
},
{
"type": "wokwi-led",
"id": "led6",
"top": 668.4,
"left": 215.4,
"attrs": { "color": "red", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "gnd1", "top": 748.8, "left": 249, "attrs": {} },
{
"type": "wokwi-slide-switch",
"id": "sw1",
"top": 97.8,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw2",
"top": 155.4,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw3",
"top": 213,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw4",
"top": 270.6,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw5",
"top": 328.2,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw6",
"top": 385.8,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw7",
"top": 443.4,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{
"type": "wokwi-slide-switch",
"id": "sw8",
"top": 491.4,
"left": -320.5,
"rotate": 270,
"attrs": {}
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": 48.76, "left": -259.2, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd2", "top": 537.6, "left": -279, "attrs": {} },
{
"type": "wokwi-led",
"id": "led2",
"top": 236.4,
"left": 186.6,
"attrs": { "color": "cyan", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "gnd3", "top": 278.4, "left": 210.6, "attrs": {} },
{
"type": "wokwi-led",
"id": "led7",
"top": 457.2,
"left": 186.6,
"attrs": { "color": "cyan", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "gnd4", "top": 499.2, "left": 210.6, "attrs": {} }
],
"connections": [
[ "and1:OUT", "and3:A", "cyan", [ "h9.6", "v28.8", "h-124.8", "v76.8", "h124.8", "v28.8" ] ],
[ "xor4:OUT", "xor5:A", "green", [ "v0" ] ],
[ "and4:OUT", "or2:B", "green", [ "h9.6", "v-9.6" ] ],
[ "xor6:OUT", "xor7:A", "green", [ "v0" ] ],
[ "and7:OUT", "or3:A", "green", [ "h9.6", "v19.2" ] ],
[ "and6:OUT", "or3:B", "green", [ "h9.6", "v-9.6" ] ],
[ "xor8:OUT", "xor9:A", "green", [ "v0" ] ],
[ "and9:OUT", "or4:A", "green", [ "h9.6", "v19.2" ] ],
[ "and8:OUT", "or4:B", "green", [ "h9.6", "v-9.6" ] ],
[ "or2:OUT", "xor7:B", "cyan", [ "h9.6", "v48", "h-355.2", "v115.2", "h124.8", "v-28.8" ] ],
[ "or3:OUT", "xor9:B", "cyan", [ "h9.6", "v48", "h-355.2", "v96", "h124.8", "v-19.2" ] ],
[ "and3:OUT", "or2:A", "green", [ "h9.6", "v19.2" ] ],
[ "xor4:OUT", "and3:B", "green", [ "v9.6", "h19.2" ] ],
[ "xor6:OUT", "and7:B", "green", [ "v9.6", "h-19.2", "v76.8" ] ],
[ "xor8:OUT", "and9:B", "green", [ "v9.6", "h-19.2", "v76.8" ] ],
[ "or2:OUT", "and7:A", "cyan", [ "h9.6", "v48", "h-355.2", "v115.2", "h124.8", "v19.2" ] ],
[ "or3:OUT", "and9:A", "cyan", [ "h9.6", "v48", "h-355.2", "v96", "h124.8", "v28.8" ] ],
[ "and1:OUT", "xor5:B", "cyan", [ "h9.6", "v28.8", "h-124.8", "v76.8", "h124.8", "v-19.2" ] ],
[ "xor1:OUT", "led1:A", "green", [ "h134.4", "v0", "h124.4" ] ],
[ "led3:A", "xor5:OUT", "green", [ "v9.6" ] ],
[ "xor7:OUT", "led4:A", "green", [ "v0", "h153.6" ] ],
[ "xor9:OUT", "led5:A", "green", [ "v0", "h153.6" ] ],
[ "or4:OUT", "led6:A", "green", [ "v0", "h38.4" ] ],
[ "gnd1:GND", "led3:C", "black", [ "v-566.4", "h-18.8" ] ],
[ "gnd1:GND", "led1:C", "black", [ "v-710.4", "h-18.8" ] ],
[ "gnd1:GND", "led4:C", "black", [ "v-345.6", "h-18.8" ] ],
[ "gnd1:GND", "led6:C", "black", [ "v-38.4", "h-19.2" ] ],
[ "gnd1:GND", "led5:C", "black", [ "v-134.4", "h-18.8" ] ],
[ "vcc1:VCC", "sw1:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw2:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw3:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw4:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw5:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw6:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw7:3", "red", [ "v0" ] ],
[ "vcc1:VCC", "sw8:3", "red", [ "v0" ] ],
[ "gnd2:GND", "sw8:1", "black", [ "v-19.2", "h-28.8" ] ],
[ "gnd2:GND", "sw7:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw6:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw5:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw4:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw3:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw2:1", "black", [ "v0" ] ],
[ "gnd2:GND", "sw1:1", "black", [ "v0" ] ],
[ "sw1:2", "xor1:A", "#8f4814", [ "h67.2", "v-86.5" ] ],
[ "sw1:2", "and1:A", "#8f4814", [ "h67.2", "v-19.3" ] ],
[ "sw2:2", "xor1:B", "purple", [ "h86.4", "v-124.9" ] ],
[ "sw2:2", "and1:B", "purple", [ "h86.4", "v-57.7" ] ],
[ "sw3:2", "xor4:A", "orange", [ "h105.6", "v-67.3" ] ],
[ "sw3:2", "and4:A", "orange", [ "h105.6", "v47.9" ] ],
[ "sw4:2", "xor4:B", "gold", [ "h86.4", "v-105.7" ] ],
[ "sw4:2", "and4:B", "gold", [ "h86.4", "v9.5" ] ],
[ "sw5:2", "xor6:A", "green", [ "h105.6", "v38.3" ] ],
[ "sw5:2", "and6:A", "green", [ "h105.6", "v153.5" ] ],
[ "sw6:2", "xor6:B", "blue", [ "h0" ] ],
[ "sw6:2", "and6:B", "blue", [ "h86.4", "v115.1" ] ],
[ "sw7:2", "xor8:A", "violet", [ "h67.2", "v134.3" ] ],
[ "sw7:2", "and8:A", "violet", [ "h67.2", "v249.5" ] ],
[ "sw8:2", "xor8:B", "gray", [ "h48", "v105.5" ] ],
[ "sw8:2", "and8:B", "gray", [ "h48", "v220.7" ] ],
[ "gnd3:GND", "led2:C", "black", [ "v0" ] ],
[ "or2:OUT", "led2:A", "cyan", [ "v0" ] ],
[ "gnd4:GND", "led7:C", "black", [ "v0" ] ],
[ "or3:OUT", "led7:A", "cyan", [ "v0" ] ]
],
"dependencies": {}
}
Carry
Sum
Carry
Sum
Half Adder
Full Adder
Carry
Sum
Carry
Sum
Full Adder
Overflow
Sum
Full Adder