<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.16.1.2.jar" version="1.0">
  This file is intended to be loaded by Logisim http://logisim.altervista.org

  <lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="north"/>
    </tool>
    <tool name="Probe">
      <a name="labelloc" val="east"/>
    </tool>
    <tool name="Pull Resistor">
      <a name="facing" val="north"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1"/>
  <lib desc="#Plexers" name="2">
    <tool name="Multiplexer">
      <a name="enable" val="false"/>
    </tool>
    <tool name="Demultiplexer">
      <a name="enable" val="false"/>
    </tool>
    <tool name="Decoder">
      <a name="enable" val="false"/>
    </tool>
  </lib>
  <lib desc="#Arithmetic" name="3"/>
  <lib desc="#Memory" name="4">
    <tool name="ROM">
      <a name="contents">addr/data: 8 8
0
</a>
    </tool>
  </lib>
  <lib desc="#I/O" name="5"/>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="color" val="#000000"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="main"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Poke Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="color" val="#000000"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="tristate" val="false"/>
    </tool>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
  </toolbar>
  <circuit name="main">
    <a name="circuit" val="main"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="clabelcolor" val="#000000"/>
    <wire from="(340,190)" to="(400,190)"/>
    <wire from="(620,280)" to="(740,280)"/>
    <wire from="(480,210)" to="(540,210)"/>
    <wire from="(760,320)" to="(810,320)"/>
    <wire from="(260,120)" to="(760,120)"/>
    <wire from="(360,280)" to="(480,280)"/>
    <wire from="(190,430)" to="(240,430)"/>
    <wire from="(600,190)" to="(660,190)"/>
    <wire from="(620,230)" to="(660,230)"/>
    <wire from="(740,210)" to="(780,210)"/>
    <wire from="(260,360)" to="(260,390)"/>
    <wire from="(240,210)" to="(280,210)"/>
    <wire from="(240,430)" to="(280,430)"/>
    <wire from="(360,230)" to="(400,230)"/>
    <wire from="(740,280)" to="(740,320)"/>
    <wire from="(190,340)" to="(280,340)"/>
    <wire from="(720,210)" to="(740,210)"/>
    <wire from="(260,170)" to="(280,170)"/>
    <wire from="(460,210)" to="(480,210)"/>
    <wire from="(520,170)" to="(540,170)"/>
    <wire from="(240,210)" to="(240,320)"/>
    <wire from="(480,280)" to="(480,320)"/>
    <wire from="(260,120)" to="(260,170)"/>
    <wire from="(260,390)" to="(780,390)"/>
    <wire from="(340,340)" to="(400,340)"/>
    <wire from="(760,120)" to="(760,320)"/>
    <wire from="(480,320)" to="(540,320)"/>
    <wire from="(600,340)" to="(660,340)"/>
    <wire from="(520,360)" to="(520,430)"/>
    <wire from="(640,250)" to="(740,250)"/>
    <wire from="(380,250)" to="(480,250)"/>
    <wire from="(240,320)" to="(280,320)"/>
    <wire from="(740,210)" to="(740,250)"/>
    <wire from="(520,360)" to="(540,360)"/>
    <wire from="(190,190)" to="(280,190)"/>
    <wire from="(640,300)" to="(660,300)"/>
    <wire from="(720,320)" to="(740,320)"/>
    <wire from="(740,320)" to="(760,320)"/>
    <wire from="(260,360)" to="(280,360)"/>
    <wire from="(380,300)" to="(400,300)"/>
    <wire from="(780,210)" to="(810,210)"/>
    <wire from="(460,320)" to="(480,320)"/>
    <wire from="(240,320)" to="(240,430)"/>
    <wire from="(480,210)" to="(480,250)"/>
    <wire from="(360,230)" to="(360,280)"/>
    <wire from="(380,250)" to="(380,300)"/>
    <wire from="(520,170)" to="(520,360)"/>
    <wire from="(640,250)" to="(640,300)"/>
    <wire from="(620,230)" to="(620,280)"/>
    <wire from="(780,210)" to="(780,390)"/>
    <wire from="(370,480)" to="(390,480)"/>
    <wire from="(420,480)" to="(440,480)"/>
    <wire from="(370,430)" to="(370,480)"/>
    <wire from="(310,430)" to="(370,430)"/>
    <wire from="(370,430)" to="(520,430)"/>
    <wire from="(390,320)" to="(400,320)"/>
    <comp lib="1" loc="(600,190)" name="NAND Gate">
      <a name="size" val="50"/>
    </comp>
    <comp lib="1" loc="(340,190)" name="NAND Gate">
      <a name="size" val="50"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(190,430)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(190,340)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="K"/>
    </comp>
    <comp lib="6" loc="(837,311)" name="Text">
      <a name="text" val="_"/>
    </comp>
    <comp lib="1" loc="(340,340)" name="NAND Gate">
      <a name="size" val="50"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp loc="(420,480)" name="reset"/>
    <comp lib="1" loc="(460,210)" name="NAND Gate">
      <a name="size" val="50"/>
    </comp>
    <comp lib="0" loc="(190,190)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="J"/>
    </comp>
    <comp lib="0" loc="(440,480)" name="Tunnel">
      <a name="facing" val="west"/>
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="0" loc="(810,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(810,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(600,340)" name="NAND Gate">
      <a name="size" val="50"/>
    </comp>
    <comp lib="1" loc="(720,320)" name="NAND Gate">
      <a name="size" val="50"/>
    </comp>
    <comp lib="1" loc="(720,210)" name="NAND Gate">
      <a name="size" val="50"/>
    </comp>
    <comp lib="1" loc="(460,320)" name="NAND Gate">
      <a name="size" val="50"/>
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(310,430)" name="NOT Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(390,320)" name="Tunnel">
      <a name="label" val="RESET"/>
    </comp>
  </circuit>
  <circuit name="reset">
    <a name="circuit" val="reset"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="Dialog plain 12"/>
    <a name="clabelcolor" val="#000000"/>
    <wire from="(480,230)" to="(480,300)"/>
    <wire from="(450,230)" to="(480,230)"/>
    <wire from="(270,250)" to="(300,250)"/>
    <wire from="(270,300)" to="(480,300)"/>
    <wire from="(380,180)" to="(500,180)"/>
    <wire from="(190,230)" to="(300,230)"/>
    <wire from="(270,250)" to="(270,300)"/>
    <wire from="(380,180)" to="(380,230)"/>
    <wire from="(340,230)" to="(380,230)"/>
    <wire from="(380,230)" to="(420,230)"/>
    <comp lib="0" loc="(500,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="RESET"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="4" loc="(340,230)" name="T Flip-Flop">
      <a name="Pre/Clr Positions" val="LEGACY"/>
      <a name="enable" val="true"/>
      <a name="NewFFLayout" val="false"/>
    </comp>
    <comp lib="0" loc="(190,230)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="1" loc="(450,230)" name="NOT Gate">
      <a name="size" val="30"/>
    </comp>
  </circuit>
</project>
