{ // JSON5 v: 6, opts: {name: 'Half Adder'}, components: { in0: {type: 'in', pos: [140, 100], id: 0, name: 'A'}, in1: {type: 'in', pos: [140, 170], id: 1, name: 'B'}, out0: {type: 'out', pos: [420, 110], id: 2, name: 'Sum'}, out1: {type: 'out', pos: [420, 180], id: 3, name: 'Carry'}, xor0: {type: 'xor', pos: [275, 110], in: [4, 5], out: 6}, and0: {type: 'and', pos: [275, 180], in: [7, 8], out: 9}, }, wires: [[0, 4], [6, 2], [1, 5], [0, 7], [1, 8], [9, 3]] } A 0 B 0 Sum 0 Carry 0