<?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">
    <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="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="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="(250,360)" to="(250,430)"/>
    <wire from="(860,370)" to="(920,370)"/>
    <wire from="(180,460)" to="(490,460)"/>
    <wire from="(780,390)" to="(780,460)"/>
    <wire from="(740,350)" to="(800,350)"/>
    <wire from="(900,280)" to="(1000,280)"/>
    <wire from="(1020,130)" to="(1020,350)"/>
    <wire from="(640,280)" to="(740,280)"/>
    <wire from="(250,130)" to="(250,160)"/>
    <wire from="(490,460)" to="(530,460)"/>
    <wire from="(780,390)" to="(800,390)"/>
    <wire from="(180,320)" to="(210,320)"/>
    <wire from="(900,330)" to="(920,330)"/>
    <wire from="(240,320)" to="(270,320)"/>
    <wire from="(980,350)" to="(1000,350)"/>
    <wire from="(1000,350)" to="(1020,350)"/>
    <wire from="(740,240)" to="(740,280)"/>
    <wire from="(600,510)" to="(620,510)"/>
    <wire from="(640,330)" to="(660,330)"/>
    <wire from="(640,350)" to="(660,350)"/>
    <wire from="(1000,240)" to="(1000,280)"/>
    <wire from="(720,350)" to="(740,350)"/>
    <wire from="(490,240)" to="(490,350)"/>
    <wire from="(410,200)" to="(430,200)"/>
    <wire from="(490,240)" to="(510,240)"/>
    <wire from="(1040,240)" to="(1070,240)"/>
    <wire from="(570,220)" to="(660,220)"/>
    <wire from="(250,430)" to="(1040,430)"/>
    <wire from="(250,360)" to="(270,360)"/>
    <wire from="(250,160)" to="(270,160)"/>
    <wire from="(1040,240)" to="(1040,430)"/>
    <wire from="(780,200)" to="(780,390)"/>
    <wire from="(250,130)" to="(1020,130)"/>
    <wire from="(620,260)" to="(620,310)"/>
    <wire from="(600,460)" to="(600,510)"/>
    <wire from="(640,280)" to="(640,330)"/>
    <wire from="(880,260)" to="(880,310)"/>
    <wire from="(900,280)" to="(900,330)"/>
    <wire from="(1020,350)" to="(1070,350)"/>
    <wire from="(620,310)" to="(740,310)"/>
    <wire from="(880,310)" to="(1000,310)"/>
    <wire from="(600,460)" to="(780,460)"/>
    <wire from="(860,220)" to="(920,220)"/>
    <wire from="(740,240)" to="(800,240)"/>
    <wire from="(560,460)" to="(600,460)"/>
    <wire from="(620,260)" to="(660,260)"/>
    <wire from="(880,260)" to="(920,260)"/>
    <wire from="(1000,240)" to="(1040,240)"/>
    <wire from="(320,180)" to="(360,180)"/>
    <wire from="(980,240)" to="(1000,240)"/>
    <wire from="(740,310)" to="(740,350)"/>
    <wire from="(180,200)" to="(270,200)"/>
    <wire from="(480,390)" to="(510,390)"/>
    <wire from="(650,510)" to="(670,510)"/>
    <wire from="(1000,310)" to="(1000,350)"/>
    <wire from="(720,240)" to="(740,240)"/>
    <wire from="(780,200)" to="(800,200)"/>
    <wire from="(490,350)" to="(490,460)"/>
    <wire from="(340,220)" to="(360,220)"/>
    <wire from="(320,340)" to="(340,340)"/>
    <wire from="(430,390)" to="(450,390)"/>
    <wire from="(490,350)" to="(510,350)"/>
    <wire from="(570,370)" to="(660,370)"/>
    <wire from="(430,200)" to="(510,200)"/>
    <wire from="(430,200)" to="(430,390)"/>
    <wire from="(340,220)" to="(340,340)"/>
    <comp lib="1" loc="(320,340)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(860,370)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(670,510)" name="Tunnel">
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="0" loc="(180,460)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="1" loc="(570,370)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(560,460)" name="NOT Gate"/>
    <comp lib="1" loc="(980,350)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(1070,350)" 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="(180,320)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="K"/>
    </comp>
    <comp lib="6" loc="(1097,341)" name="Text">
      <a name="text" val="_"/>
    </comp>
    <comp lib="1" loc="(320,180)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(720,350)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(180,200)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="J"/>
    </comp>
    <comp lib="1" loc="(570,220)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(410,200)" name="OR Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(480,390)" name="NOT Gate"/>
    <comp lib="1" loc="(860,220)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(650,510)" name="reset"/>
    <comp lib="0" loc="(1070,240)" 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="(720,240)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(980,240)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(640,350)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="1" loc="(240,320)" name="NOT Gate"/>
  </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="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"/>
    <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"/>
  </circuit>
</project>
