Full Adder (logic)
Two XOR gates, two ANDs and an OR combine A, B and carry-in into a sum and carry-out — one bit of binary addition.
Rendering…
Make it your own.
{
"nodes": [
{ "id":"a", "type":"rounded", "label":"A", "x":40, "y":60, "fill":"#dbeafe" },
{ "id":"b", "type":"rounded", "label":"B", "x":40, "y":190, "fill":"#dbeafe" },
{ "id":"cin", "type":"rounded", "label":"Cin", "x":40, "y":320, "fill":"#dbeafe" },
{ "id":"xor1", "type":"logic-xor", "label":"XOR", "x":280, "y":90, "fill":"#e0e7ff" },
{ "id":"and1", "type":"logic-and", "label":"AND", "x":280, "y":250, "fill":"#e0e7ff" },
{ "id":"xor2", "type":"logic-xor", "label":"XOR", "x":540, "y":140, "fill":"#e0e7ff" },
{ "id":"and2", "type":"logic-and", "label":"AND", "x":540, "y":300, "fill":"#e0e7ff" },
{ "id":"or1", "type":"logic-or", "label":"OR", "x":790, "y":250, "fill":"#e0e7ff" },
{ "id":"sum", "type":"rounded", "label":"Sum", "x":800, "y":120, "fill":"#dcfce7" },
{ "id":"cout", "type":"rounded", "label":"Cout", "x":1040, "y":250, "fill":"#fef3c7" }
],
"edges": [
{ "id":"e1","source":"a","target":"xor1" }, { "id":"e2","source":"b","target":"xor1" },
{ "id":"e3","source":"a","target":"and1" }, { "id":"e4","source":"b","target":"and1" },
{ "id":"e5","source":"xor1","target":"xor2" }, { "id":"e6","source":"cin","target":"xor2" },
{ "id":"e7","source":"xor1","target":"and2" }, { "id":"e8","source":"cin","target":"and2" },
{ "id":"e9","source":"xor2","target":"sum","label":"Σ" },
{ "id":"e10","source":"and1","target":"or1" }, { "id":"e11","source":"and2","target":"or1" },
{ "id":"e12","source":"or1","target":"cout" }
]
}