{
  "nodes": [
    {
      "id": 762,
      "type": "ROM",
      "x": 375,
      "y": 38,
      "inputs": [
        763,
        764,
        765
      ],
      "outputs": [
        766,
        767,
        768,
        769,
        770,
        771,
        772,
        773
      ],
      "state": {},
      "extra": {
        "romText": "10000000\n01000000\n00100000\n00010000\n00001000\n00000100\n00000010\n00000001"
      }
    },
    {
      "id": 774,
      "type": "CUSTOM:COUNTER-4BIT",
      "x": 174,
      "y": 61,
      "inputs": [
        775
      ],
      "outputs": [
        776,
        777,
        778,
        779
      ],
      "state": {},
      "extra": {
        "defName": "CUSTOM:COUNTER-4BIT"
      },
      "subState": {
        "nodes": [
          {
            "id": 617,
            "type": "INPUT",
            "x": 21,
            "y": 412,
            "inputs": [],
            "outputs": [
              618
            ],
            "state": {
              "on": true
            },
            "extra": {}
          },
          {
            "id": 619,
            "type": "OUTPUT",
            "x": 1034,
            "y": 456,
            "inputs": [
              620
            ],
            "outputs": [],
            "state": {
              "on": false
            },
            "extra": {}
          },
          {
            "id": 621,
            "type": "OUTPUT",
            "x": 1026,
            "y": 329,
            "inputs": [
              622
            ],
            "outputs": [],
            "state": {
              "on": false
            },
            "extra": {}
          },
          {
            "id": 623,
            "type": "OUTPUT",
            "x": 1022,
            "y": 117,
            "inputs": [
              624
            ],
            "outputs": [],
            "state": {
              "on": true
            },
            "extra": {}
          },
          {
            "id": 625,
            "type": "OUTPUT",
            "x": 1033,
            "y": 234,
            "inputs": [
              626
            ],
            "outputs": [],
            "state": {
              "on": false
            },
            "extra": {}
          },
          {
            "id": 627,
            "type": "CUSTOM:COUNTER-1BIT",
            "x": 765,
            "y": 118,
            "inputs": [
              628
            ],
            "outputs": [
              629
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:COUNTER-1BIT"
            },
            "subState": {
              "nodes": [
                {
                  "id": 594,
                  "type": "INPUT",
                  "x": 50,
                  "y": 290,
                  "inputs": [],
                  "outputs": [
                    595
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 596,
                  "type": "OUTPUT",
                  "x": 932,
                  "y": 182,
                  "inputs": [
                    597
                  ],
                  "outputs": [],
                  "state": {
                    "on": true
                  },
                  "extra": {}
                },
                {
                  "id": 598,
                  "type": "NOT",
                  "x": 315,
                  "y": 367,
                  "inputs": [
                    599
                  ],
                  "outputs": [
                    600
                  ],
                  "state": {},
                  "extra": {}
                },
                {
                  "id": 601,
                  "type": "CUSTOM:D-Latch",
                  "x": 303,
                  "y": 228,
                  "inputs": [
                    602,
                    603
                  ],
                  "outputs": [
                    604,
                    605
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                },
                {
                  "id": 606,
                  "type": "CUSTOM:D-Latch",
                  "x": 551,
                  "y": 242,
                  "inputs": [
                    607,
                    608
                  ],
                  "outputs": [
                    609,
                    610
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                }
              ],
              "pins": [
                {
                  "id": 595,
                  "nodeId": 594,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 597,
                  "nodeId": 596,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 599,
                  "nodeId": 598,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 600,
                  "nodeId": 598,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 602,
                  "nodeId": 601,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 603,
                  "nodeId": 601,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 604,
                  "nodeId": 601,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 605,
                  "nodeId": 601,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 607,
                  "nodeId": 606,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 608,
                  "nodeId": 606,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 609,
                  "nodeId": 606,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 610,
                  "nodeId": 606,
                  "kind": "out",
                  "value": false
                }
              ],
              "wires": [
                {
                  "id": 611,
                  "fromPin": 595,
                  "toPin": 603
                },
                {
                  "id": 612,
                  "fromPin": 595,
                  "toPin": 599
                },
                {
                  "id": 613,
                  "fromPin": 600,
                  "toPin": 608
                },
                {
                  "id": 614,
                  "fromPin": 604,
                  "toPin": 607
                },
                {
                  "id": 615,
                  "fromPin": 609,
                  "toPin": 597
                },
                {
                  "id": 616,
                  "fromPin": 610,
                  "toPin": 602
                }
              ]
            }
          },
          {
            "id": 630,
            "type": "CUSTOM:COUNTER-1BIT",
            "x": 579,
            "y": 209,
            "inputs": [
              631
            ],
            "outputs": [
              632
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:COUNTER-1BIT"
            },
            "subState": {
              "nodes": [
                {
                  "id": 594,
                  "type": "INPUT",
                  "x": 50,
                  "y": 290,
                  "inputs": [],
                  "outputs": [
                    595
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 596,
                  "type": "OUTPUT",
                  "x": 932,
                  "y": 182,
                  "inputs": [
                    597
                  ],
                  "outputs": [],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 598,
                  "type": "NOT",
                  "x": 315,
                  "y": 367,
                  "inputs": [
                    599
                  ],
                  "outputs": [
                    600
                  ],
                  "state": {},
                  "extra": {}
                },
                {
                  "id": 601,
                  "type": "CUSTOM:D-Latch",
                  "x": 303,
                  "y": 228,
                  "inputs": [
                    602,
                    603
                  ],
                  "outputs": [
                    604,
                    605
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                },
                {
                  "id": 606,
                  "type": "CUSTOM:D-Latch",
                  "x": 551,
                  "y": 242,
                  "inputs": [
                    607,
                    608
                  ],
                  "outputs": [
                    609,
                    610
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                }
              ],
              "pins": [
                {
                  "id": 595,
                  "nodeId": 594,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 597,
                  "nodeId": 596,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 599,
                  "nodeId": 598,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 600,
                  "nodeId": 598,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 602,
                  "nodeId": 601,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 603,
                  "nodeId": 601,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 604,
                  "nodeId": 601,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 605,
                  "nodeId": 601,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 607,
                  "nodeId": 606,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 608,
                  "nodeId": 606,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 609,
                  "nodeId": 606,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 610,
                  "nodeId": 606,
                  "kind": "out",
                  "value": true
                }
              ],
              "wires": [
                {
                  "id": 611,
                  "fromPin": 595,
                  "toPin": 603
                },
                {
                  "id": 612,
                  "fromPin": 595,
                  "toPin": 599
                },
                {
                  "id": 613,
                  "fromPin": 600,
                  "toPin": 608
                },
                {
                  "id": 614,
                  "fromPin": 604,
                  "toPin": 607
                },
                {
                  "id": 615,
                  "fromPin": 609,
                  "toPin": 597
                },
                {
                  "id": 616,
                  "fromPin": 610,
                  "toPin": 602
                }
              ]
            }
          },
          {
            "id": 633,
            "type": "CUSTOM:COUNTER-1BIT",
            "x": 232,
            "y": 417,
            "inputs": [
              634
            ],
            "outputs": [
              635
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:COUNTER-1BIT"
            },
            "subState": {
              "nodes": [
                {
                  "id": 594,
                  "type": "INPUT",
                  "x": 50,
                  "y": 290,
                  "inputs": [],
                  "outputs": [
                    595
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 596,
                  "type": "OUTPUT",
                  "x": 932,
                  "y": 182,
                  "inputs": [
                    597
                  ],
                  "outputs": [],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 598,
                  "type": "NOT",
                  "x": 315,
                  "y": 367,
                  "inputs": [
                    599
                  ],
                  "outputs": [
                    600
                  ],
                  "state": {},
                  "extra": {}
                },
                {
                  "id": 601,
                  "type": "CUSTOM:D-Latch",
                  "x": 303,
                  "y": 228,
                  "inputs": [
                    602,
                    603
                  ],
                  "outputs": [
                    604,
                    605
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                },
                {
                  "id": 606,
                  "type": "CUSTOM:D-Latch",
                  "x": 551,
                  "y": 242,
                  "inputs": [
                    607,
                    608
                  ],
                  "outputs": [
                    609,
                    610
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                }
              ],
              "pins": [
                {
                  "id": 595,
                  "nodeId": 594,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 597,
                  "nodeId": 596,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 599,
                  "nodeId": 598,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 600,
                  "nodeId": 598,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 602,
                  "nodeId": 601,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 603,
                  "nodeId": 601,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 604,
                  "nodeId": 601,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 605,
                  "nodeId": 601,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 607,
                  "nodeId": 606,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 608,
                  "nodeId": 606,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 609,
                  "nodeId": 606,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 610,
                  "nodeId": 606,
                  "kind": "out",
                  "value": true
                }
              ],
              "wires": [
                {
                  "id": 611,
                  "fromPin": 595,
                  "toPin": 603
                },
                {
                  "id": 612,
                  "fromPin": 595,
                  "toPin": 599
                },
                {
                  "id": 613,
                  "fromPin": 600,
                  "toPin": 608
                },
                {
                  "id": 614,
                  "fromPin": 604,
                  "toPin": 607
                },
                {
                  "id": 615,
                  "fromPin": 609,
                  "toPin": 597
                },
                {
                  "id": 616,
                  "fromPin": 610,
                  "toPin": 602
                }
              ]
            }
          },
          {
            "id": 636,
            "type": "CUSTOM:COUNTER-1BIT",
            "x": 411,
            "y": 315,
            "inputs": [
              637
            ],
            "outputs": [
              638
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:COUNTER-1BIT"
            },
            "subState": {
              "nodes": [
                {
                  "id": 594,
                  "type": "INPUT",
                  "x": 50,
                  "y": 290,
                  "inputs": [],
                  "outputs": [
                    595
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 596,
                  "type": "OUTPUT",
                  "x": 932,
                  "y": 182,
                  "inputs": [
                    597
                  ],
                  "outputs": [],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 598,
                  "type": "NOT",
                  "x": 315,
                  "y": 367,
                  "inputs": [
                    599
                  ],
                  "outputs": [
                    600
                  ],
                  "state": {},
                  "extra": {}
                },
                {
                  "id": 601,
                  "type": "CUSTOM:D-Latch",
                  "x": 303,
                  "y": 228,
                  "inputs": [
                    602,
                    603
                  ],
                  "outputs": [
                    604,
                    605
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                },
                {
                  "id": 606,
                  "type": "CUSTOM:D-Latch",
                  "x": 551,
                  "y": 242,
                  "inputs": [
                    607,
                    608
                  ],
                  "outputs": [
                    609,
                    610
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:D-Latch"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 552,
                        "type": "INPUT",
                        "x": 64,
                        "y": 315,
                        "inputs": [],
                        "outputs": [
                          553
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 554,
                        "type": "INPUT",
                        "x": 58,
                        "y": 209,
                        "inputs": [],
                        "outputs": [
                          555
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 564,
                        "type": "CUSTOM:NAND",
                        "x": 299,
                        "y": 222,
                        "inputs": [
                          565,
                          566
                        ],
                        "outputs": [
                          567
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 568,
                        "type": "CUSTOM:NAND",
                        "x": 436,
                        "y": 315,
                        "inputs": [
                          569,
                          570
                        ],
                        "outputs": [
                          571
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 572,
                        "type": "CUSTOM:NAND",
                        "x": 725,
                        "y": 206,
                        "inputs": [
                          573,
                          574
                        ],
                        "outputs": [
                          575
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": true
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": false
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 576,
                        "type": "CUSTOM:NAND",
                        "x": 723,
                        "y": 306,
                        "inputs": [
                          577,
                          578
                        ],
                        "outputs": [
                          579
                        ],
                        "state": {},
                        "extra": {
                          "defName": "CUSTOM:NAND"
                        },
                        "subState": {
                          "nodes": [
                            {
                              "id": 26,
                              "type": "AND",
                              "x": 216,
                              "y": 161,
                              "inputs": [
                                27,
                                28
                              ],
                              "outputs": [
                                29
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 30,
                              "type": "INPUT",
                              "x": 79,
                              "y": 200,
                              "inputs": [],
                              "outputs": [
                                31
                              ],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            },
                            {
                              "id": 32,
                              "type": "INPUT",
                              "x": 78,
                              "y": 141,
                              "inputs": [],
                              "outputs": [
                                33
                              ],
                              "state": {
                                "on": false
                              },
                              "extra": {}
                            },
                            {
                              "id": 34,
                              "type": "NOT",
                              "x": 341,
                              "y": 163,
                              "inputs": [
                                35
                              ],
                              "outputs": [
                                36
                              ],
                              "state": {},
                              "extra": {}
                            },
                            {
                              "id": 37,
                              "type": "OUTPUT",
                              "x": 476,
                              "y": 161,
                              "inputs": [
                                38
                              ],
                              "outputs": [],
                              "state": {
                                "on": true
                              },
                              "extra": {}
                            }
                          ],
                          "pins": [
                            {
                              "id": 27,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 28,
                              "nodeId": 26,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 29,
                              "nodeId": 26,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 31,
                              "nodeId": 30,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 33,
                              "nodeId": 32,
                              "kind": "out",
                              "value": false
                            },
                            {
                              "id": 35,
                              "nodeId": 34,
                              "kind": "in",
                              "value": false
                            },
                            {
                              "id": 36,
                              "nodeId": 34,
                              "kind": "out",
                              "value": true
                            },
                            {
                              "id": 38,
                              "nodeId": 37,
                              "kind": "in",
                              "value": true
                            }
                          ],
                          "wires": [
                            {
                              "id": 39,
                              "fromPin": 33,
                              "toPin": 27
                            },
                            {
                              "id": 40,
                              "fromPin": 31,
                              "toPin": 28
                            },
                            {
                              "id": 41,
                              "fromPin": 29,
                              "toPin": 35
                            },
                            {
                              "id": 42,
                              "fromPin": 36,
                              "toPin": 38
                            }
                          ]
                        }
                      },
                      {
                        "id": 586,
                        "type": "OUTPUT",
                        "x": 1017,
                        "y": 193,
                        "inputs": [
                          587
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 588,
                        "type": "OUTPUT",
                        "x": 1009,
                        "y": 303,
                        "inputs": [
                          589
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 553,
                        "nodeId": 552,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 555,
                        "nodeId": 554,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 565,
                        "nodeId": 564,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 566,
                        "nodeId": 564,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 567,
                        "nodeId": 564,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 569,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 570,
                        "nodeId": 568,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 571,
                        "nodeId": 568,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 573,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 574,
                        "nodeId": 572,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 575,
                        "nodeId": 572,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 577,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 578,
                        "nodeId": 576,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 579,
                        "nodeId": 576,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 587,
                        "nodeId": 586,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 589,
                        "nodeId": 588,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 580,
                        "fromPin": 553,
                        "toPin": 570
                      },
                      {
                        "id": 581,
                        "fromPin": 553,
                        "toPin": 566
                      },
                      {
                        "id": 582,
                        "fromPin": 555,
                        "toPin": 565
                      },
                      {
                        "id": 583,
                        "fromPin": 567,
                        "toPin": 569
                      },
                      {
                        "id": 584,
                        "fromPin": 567,
                        "toPin": 573
                      },
                      {
                        "id": 585,
                        "fromPin": 571,
                        "toPin": 578
                      },
                      {
                        "id": 590,
                        "fromPin": 575,
                        "toPin": 587
                      },
                      {
                        "id": 591,
                        "fromPin": 579,
                        "toPin": 589
                      },
                      {
                        "id": 592,
                        "fromPin": 575,
                        "toPin": 577
                      },
                      {
                        "id": 593,
                        "fromPin": 579,
                        "toPin": 574
                      }
                    ]
                  }
                }
              ],
              "pins": [
                {
                  "id": 595,
                  "nodeId": 594,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 597,
                  "nodeId": 596,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 599,
                  "nodeId": 598,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 600,
                  "nodeId": 598,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 602,
                  "nodeId": 601,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 603,
                  "nodeId": 601,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 604,
                  "nodeId": 601,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 605,
                  "nodeId": 601,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 607,
                  "nodeId": 606,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 608,
                  "nodeId": 606,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 609,
                  "nodeId": 606,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 610,
                  "nodeId": 606,
                  "kind": "out",
                  "value": true
                }
              ],
              "wires": [
                {
                  "id": 611,
                  "fromPin": 595,
                  "toPin": 603
                },
                {
                  "id": 612,
                  "fromPin": 595,
                  "toPin": 599
                },
                {
                  "id": 613,
                  "fromPin": 600,
                  "toPin": 608
                },
                {
                  "id": 614,
                  "fromPin": 604,
                  "toPin": 607
                },
                {
                  "id": 615,
                  "fromPin": 609,
                  "toPin": 597
                },
                {
                  "id": 616,
                  "fromPin": 610,
                  "toPin": 602
                }
              ]
            }
          }
        ],
        "pins": [
          {
            "id": 618,
            "nodeId": 617,
            "kind": "out",
            "value": true
          },
          {
            "id": 620,
            "nodeId": 619,
            "kind": "in",
            "value": false
          },
          {
            "id": 622,
            "nodeId": 621,
            "kind": "in",
            "value": false
          },
          {
            "id": 624,
            "nodeId": 623,
            "kind": "in",
            "value": true
          },
          {
            "id": 626,
            "nodeId": 625,
            "kind": "in",
            "value": false
          },
          {
            "id": 628,
            "nodeId": 627,
            "kind": "in",
            "value": false
          },
          {
            "id": 629,
            "nodeId": 627,
            "kind": "out",
            "value": true
          },
          {
            "id": 631,
            "nodeId": 630,
            "kind": "in",
            "value": false
          },
          {
            "id": 632,
            "nodeId": 630,
            "kind": "out",
            "value": false
          },
          {
            "id": 634,
            "nodeId": 633,
            "kind": "in",
            "value": true
          },
          {
            "id": 635,
            "nodeId": 633,
            "kind": "out",
            "value": false
          },
          {
            "id": 637,
            "nodeId": 636,
            "kind": "in",
            "value": false
          },
          {
            "id": 638,
            "nodeId": 636,
            "kind": "out",
            "value": false
          }
        ],
        "wires": [
          {
            "id": 639,
            "fromPin": 618,
            "toPin": 634
          },
          {
            "id": 640,
            "fromPin": 635,
            "toPin": 637
          },
          {
            "id": 641,
            "fromPin": 638,
            "toPin": 631
          },
          {
            "id": 642,
            "fromPin": 632,
            "toPin": 628
          },
          {
            "id": 643,
            "fromPin": 629,
            "toPin": 624
          },
          {
            "id": 644,
            "fromPin": 632,
            "toPin": 626
          },
          {
            "id": 645,
            "fromPin": 638,
            "toPin": 622
          },
          {
            "id": 646,
            "fromPin": 635,
            "toPin": 620
          }
        ]
      }
    },
    {
      "id": 780,
      "type": "CLOCK",
      "x": 16,
      "y": 55,
      "inputs": [],
      "outputs": [
        781
      ],
      "state": {
        "phase": true
      },
      "extra": {
        "freq": 4
      }
    },
    {
      "id": 786,
      "type": "CUSTOM:RS-LATCH",
      "x": 228,
      "y": 268,
      "inputs": [
        787,
        788
      ],
      "outputs": [
        789,
        790
      ],
      "state": {},
      "extra": {
        "defName": "CUSTOM:RS-LATCH"
      },
      "subState": {
        "nodes": [
          {
            "id": 396,
            "type": "CUSTOM:NOR",
            "x": 406,
            "y": 166,
            "inputs": [
              397,
              398
            ],
            "outputs": [
              399
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:NOR"
            },
            "subState": {
              "nodes": [
                {
                  "id": 365,
                  "type": "CUSTOM:NAND",
                  "x": 482,
                  "y": 201,
                  "inputs": [
                    366,
                    367
                  ],
                  "outputs": [
                    368
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 369,
                  "type": "CUSTOM:NAND",
                  "x": 311,
                  "y": 213,
                  "inputs": [
                    370,
                    371
                  ],
                  "outputs": [
                    372
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 373,
                  "type": "CUSTOM:NAND",
                  "x": 161,
                  "y": 272,
                  "inputs": [
                    374,
                    375
                  ],
                  "outputs": [
                    376
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 377,
                  "type": "CUSTOM:NAND",
                  "x": 155,
                  "y": 139,
                  "inputs": [
                    378,
                    379
                  ],
                  "outputs": [
                    380
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 381,
                  "type": "INPUT",
                  "x": 22,
                  "y": 126,
                  "inputs": [],
                  "outputs": [
                    382
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 383,
                  "type": "INPUT",
                  "x": 25,
                  "y": 285,
                  "inputs": [],
                  "outputs": [
                    384
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 393,
                  "type": "OUTPUT",
                  "x": 622,
                  "y": 198,
                  "inputs": [
                    394
                  ],
                  "outputs": [],
                  "state": {
                    "on": true
                  },
                  "extra": {}
                }
              ],
              "pins": [
                {
                  "id": 366,
                  "nodeId": 365,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 367,
                  "nodeId": 365,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 368,
                  "nodeId": 365,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 370,
                  "nodeId": 369,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 371,
                  "nodeId": 369,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 372,
                  "nodeId": 369,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 374,
                  "nodeId": 373,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 375,
                  "nodeId": 373,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 376,
                  "nodeId": 373,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 378,
                  "nodeId": 377,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 379,
                  "nodeId": 377,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 380,
                  "nodeId": 377,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 382,
                  "nodeId": 381,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 384,
                  "nodeId": 383,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 394,
                  "nodeId": 393,
                  "kind": "in",
                  "value": true
                }
              ],
              "wires": [
                {
                  "id": 385,
                  "fromPin": 382,
                  "toPin": 378
                },
                {
                  "id": 386,
                  "fromPin": 382,
                  "toPin": 379
                },
                {
                  "id": 387,
                  "fromPin": 384,
                  "toPin": 374
                },
                {
                  "id": 388,
                  "fromPin": 384,
                  "toPin": 375
                },
                {
                  "id": 389,
                  "fromPin": 376,
                  "toPin": 371
                },
                {
                  "id": 390,
                  "fromPin": 380,
                  "toPin": 370
                },
                {
                  "id": 391,
                  "fromPin": 372,
                  "toPin": 366
                },
                {
                  "id": 392,
                  "fromPin": 372,
                  "toPin": 367
                },
                {
                  "id": 395,
                  "fromPin": 368,
                  "toPin": 394
                }
              ]
            }
          },
          {
            "id": 400,
            "type": "CUSTOM:NOR",
            "x": 412,
            "y": 288,
            "inputs": [
              401,
              402
            ],
            "outputs": [
              403
            ],
            "state": {},
            "extra": {
              "defName": "CUSTOM:NOR"
            },
            "subState": {
              "nodes": [
                {
                  "id": 365,
                  "type": "CUSTOM:NAND",
                  "x": 482,
                  "y": 201,
                  "inputs": [
                    366,
                    367
                  ],
                  "outputs": [
                    368
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 369,
                  "type": "CUSTOM:NAND",
                  "x": 311,
                  "y": 213,
                  "inputs": [
                    370,
                    371
                  ],
                  "outputs": [
                    372
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 373,
                  "type": "CUSTOM:NAND",
                  "x": 161,
                  "y": 272,
                  "inputs": [
                    374,
                    375
                  ],
                  "outputs": [
                    376
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": false
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": true
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 377,
                  "type": "CUSTOM:NAND",
                  "x": 155,
                  "y": 139,
                  "inputs": [
                    378,
                    379
                  ],
                  "outputs": [
                    380
                  ],
                  "state": {},
                  "extra": {
                    "defName": "CUSTOM:NAND"
                  },
                  "subState": {
                    "nodes": [
                      {
                        "id": 26,
                        "type": "AND",
                        "x": 216,
                        "y": 161,
                        "inputs": [
                          27,
                          28
                        ],
                        "outputs": [
                          29
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 30,
                        "type": "INPUT",
                        "x": 79,
                        "y": 200,
                        "inputs": [],
                        "outputs": [
                          31
                        ],
                        "state": {
                          "on": true
                        },
                        "extra": {}
                      },
                      {
                        "id": 32,
                        "type": "INPUT",
                        "x": 78,
                        "y": 141,
                        "inputs": [],
                        "outputs": [
                          33
                        ],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      },
                      {
                        "id": 34,
                        "type": "NOT",
                        "x": 341,
                        "y": 163,
                        "inputs": [
                          35
                        ],
                        "outputs": [
                          36
                        ],
                        "state": {},
                        "extra": {}
                      },
                      {
                        "id": 37,
                        "type": "OUTPUT",
                        "x": 476,
                        "y": 161,
                        "inputs": [
                          38
                        ],
                        "outputs": [],
                        "state": {
                          "on": false
                        },
                        "extra": {}
                      }
                    ],
                    "pins": [
                      {
                        "id": 27,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 28,
                        "nodeId": 26,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 29,
                        "nodeId": 26,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 31,
                        "nodeId": 30,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 33,
                        "nodeId": 32,
                        "kind": "out",
                        "value": true
                      },
                      {
                        "id": 35,
                        "nodeId": 34,
                        "kind": "in",
                        "value": true
                      },
                      {
                        "id": 36,
                        "nodeId": 34,
                        "kind": "out",
                        "value": false
                      },
                      {
                        "id": 38,
                        "nodeId": 37,
                        "kind": "in",
                        "value": false
                      }
                    ],
                    "wires": [
                      {
                        "id": 39,
                        "fromPin": 33,
                        "toPin": 27
                      },
                      {
                        "id": 40,
                        "fromPin": 31,
                        "toPin": 28
                      },
                      {
                        "id": 41,
                        "fromPin": 29,
                        "toPin": 35
                      },
                      {
                        "id": 42,
                        "fromPin": 36,
                        "toPin": 38
                      }
                    ]
                  }
                },
                {
                  "id": 381,
                  "type": "INPUT",
                  "x": 22,
                  "y": 126,
                  "inputs": [],
                  "outputs": [
                    382
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 383,
                  "type": "INPUT",
                  "x": 25,
                  "y": 285,
                  "inputs": [],
                  "outputs": [
                    384
                  ],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                },
                {
                  "id": 393,
                  "type": "OUTPUT",
                  "x": 622,
                  "y": 198,
                  "inputs": [
                    394
                  ],
                  "outputs": [],
                  "state": {
                    "on": false
                  },
                  "extra": {}
                }
              ],
              "pins": [
                {
                  "id": 366,
                  "nodeId": 365,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 367,
                  "nodeId": 365,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 368,
                  "nodeId": 365,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 370,
                  "nodeId": 369,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 371,
                  "nodeId": 369,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 372,
                  "nodeId": 369,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 374,
                  "nodeId": 373,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 375,
                  "nodeId": 373,
                  "kind": "in",
                  "value": false
                },
                {
                  "id": 376,
                  "nodeId": 373,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 378,
                  "nodeId": 377,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 379,
                  "nodeId": 377,
                  "kind": "in",
                  "value": true
                },
                {
                  "id": 380,
                  "nodeId": 377,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 382,
                  "nodeId": 381,
                  "kind": "out",
                  "value": true
                },
                {
                  "id": 384,
                  "nodeId": 383,
                  "kind": "out",
                  "value": false
                },
                {
                  "id": 394,
                  "nodeId": 393,
                  "kind": "in",
                  "value": false
                }
              ],
              "wires": [
                {
                  "id": 385,
                  "fromPin": 382,
                  "toPin": 378
                },
                {
                  "id": 386,
                  "fromPin": 382,
                  "toPin": 379
                },
                {
                  "id": 387,
                  "fromPin": 384,
                  "toPin": 374
                },
                {
                  "id": 388,
                  "fromPin": 384,
                  "toPin": 375
                },
                {
                  "id": 389,
                  "fromPin": 376,
                  "toPin": 371
                },
                {
                  "id": 390,
                  "fromPin": 380,
                  "toPin": 370
                },
                {
                  "id": 391,
                  "fromPin": 372,
                  "toPin": 366
                },
                {
                  "id": 392,
                  "fromPin": 372,
                  "toPin": 367
                },
                {
                  "id": 395,
                  "fromPin": 368,
                  "toPin": 394
                }
              ]
            }
          },
          {
            "id": 404,
            "type": "INPUT",
            "x": 116,
            "y": 161,
            "inputs": [],
            "outputs": [
              405
            ],
            "state": {
              "on": false
            },
            "extra": {}
          },
          {
            "id": 406,
            "type": "INPUT",
            "x": 124,
            "y": 301,
            "inputs": [],
            "outputs": [
              407
            ],
            "state": {
              "on": true
            },
            "extra": {}
          },
          {
            "id": 408,
            "type": "OUTPUT",
            "x": 663,
            "y": 171,
            "inputs": [
              409
            ],
            "outputs": [],
            "state": {
              "on": true
            },
            "extra": {}
          },
          {
            "id": 410,
            "type": "OUTPUT",
            "x": 663,
            "y": 289,
            "inputs": [
              411
            ],
            "outputs": [],
            "state": {
              "on": false
            },
            "extra": {}
          }
        ],
        "pins": [
          {
            "id": 397,
            "nodeId": 396,
            "kind": "in",
            "value": false
          },
          {
            "id": 398,
            "nodeId": 396,
            "kind": "in",
            "value": false
          },
          {
            "id": 399,
            "nodeId": 396,
            "kind": "out",
            "value": true
          },
          {
            "id": 401,
            "nodeId": 400,
            "kind": "in",
            "value": true
          },
          {
            "id": 402,
            "nodeId": 400,
            "kind": "in",
            "value": false
          },
          {
            "id": 403,
            "nodeId": 400,
            "kind": "out",
            "value": false
          },
          {
            "id": 405,
            "nodeId": 404,
            "kind": "out",
            "value": false
          },
          {
            "id": 407,
            "nodeId": 406,
            "kind": "out",
            "value": false
          },
          {
            "id": 409,
            "nodeId": 408,
            "kind": "in",
            "value": true
          },
          {
            "id": 411,
            "nodeId": 410,
            "kind": "in",
            "value": false
          }
        ],
        "wires": [
          {
            "id": 412,
            "fromPin": 405,
            "toPin": 397
          },
          {
            "id": 413,
            "fromPin": 407,
            "toPin": 402
          },
          {
            "id": 414,
            "fromPin": 399,
            "toPin": 401
          },
          {
            "id": 415,
            "fromPin": 403,
            "toPin": 398
          },
          {
            "id": 416,
            "fromPin": 399,
            "toPin": 409
          },
          {
            "id": 417,
            "fromPin": 403,
            "toPin": 411
          }
        ]
      }
    },
    {
      "id": 791,
      "type": "INPUT",
      "x": 54,
      "y": 233,
      "inputs": [],
      "outputs": [
        792
      ],
      "state": {
        "on": false
      },
      "extra": {}
    },
    {
      "id": 793,
      "type": "INPUT",
      "x": 49,
      "y": 325,
      "inputs": [],
      "outputs": [
        794
      ],
      "state": {
        "on": false
      },
      "extra": {}
    },
    {
      "id": 795,
      "type": "OUTPUT",
      "x": 398,
      "y": 244,
      "inputs": [
        796
      ],
      "outputs": [],
      "state": {
        "on": true
      },
      "extra": {}
    }
  ],
  "pins": [
    {
      "id": 763,
      "nodeId": 762,
      "kind": "in",
      "value": false
    },
    {
      "id": 764,
      "nodeId": 762,
      "kind": "in",
      "value": false
    },
    {
      "id": 765,
      "nodeId": 762,
      "kind": "in",
      "value": false
    },
    {
      "id": 766,
      "nodeId": 762,
      "kind": "out",
      "value": true
    },
    {
      "id": 767,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 768,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 769,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 770,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 771,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 772,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 773,
      "nodeId": 762,
      "kind": "out",
      "value": false
    },
    {
      "id": 775,
      "nodeId": 774,
      "kind": "in",
      "value": true
    },
    {
      "id": 776,
      "nodeId": 774,
      "kind": "out",
      "value": true
    },
    {
      "id": 777,
      "nodeId": 774,
      "kind": "out",
      "value": false
    },
    {
      "id": 778,
      "nodeId": 774,
      "kind": "out",
      "value": false
    },
    {
      "id": 779,
      "nodeId": 774,
      "kind": "out",
      "value": false
    },
    {
      "id": 781,
      "nodeId": 780,
      "kind": "out",
      "value": true
    },
    {
      "id": 787,
      "nodeId": 786,
      "kind": "in",
      "value": false
    },
    {
      "id": 788,
      "nodeId": 786,
      "kind": "in",
      "value": false
    },
    {
      "id": 789,
      "nodeId": 786,
      "kind": "out",
      "value": true
    },
    {
      "id": 790,
      "nodeId": 786,
      "kind": "out",
      "value": false
    },
    {
      "id": 792,
      "nodeId": 791,
      "kind": "out",
      "value": false
    },
    {
      "id": 794,
      "nodeId": 793,
      "kind": "out",
      "value": false
    },
    {
      "id": 796,
      "nodeId": 795,
      "kind": "in",
      "value": true
    }
  ],
  "wires": [
    {
      "id": 782,
      "fromPin": 781,
      "toPin": 775
    },
    {
      "id": 783,
      "fromPin": 779,
      "toPin": 763
    },
    {
      "id": 784,
      "fromPin": 778,
      "toPin": 764
    },
    {
      "id": 785,
      "fromPin": 777,
      "toPin": 765
    },
    {
      "id": 797,
      "fromPin": 792,
      "toPin": 787
    },
    {
      "id": 798,
      "fromPin": 794,
      "toPin": 788
    },
    {
      "id": 799,
      "fromPin": 789,
      "toPin": 796
    }
  ],
  "customGateDefs": [
    {
      "name": "CUSTOM:NAND",
      "nodes": [
        {
          "id": 26,
          "type": "AND",
          "x": 216,
          "y": 161,
          "inputs": [
            27,
            28
          ],
          "outputs": [
            29
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 30,
          "type": "INPUT",
          "x": 79,
          "y": 200,
          "inputs": [],
          "outputs": [
            31
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 32,
          "type": "INPUT",
          "x": 78,
          "y": 141,
          "inputs": [],
          "outputs": [
            33
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 34,
          "type": "NOT",
          "x": 341,
          "y": 163,
          "inputs": [
            35
          ],
          "outputs": [
            36
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 37,
          "type": "OUTPUT",
          "x": 476,
          "y": 161,
          "inputs": [
            38
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 27,
          "nodeId": 26,
          "kind": "in",
          "value": false
        },
        {
          "id": 28,
          "nodeId": 26,
          "kind": "in",
          "value": true
        },
        {
          "id": 29,
          "nodeId": 26,
          "kind": "out",
          "value": false
        },
        {
          "id": 31,
          "nodeId": 30,
          "kind": "out",
          "value": true
        },
        {
          "id": 33,
          "nodeId": 32,
          "kind": "out",
          "value": false
        },
        {
          "id": 35,
          "nodeId": 34,
          "kind": "in",
          "value": false
        },
        {
          "id": 36,
          "nodeId": 34,
          "kind": "out",
          "value": true
        },
        {
          "id": 38,
          "nodeId": 37,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 39,
          "fromPin": 33,
          "toPin": 27
        },
        {
          "id": 40,
          "fromPin": 31,
          "toPin": 28
        },
        {
          "id": 41,
          "fromPin": 29,
          "toPin": 35
        },
        {
          "id": 42,
          "fromPin": 36,
          "toPin": 38
        }
      ],
      "io": {
        "inputs": [
          33,
          31
        ],
        "outputs": [
          38
        ]
      }
    },
    {
      "name": "CUSTOM:XOR",
      "nodes": [
        {
          "id": 143,
          "type": "CUSTOM:NAND",
          "x": 313,
          "y": 245,
          "inputs": [
            144,
            145
          ],
          "outputs": [
            146
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 152,
          "type": "INPUT",
          "x": 109,
          "y": 332,
          "inputs": [],
          "outputs": [
            153
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 159,
          "type": "CUSTOM:NAND",
          "x": 495,
          "y": 360,
          "inputs": [
            160,
            161
          ],
          "outputs": [
            162
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 163,
          "type": "CUSTOM:NAND",
          "x": 675,
          "y": 227,
          "inputs": [
            164,
            165
          ],
          "outputs": [
            166
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 167,
          "type": "CUSTOM:NAND",
          "x": 460,
          "y": 137,
          "inputs": [
            168,
            169
          ],
          "outputs": [
            170
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 171,
          "type": "INPUT",
          "x": 98,
          "y": 147,
          "inputs": [],
          "outputs": [
            172
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 180,
          "type": "OUTPUT",
          "x": 845,
          "y": 228,
          "inputs": [
            181
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 144,
          "nodeId": 143,
          "kind": "in",
          "value": true
        },
        {
          "id": 145,
          "nodeId": 143,
          "kind": "in",
          "value": true
        },
        {
          "id": 146,
          "nodeId": 143,
          "kind": "out",
          "value": false
        },
        {
          "id": 153,
          "nodeId": 152,
          "kind": "out",
          "value": true
        },
        {
          "id": 160,
          "nodeId": 159,
          "kind": "in",
          "value": false
        },
        {
          "id": 161,
          "nodeId": 159,
          "kind": "in",
          "value": true
        },
        {
          "id": 162,
          "nodeId": 159,
          "kind": "out",
          "value": true
        },
        {
          "id": 164,
          "nodeId": 163,
          "kind": "in",
          "value": true
        },
        {
          "id": 165,
          "nodeId": 163,
          "kind": "in",
          "value": true
        },
        {
          "id": 166,
          "nodeId": 163,
          "kind": "out",
          "value": false
        },
        {
          "id": 168,
          "nodeId": 167,
          "kind": "in",
          "value": true
        },
        {
          "id": 169,
          "nodeId": 167,
          "kind": "in",
          "value": false
        },
        {
          "id": 170,
          "nodeId": 167,
          "kind": "out",
          "value": true
        },
        {
          "id": 172,
          "nodeId": 171,
          "kind": "out",
          "value": true
        },
        {
          "id": 181,
          "nodeId": 180,
          "kind": "in",
          "value": false
        }
      ],
      "wires": [
        {
          "id": 154,
          "fromPin": 153,
          "toPin": 145
        },
        {
          "id": 173,
          "fromPin": 172,
          "toPin": 144
        },
        {
          "id": 174,
          "fromPin": 172,
          "toPin": 168
        },
        {
          "id": 175,
          "fromPin": 153,
          "toPin": 161
        },
        {
          "id": 176,
          "fromPin": 146,
          "toPin": 160
        },
        {
          "id": 177,
          "fromPin": 146,
          "toPin": 169
        },
        {
          "id": 178,
          "fromPin": 170,
          "toPin": 164
        },
        {
          "id": 179,
          "fromPin": 162,
          "toPin": 165
        },
        {
          "id": 182,
          "fromPin": 166,
          "toPin": 181
        }
      ],
      "io": {
        "inputs": [
          172,
          153
        ],
        "outputs": [
          181
        ]
      }
    },
    {
      "name": "CUSTOM:HALF_ADDER",
      "nodes": [
        {
          "id": 193,
          "type": "INPUT",
          "x": 52,
          "y": 207,
          "inputs": [],
          "outputs": [
            194
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 195,
          "type": "INPUT",
          "x": 53,
          "y": 133,
          "inputs": [],
          "outputs": [
            196
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 197,
          "type": "CUSTOM:XOR",
          "x": 237,
          "y": 130,
          "inputs": [
            198,
            199
          ],
          "outputs": [
            200
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:XOR"
          }
        },
        {
          "id": 201,
          "type": "AND",
          "x": 239,
          "y": 205,
          "inputs": [
            202,
            203
          ],
          "outputs": [
            204
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 205,
          "type": "OUTPUT",
          "x": 516,
          "y": 133,
          "inputs": [
            206
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 207,
          "type": "OUTPUT",
          "x": 515,
          "y": 202,
          "inputs": [
            208
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 194,
          "nodeId": 193,
          "kind": "out",
          "value": true
        },
        {
          "id": 196,
          "nodeId": 195,
          "kind": "out",
          "value": true
        },
        {
          "id": 198,
          "nodeId": 197,
          "kind": "in",
          "value": true
        },
        {
          "id": 199,
          "nodeId": 197,
          "kind": "in",
          "value": true
        },
        {
          "id": 200,
          "nodeId": 197,
          "kind": "out",
          "value": false
        },
        {
          "id": 202,
          "nodeId": 201,
          "kind": "in",
          "value": true
        },
        {
          "id": 203,
          "nodeId": 201,
          "kind": "in",
          "value": true
        },
        {
          "id": 204,
          "nodeId": 201,
          "kind": "out",
          "value": true
        },
        {
          "id": 206,
          "nodeId": 205,
          "kind": "in",
          "value": false
        },
        {
          "id": 208,
          "nodeId": 207,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 209,
          "fromPin": 196,
          "toPin": 198
        },
        {
          "id": 210,
          "fromPin": 196,
          "toPin": 202
        },
        {
          "id": 211,
          "fromPin": 194,
          "toPin": 199
        },
        {
          "id": 212,
          "fromPin": 194,
          "toPin": 203
        },
        {
          "id": 213,
          "fromPin": 200,
          "toPin": 206
        },
        {
          "id": 214,
          "fromPin": 204,
          "toPin": 208
        }
      ],
      "io": {
        "inputs": [
          196,
          194
        ],
        "outputs": [
          206,
          208
        ]
      }
    },
    {
      "name": "CUSTOM:OR",
      "nodes": [
        {
          "id": 251,
          "type": "INPUT",
          "x": 169,
          "y": 404,
          "inputs": [],
          "outputs": [
            252
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 253,
          "type": "CUSTOM:NAND",
          "x": 401,
          "y": 412,
          "inputs": [
            254,
            255
          ],
          "outputs": [
            256
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 257,
          "type": "CUSTOM:NAND",
          "x": 416,
          "y": 500,
          "inputs": [
            258,
            259
          ],
          "outputs": [
            260
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 261,
          "type": "CUSTOM:NAND",
          "x": 556,
          "y": 450,
          "inputs": [
            262,
            263
          ],
          "outputs": [
            264
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 265,
          "type": "INPUT",
          "x": 180,
          "y": 527,
          "inputs": [],
          "outputs": [
            266
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 275,
          "type": "OUTPUT",
          "x": 737,
          "y": 455,
          "inputs": [
            276
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 252,
          "nodeId": 251,
          "kind": "out",
          "value": true
        },
        {
          "id": 254,
          "nodeId": 253,
          "kind": "in",
          "value": true
        },
        {
          "id": 255,
          "nodeId": 253,
          "kind": "in",
          "value": true
        },
        {
          "id": 256,
          "nodeId": 253,
          "kind": "out",
          "value": false
        },
        {
          "id": 258,
          "nodeId": 257,
          "kind": "in",
          "value": true
        },
        {
          "id": 259,
          "nodeId": 257,
          "kind": "in",
          "value": true
        },
        {
          "id": 260,
          "nodeId": 257,
          "kind": "out",
          "value": false
        },
        {
          "id": 262,
          "nodeId": 261,
          "kind": "in",
          "value": false
        },
        {
          "id": 263,
          "nodeId": 261,
          "kind": "in",
          "value": false
        },
        {
          "id": 264,
          "nodeId": 261,
          "kind": "out",
          "value": true
        },
        {
          "id": 266,
          "nodeId": 265,
          "kind": "out",
          "value": true
        },
        {
          "id": 276,
          "nodeId": 275,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 269,
          "fromPin": 252,
          "toPin": 254
        },
        {
          "id": 270,
          "fromPin": 252,
          "toPin": 255
        },
        {
          "id": 271,
          "fromPin": 266,
          "toPin": 258
        },
        {
          "id": 272,
          "fromPin": 266,
          "toPin": 259
        },
        {
          "id": 273,
          "fromPin": 260,
          "toPin": 263
        },
        {
          "id": 274,
          "fromPin": 256,
          "toPin": 262
        },
        {
          "id": 277,
          "fromPin": 264,
          "toPin": 276
        }
      ],
      "io": {
        "inputs": [
          252,
          266
        ],
        "outputs": [
          276
        ]
      }
    },
    {
      "name": "CUSTOM:ADDER",
      "nodes": [
        {
          "id": 226,
          "type": "CUSTOM:HALF_ADDER",
          "x": 351,
          "y": 66,
          "inputs": [
            227,
            228
          ],
          "outputs": [
            229,
            230
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:HALF_ADDER"
          }
        },
        {
          "id": 231,
          "type": "CUSTOM:HALF_ADDER",
          "x": 597,
          "y": 58,
          "inputs": [
            232,
            233
          ],
          "outputs": [
            234,
            235
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:HALF_ADDER"
          }
        },
        {
          "id": 236,
          "type": "OUTPUT",
          "x": 928,
          "y": 84,
          "inputs": [
            237
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 238,
          "type": "OUTPUT",
          "x": 938,
          "y": 216,
          "inputs": [
            239
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 240,
          "type": "INPUT",
          "x": 140,
          "y": 27,
          "inputs": [],
          "outputs": [
            241
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 242,
          "type": "INPUT",
          "x": 159,
          "y": 113,
          "inputs": [],
          "outputs": [
            243
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 244,
          "type": "INPUT",
          "x": 149,
          "y": 205,
          "inputs": [],
          "outputs": [
            245
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 288,
          "type": "CUSTOM:OR",
          "x": 722,
          "y": 189,
          "inputs": [
            289,
            290
          ],
          "outputs": [
            291
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:OR"
          }
        }
      ],
      "pins": [
        {
          "id": 227,
          "nodeId": 226,
          "kind": "in",
          "value": true
        },
        {
          "id": 228,
          "nodeId": 226,
          "kind": "in",
          "value": true
        },
        {
          "id": 229,
          "nodeId": 226,
          "kind": "out",
          "value": false
        },
        {
          "id": 230,
          "nodeId": 226,
          "kind": "out",
          "value": true
        },
        {
          "id": 232,
          "nodeId": 231,
          "kind": "in",
          "value": false
        },
        {
          "id": 233,
          "nodeId": 231,
          "kind": "in",
          "value": true
        },
        {
          "id": 234,
          "nodeId": 231,
          "kind": "out",
          "value": true
        },
        {
          "id": 235,
          "nodeId": 231,
          "kind": "out",
          "value": false
        },
        {
          "id": 237,
          "nodeId": 236,
          "kind": "in",
          "value": true
        },
        {
          "id": 239,
          "nodeId": 238,
          "kind": "in",
          "value": true
        },
        {
          "id": 241,
          "nodeId": 240,
          "kind": "out",
          "value": true
        },
        {
          "id": 243,
          "nodeId": 242,
          "kind": "out",
          "value": true
        },
        {
          "id": 245,
          "nodeId": 244,
          "kind": "out",
          "value": true
        },
        {
          "id": 289,
          "nodeId": 288,
          "kind": "in",
          "value": false
        },
        {
          "id": 290,
          "nodeId": 288,
          "kind": "in",
          "value": true
        },
        {
          "id": 291,
          "nodeId": 288,
          "kind": "out",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 246,
          "fromPin": 241,
          "toPin": 227
        },
        {
          "id": 247,
          "fromPin": 243,
          "toPin": 228
        },
        {
          "id": 248,
          "fromPin": 229,
          "toPin": 232
        },
        {
          "id": 249,
          "fromPin": 234,
          "toPin": 237
        },
        {
          "id": 250,
          "fromPin": 245,
          "toPin": 233
        },
        {
          "id": 292,
          "fromPin": 235,
          "toPin": 289
        },
        {
          "id": 293,
          "fromPin": 230,
          "toPin": 290
        },
        {
          "id": 294,
          "fromPin": 291,
          "toPin": 239
        }
      ],
      "io": {
        "inputs": [
          241,
          243,
          245
        ],
        "outputs": [
          237,
          239
        ]
      }
    },
    {
      "name": "CUSTOM:4BIT_ADDER",
      "nodes": [
        {
          "id": 296,
          "type": "INPUT",
          "x": 88,
          "y": 195,
          "inputs": [],
          "outputs": [
            297
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 298,
          "type": "INPUT",
          "x": 84,
          "y": 54,
          "inputs": [],
          "outputs": [
            299
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 300,
          "type": "INPUT",
          "x": 86,
          "y": 130,
          "inputs": [],
          "outputs": [
            301
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 302,
          "type": "INPUT",
          "x": 113,
          "y": 488,
          "inputs": [],
          "outputs": [
            303
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 304,
          "type": "INPUT",
          "x": 88,
          "y": 260,
          "inputs": [],
          "outputs": [
            305
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 306,
          "type": "INPUT",
          "x": 98,
          "y": 423,
          "inputs": [],
          "outputs": [
            307
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 308,
          "type": "INPUT",
          "x": 111,
          "y": 555,
          "inputs": [],
          "outputs": [
            309
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 310,
          "type": "INPUT",
          "x": 111,
          "y": 618,
          "inputs": [],
          "outputs": [
            311
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 312,
          "type": "INPUT",
          "x": 104,
          "y": 743,
          "inputs": [],
          "outputs": [
            313
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 314,
          "type": "CUSTOM:ADDER",
          "x": 760,
          "y": 118,
          "inputs": [
            315,
            316,
            317
          ],
          "outputs": [
            318,
            319
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:ADDER"
          }
        },
        {
          "id": 320,
          "type": "CUSTOM:ADDER",
          "x": 445,
          "y": 462,
          "inputs": [
            321,
            322,
            323
          ],
          "outputs": [
            324,
            325
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:ADDER"
          }
        },
        {
          "id": 326,
          "type": "CUSTOM:ADDER",
          "x": 594,
          "y": 325,
          "inputs": [
            327,
            328,
            329
          ],
          "outputs": [
            330,
            331
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:ADDER"
          }
        },
        {
          "id": 332,
          "type": "OUTPUT",
          "x": 1071,
          "y": 275,
          "inputs": [
            333
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 334,
          "type": "OUTPUT",
          "x": 1066,
          "y": 195,
          "inputs": [
            335
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 336,
          "type": "OUTPUT",
          "x": 1062,
          "y": 64,
          "inputs": [
            337
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 338,
          "type": "OUTPUT",
          "x": 1061,
          "y": 131,
          "inputs": [
            339
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 344,
          "type": "CUSTOM:ADDER",
          "x": 294,
          "y": 596,
          "inputs": [
            345,
            346,
            347
          ],
          "outputs": [
            348,
            349
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:ADDER"
          }
        },
        {
          "id": 362,
          "type": "OUTPUT",
          "x": 1063,
          "y": 484,
          "inputs": [
            363
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 297,
          "nodeId": 296,
          "kind": "out",
          "value": true
        },
        {
          "id": 299,
          "nodeId": 298,
          "kind": "out",
          "value": true
        },
        {
          "id": 301,
          "nodeId": 300,
          "kind": "out",
          "value": true
        },
        {
          "id": 303,
          "nodeId": 302,
          "kind": "out",
          "value": true
        },
        {
          "id": 305,
          "nodeId": 304,
          "kind": "out",
          "value": true
        },
        {
          "id": 307,
          "nodeId": 306,
          "kind": "out",
          "value": true
        },
        {
          "id": 309,
          "nodeId": 308,
          "kind": "out",
          "value": true
        },
        {
          "id": 311,
          "nodeId": 310,
          "kind": "out",
          "value": true
        },
        {
          "id": 313,
          "nodeId": 312,
          "kind": "out",
          "value": true
        },
        {
          "id": 315,
          "nodeId": 314,
          "kind": "in",
          "value": true
        },
        {
          "id": 316,
          "nodeId": 314,
          "kind": "in",
          "value": true
        },
        {
          "id": 317,
          "nodeId": 314,
          "kind": "in",
          "value": true
        },
        {
          "id": 318,
          "nodeId": 314,
          "kind": "out",
          "value": true
        },
        {
          "id": 319,
          "nodeId": 314,
          "kind": "out",
          "value": true
        },
        {
          "id": 321,
          "nodeId": 320,
          "kind": "in",
          "value": true
        },
        {
          "id": 322,
          "nodeId": 320,
          "kind": "in",
          "value": true
        },
        {
          "id": 323,
          "nodeId": 320,
          "kind": "in",
          "value": true
        },
        {
          "id": 324,
          "nodeId": 320,
          "kind": "out",
          "value": true
        },
        {
          "id": 325,
          "nodeId": 320,
          "kind": "out",
          "value": true
        },
        {
          "id": 327,
          "nodeId": 326,
          "kind": "in",
          "value": true
        },
        {
          "id": 328,
          "nodeId": 326,
          "kind": "in",
          "value": true
        },
        {
          "id": 329,
          "nodeId": 326,
          "kind": "in",
          "value": true
        },
        {
          "id": 330,
          "nodeId": 326,
          "kind": "out",
          "value": true
        },
        {
          "id": 331,
          "nodeId": 326,
          "kind": "out",
          "value": true
        },
        {
          "id": 333,
          "nodeId": 332,
          "kind": "in",
          "value": true
        },
        {
          "id": 335,
          "nodeId": 334,
          "kind": "in",
          "value": true
        },
        {
          "id": 337,
          "nodeId": 336,
          "kind": "in",
          "value": true
        },
        {
          "id": 339,
          "nodeId": 338,
          "kind": "in",
          "value": true
        },
        {
          "id": 345,
          "nodeId": 344,
          "kind": "in",
          "value": true
        },
        {
          "id": 346,
          "nodeId": 344,
          "kind": "in",
          "value": true
        },
        {
          "id": 347,
          "nodeId": 344,
          "kind": "in",
          "value": true
        },
        {
          "id": 348,
          "nodeId": 344,
          "kind": "out",
          "value": true
        },
        {
          "id": 349,
          "nodeId": 344,
          "kind": "out",
          "value": true
        },
        {
          "id": 363,
          "nodeId": 362,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 340,
          "fromPin": 299,
          "toPin": 315
        },
        {
          "id": 341,
          "fromPin": 307,
          "toPin": 316
        },
        {
          "id": 342,
          "fromPin": 301,
          "toPin": 327
        },
        {
          "id": 343,
          "fromPin": 303,
          "toPin": 328
        },
        {
          "id": 350,
          "fromPin": 297,
          "toPin": 321
        },
        {
          "id": 351,
          "fromPin": 309,
          "toPin": 322
        },
        {
          "id": 352,
          "fromPin": 305,
          "toPin": 345
        },
        {
          "id": 353,
          "fromPin": 311,
          "toPin": 346
        },
        {
          "id": 354,
          "fromPin": 349,
          "toPin": 323
        },
        {
          "id": 355,
          "fromPin": 325,
          "toPin": 329
        },
        {
          "id": 356,
          "fromPin": 331,
          "toPin": 317
        },
        {
          "id": 357,
          "fromPin": 313,
          "toPin": 347
        },
        {
          "id": 358,
          "fromPin": 318,
          "toPin": 337
        },
        {
          "id": 359,
          "fromPin": 330,
          "toPin": 339
        },
        {
          "id": 360,
          "fromPin": 324,
          "toPin": 335
        },
        {
          "id": 361,
          "fromPin": 348,
          "toPin": 333
        },
        {
          "id": 364,
          "fromPin": 319,
          "toPin": 363
        }
      ],
      "io": {
        "inputs": [
          299,
          301,
          297,
          305,
          307,
          303,
          309,
          311,
          313
        ],
        "outputs": [
          337,
          339,
          335,
          333,
          363
        ]
      }
    },
    {
      "name": "CUSTOM:NOR",
      "nodes": [
        {
          "id": 365,
          "type": "CUSTOM:NAND",
          "x": 482,
          "y": 201,
          "inputs": [
            366,
            367
          ],
          "outputs": [
            368
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 369,
          "type": "CUSTOM:NAND",
          "x": 311,
          "y": 213,
          "inputs": [
            370,
            371
          ],
          "outputs": [
            372
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 373,
          "type": "CUSTOM:NAND",
          "x": 161,
          "y": 272,
          "inputs": [
            374,
            375
          ],
          "outputs": [
            376
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 377,
          "type": "CUSTOM:NAND",
          "x": 155,
          "y": 139,
          "inputs": [
            378,
            379
          ],
          "outputs": [
            380
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          }
        },
        {
          "id": 381,
          "type": "INPUT",
          "x": 22,
          "y": 126,
          "inputs": [],
          "outputs": [
            382
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 383,
          "type": "INPUT",
          "x": 25,
          "y": 285,
          "inputs": [],
          "outputs": [
            384
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 393,
          "type": "OUTPUT",
          "x": 622,
          "y": 198,
          "inputs": [
            394
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 366,
          "nodeId": 365,
          "kind": "in",
          "value": false
        },
        {
          "id": 367,
          "nodeId": 365,
          "kind": "in",
          "value": false
        },
        {
          "id": 368,
          "nodeId": 365,
          "kind": "out",
          "value": true
        },
        {
          "id": 370,
          "nodeId": 369,
          "kind": "in",
          "value": true
        },
        {
          "id": 371,
          "nodeId": 369,
          "kind": "in",
          "value": true
        },
        {
          "id": 372,
          "nodeId": 369,
          "kind": "out",
          "value": false
        },
        {
          "id": 374,
          "nodeId": 373,
          "kind": "in",
          "value": false
        },
        {
          "id": 375,
          "nodeId": 373,
          "kind": "in",
          "value": false
        },
        {
          "id": 376,
          "nodeId": 373,
          "kind": "out",
          "value": true
        },
        {
          "id": 378,
          "nodeId": 377,
          "kind": "in",
          "value": false
        },
        {
          "id": 379,
          "nodeId": 377,
          "kind": "in",
          "value": false
        },
        {
          "id": 380,
          "nodeId": 377,
          "kind": "out",
          "value": true
        },
        {
          "id": 382,
          "nodeId": 381,
          "kind": "out",
          "value": false
        },
        {
          "id": 384,
          "nodeId": 383,
          "kind": "out",
          "value": false
        },
        {
          "id": 394,
          "nodeId": 393,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 385,
          "fromPin": 382,
          "toPin": 378
        },
        {
          "id": 386,
          "fromPin": 382,
          "toPin": 379
        },
        {
          "id": 387,
          "fromPin": 384,
          "toPin": 374
        },
        {
          "id": 388,
          "fromPin": 384,
          "toPin": 375
        },
        {
          "id": 389,
          "fromPin": 376,
          "toPin": 371
        },
        {
          "id": 390,
          "fromPin": 380,
          "toPin": 370
        },
        {
          "id": 391,
          "fromPin": 372,
          "toPin": 366
        },
        {
          "id": 392,
          "fromPin": 372,
          "toPin": 367
        },
        {
          "id": 395,
          "fromPin": 368,
          "toPin": 394
        }
      ],
      "io": {
        "inputs": [
          382,
          384
        ],
        "outputs": [
          394
        ]
      }
    },
    {
      "name": "CUSTOM:RS-LATCH",
      "nodes": [
        {
          "id": 396,
          "type": "CUSTOM:NOR",
          "x": 406,
          "y": 166,
          "inputs": [
            397,
            398
          ],
          "outputs": [
            399
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NOR"
          }
        },
        {
          "id": 400,
          "type": "CUSTOM:NOR",
          "x": 412,
          "y": 288,
          "inputs": [
            401,
            402
          ],
          "outputs": [
            403
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NOR"
          }
        },
        {
          "id": 404,
          "type": "INPUT",
          "x": 116,
          "y": 161,
          "inputs": [],
          "outputs": [
            405
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 406,
          "type": "INPUT",
          "x": 124,
          "y": 301,
          "inputs": [],
          "outputs": [
            407
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 408,
          "type": "OUTPUT",
          "x": 663,
          "y": 171,
          "inputs": [
            409
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 410,
          "type": "OUTPUT",
          "x": 663,
          "y": 289,
          "inputs": [
            411
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 397,
          "nodeId": 396,
          "kind": "in",
          "value": false
        },
        {
          "id": 398,
          "nodeId": 396,
          "kind": "in",
          "value": false
        },
        {
          "id": 399,
          "nodeId": 396,
          "kind": "out",
          "value": true
        },
        {
          "id": 401,
          "nodeId": 400,
          "kind": "in",
          "value": true
        },
        {
          "id": 402,
          "nodeId": 400,
          "kind": "in",
          "value": true
        },
        {
          "id": 403,
          "nodeId": 400,
          "kind": "out",
          "value": false
        },
        {
          "id": 405,
          "nodeId": 404,
          "kind": "out",
          "value": false
        },
        {
          "id": 407,
          "nodeId": 406,
          "kind": "out",
          "value": true
        },
        {
          "id": 409,
          "nodeId": 408,
          "kind": "in",
          "value": true
        },
        {
          "id": 411,
          "nodeId": 410,
          "kind": "in",
          "value": false
        }
      ],
      "wires": [
        {
          "id": 412,
          "fromPin": 405,
          "toPin": 397
        },
        {
          "id": 413,
          "fromPin": 407,
          "toPin": 402
        },
        {
          "id": 414,
          "fromPin": 399,
          "toPin": 401
        },
        {
          "id": 415,
          "fromPin": 403,
          "toPin": 398
        },
        {
          "id": 416,
          "fromPin": 399,
          "toPin": 409
        },
        {
          "id": 417,
          "fromPin": 403,
          "toPin": 411
        }
      ],
      "io": {
        "inputs": [
          405,
          407
        ],
        "outputs": [
          409,
          411
        ]
      }
    },
    {
      "name": "CUSTOM:NAND-3",
      "nodes": [
        {
          "id": 470,
          "type": "AND",
          "x": 542,
          "y": 134,
          "inputs": [
            471,
            472
          ],
          "outputs": [
            473
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 474,
          "type": "AND",
          "x": 389,
          "y": 168,
          "inputs": [
            475,
            476
          ],
          "outputs": [
            477
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 478,
          "type": "INPUT",
          "x": 161,
          "y": 43,
          "inputs": [],
          "outputs": [
            479
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 480,
          "type": "INPUT",
          "x": 174,
          "y": 136,
          "inputs": [],
          "outputs": [
            481
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 482,
          "type": "INPUT",
          "x": 171,
          "y": 220,
          "inputs": [],
          "outputs": [
            483
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 484,
          "type": "NOT",
          "x": 729,
          "y": 142,
          "inputs": [
            485
          ],
          "outputs": [
            486
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 487,
          "type": "OUTPUT",
          "x": 908,
          "y": 125,
          "inputs": [
            488
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 471,
          "nodeId": 470,
          "kind": "in",
          "value": false
        },
        {
          "id": 472,
          "nodeId": 470,
          "kind": "in",
          "value": true
        },
        {
          "id": 473,
          "nodeId": 470,
          "kind": "out",
          "value": false
        },
        {
          "id": 475,
          "nodeId": 474,
          "kind": "in",
          "value": true
        },
        {
          "id": 476,
          "nodeId": 474,
          "kind": "in",
          "value": true
        },
        {
          "id": 477,
          "nodeId": 474,
          "kind": "out",
          "value": true
        },
        {
          "id": 479,
          "nodeId": 478,
          "kind": "out",
          "value": false
        },
        {
          "id": 481,
          "nodeId": 480,
          "kind": "out",
          "value": true
        },
        {
          "id": 483,
          "nodeId": 482,
          "kind": "out",
          "value": true
        },
        {
          "id": 485,
          "nodeId": 484,
          "kind": "in",
          "value": false
        },
        {
          "id": 486,
          "nodeId": 484,
          "kind": "out",
          "value": true
        },
        {
          "id": 488,
          "nodeId": 487,
          "kind": "in",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 489,
          "fromPin": 486,
          "toPin": 488
        },
        {
          "id": 490,
          "fromPin": 473,
          "toPin": 485
        },
        {
          "id": 491,
          "fromPin": 479,
          "toPin": 471
        },
        {
          "id": 492,
          "fromPin": 477,
          "toPin": 472
        },
        {
          "id": 493,
          "fromPin": 481,
          "toPin": 475
        },
        {
          "id": 494,
          "fromPin": 483,
          "toPin": 476
        }
      ],
      "io": {
        "inputs": [
          479,
          481,
          483
        ],
        "outputs": [
          488
        ]
      }
    },
    {
      "name": "CUSTOM:RS-on-C",
      "nodes": [
        {
          "id": 495,
          "type": "CUSTOM:NAND-3",
          "x": 273,
          "y": 87,
          "inputs": [
            496,
            497,
            498
          ],
          "outputs": [
            499
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND-3"
          },
          "subState": {
            "nodes": [
              {
                "id": 470,
                "type": "AND",
                "x": 542,
                "y": 134,
                "inputs": [
                  471,
                  472
                ],
                "outputs": [
                  473
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 474,
                "type": "AND",
                "x": 389,
                "y": 168,
                "inputs": [
                  475,
                  476
                ],
                "outputs": [
                  477
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 478,
                "type": "INPUT",
                "x": 161,
                "y": 43,
                "inputs": [],
                "outputs": [
                  479
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 480,
                "type": "INPUT",
                "x": 174,
                "y": 136,
                "inputs": [],
                "outputs": [
                  481
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 482,
                "type": "INPUT",
                "x": 171,
                "y": 220,
                "inputs": [],
                "outputs": [
                  483
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 484,
                "type": "NOT",
                "x": 729,
                "y": 142,
                "inputs": [
                  485
                ],
                "outputs": [
                  486
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 487,
                "type": "OUTPUT",
                "x": 908,
                "y": 125,
                "inputs": [
                  488
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 471,
                "nodeId": 470,
                "kind": "in",
                "value": true
              },
              {
                "id": 472,
                "nodeId": 470,
                "kind": "in",
                "value": true
              },
              {
                "id": 473,
                "nodeId": 470,
                "kind": "out",
                "value": true
              },
              {
                "id": 475,
                "nodeId": 474,
                "kind": "in",
                "value": true
              },
              {
                "id": 476,
                "nodeId": 474,
                "kind": "in",
                "value": true
              },
              {
                "id": 477,
                "nodeId": 474,
                "kind": "out",
                "value": true
              },
              {
                "id": 479,
                "nodeId": 478,
                "kind": "out",
                "value": true
              },
              {
                "id": 481,
                "nodeId": 480,
                "kind": "out",
                "value": true
              },
              {
                "id": 483,
                "nodeId": 482,
                "kind": "out",
                "value": true
              },
              {
                "id": 485,
                "nodeId": 484,
                "kind": "in",
                "value": true
              },
              {
                "id": 486,
                "nodeId": 484,
                "kind": "out",
                "value": false
              },
              {
                "id": 488,
                "nodeId": 487,
                "kind": "in",
                "value": false
              }
            ],
            "wires": [
              {
                "id": 489,
                "fromPin": 486,
                "toPin": 488
              },
              {
                "id": 490,
                "fromPin": 473,
                "toPin": 485
              },
              {
                "id": 491,
                "fromPin": 479,
                "toPin": 471
              },
              {
                "id": 492,
                "fromPin": 477,
                "toPin": 472
              },
              {
                "id": 493,
                "fromPin": 481,
                "toPin": 475
              },
              {
                "id": 494,
                "fromPin": 483,
                "toPin": 476
              }
            ]
          }
        },
        {
          "id": 500,
          "type": "CUSTOM:NAND-3",
          "x": 291,
          "y": 273,
          "inputs": [
            501,
            502,
            503
          ],
          "outputs": [
            504
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND-3"
          },
          "subState": {
            "nodes": [
              {
                "id": 470,
                "type": "AND",
                "x": 542,
                "y": 134,
                "inputs": [
                  471,
                  472
                ],
                "outputs": [
                  473
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 474,
                "type": "AND",
                "x": 389,
                "y": 168,
                "inputs": [
                  475,
                  476
                ],
                "outputs": [
                  477
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 478,
                "type": "INPUT",
                "x": 161,
                "y": 43,
                "inputs": [],
                "outputs": [
                  479
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 480,
                "type": "INPUT",
                "x": 174,
                "y": 136,
                "inputs": [],
                "outputs": [
                  481
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 482,
                "type": "INPUT",
                "x": 171,
                "y": 220,
                "inputs": [],
                "outputs": [
                  483
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 484,
                "type": "NOT",
                "x": 729,
                "y": 142,
                "inputs": [
                  485
                ],
                "outputs": [
                  486
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 487,
                "type": "OUTPUT",
                "x": 908,
                "y": 125,
                "inputs": [
                  488
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 471,
                "nodeId": 470,
                "kind": "in",
                "value": true
              },
              {
                "id": 472,
                "nodeId": 470,
                "kind": "in",
                "value": false
              },
              {
                "id": 473,
                "nodeId": 470,
                "kind": "out",
                "value": false
              },
              {
                "id": 475,
                "nodeId": 474,
                "kind": "in",
                "value": true
              },
              {
                "id": 476,
                "nodeId": 474,
                "kind": "in",
                "value": false
              },
              {
                "id": 477,
                "nodeId": 474,
                "kind": "out",
                "value": false
              },
              {
                "id": 479,
                "nodeId": 478,
                "kind": "out",
                "value": true
              },
              {
                "id": 481,
                "nodeId": 480,
                "kind": "out",
                "value": true
              },
              {
                "id": 483,
                "nodeId": 482,
                "kind": "out",
                "value": false
              },
              {
                "id": 485,
                "nodeId": 484,
                "kind": "in",
                "value": false
              },
              {
                "id": 486,
                "nodeId": 484,
                "kind": "out",
                "value": true
              },
              {
                "id": 488,
                "nodeId": 487,
                "kind": "in",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 489,
                "fromPin": 486,
                "toPin": 488
              },
              {
                "id": 490,
                "fromPin": 473,
                "toPin": 485
              },
              {
                "id": 491,
                "fromPin": 479,
                "toPin": 471
              },
              {
                "id": 492,
                "fromPin": 477,
                "toPin": 472
              },
              {
                "id": 493,
                "fromPin": 481,
                "toPin": 475
              },
              {
                "id": 494,
                "fromPin": 483,
                "toPin": 476
              }
            ]
          }
        },
        {
          "id": 505,
          "type": "CUSTOM:RS-LATCH",
          "x": 630,
          "y": 197,
          "inputs": [
            506,
            507
          ],
          "outputs": [
            508,
            509
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:RS-LATCH"
          },
          "subState": {
            "nodes": [
              {
                "id": 396,
                "type": "CUSTOM:NOR",
                "x": 406,
                "y": 166,
                "inputs": [
                  397,
                  398
                ],
                "outputs": [
                  399
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NOR"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 365,
                      "type": "CUSTOM:NAND",
                      "x": 482,
                      "y": 201,
                      "inputs": [
                        366,
                        367
                      ],
                      "outputs": [
                        368
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 369,
                      "type": "CUSTOM:NAND",
                      "x": 311,
                      "y": 213,
                      "inputs": [
                        370,
                        371
                      ],
                      "outputs": [
                        372
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 373,
                      "type": "CUSTOM:NAND",
                      "x": 161,
                      "y": 272,
                      "inputs": [
                        374,
                        375
                      ],
                      "outputs": [
                        376
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 377,
                      "type": "CUSTOM:NAND",
                      "x": 155,
                      "y": 139,
                      "inputs": [
                        378,
                        379
                      ],
                      "outputs": [
                        380
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 381,
                      "type": "INPUT",
                      "x": 22,
                      "y": 126,
                      "inputs": [],
                      "outputs": [
                        382
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 383,
                      "type": "INPUT",
                      "x": 25,
                      "y": 285,
                      "inputs": [],
                      "outputs": [
                        384
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 393,
                      "type": "OUTPUT",
                      "x": 622,
                      "y": 198,
                      "inputs": [
                        394
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 366,
                      "nodeId": 365,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 367,
                      "nodeId": 365,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 368,
                      "nodeId": 365,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 370,
                      "nodeId": 369,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 371,
                      "nodeId": 369,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 372,
                      "nodeId": 369,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 374,
                      "nodeId": 373,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 375,
                      "nodeId": 373,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 376,
                      "nodeId": 373,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 378,
                      "nodeId": 377,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 379,
                      "nodeId": 377,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 380,
                      "nodeId": 377,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 382,
                      "nodeId": 381,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 384,
                      "nodeId": 383,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 394,
                      "nodeId": 393,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 385,
                      "fromPin": 382,
                      "toPin": 378
                    },
                    {
                      "id": 386,
                      "fromPin": 382,
                      "toPin": 379
                    },
                    {
                      "id": 387,
                      "fromPin": 384,
                      "toPin": 374
                    },
                    {
                      "id": 388,
                      "fromPin": 384,
                      "toPin": 375
                    },
                    {
                      "id": 389,
                      "fromPin": 376,
                      "toPin": 371
                    },
                    {
                      "id": 390,
                      "fromPin": 380,
                      "toPin": 370
                    },
                    {
                      "id": 391,
                      "fromPin": 372,
                      "toPin": 366
                    },
                    {
                      "id": 392,
                      "fromPin": 372,
                      "toPin": 367
                    },
                    {
                      "id": 395,
                      "fromPin": 368,
                      "toPin": 394
                    }
                  ]
                }
              },
              {
                "id": 400,
                "type": "CUSTOM:NOR",
                "x": 412,
                "y": 288,
                "inputs": [
                  401,
                  402
                ],
                "outputs": [
                  403
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NOR"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 365,
                      "type": "CUSTOM:NAND",
                      "x": 482,
                      "y": 201,
                      "inputs": [
                        366,
                        367
                      ],
                      "outputs": [
                        368
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 369,
                      "type": "CUSTOM:NAND",
                      "x": 311,
                      "y": 213,
                      "inputs": [
                        370,
                        371
                      ],
                      "outputs": [
                        372
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 373,
                      "type": "CUSTOM:NAND",
                      "x": 161,
                      "y": 272,
                      "inputs": [
                        374,
                        375
                      ],
                      "outputs": [
                        376
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 377,
                      "type": "CUSTOM:NAND",
                      "x": 155,
                      "y": 139,
                      "inputs": [
                        378,
                        379
                      ],
                      "outputs": [
                        380
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 381,
                      "type": "INPUT",
                      "x": 22,
                      "y": 126,
                      "inputs": [],
                      "outputs": [
                        382
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 383,
                      "type": "INPUT",
                      "x": 25,
                      "y": 285,
                      "inputs": [],
                      "outputs": [
                        384
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 393,
                      "type": "OUTPUT",
                      "x": 622,
                      "y": 198,
                      "inputs": [
                        394
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 366,
                      "nodeId": 365,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 367,
                      "nodeId": 365,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 368,
                      "nodeId": 365,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 370,
                      "nodeId": 369,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 371,
                      "nodeId": 369,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 372,
                      "nodeId": 369,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 374,
                      "nodeId": 373,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 375,
                      "nodeId": 373,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 376,
                      "nodeId": 373,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 378,
                      "nodeId": 377,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 379,
                      "nodeId": 377,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 380,
                      "nodeId": 377,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 382,
                      "nodeId": 381,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 384,
                      "nodeId": 383,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 394,
                      "nodeId": 393,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 385,
                      "fromPin": 382,
                      "toPin": 378
                    },
                    {
                      "id": 386,
                      "fromPin": 382,
                      "toPin": 379
                    },
                    {
                      "id": 387,
                      "fromPin": 384,
                      "toPin": 374
                    },
                    {
                      "id": 388,
                      "fromPin": 384,
                      "toPin": 375
                    },
                    {
                      "id": 389,
                      "fromPin": 376,
                      "toPin": 371
                    },
                    {
                      "id": 390,
                      "fromPin": 380,
                      "toPin": 370
                    },
                    {
                      "id": 391,
                      "fromPin": 372,
                      "toPin": 366
                    },
                    {
                      "id": 392,
                      "fromPin": 372,
                      "toPin": 367
                    },
                    {
                      "id": 395,
                      "fromPin": 368,
                      "toPin": 394
                    }
                  ]
                }
              },
              {
                "id": 404,
                "type": "INPUT",
                "x": 116,
                "y": 161,
                "inputs": [],
                "outputs": [
                  405
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 406,
                "type": "INPUT",
                "x": 124,
                "y": 301,
                "inputs": [],
                "outputs": [
                  407
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 408,
                "type": "OUTPUT",
                "x": 663,
                "y": 171,
                "inputs": [
                  409
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 410,
                "type": "OUTPUT",
                "x": 663,
                "y": 289,
                "inputs": [
                  411
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 397,
                "nodeId": 396,
                "kind": "in",
                "value": false
              },
              {
                "id": 398,
                "nodeId": 396,
                "kind": "in",
                "value": false
              },
              {
                "id": 399,
                "nodeId": 396,
                "kind": "out",
                "value": true
              },
              {
                "id": 401,
                "nodeId": 400,
                "kind": "in",
                "value": true
              },
              {
                "id": 402,
                "nodeId": 400,
                "kind": "in",
                "value": true
              },
              {
                "id": 403,
                "nodeId": 400,
                "kind": "out",
                "value": false
              },
              {
                "id": 405,
                "nodeId": 404,
                "kind": "out",
                "value": false
              },
              {
                "id": 407,
                "nodeId": 406,
                "kind": "out",
                "value": true
              },
              {
                "id": 409,
                "nodeId": 408,
                "kind": "in",
                "value": true
              },
              {
                "id": 411,
                "nodeId": 410,
                "kind": "in",
                "value": false
              }
            ],
            "wires": [
              {
                "id": 412,
                "fromPin": 405,
                "toPin": 397
              },
              {
                "id": 413,
                "fromPin": 407,
                "toPin": 402
              },
              {
                "id": 414,
                "fromPin": 399,
                "toPin": 401
              },
              {
                "id": 415,
                "fromPin": 403,
                "toPin": 398
              },
              {
                "id": 416,
                "fromPin": 399,
                "toPin": 409
              },
              {
                "id": 417,
                "fromPin": 403,
                "toPin": 411
              }
            ]
          }
        },
        {
          "id": 510,
          "type": "NOT",
          "x": 485,
          "y": 106,
          "inputs": [
            511
          ],
          "outputs": [
            512
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 513,
          "type": "NOT",
          "x": 484,
          "y": 351,
          "inputs": [
            514
          ],
          "outputs": [
            515
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 516,
          "type": "INPUT",
          "x": 62,
          "y": 335,
          "inputs": [],
          "outputs": [
            517
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 518,
          "type": "INPUT",
          "x": 52,
          "y": 215,
          "inputs": [],
          "outputs": [
            519
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 520,
          "type": "INPUT",
          "x": 54,
          "y": 100,
          "inputs": [],
          "outputs": [
            521
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 522,
          "type": "OUTPUT",
          "x": 923,
          "y": 126,
          "inputs": [
            523
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 524,
          "type": "OUTPUT",
          "x": 914,
          "y": 289,
          "inputs": [
            525
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 496,
          "nodeId": 495,
          "kind": "in",
          "value": true
        },
        {
          "id": 497,
          "nodeId": 495,
          "kind": "in",
          "value": true
        },
        {
          "id": 498,
          "nodeId": 495,
          "kind": "in",
          "value": true
        },
        {
          "id": 499,
          "nodeId": 495,
          "kind": "out",
          "value": false
        },
        {
          "id": 501,
          "nodeId": 500,
          "kind": "in",
          "value": true
        },
        {
          "id": 502,
          "nodeId": 500,
          "kind": "in",
          "value": true
        },
        {
          "id": 503,
          "nodeId": 500,
          "kind": "in",
          "value": false
        },
        {
          "id": 504,
          "nodeId": 500,
          "kind": "out",
          "value": true
        },
        {
          "id": 506,
          "nodeId": 505,
          "kind": "in",
          "value": false
        },
        {
          "id": 507,
          "nodeId": 505,
          "kind": "in",
          "value": true
        },
        {
          "id": 508,
          "nodeId": 505,
          "kind": "out",
          "value": true
        },
        {
          "id": 509,
          "nodeId": 505,
          "kind": "out",
          "value": false
        },
        {
          "id": 511,
          "nodeId": 510,
          "kind": "in",
          "value": true
        },
        {
          "id": 512,
          "nodeId": 510,
          "kind": "out",
          "value": false
        },
        {
          "id": 514,
          "nodeId": 513,
          "kind": "in",
          "value": false
        },
        {
          "id": 515,
          "nodeId": 513,
          "kind": "out",
          "value": true
        },
        {
          "id": 517,
          "nodeId": 516,
          "kind": "out",
          "value": true
        },
        {
          "id": 519,
          "nodeId": 518,
          "kind": "out",
          "value": true
        },
        {
          "id": 521,
          "nodeId": 520,
          "kind": "out",
          "value": true
        },
        {
          "id": 523,
          "nodeId": 522,
          "kind": "in",
          "value": true
        },
        {
          "id": 525,
          "nodeId": 524,
          "kind": "in",
          "value": false
        }
      ],
      "wires": [
        {
          "id": 526,
          "fromPin": 508,
          "toPin": 523
        },
        {
          "id": 527,
          "fromPin": 509,
          "toPin": 525
        },
        {
          "id": 528,
          "fromPin": 512,
          "toPin": 506
        },
        {
          "id": 529,
          "fromPin": 515,
          "toPin": 507
        },
        {
          "id": 530,
          "fromPin": 519,
          "toPin": 498
        },
        {
          "id": 531,
          "fromPin": 519,
          "toPin": 501
        },
        {
          "id": 532,
          "fromPin": 517,
          "toPin": 502
        },
        {
          "id": 533,
          "fromPin": 521,
          "toPin": 497
        },
        {
          "id": 534,
          "fromPin": 504,
          "toPin": 514
        },
        {
          "id": 535,
          "fromPin": 499,
          "toPin": 511
        },
        {
          "id": 550,
          "fromPin": 508,
          "toPin": 496
        },
        {
          "id": 551,
          "fromPin": 509,
          "toPin": 503
        }
      ],
      "io": {
        "inputs": [
          521,
          519,
          517
        ],
        "outputs": [
          523,
          525
        ]
      }
    },
    {
      "name": "CUSTOM:D-Latch",
      "nodes": [
        {
          "id": 552,
          "type": "INPUT",
          "x": 64,
          "y": 315,
          "inputs": [],
          "outputs": [
            553
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 554,
          "type": "INPUT",
          "x": 58,
          "y": 209,
          "inputs": [],
          "outputs": [
            555
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 564,
          "type": "CUSTOM:NAND",
          "x": 299,
          "y": 222,
          "inputs": [
            565,
            566
          ],
          "outputs": [
            567
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          },
          "subState": {
            "nodes": [
              {
                "id": 26,
                "type": "AND",
                "x": 216,
                "y": 161,
                "inputs": [
                  27,
                  28
                ],
                "outputs": [
                  29
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 30,
                "type": "INPUT",
                "x": 79,
                "y": 200,
                "inputs": [],
                "outputs": [
                  31
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 32,
                "type": "INPUT",
                "x": 78,
                "y": 141,
                "inputs": [],
                "outputs": [
                  33
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 34,
                "type": "NOT",
                "x": 341,
                "y": 163,
                "inputs": [
                  35
                ],
                "outputs": [
                  36
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 37,
                "type": "OUTPUT",
                "x": 476,
                "y": 161,
                "inputs": [
                  38
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 27,
                "nodeId": 26,
                "kind": "in",
                "value": true
              },
              {
                "id": 28,
                "nodeId": 26,
                "kind": "in",
                "value": true
              },
              {
                "id": 29,
                "nodeId": 26,
                "kind": "out",
                "value": true
              },
              {
                "id": 31,
                "nodeId": 30,
                "kind": "out",
                "value": true
              },
              {
                "id": 33,
                "nodeId": 32,
                "kind": "out",
                "value": true
              },
              {
                "id": 35,
                "nodeId": 34,
                "kind": "in",
                "value": true
              },
              {
                "id": 36,
                "nodeId": 34,
                "kind": "out",
                "value": false
              },
              {
                "id": 38,
                "nodeId": 37,
                "kind": "in",
                "value": false
              }
            ],
            "wires": [
              {
                "id": 39,
                "fromPin": 33,
                "toPin": 27
              },
              {
                "id": 40,
                "fromPin": 31,
                "toPin": 28
              },
              {
                "id": 41,
                "fromPin": 29,
                "toPin": 35
              },
              {
                "id": 42,
                "fromPin": 36,
                "toPin": 38
              }
            ]
          }
        },
        {
          "id": 568,
          "type": "CUSTOM:NAND",
          "x": 436,
          "y": 315,
          "inputs": [
            569,
            570
          ],
          "outputs": [
            571
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          },
          "subState": {
            "nodes": [
              {
                "id": 26,
                "type": "AND",
                "x": 216,
                "y": 161,
                "inputs": [
                  27,
                  28
                ],
                "outputs": [
                  29
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 30,
                "type": "INPUT",
                "x": 79,
                "y": 200,
                "inputs": [],
                "outputs": [
                  31
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 32,
                "type": "INPUT",
                "x": 78,
                "y": 141,
                "inputs": [],
                "outputs": [
                  33
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 34,
                "type": "NOT",
                "x": 341,
                "y": 163,
                "inputs": [
                  35
                ],
                "outputs": [
                  36
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 37,
                "type": "OUTPUT",
                "x": 476,
                "y": 161,
                "inputs": [
                  38
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 27,
                "nodeId": 26,
                "kind": "in",
                "value": false
              },
              {
                "id": 28,
                "nodeId": 26,
                "kind": "in",
                "value": true
              },
              {
                "id": 29,
                "nodeId": 26,
                "kind": "out",
                "value": false
              },
              {
                "id": 31,
                "nodeId": 30,
                "kind": "out",
                "value": true
              },
              {
                "id": 33,
                "nodeId": 32,
                "kind": "out",
                "value": false
              },
              {
                "id": 35,
                "nodeId": 34,
                "kind": "in",
                "value": false
              },
              {
                "id": 36,
                "nodeId": 34,
                "kind": "out",
                "value": true
              },
              {
                "id": 38,
                "nodeId": 37,
                "kind": "in",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 39,
                "fromPin": 33,
                "toPin": 27
              },
              {
                "id": 40,
                "fromPin": 31,
                "toPin": 28
              },
              {
                "id": 41,
                "fromPin": 29,
                "toPin": 35
              },
              {
                "id": 42,
                "fromPin": 36,
                "toPin": 38
              }
            ]
          }
        },
        {
          "id": 572,
          "type": "CUSTOM:NAND",
          "x": 725,
          "y": 206,
          "inputs": [
            573,
            574
          ],
          "outputs": [
            575
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          },
          "subState": {
            "nodes": [
              {
                "id": 26,
                "type": "AND",
                "x": 216,
                "y": 161,
                "inputs": [
                  27,
                  28
                ],
                "outputs": [
                  29
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 30,
                "type": "INPUT",
                "x": 79,
                "y": 200,
                "inputs": [],
                "outputs": [
                  31
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 32,
                "type": "INPUT",
                "x": 78,
                "y": 141,
                "inputs": [],
                "outputs": [
                  33
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 34,
                "type": "NOT",
                "x": 341,
                "y": 163,
                "inputs": [
                  35
                ],
                "outputs": [
                  36
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 37,
                "type": "OUTPUT",
                "x": 476,
                "y": 161,
                "inputs": [
                  38
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 27,
                "nodeId": 26,
                "kind": "in",
                "value": false
              },
              {
                "id": 28,
                "nodeId": 26,
                "kind": "in",
                "value": false
              },
              {
                "id": 29,
                "nodeId": 26,
                "kind": "out",
                "value": false
              },
              {
                "id": 31,
                "nodeId": 30,
                "kind": "out",
                "value": false
              },
              {
                "id": 33,
                "nodeId": 32,
                "kind": "out",
                "value": false
              },
              {
                "id": 35,
                "nodeId": 34,
                "kind": "in",
                "value": false
              },
              {
                "id": 36,
                "nodeId": 34,
                "kind": "out",
                "value": true
              },
              {
                "id": 38,
                "nodeId": 37,
                "kind": "in",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 39,
                "fromPin": 33,
                "toPin": 27
              },
              {
                "id": 40,
                "fromPin": 31,
                "toPin": 28
              },
              {
                "id": 41,
                "fromPin": 29,
                "toPin": 35
              },
              {
                "id": 42,
                "fromPin": 36,
                "toPin": 38
              }
            ]
          }
        },
        {
          "id": 576,
          "type": "CUSTOM:NAND",
          "x": 723,
          "y": 306,
          "inputs": [
            577,
            578
          ],
          "outputs": [
            579
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:NAND"
          },
          "subState": {
            "nodes": [
              {
                "id": 26,
                "type": "AND",
                "x": 216,
                "y": 161,
                "inputs": [
                  27,
                  28
                ],
                "outputs": [
                  29
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 30,
                "type": "INPUT",
                "x": 79,
                "y": 200,
                "inputs": [],
                "outputs": [
                  31
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 32,
                "type": "INPUT",
                "x": 78,
                "y": 141,
                "inputs": [],
                "outputs": [
                  33
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 34,
                "type": "NOT",
                "x": 341,
                "y": 163,
                "inputs": [
                  35
                ],
                "outputs": [
                  36
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 37,
                "type": "OUTPUT",
                "x": 476,
                "y": 161,
                "inputs": [
                  38
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 27,
                "nodeId": 26,
                "kind": "in",
                "value": true
              },
              {
                "id": 28,
                "nodeId": 26,
                "kind": "in",
                "value": true
              },
              {
                "id": 29,
                "nodeId": 26,
                "kind": "out",
                "value": true
              },
              {
                "id": 31,
                "nodeId": 30,
                "kind": "out",
                "value": true
              },
              {
                "id": 33,
                "nodeId": 32,
                "kind": "out",
                "value": true
              },
              {
                "id": 35,
                "nodeId": 34,
                "kind": "in",
                "value": true
              },
              {
                "id": 36,
                "nodeId": 34,
                "kind": "out",
                "value": false
              },
              {
                "id": 38,
                "nodeId": 37,
                "kind": "in",
                "value": false
              }
            ],
            "wires": [
              {
                "id": 39,
                "fromPin": 33,
                "toPin": 27
              },
              {
                "id": 40,
                "fromPin": 31,
                "toPin": 28
              },
              {
                "id": 41,
                "fromPin": 29,
                "toPin": 35
              },
              {
                "id": 42,
                "fromPin": 36,
                "toPin": 38
              }
            ]
          }
        },
        {
          "id": 586,
          "type": "OUTPUT",
          "x": 1017,
          "y": 193,
          "inputs": [
            587
          ],
          "outputs": [],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 588,
          "type": "OUTPUT",
          "x": 1009,
          "y": 303,
          "inputs": [
            589
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 553,
          "nodeId": 552,
          "kind": "out",
          "value": true
        },
        {
          "id": 555,
          "nodeId": 554,
          "kind": "out",
          "value": true
        },
        {
          "id": 565,
          "nodeId": 564,
          "kind": "in",
          "value": true
        },
        {
          "id": 566,
          "nodeId": 564,
          "kind": "in",
          "value": true
        },
        {
          "id": 567,
          "nodeId": 564,
          "kind": "out",
          "value": false
        },
        {
          "id": 569,
          "nodeId": 568,
          "kind": "in",
          "value": false
        },
        {
          "id": 570,
          "nodeId": 568,
          "kind": "in",
          "value": true
        },
        {
          "id": 571,
          "nodeId": 568,
          "kind": "out",
          "value": true
        },
        {
          "id": 573,
          "nodeId": 572,
          "kind": "in",
          "value": false
        },
        {
          "id": 574,
          "nodeId": 572,
          "kind": "in",
          "value": false
        },
        {
          "id": 575,
          "nodeId": 572,
          "kind": "out",
          "value": true
        },
        {
          "id": 577,
          "nodeId": 576,
          "kind": "in",
          "value": true
        },
        {
          "id": 578,
          "nodeId": 576,
          "kind": "in",
          "value": true
        },
        {
          "id": 579,
          "nodeId": 576,
          "kind": "out",
          "value": false
        },
        {
          "id": 587,
          "nodeId": 586,
          "kind": "in",
          "value": true
        },
        {
          "id": 589,
          "nodeId": 588,
          "kind": "in",
          "value": false
        }
      ],
      "wires": [
        {
          "id": 580,
          "fromPin": 553,
          "toPin": 570
        },
        {
          "id": 581,
          "fromPin": 553,
          "toPin": 566
        },
        {
          "id": 582,
          "fromPin": 555,
          "toPin": 565
        },
        {
          "id": 583,
          "fromPin": 567,
          "toPin": 569
        },
        {
          "id": 584,
          "fromPin": 567,
          "toPin": 573
        },
        {
          "id": 585,
          "fromPin": 571,
          "toPin": 578
        },
        {
          "id": 590,
          "fromPin": 575,
          "toPin": 587
        },
        {
          "id": 591,
          "fromPin": 579,
          "toPin": 589
        },
        {
          "id": 592,
          "fromPin": 575,
          "toPin": 577
        },
        {
          "id": 593,
          "fromPin": 579,
          "toPin": 574
        }
      ],
      "io": {
        "inputs": [
          555,
          553
        ],
        "outputs": [
          587,
          589
        ]
      }
    },
    {
      "name": "CUSTOM:COUNTER-1BIT",
      "nodes": [
        {
          "id": 594,
          "type": "INPUT",
          "x": 50,
          "y": 290,
          "inputs": [],
          "outputs": [
            595
          ],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 596,
          "type": "OUTPUT",
          "x": 932,
          "y": 182,
          "inputs": [
            597
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 598,
          "type": "NOT",
          "x": 315,
          "y": 367,
          "inputs": [
            599
          ],
          "outputs": [
            600
          ],
          "state": {},
          "extra": {}
        },
        {
          "id": 601,
          "type": "CUSTOM:D-Latch",
          "x": 303,
          "y": 228,
          "inputs": [
            602,
            603
          ],
          "outputs": [
            604,
            605
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:D-Latch"
          },
          "subState": {
            "nodes": [
              {
                "id": 552,
                "type": "INPUT",
                "x": 64,
                "y": 315,
                "inputs": [],
                "outputs": [
                  553
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 554,
                "type": "INPUT",
                "x": 58,
                "y": 209,
                "inputs": [],
                "outputs": [
                  555
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 564,
                "type": "CUSTOM:NAND",
                "x": 299,
                "y": 222,
                "inputs": [
                  565,
                  566
                ],
                "outputs": [
                  567
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 568,
                "type": "CUSTOM:NAND",
                "x": 436,
                "y": 315,
                "inputs": [
                  569,
                  570
                ],
                "outputs": [
                  571
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 572,
                "type": "CUSTOM:NAND",
                "x": 725,
                "y": 206,
                "inputs": [
                  573,
                  574
                ],
                "outputs": [
                  575
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 576,
                "type": "CUSTOM:NAND",
                "x": 723,
                "y": 306,
                "inputs": [
                  577,
                  578
                ],
                "outputs": [
                  579
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 586,
                "type": "OUTPUT",
                "x": 1017,
                "y": 193,
                "inputs": [
                  587
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 588,
                "type": "OUTPUT",
                "x": 1009,
                "y": 303,
                "inputs": [
                  589
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 553,
                "nodeId": 552,
                "kind": "out",
                "value": false
              },
              {
                "id": 555,
                "nodeId": 554,
                "kind": "out",
                "value": true
              },
              {
                "id": 565,
                "nodeId": 564,
                "kind": "in",
                "value": true
              },
              {
                "id": 566,
                "nodeId": 564,
                "kind": "in",
                "value": false
              },
              {
                "id": 567,
                "nodeId": 564,
                "kind": "out",
                "value": true
              },
              {
                "id": 569,
                "nodeId": 568,
                "kind": "in",
                "value": true
              },
              {
                "id": 570,
                "nodeId": 568,
                "kind": "in",
                "value": false
              },
              {
                "id": 571,
                "nodeId": 568,
                "kind": "out",
                "value": true
              },
              {
                "id": 573,
                "nodeId": 572,
                "kind": "in",
                "value": true
              },
              {
                "id": 574,
                "nodeId": 572,
                "kind": "in",
                "value": true
              },
              {
                "id": 575,
                "nodeId": 572,
                "kind": "out",
                "value": false
              },
              {
                "id": 577,
                "nodeId": 576,
                "kind": "in",
                "value": false
              },
              {
                "id": 578,
                "nodeId": 576,
                "kind": "in",
                "value": true
              },
              {
                "id": 579,
                "nodeId": 576,
                "kind": "out",
                "value": true
              },
              {
                "id": 587,
                "nodeId": 586,
                "kind": "in",
                "value": false
              },
              {
                "id": 589,
                "nodeId": 588,
                "kind": "in",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 580,
                "fromPin": 553,
                "toPin": 570
              },
              {
                "id": 581,
                "fromPin": 553,
                "toPin": 566
              },
              {
                "id": 582,
                "fromPin": 555,
                "toPin": 565
              },
              {
                "id": 583,
                "fromPin": 567,
                "toPin": 569
              },
              {
                "id": 584,
                "fromPin": 567,
                "toPin": 573
              },
              {
                "id": 585,
                "fromPin": 571,
                "toPin": 578
              },
              {
                "id": 590,
                "fromPin": 575,
                "toPin": 587
              },
              {
                "id": 591,
                "fromPin": 579,
                "toPin": 589
              },
              {
                "id": 592,
                "fromPin": 575,
                "toPin": 577
              },
              {
                "id": 593,
                "fromPin": 579,
                "toPin": 574
              }
            ]
          }
        },
        {
          "id": 606,
          "type": "CUSTOM:D-Latch",
          "x": 551,
          "y": 242,
          "inputs": [
            607,
            608
          ],
          "outputs": [
            609,
            610
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:D-Latch"
          },
          "subState": {
            "nodes": [
              {
                "id": 552,
                "type": "INPUT",
                "x": 64,
                "y": 315,
                "inputs": [],
                "outputs": [
                  553
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 554,
                "type": "INPUT",
                "x": 58,
                "y": 209,
                "inputs": [],
                "outputs": [
                  555
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 564,
                "type": "CUSTOM:NAND",
                "x": 299,
                "y": 222,
                "inputs": [
                  565,
                  566
                ],
                "outputs": [
                  567
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 568,
                "type": "CUSTOM:NAND",
                "x": 436,
                "y": 315,
                "inputs": [
                  569,
                  570
                ],
                "outputs": [
                  571
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 572,
                "type": "CUSTOM:NAND",
                "x": 725,
                "y": 206,
                "inputs": [
                  573,
                  574
                ],
                "outputs": [
                  575
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 576,
                "type": "CUSTOM:NAND",
                "x": 723,
                "y": 306,
                "inputs": [
                  577,
                  578
                ],
                "outputs": [
                  579
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 586,
                "type": "OUTPUT",
                "x": 1017,
                "y": 193,
                "inputs": [
                  587
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 588,
                "type": "OUTPUT",
                "x": 1009,
                "y": 303,
                "inputs": [
                  589
                ],
                "outputs": [],
                "state": {
                  "on": true
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 553,
                "nodeId": 552,
                "kind": "out",
                "value": true
              },
              {
                "id": 555,
                "nodeId": 554,
                "kind": "out",
                "value": false
              },
              {
                "id": 565,
                "nodeId": 564,
                "kind": "in",
                "value": false
              },
              {
                "id": 566,
                "nodeId": 564,
                "kind": "in",
                "value": true
              },
              {
                "id": 567,
                "nodeId": 564,
                "kind": "out",
                "value": true
              },
              {
                "id": 569,
                "nodeId": 568,
                "kind": "in",
                "value": true
              },
              {
                "id": 570,
                "nodeId": 568,
                "kind": "in",
                "value": true
              },
              {
                "id": 571,
                "nodeId": 568,
                "kind": "out",
                "value": false
              },
              {
                "id": 573,
                "nodeId": 572,
                "kind": "in",
                "value": true
              },
              {
                "id": 574,
                "nodeId": 572,
                "kind": "in",
                "value": true
              },
              {
                "id": 575,
                "nodeId": 572,
                "kind": "out",
                "value": false
              },
              {
                "id": 577,
                "nodeId": 576,
                "kind": "in",
                "value": false
              },
              {
                "id": 578,
                "nodeId": 576,
                "kind": "in",
                "value": false
              },
              {
                "id": 579,
                "nodeId": 576,
                "kind": "out",
                "value": true
              },
              {
                "id": 587,
                "nodeId": 586,
                "kind": "in",
                "value": false
              },
              {
                "id": 589,
                "nodeId": 588,
                "kind": "in",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 580,
                "fromPin": 553,
                "toPin": 570
              },
              {
                "id": 581,
                "fromPin": 553,
                "toPin": 566
              },
              {
                "id": 582,
                "fromPin": 555,
                "toPin": 565
              },
              {
                "id": 583,
                "fromPin": 567,
                "toPin": 569
              },
              {
                "id": 584,
                "fromPin": 567,
                "toPin": 573
              },
              {
                "id": 585,
                "fromPin": 571,
                "toPin": 578
              },
              {
                "id": 590,
                "fromPin": 575,
                "toPin": 587
              },
              {
                "id": 591,
                "fromPin": 579,
                "toPin": 589
              },
              {
                "id": 592,
                "fromPin": 575,
                "toPin": 577
              },
              {
                "id": 593,
                "fromPin": 579,
                "toPin": 574
              }
            ]
          }
        }
      ],
      "pins": [
        {
          "id": 595,
          "nodeId": 594,
          "kind": "out",
          "value": false
        },
        {
          "id": 597,
          "nodeId": 596,
          "kind": "in",
          "value": false
        },
        {
          "id": 599,
          "nodeId": 598,
          "kind": "in",
          "value": false
        },
        {
          "id": 600,
          "nodeId": 598,
          "kind": "out",
          "value": true
        },
        {
          "id": 602,
          "nodeId": 601,
          "kind": "in",
          "value": true
        },
        {
          "id": 603,
          "nodeId": 601,
          "kind": "in",
          "value": false
        },
        {
          "id": 604,
          "nodeId": 601,
          "kind": "out",
          "value": false
        },
        {
          "id": 605,
          "nodeId": 601,
          "kind": "out",
          "value": true
        },
        {
          "id": 607,
          "nodeId": 606,
          "kind": "in",
          "value": false
        },
        {
          "id": 608,
          "nodeId": 606,
          "kind": "in",
          "value": true
        },
        {
          "id": 609,
          "nodeId": 606,
          "kind": "out",
          "value": false
        },
        {
          "id": 610,
          "nodeId": 606,
          "kind": "out",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 611,
          "fromPin": 595,
          "toPin": 603
        },
        {
          "id": 612,
          "fromPin": 595,
          "toPin": 599
        },
        {
          "id": 613,
          "fromPin": 600,
          "toPin": 608
        },
        {
          "id": 614,
          "fromPin": 604,
          "toPin": 607
        },
        {
          "id": 615,
          "fromPin": 609,
          "toPin": 597
        },
        {
          "id": 616,
          "fromPin": 610,
          "toPin": 602
        }
      ],
      "io": {
        "inputs": [
          595
        ],
        "outputs": [
          597
        ]
      }
    },
    {
      "name": "CUSTOM:COUNTER-4BIT",
      "nodes": [
        {
          "id": 617,
          "type": "INPUT",
          "x": 21,
          "y": 412,
          "inputs": [],
          "outputs": [
            618
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 619,
          "type": "OUTPUT",
          "x": 1034,
          "y": 456,
          "inputs": [
            620
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 621,
          "type": "OUTPUT",
          "x": 1026,
          "y": 329,
          "inputs": [
            622
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 623,
          "type": "OUTPUT",
          "x": 1022,
          "y": 117,
          "inputs": [
            624
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 625,
          "type": "OUTPUT",
          "x": 1033,
          "y": 234,
          "inputs": [
            626
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 627,
          "type": "CUSTOM:COUNTER-1BIT",
          "x": 765,
          "y": 118,
          "inputs": [
            628
          ],
          "outputs": [
            629
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:COUNTER-1BIT"
          },
          "subState": {
            "nodes": [
              {
                "id": 594,
                "type": "INPUT",
                "x": 50,
                "y": 290,
                "inputs": [],
                "outputs": [
                  595
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 596,
                "type": "OUTPUT",
                "x": 932,
                "y": 182,
                "inputs": [
                  597
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 598,
                "type": "NOT",
                "x": 315,
                "y": 367,
                "inputs": [
                  599
                ],
                "outputs": [
                  600
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 601,
                "type": "CUSTOM:D-Latch",
                "x": 303,
                "y": 228,
                "inputs": [
                  602,
                  603
                ],
                "outputs": [
                  604,
                  605
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              },
              {
                "id": 606,
                "type": "CUSTOM:D-Latch",
                "x": 551,
                "y": 242,
                "inputs": [
                  607,
                  608
                ],
                "outputs": [
                  609,
                  610
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              }
            ],
            "pins": [
              {
                "id": 595,
                "nodeId": 594,
                "kind": "out",
                "value": false
              },
              {
                "id": 597,
                "nodeId": 596,
                "kind": "in",
                "value": false
              },
              {
                "id": 599,
                "nodeId": 598,
                "kind": "in",
                "value": false
              },
              {
                "id": 600,
                "nodeId": 598,
                "kind": "out",
                "value": true
              },
              {
                "id": 602,
                "nodeId": 601,
                "kind": "in",
                "value": true
              },
              {
                "id": 603,
                "nodeId": 601,
                "kind": "in",
                "value": false
              },
              {
                "id": 604,
                "nodeId": 601,
                "kind": "out",
                "value": false
              },
              {
                "id": 605,
                "nodeId": 601,
                "kind": "out",
                "value": true
              },
              {
                "id": 607,
                "nodeId": 606,
                "kind": "in",
                "value": false
              },
              {
                "id": 608,
                "nodeId": 606,
                "kind": "in",
                "value": true
              },
              {
                "id": 609,
                "nodeId": 606,
                "kind": "out",
                "value": false
              },
              {
                "id": 610,
                "nodeId": 606,
                "kind": "out",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 611,
                "fromPin": 595,
                "toPin": 603
              },
              {
                "id": 612,
                "fromPin": 595,
                "toPin": 599
              },
              {
                "id": 613,
                "fromPin": 600,
                "toPin": 608
              },
              {
                "id": 614,
                "fromPin": 604,
                "toPin": 607
              },
              {
                "id": 615,
                "fromPin": 609,
                "toPin": 597
              },
              {
                "id": 616,
                "fromPin": 610,
                "toPin": 602
              }
            ]
          }
        },
        {
          "id": 630,
          "type": "CUSTOM:COUNTER-1BIT",
          "x": 579,
          "y": 209,
          "inputs": [
            631
          ],
          "outputs": [
            632
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:COUNTER-1BIT"
          },
          "subState": {
            "nodes": [
              {
                "id": 594,
                "type": "INPUT",
                "x": 50,
                "y": 290,
                "inputs": [],
                "outputs": [
                  595
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 596,
                "type": "OUTPUT",
                "x": 932,
                "y": 182,
                "inputs": [
                  597
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 598,
                "type": "NOT",
                "x": 315,
                "y": 367,
                "inputs": [
                  599
                ],
                "outputs": [
                  600
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 601,
                "type": "CUSTOM:D-Latch",
                "x": 303,
                "y": 228,
                "inputs": [
                  602,
                  603
                ],
                "outputs": [
                  604,
                  605
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              },
              {
                "id": 606,
                "type": "CUSTOM:D-Latch",
                "x": 551,
                "y": 242,
                "inputs": [
                  607,
                  608
                ],
                "outputs": [
                  609,
                  610
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              }
            ],
            "pins": [
              {
                "id": 595,
                "nodeId": 594,
                "kind": "out",
                "value": false
              },
              {
                "id": 597,
                "nodeId": 596,
                "kind": "in",
                "value": false
              },
              {
                "id": 599,
                "nodeId": 598,
                "kind": "in",
                "value": false
              },
              {
                "id": 600,
                "nodeId": 598,
                "kind": "out",
                "value": true
              },
              {
                "id": 602,
                "nodeId": 601,
                "kind": "in",
                "value": true
              },
              {
                "id": 603,
                "nodeId": 601,
                "kind": "in",
                "value": false
              },
              {
                "id": 604,
                "nodeId": 601,
                "kind": "out",
                "value": false
              },
              {
                "id": 605,
                "nodeId": 601,
                "kind": "out",
                "value": true
              },
              {
                "id": 607,
                "nodeId": 606,
                "kind": "in",
                "value": false
              },
              {
                "id": 608,
                "nodeId": 606,
                "kind": "in",
                "value": true
              },
              {
                "id": 609,
                "nodeId": 606,
                "kind": "out",
                "value": false
              },
              {
                "id": 610,
                "nodeId": 606,
                "kind": "out",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 611,
                "fromPin": 595,
                "toPin": 603
              },
              {
                "id": 612,
                "fromPin": 595,
                "toPin": 599
              },
              {
                "id": 613,
                "fromPin": 600,
                "toPin": 608
              },
              {
                "id": 614,
                "fromPin": 604,
                "toPin": 607
              },
              {
                "id": 615,
                "fromPin": 609,
                "toPin": 597
              },
              {
                "id": 616,
                "fromPin": 610,
                "toPin": 602
              }
            ]
          }
        },
        {
          "id": 633,
          "type": "CUSTOM:COUNTER-1BIT",
          "x": 232,
          "y": 417,
          "inputs": [
            634
          ],
          "outputs": [
            635
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:COUNTER-1BIT"
          },
          "subState": {
            "nodes": [
              {
                "id": 594,
                "type": "INPUT",
                "x": 50,
                "y": 290,
                "inputs": [],
                "outputs": [
                  595
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 596,
                "type": "OUTPUT",
                "x": 932,
                "y": 182,
                "inputs": [
                  597
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 598,
                "type": "NOT",
                "x": 315,
                "y": 367,
                "inputs": [
                  599
                ],
                "outputs": [
                  600
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 601,
                "type": "CUSTOM:D-Latch",
                "x": 303,
                "y": 228,
                "inputs": [
                  602,
                  603
                ],
                "outputs": [
                  604,
                  605
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              },
              {
                "id": 606,
                "type": "CUSTOM:D-Latch",
                "x": 551,
                "y": 242,
                "inputs": [
                  607,
                  608
                ],
                "outputs": [
                  609,
                  610
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              }
            ],
            "pins": [
              {
                "id": 595,
                "nodeId": 594,
                "kind": "out",
                "value": true
              },
              {
                "id": 597,
                "nodeId": 596,
                "kind": "in",
                "value": false
              },
              {
                "id": 599,
                "nodeId": 598,
                "kind": "in",
                "value": true
              },
              {
                "id": 600,
                "nodeId": 598,
                "kind": "out",
                "value": false
              },
              {
                "id": 602,
                "nodeId": 601,
                "kind": "in",
                "value": true
              },
              {
                "id": 603,
                "nodeId": 601,
                "kind": "in",
                "value": true
              },
              {
                "id": 604,
                "nodeId": 601,
                "kind": "out",
                "value": true
              },
              {
                "id": 605,
                "nodeId": 601,
                "kind": "out",
                "value": false
              },
              {
                "id": 607,
                "nodeId": 606,
                "kind": "in",
                "value": true
              },
              {
                "id": 608,
                "nodeId": 606,
                "kind": "in",
                "value": false
              },
              {
                "id": 609,
                "nodeId": 606,
                "kind": "out",
                "value": false
              },
              {
                "id": 610,
                "nodeId": 606,
                "kind": "out",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 611,
                "fromPin": 595,
                "toPin": 603
              },
              {
                "id": 612,
                "fromPin": 595,
                "toPin": 599
              },
              {
                "id": 613,
                "fromPin": 600,
                "toPin": 608
              },
              {
                "id": 614,
                "fromPin": 604,
                "toPin": 607
              },
              {
                "id": 615,
                "fromPin": 609,
                "toPin": 597
              },
              {
                "id": 616,
                "fromPin": 610,
                "toPin": 602
              }
            ]
          }
        },
        {
          "id": 636,
          "type": "CUSTOM:COUNTER-1BIT",
          "x": 411,
          "y": 315,
          "inputs": [
            637
          ],
          "outputs": [
            638
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:COUNTER-1BIT"
          },
          "subState": {
            "nodes": [
              {
                "id": 594,
                "type": "INPUT",
                "x": 50,
                "y": 290,
                "inputs": [],
                "outputs": [
                  595
                ],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 596,
                "type": "OUTPUT",
                "x": 932,
                "y": 182,
                "inputs": [
                  597
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              },
              {
                "id": 598,
                "type": "NOT",
                "x": 315,
                "y": 367,
                "inputs": [
                  599
                ],
                "outputs": [
                  600
                ],
                "state": {},
                "extra": {}
              },
              {
                "id": 601,
                "type": "CUSTOM:D-Latch",
                "x": 303,
                "y": 228,
                "inputs": [
                  602,
                  603
                ],
                "outputs": [
                  604,
                  605
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              },
              {
                "id": 606,
                "type": "CUSTOM:D-Latch",
                "x": 551,
                "y": 242,
                "inputs": [
                  607,
                  608
                ],
                "outputs": [
                  609,
                  610
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:D-Latch"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 552,
                      "type": "INPUT",
                      "x": 64,
                      "y": 315,
                      "inputs": [],
                      "outputs": [
                        553
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 554,
                      "type": "INPUT",
                      "x": 58,
                      "y": 209,
                      "inputs": [],
                      "outputs": [
                        555
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 564,
                      "type": "CUSTOM:NAND",
                      "x": 299,
                      "y": 222,
                      "inputs": [
                        565,
                        566
                      ],
                      "outputs": [
                        567
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 568,
                      "type": "CUSTOM:NAND",
                      "x": 436,
                      "y": 315,
                      "inputs": [
                        569,
                        570
                      ],
                      "outputs": [
                        571
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 572,
                      "type": "CUSTOM:NAND",
                      "x": 725,
                      "y": 206,
                      "inputs": [
                        573,
                        574
                      ],
                      "outputs": [
                        575
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": true
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": false
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 576,
                      "type": "CUSTOM:NAND",
                      "x": 723,
                      "y": 306,
                      "inputs": [
                        577,
                        578
                      ],
                      "outputs": [
                        579
                      ],
                      "state": {},
                      "extra": {
                        "defName": "CUSTOM:NAND"
                      },
                      "subState": {
                        "nodes": [
                          {
                            "id": 26,
                            "type": "AND",
                            "x": 216,
                            "y": 161,
                            "inputs": [
                              27,
                              28
                            ],
                            "outputs": [
                              29
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 30,
                            "type": "INPUT",
                            "x": 79,
                            "y": 200,
                            "inputs": [],
                            "outputs": [
                              31
                            ],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          },
                          {
                            "id": 32,
                            "type": "INPUT",
                            "x": 78,
                            "y": 141,
                            "inputs": [],
                            "outputs": [
                              33
                            ],
                            "state": {
                              "on": false
                            },
                            "extra": {}
                          },
                          {
                            "id": 34,
                            "type": "NOT",
                            "x": 341,
                            "y": 163,
                            "inputs": [
                              35
                            ],
                            "outputs": [
                              36
                            ],
                            "state": {},
                            "extra": {}
                          },
                          {
                            "id": 37,
                            "type": "OUTPUT",
                            "x": 476,
                            "y": 161,
                            "inputs": [
                              38
                            ],
                            "outputs": [],
                            "state": {
                              "on": true
                            },
                            "extra": {}
                          }
                        ],
                        "pins": [
                          {
                            "id": 27,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 28,
                            "nodeId": 26,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 29,
                            "nodeId": 26,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 31,
                            "nodeId": 30,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 33,
                            "nodeId": 32,
                            "kind": "out",
                            "value": false
                          },
                          {
                            "id": 35,
                            "nodeId": 34,
                            "kind": "in",
                            "value": false
                          },
                          {
                            "id": 36,
                            "nodeId": 34,
                            "kind": "out",
                            "value": true
                          },
                          {
                            "id": 38,
                            "nodeId": 37,
                            "kind": "in",
                            "value": true
                          }
                        ],
                        "wires": [
                          {
                            "id": 39,
                            "fromPin": 33,
                            "toPin": 27
                          },
                          {
                            "id": 40,
                            "fromPin": 31,
                            "toPin": 28
                          },
                          {
                            "id": 41,
                            "fromPin": 29,
                            "toPin": 35
                          },
                          {
                            "id": 42,
                            "fromPin": 36,
                            "toPin": 38
                          }
                        ]
                      }
                    },
                    {
                      "id": 586,
                      "type": "OUTPUT",
                      "x": 1017,
                      "y": 193,
                      "inputs": [
                        587
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 588,
                      "type": "OUTPUT",
                      "x": 1009,
                      "y": 303,
                      "inputs": [
                        589
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 553,
                      "nodeId": 552,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 555,
                      "nodeId": 554,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 565,
                      "nodeId": 564,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 566,
                      "nodeId": 564,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 567,
                      "nodeId": 564,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 569,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 570,
                      "nodeId": 568,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 571,
                      "nodeId": 568,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 573,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 574,
                      "nodeId": 572,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 575,
                      "nodeId": 572,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 577,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 578,
                      "nodeId": 576,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 579,
                      "nodeId": 576,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 587,
                      "nodeId": 586,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 589,
                      "nodeId": 588,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 580,
                      "fromPin": 553,
                      "toPin": 570
                    },
                    {
                      "id": 581,
                      "fromPin": 553,
                      "toPin": 566
                    },
                    {
                      "id": 582,
                      "fromPin": 555,
                      "toPin": 565
                    },
                    {
                      "id": 583,
                      "fromPin": 567,
                      "toPin": 569
                    },
                    {
                      "id": 584,
                      "fromPin": 567,
                      "toPin": 573
                    },
                    {
                      "id": 585,
                      "fromPin": 571,
                      "toPin": 578
                    },
                    {
                      "id": 590,
                      "fromPin": 575,
                      "toPin": 587
                    },
                    {
                      "id": 591,
                      "fromPin": 579,
                      "toPin": 589
                    },
                    {
                      "id": 592,
                      "fromPin": 575,
                      "toPin": 577
                    },
                    {
                      "id": 593,
                      "fromPin": 579,
                      "toPin": 574
                    }
                  ]
                }
              }
            ],
            "pins": [
              {
                "id": 595,
                "nodeId": 594,
                "kind": "out",
                "value": false
              },
              {
                "id": 597,
                "nodeId": 596,
                "kind": "in",
                "value": false
              },
              {
                "id": 599,
                "nodeId": 598,
                "kind": "in",
                "value": false
              },
              {
                "id": 600,
                "nodeId": 598,
                "kind": "out",
                "value": true
              },
              {
                "id": 602,
                "nodeId": 601,
                "kind": "in",
                "value": true
              },
              {
                "id": 603,
                "nodeId": 601,
                "kind": "in",
                "value": false
              },
              {
                "id": 604,
                "nodeId": 601,
                "kind": "out",
                "value": false
              },
              {
                "id": 605,
                "nodeId": 601,
                "kind": "out",
                "value": true
              },
              {
                "id": 607,
                "nodeId": 606,
                "kind": "in",
                "value": false
              },
              {
                "id": 608,
                "nodeId": 606,
                "kind": "in",
                "value": true
              },
              {
                "id": 609,
                "nodeId": 606,
                "kind": "out",
                "value": false
              },
              {
                "id": 610,
                "nodeId": 606,
                "kind": "out",
                "value": true
              }
            ],
            "wires": [
              {
                "id": 611,
                "fromPin": 595,
                "toPin": 603
              },
              {
                "id": 612,
                "fromPin": 595,
                "toPin": 599
              },
              {
                "id": 613,
                "fromPin": 600,
                "toPin": 608
              },
              {
                "id": 614,
                "fromPin": 604,
                "toPin": 607
              },
              {
                "id": 615,
                "fromPin": 609,
                "toPin": 597
              },
              {
                "id": 616,
                "fromPin": 610,
                "toPin": 602
              }
            ]
          }
        }
      ],
      "pins": [
        {
          "id": 618,
          "nodeId": 617,
          "kind": "out",
          "value": true
        },
        {
          "id": 620,
          "nodeId": 619,
          "kind": "in",
          "value": false
        },
        {
          "id": 622,
          "nodeId": 621,
          "kind": "in",
          "value": false
        },
        {
          "id": 624,
          "nodeId": 623,
          "kind": "in",
          "value": false
        },
        {
          "id": 626,
          "nodeId": 625,
          "kind": "in",
          "value": false
        },
        {
          "id": 628,
          "nodeId": 627,
          "kind": "in",
          "value": false
        },
        {
          "id": 629,
          "nodeId": 627,
          "kind": "out",
          "value": false
        },
        {
          "id": 631,
          "nodeId": 630,
          "kind": "in",
          "value": false
        },
        {
          "id": 632,
          "nodeId": 630,
          "kind": "out",
          "value": false
        },
        {
          "id": 634,
          "nodeId": 633,
          "kind": "in",
          "value": true
        },
        {
          "id": 635,
          "nodeId": 633,
          "kind": "out",
          "value": false
        },
        {
          "id": 637,
          "nodeId": 636,
          "kind": "in",
          "value": false
        },
        {
          "id": 638,
          "nodeId": 636,
          "kind": "out",
          "value": false
        }
      ],
      "wires": [
        {
          "id": 639,
          "fromPin": 618,
          "toPin": 634
        },
        {
          "id": 640,
          "fromPin": 635,
          "toPin": 637
        },
        {
          "id": 641,
          "fromPin": 638,
          "toPin": 631
        },
        {
          "id": 642,
          "fromPin": 632,
          "toPin": 628
        },
        {
          "id": 643,
          "fromPin": 629,
          "toPin": 624
        },
        {
          "id": 644,
          "fromPin": 632,
          "toPin": 626
        },
        {
          "id": 645,
          "fromPin": 638,
          "toPin": 622
        },
        {
          "id": 646,
          "fromPin": 635,
          "toPin": 620
        }
      ],
      "io": {
        "inputs": [
          618
        ],
        "outputs": [
          624,
          626,
          622,
          620
        ]
      }
    },
    {
      "name": "CUSTOM:PULSER-XOR",
      "nodes": [
        {
          "id": 647,
          "type": "INPUT",
          "x": 46,
          "y": 198,
          "inputs": [],
          "outputs": [
            648
          ],
          "state": {
            "on": true
          },
          "extra": {}
        },
        {
          "id": 649,
          "type": "OUTPUT",
          "x": 774,
          "y": 194,
          "inputs": [
            650
          ],
          "outputs": [],
          "state": {
            "on": false
          },
          "extra": {}
        },
        {
          "id": 651,
          "type": "CUSTOM:XOR",
          "x": 265,
          "y": 282,
          "inputs": [
            652,
            653
          ],
          "outputs": [
            654
          ],
          "state": {},
          "extra": {
            "defName": "CUSTOM:XOR"
          },
          "subState": {
            "nodes": [
              {
                "id": 143,
                "type": "CUSTOM:NAND",
                "x": 313,
                "y": 245,
                "inputs": [
                  144,
                  145
                ],
                "outputs": [
                  146
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 152,
                "type": "INPUT",
                "x": 109,
                "y": 332,
                "inputs": [],
                "outputs": [
                  153
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 159,
                "type": "CUSTOM:NAND",
                "x": 495,
                "y": 360,
                "inputs": [
                  160,
                  161
                ],
                "outputs": [
                  162
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 163,
                "type": "CUSTOM:NAND",
                "x": 675,
                "y": 227,
                "inputs": [
                  164,
                  165
                ],
                "outputs": [
                  166
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": false
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 167,
                "type": "CUSTOM:NAND",
                "x": 460,
                "y": 137,
                "inputs": [
                  168,
                  169
                ],
                "outputs": [
                  170
                ],
                "state": {},
                "extra": {
                  "defName": "CUSTOM:NAND"
                },
                "subState": {
                  "nodes": [
                    {
                      "id": 26,
                      "type": "AND",
                      "x": 216,
                      "y": 161,
                      "inputs": [
                        27,
                        28
                      ],
                      "outputs": [
                        29
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 30,
                      "type": "INPUT",
                      "x": 79,
                      "y": 200,
                      "inputs": [],
                      "outputs": [
                        31
                      ],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    },
                    {
                      "id": 32,
                      "type": "INPUT",
                      "x": 78,
                      "y": 141,
                      "inputs": [],
                      "outputs": [
                        33
                      ],
                      "state": {
                        "on": false
                      },
                      "extra": {}
                    },
                    {
                      "id": 34,
                      "type": "NOT",
                      "x": 341,
                      "y": 163,
                      "inputs": [
                        35
                      ],
                      "outputs": [
                        36
                      ],
                      "state": {},
                      "extra": {}
                    },
                    {
                      "id": 37,
                      "type": "OUTPUT",
                      "x": 476,
                      "y": 161,
                      "inputs": [
                        38
                      ],
                      "outputs": [],
                      "state": {
                        "on": true
                      },
                      "extra": {}
                    }
                  ],
                  "pins": [
                    {
                      "id": 27,
                      "nodeId": 26,
                      "kind": "in",
                      "value": true
                    },
                    {
                      "id": 28,
                      "nodeId": 26,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 29,
                      "nodeId": 26,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 31,
                      "nodeId": 30,
                      "kind": "out",
                      "value": false
                    },
                    {
                      "id": 33,
                      "nodeId": 32,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 35,
                      "nodeId": 34,
                      "kind": "in",
                      "value": false
                    },
                    {
                      "id": 36,
                      "nodeId": 34,
                      "kind": "out",
                      "value": true
                    },
                    {
                      "id": 38,
                      "nodeId": 37,
                      "kind": "in",
                      "value": true
                    }
                  ],
                  "wires": [
                    {
                      "id": 39,
                      "fromPin": 33,
                      "toPin": 27
                    },
                    {
                      "id": 40,
                      "fromPin": 31,
                      "toPin": 28
                    },
                    {
                      "id": 41,
                      "fromPin": 29,
                      "toPin": 35
                    },
                    {
                      "id": 42,
                      "fromPin": 36,
                      "toPin": 38
                    }
                  ]
                }
              },
              {
                "id": 171,
                "type": "INPUT",
                "x": 98,
                "y": 147,
                "inputs": [],
                "outputs": [
                  172
                ],
                "state": {
                  "on": true
                },
                "extra": {}
              },
              {
                "id": 180,
                "type": "OUTPUT",
                "x": 845,
                "y": 228,
                "inputs": [
                  181
                ],
                "outputs": [],
                "state": {
                  "on": false
                },
                "extra": {}
              }
            ],
            "pins": [
              {
                "id": 144,
                "nodeId": 143,
                "kind": "in",
                "value": true
              },
              {
                "id": 145,
                "nodeId": 143,
                "kind": "in",
                "value": true
              },
              {
                "id": 146,
                "nodeId": 143,
                "kind": "out",
                "value": false
              },
              {
                "id": 153,
                "nodeId": 152,
                "kind": "out",
                "value": true
              },
              {
                "id": 160,
                "nodeId": 159,
                "kind": "in",
                "value": false
              },
              {
                "id": 161,
                "nodeId": 159,
                "kind": "in",
                "value": true
              },
              {
                "id": 162,
                "nodeId": 159,
                "kind": "out",
                "value": true
              },
              {
                "id": 164,
                "nodeId": 163,
                "kind": "in",
                "value": true
              },
              {
                "id": 165,
                "nodeId": 163,
                "kind": "in",
                "value": true
              },
              {
                "id": 166,
                "nodeId": 163,
                "kind": "out",
                "value": false
              },
              {
                "id": 168,
                "nodeId": 167,
                "kind": "in",
                "value": true
              },
              {
                "id": 169,
                "nodeId": 167,
                "kind": "in",
                "value": false
              },
              {
                "id": 170,
                "nodeId": 167,
                "kind": "out",
                "value": true
              },
              {
                "id": 172,
                "nodeId": 171,
                "kind": "out",
                "value": true
              },
              {
                "id": 181,
                "nodeId": 180,
                "kind": "in",
                "value": false
              }
            ],
            "wires": [
              {
                "id": 154,
                "fromPin": 153,
                "toPin": 145
              },
              {
                "id": 173,
                "fromPin": 172,
                "toPin": 144
              },
              {
                "id": 174,
                "fromPin": 172,
                "toPin": 168
              },
              {
                "id": 175,
                "fromPin": 153,
                "toPin": 161
              },
              {
                "id": 176,
                "fromPin": 146,
                "toPin": 160
              },
              {
                "id": 177,
                "fromPin": 146,
                "toPin": 169
              },
              {
                "id": 178,
                "fromPin": 170,
                "toPin": 164
              },
              {
                "id": 179,
                "fromPin": 162,
                "toPin": 165
              },
              {
                "id": 182,
                "fromPin": 166,
                "toPin": 181
              }
            ]
          }
        },
        {
          "id": 655,
          "type": "AND",
          "x": 488,
          "y": 150,
          "inputs": [
            656,
            657
          ],
          "outputs": [
            658
          ],
          "state": {},
          "extra": {}
        }
      ],
      "pins": [
        {
          "id": 648,
          "nodeId": 647,
          "kind": "out",
          "value": true
        },
        {
          "id": 650,
          "nodeId": 649,
          "kind": "in",
          "value": false
        },
        {
          "id": 652,
          "nodeId": 651,
          "kind": "in",
          "value": true
        },
        {
          "id": 653,
          "nodeId": 651,
          "kind": "in",
          "value": true
        },
        {
          "id": 654,
          "nodeId": 651,
          "kind": "out",
          "value": false
        },
        {
          "id": 656,
          "nodeId": 655,
          "kind": "in",
          "value": true
        },
        {
          "id": 657,
          "nodeId": 655,
          "kind": "in",
          "value": true
        },
        {
          "id": 658,
          "nodeId": 655,
          "kind": "out",
          "value": true
        }
      ],
      "wires": [
        {
          "id": 659,
          "fromPin": 648,
          "toPin": 656
        },
        {
          "id": 660,
          "fromPin": 648,
          "toPin": 652
        },
        {
          "id": 661,
          "fromPin": 658,
          "toPin": 650
        },
        {
          "id": 662,
          "fromPin": 654,
          "toPin": 653
        },
        {
          "id": 663,
          "fromPin": 654,
          "toPin": 657
        }
      ],
      "io": {
        "inputs": [
          648
        ],
        "outputs": [
          650
        ]
      }
    }
  ],
  "nextId": 800
}