<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
  This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).

  <lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </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"/>
  <lib desc="#Arithmetic" name="3"/>
  <lib desc="#Memory" name="4"/>
  <lib desc="#I/O" name="5">
    <tool name="Button">
      <a name="facing" val="north"/>
    </tool>
  </lib>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <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="Menu 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="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin">
      <a name="facing" val="north"/>
      <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"/>
    <wire from="(760,300)" to="(880,300)"/>
    <wire from="(220,470)" to="(220,540)"/>
    <wire from="(860,250)" to="(920,250)"/>
    <wire from="(860,250)" to="(860,320)"/>
    <wire from="(540,250)" to="(540,320)"/>
    <wire from="(440,300)" to="(560,300)"/>
    <wire from="(620,250)" to="(660,250)"/>
    <wire from="(620,390)" to="(660,390)"/>
    <wire from="(840,370)" to="(880,370)"/>
    <wire from="(300,390)" to="(300,470)"/>
    <wire from="(880,370)" to="(920,370)"/>
    <wire from="(760,320)" to="(860,320)"/>
    <wire from="(620,390)" to="(620,470)"/>
    <wire from="(440,320)" to="(540,320)"/>
    <wire from="(300,250)" to="(340,250)"/>
    <wire from="(300,230)" to="(340,230)"/>
    <wire from="(300,390)" to="(340,390)"/>
    <wire from="(300,470)" to="(340,470)"/>
    <wire from="(840,250)" to="(860,250)"/>
    <wire from="(220,540)" to="(250,540)"/>
    <wire from="(760,320)" to="(760,360)"/>
    <wire from="(760,260)" to="(760,300)"/>
    <wire from="(520,250)" to="(540,250)"/>
    <wire from="(640,370)" to="(660,370)"/>
    <wire from="(270,470)" to="(300,470)"/>
    <wire from="(280,540)" to="(310,540)"/>
    <wire from="(320,370)" to="(340,370)"/>
    <wire from="(440,260)" to="(440,300)"/>
    <wire from="(440,320)" to="(440,360)"/>
    <wire from="(440,400)" to="(440,440)"/>
    <wire from="(200,470)" to="(220,470)"/>
    <wire from="(220,470)" to="(240,470)"/>
    <wire from="(300,180)" to="(300,230)"/>
    <wire from="(300,180)" to="(880,180)"/>
    <wire from="(420,240)" to="(420,310)"/>
    <wire from="(540,230)" to="(660,230)"/>
    <wire from="(400,380)" to="(460,380)"/>
    <wire from="(370,470)" to="(620,470)"/>
    <wire from="(620,250)" to="(620,390)"/>
    <wire from="(300,250)" to="(300,390)"/>
    <wire from="(880,300)" to="(880,370)"/>
    <wire from="(740,240)" to="(740,310)"/>
    <wire from="(720,380)" to="(780,380)"/>
    <wire from="(520,380)" to="(560,380)"/>
    <wire from="(740,240)" to="(780,240)"/>
    <wire from="(640,310)" to="(740,310)"/>
    <wire from="(560,300)" to="(560,380)"/>
    <wire from="(320,310)" to="(420,310)"/>
    <wire from="(540,230)" to="(540,250)"/>
    <wire from="(420,240)" to="(460,240)"/>
    <wire from="(720,240)" to="(740,240)"/>
    <wire from="(760,260)" to="(780,260)"/>
    <wire from="(760,360)" to="(780,360)"/>
    <wire from="(400,240)" to="(420,240)"/>
    <wire from="(440,260)" to="(460,260)"/>
    <wire from="(440,400)" to="(460,400)"/>
    <wire from="(440,360)" to="(460,360)"/>
    <wire from="(420,440)" to="(440,440)"/>
    <wire from="(640,310)" to="(640,370)"/>
    <wire from="(880,180)" to="(880,300)"/>
    <wire from="(320,310)" to="(320,370)"/>
    <comp lib="1" loc="(400,240)" name="NAND Gate"/>
    <comp lib="0" loc="(310,540)" name="Tunnel">
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="1" loc="(370,470)" name="NOT Gate"/>
    <comp lib="1" loc="(400,380)" name="NAND Gate"/>
    <comp lib="1" loc="(270,470)" name="NOT Gate"/>
    <comp lib="6" loc="(4,16)" name="Text">
      <a name="text" val="Designed by S. Gražulis (https://saulius.grazulis.lt) CC-BY-NC"/>
      <a name="halign" val="left"/>
    </comp>
    <comp lib="0" loc="(420,440)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="0" loc="(920,250)" 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="(840,370)" name="NAND Gate"/>
    <comp lib="1" loc="(720,240)" name="NAND Gate"/>
    <comp lib="1" loc="(840,250)" name="NAND Gate"/>
    <comp lib="0" loc="(920,370)" 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="(200,470)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="1" loc="(520,250)" name="NAND Gate"/>
    <comp lib="1" loc="(720,380)" name="NAND Gate"/>
    <comp lib="1" loc="(520,380)" name="NAND Gate"/>
    <comp lib="6" loc="(947,361)" name="Text">
      <a name="text" val="_"/>
    </comp>
    <comp loc="(280,540)" name="reset"/>
  </circuit>
  <circuit name="reset">
    <a name="circuit" val="reset"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(480,230)" to="(480,300)"/>
    <wire from="(190,230)" to="(300,230)"/>
    <wire from="(450,230)" to="(480,230)"/>
    <wire from="(270,250)" to="(300,250)"/>
    <wire from="(270,250)" to="(270,300)"/>
    <wire from="(380,180)" to="(380,230)"/>
    <wire from="(270,300)" to="(480,300)"/>
    <wire from="(380,180)" to="(500,180)"/>
    <wire from="(340,230)" to="(380,230)"/>
    <wire from="(380,230)" to="(420,230)"/>
    <comp lib="1" loc="(450,230)" name="NOT Gate"/>
    <comp lib="0" loc="(190,230)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="4" loc="(340,230)" name="T Flip-Flop"/>
    <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>
  </circuit>
</project>
