Create a schematic for Ternary logic circuit 

libSymbols:
- Simulation_SPICE:VDC
- TernaryLogic:inverter
- TernaryLogic:nany
- TernaryLogic:nconsensus
- power:GND
- power:PWR_FLAG
- power:VDD
- power:VSS
schematicSymbols:
- libraryNickname: power
  entryName: VDD
  position:
    x: 119.38
    y: 124.46
    angle: 0
  properties:
  - key: Reference
    value: '#PWR05'
    position:
      x: 119.38
      y: 128.27
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 119.38
      y: 120.0166
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nconsensus
  position:
    x: 97.79
    y: 132.08
    angle: 0
  properties:
  - key: Reference
    value: A2
    position:
      x: 108.1261
      y: 120.8966
      angle: 0
  - key: Value
    value: nconsensus
    position:
      x: 108.1261
      y: 123.4335
      angle: 0
- libraryNickname: TernaryLogic
  entryName: inverter
  position:
    x: 168.91
    y: 118.11
    angle: 0
  properties:
  - key: Reference
    value: A5
    position:
      x: 178.3027
      y: 106.9266
      angle: 0
  - key: Value
    value: inverter
    position:
      x: 178.3027
      y: 109.4635
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 189.23
    y: 55.88
    angle: 0
  properties:
  - key: Reference
    value: '#PWR018'
    position:
      x: 189.23
      y: 59.69
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 189.23
      y: 51.4366
      angle: 0
- libraryNickname: power
  entryName: PWR_FLAG
  position:
    x: 139.7
    y: 68.58
    angle: 0
  properties:
  - key: Reference
    value: '#FLG01'
    position:
      x: 139.7
      y: 66.675
      angle: 0
  - key: Value
    value: PWR_FLAG
    position:
      x: 139.7
      y: 65.0042
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 144.78
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: V3
    position:
      x: 148.082
      y: 58.6671
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 148.082
      y: 61.204
      angle: 0
- libraryNickname: TernaryLogic
  entryName: inverter
  position:
    x: 191.77
    y: 63.5
    angle: 0
  properties:
  - key: Reference
    value: A7
    position:
      x: 201.1627
      y: 52.3166
      angle: 0
  - key: Value
    value: inverter
    position:
      x: 201.1627
      y: 54.8535
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 148.59
    y: 110.49
    angle: 0
  properties:
  - key: Reference
    value: '#PWR07'
    position:
      x: 148.59
      y: 114.3
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 148.59
      y: 106.0466
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 148.59
    y: 125.73
    angle: 180
  properties:
  - key: Reference
    value: '#PWR08'
    position:
      x: 148.59
      y: 121.92
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 148.59
      y: 129.3058
      angle: 0
- libraryNickname: power
  entryName: GND
  position:
    x: 139.7
    y: 71.12
    angle: 0
  properties:
  - key: Reference
    value: '#PWR09'
    position:
      x: 139.7
      y: 77.47
      angle: 0
  - key: Value
    value: GND
    position:
      x: 139.7
      y: 75.5634
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 133.35
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: V2
    position:
      x: 136.652
      y: 58.6671
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 136.652
      y: 61.204
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nany
  position:
    x: 149.86
    y: 118.11
    angle: 0
  properties:
  - key: Reference
    value: A4
    position:
      x: 156.7792
      y: 106.9266
      angle: 0
  - key: Value
    value: nany
    position:
      x: 156.7792
      y: 109.4635
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nany
  position:
    x: 97.79
    y: 106.68
    angle: 0
  properties:
  - key: Reference
    value: A1
    position:
      x: 104.7092
      y: 95.4966
      angle: 0
  - key: Value
    value: nany
    position:
      x: 104.7092
      y: 98.0335
      angle: 0
- libraryNickname: TernaryLogic
  entryName: nany
  position:
    x: 194.31
    y: 129.54
    angle: 0
  properties:
  - key: Reference
    value: A6
    position:
      x: 201.2292
      y: 118.3566
      angle: 0
  - key: Value
    value: nany
    position:
      x: 201.2292
      y: 120.8935
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 189.23
    y: 71.12
    angle: 180
  properties:
  - key: Reference
    value: '#PWR019'
    position:
      x: 189.23
      y: 67.31
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 189.23
      y: 74.6958
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 96.52
    y: 99.06
    angle: 0
  properties:
  - key: Reference
    value: '#PWR01'
    position:
      x: 96.52
      y: 102.87
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 96.52
      y: 94.6166
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 144.78
    y: 55.88
    angle: 0
  properties:
  - key: Reference
    value: '#PWR010'
    position:
      x: 144.78
      y: 59.69
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 144.78
      y: 52.3042
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 119.38
    y: 139.7
    angle: 180
  properties:
  - key: Reference
    value: '#PWR06'
    position:
      x: 119.38
      y: 135.89
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 119.38
      y: 143.2758
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 193.04
    y: 137.16
    angle: 180
  properties:
  - key: Reference
    value: '#PWR015'
    position:
      x: 193.04
      y: 133.35
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 193.04
      y: 140.7358
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 157.48
    y: 55.88
    angle: 0
  properties:
  - key: Reference
    value: '#PWR013'
    position:
      x: 157.48
      y: 59.69
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 157.48
      y: 52.3042
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 193.04
    y: 121.92
    angle: 0
  properties:
  - key: Reference
    value: '#PWR014'
    position:
      x: 193.04
      y: 125.73
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 193.04
      y: 117.4766
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 96.52
    y: 124.46
    angle: 0
  properties:
  - key: Reference
    value: '#PWR03'
    position:
      x: 96.52
      y: 128.27
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 96.52
      y: 120.0166
      angle: 0
- libraryNickname: power
  entryName: VDD
  position:
    x: 166.37
    y: 110.49
    angle: 0
  properties:
  - key: Reference
    value: '#PWR011'
    position:
      x: 166.37
      y: 114.3
      angle: 0
  - key: Value
    value: VDD
    position:
      x: 166.37
      y: 106.0466
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 166.37
    y: 125.73
    angle: 180
  properties:
  - key: Reference
    value: '#PWR012'
    position:
      x: 166.37
      y: 121.92
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 166.37
      y: 129.3058
      angle: 0
- libraryNickname: TernaryLogic
  entryName: inverter
  position:
    x: 121.92
    y: 132.08
    angle: 0
  properties:
  - key: Reference
    value: A3
    position:
      x: 131.3127
      y: 120.8966
      angle: 0
  - key: Value
    value: inverter
    position:
      x: 131.3127
      y: 123.4335
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 157.48
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: V4
    position:
      x: 160.782
      y: 58.6671
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 160.782
      y: 61.204
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 96.52
    y: 114.3
    angle: 180
  properties:
  - key: Reference
    value: '#PWR02'
    position:
      x: 96.52
      y: 110.49
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 96.52
      y: 117.8758
      angle: 0
- libraryNickname: power
  entryName: VSS
  position:
    x: 96.52
    y: 139.7
    angle: 180
  properties:
  - key: Reference
    value: '#PWR04'
    position:
      x: 96.52
      y: 135.89
      angle: 0
  - key: Value
    value: VSS
    position:
      x: 96.52
      y: 143.2758
      angle: 0
- libraryNickname: Simulation_SPICE
  entryName: VDC
  position:
    x: 121.92
    y: 60.96
    angle: 0
  properties:
  - key: Reference
    value: V1
    position:
      x: 125.222
      y: 58.6671
      angle: 0
  - key: Value
    value: VDC
    position:
      x: 125.222
      y: 61.204
      angle: 0
junctions:
- position:
    x: 144.78
    y: 68.58
    angle: 0
- position:
    x: 85.09
    y: 114.3
    angle: 0
- position:
    x: 133.35
    y: 68.58
    angle: 0
- position:
    x: 139.7
    y: 68.58
    angle: 0
- position:
    x: 87.63
    y: 118.11
    angle: 0
- position:
    x: 109.22
    y: 132.08
    angle: 0
- position:
    x: 138.43
    y: 132.08
    angle: 0
noConnects: []
busEntries: []
graphicalItems:
- type: wire
  points:
  - x: 144.78
    y: 66.04
  - x: 144.78
    y: 68.58
- type: wire
  points:
  - x: 85.09
    y: 114.3
  - x: 85.09
    y: 104.14
- type: wire
  points:
  - x: 138.43
    y: 132.08
  - x: 186.69
    y: 132.08
- type: wire
  points:
  - x: 186.69
    y: 127
  - x: 181.61
    y: 127
- type: wire
  points:
  - x: 111.76
    y: 77.47
  - x: 139.7
    y: 77.47
- type: wire
  points:
  - x: 121.92
    y: 66.04
  - x: 121.92
    y: 68.58
- type: wire
  points:
  - x: 90.17
    y: 109.22
  - x: 87.63
    y: 109.22
- type: wire
  points:
  - x: 87.63
    y: 118.11
  - x: 87.63
    y: 134.62
- type: wire
  points:
  - x: 133.35
    y: 66.04
  - x: 133.35
    y: 68.58
- type: wire
  points:
  - x: 85.09
    y: 104.14
  - x: 90.17
    y: 104.14
- type: wire
  points:
  - x: 139.7
    y: 68.58
  - x: 144.78
    y: 68.58
- type: wire
  points:
  - x: 181.61
    y: 118.11
  - x: 181.61
    y: 127
- type: wire
  points:
  - x: 157.48
    y: 68.58
  - x: 157.48
    y: 66.04
- type: wire
  points:
  - x: 105.41
    y: 132.08
  - x: 109.22
    y: 132.08
- type: wire
  points:
  - x: 121.92
    y: 68.58
  - x: 133.35
    y: 68.58
- type: wire
  points:
  - x: 85.09
    y: 129.54
  - x: 85.09
    y: 114.3
- type: wire
  points:
  - x: 168.91
    y: 46.99
  - x: 111.76
    y: 46.99
- type: wire
  points:
  - x: 201.93
    y: 129.54
  - x: 204.47
    y: 129.54
- type: wire
  points:
  - x: 139.7
    y: 68.58
  - x: 139.7
    y: 71.12
- type: wire
  points:
  - x: 109.22
    y: 144.78
  - x: 204.47
    y: 144.78
- type: wire
  points:
  - x: 87.63
    y: 134.62
  - x: 90.17
    y: 134.62
- type: wire
  points:
  - x: 109.22
    y: 132.08
  - x: 109.22
    y: 144.78
- type: wire
  points:
  - x: 82.55
    y: 118.11
  - x: 87.63
    y: 118.11
- type: wire
  points:
  - x: 82.55
    y: 114.3
  - x: 85.09
    y: 114.3
- type: wire
  points:
  - x: 139.7
    y: 77.47
  - x: 168.91
    y: 77.47
- type: wire
  points:
  - x: 138.43
    y: 106.68
  - x: 138.43
    y: 115.57
- type: wire
  points:
  - x: 168.91
    y: 77.47
  - x: 168.91
    y: 46.99
- type: wire
  points:
  - x: 138.43
    y: 132.08
  - x: 138.43
    y: 120.65
- type: wire
  points:
  - x: 109.22
    y: 132.08
  - x: 114.3
    y: 132.08
- type: wire
  points:
  - x: 181.61
    y: 118.11
  - x: 177.8
    y: 118.11
- type: wire
  points:
  - x: 144.78
    y: 68.58
  - x: 157.48
    y: 68.58
- type: wire
  points:
  - x: 157.48
    y: 118.11
  - x: 161.29
    y: 118.11
- type: wire
  points:
  - x: 87.63
    y: 109.22
  - x: 87.63
    y: 118.11
- type: wire
  points:
  - x: 90.17
    y: 129.54
  - x: 85.09
    y: 129.54
- type: wire
  points:
  - x: 111.76
    y: 46.99
  - x: 111.76
    y: 77.47
- type: wire
  points:
  - x: 105.41
    y: 106.68
  - x: 138.43
    y: 106.68
- type: wire
  points:
  - x: 130.81
    y: 132.08
  - x: 138.43
    y: 132.08
- type: wire
  points:
  - x: 138.43
    y: 120.65
  - x: 142.24
    y: 120.65
- type: wire
  points:
  - x: 138.43
    y: 115.57
  - x: 142.24
    y: 115.57
- type: wire
  points:
  - x: 133.35
    y: 68.58
  - x: 139.7
    y: 68.58
globalLabels:
- text: A
  shape: input
  position:
    x: 121.92
    y: 55.88
    angle: 90
- text: NotCarry
  shape: output
  position:
    x: 204.47
    y: 144.78
    angle: 0
- text: B
  shape: input
  position:
    x: 82.55
    y: 118.11
    angle: 180
- text: B
  shape: input
  position:
    x: 133.35
    y: 55.88
    angle: 90
- text: NotCarry
  shape: output
  position:
    x: 184.15
    y: 63.5
    angle: 180
- text: Carry
  shape: output
  position:
    x: 200.66
    y: 63.5
    angle: 0
- text: A
  shape: input
  position:
    x: 82.55
    y: 114.3
    angle: 180
- text: Sum
  shape: output
  position:
    x: 204.47
    y: 129.54
    angle: 0
sheetInstances:
- instancePath: /
  page: '1'
