{
  "format": "occircuit",
  "version": 1,
  "circuit": {
    "id": "half-adder",
    "name": "Demi-additionneur",
    "components": [
      {
        "id": "a",
        "type": "Input",
        "x": 100,
        "y": 120,
        "label": "A",
        "width": 1
      },
      {
        "id": "b",
        "type": "Input",
        "x": 100,
        "y": 250,
        "label": "B",
        "width": 1
      },
      {
        "id": "xor",
        "type": "XOR",
        "x": 310,
        "y": 120,
        "label": "XOR",
        "width": 1
      },
      {
        "id": "and",
        "type": "AND",
        "x": 310,
        "y": 250,
        "label": "AND",
        "width": 1
      },
      {
        "id": "sum",
        "type": "Output",
        "x": 510,
        "y": 120,
        "label": "Somme",
        "width": 1
      },
      {
        "id": "carry",
        "type": "Output",
        "x": 510,
        "y": 250,
        "label": "Retenue",
        "width": 1
      }
    ],
    "wires": [
      {
        "from": {
          "id": "a",
          "port": "Q"
        },
        "to": {
          "id": "xor",
          "port": "A"
        }
      },
      {
        "from": {
          "id": "b",
          "port": "Q"
        },
        "to": {
          "id": "xor",
          "port": "B"
        }
      },
      {
        "from": {
          "id": "a",
          "port": "Q"
        },
        "to": {
          "id": "and",
          "port": "A"
        }
      },
      {
        "from": {
          "id": "b",
          "port": "Q"
        },
        "to": {
          "id": "and",
          "port": "B"
        }
      },
      {
        "from": {
          "id": "xor",
          "port": "Q"
        },
        "to": {
          "id": "sum",
          "port": "A"
        }
      },
      {
        "from": {
          "id": "and",
          "port": "Q"
        },
        "to": {
          "id": "carry",
          "port": "A"
        }
      }
    ]
  }
}
