<?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="(670,310)" to="(790,310)"/>
    <wire from="(130,180)" to="(190,180)"/>
    <wire from="(930,310)" to="(1050,310)"/>
    <wire from="(650,460)" to="(830,460)"/>
    <wire from="(790,240)" to="(850,240)"/>
    <wire from="(1050,240)" to="(1090,240)"/>
    <wire from="(910,220)" to="(970,220)"/>
    <wire from="(80,180)" to="(130,180)"/>
    <wire from="(110,220)" to="(110,300)"/>
    <wire from="(610,460)" to="(650,460)"/>
    <wire from="(670,260)" to="(710,260)"/>
    <wire from="(930,260)" to="(970,260)"/>
    <wire from="(110,300)" to="(110,390)"/>
    <wire from="(370,180)" to="(410,180)"/>
    <wire from="(1070,350)" to="(1120,350)"/>
    <wire from="(830,200)" to="(850,200)"/>
    <wire from="(1030,240)" to="(1050,240)"/>
    <wire from="(790,310)" to="(790,350)"/>
    <wire from="(540,350)" to="(560,350)"/>
    <wire from="(700,510)" to="(720,510)"/>
    <wire from="(540,350)" to="(540,460)"/>
    <wire from="(770,240)" to="(790,240)"/>
    <wire from="(370,340)" to="(390,340)"/>
    <wire from="(530,390)" to="(560,390)"/>
    <wire from="(390,220)" to="(410,220)"/>
    <wire from="(480,390)" to="(500,390)"/>
    <wire from="(170,340)" to="(190,340)"/>
    <wire from="(620,370)" to="(710,370)"/>
    <wire from="(240,200)" to="(320,200)"/>
    <wire from="(80,460)" to="(540,460)"/>
    <wire from="(480,200)" to="(560,200)"/>
    <wire from="(1050,310)" to="(1050,350)"/>
    <wire from="(480,200)" to="(480,390)"/>
    <wire from="(390,220)" to="(390,340)"/>
    <wire from="(300,360)" to="(300,430)"/>
    <wire from="(790,350)" to="(850,350)"/>
    <wire from="(910,370)" to="(970,370)"/>
    <wire from="(830,390)" to="(830,460)"/>
    <wire from="(1070,130)" to="(1070,350)"/>
    <wire from="(540,460)" to="(580,460)"/>
    <wire from="(950,280)" to="(1050,280)"/>
    <wire from="(690,280)" to="(790,280)"/>
    <wire from="(300,130)" to="(300,160)"/>
    <wire from="(830,390)" to="(850,390)"/>
    <wire from="(130,180)" to="(130,340)"/>
    <wire from="(950,330)" to="(970,330)"/>
    <wire from="(80,390)" to="(110,390)"/>
    <wire from="(1030,350)" to="(1050,350)"/>
    <wire from="(790,240)" to="(790,280)"/>
    <wire from="(540,240)" to="(560,240)"/>
    <wire from="(650,510)" to="(670,510)"/>
    <wire from="(690,330)" to="(710,330)"/>
    <wire from="(690,350)" to="(710,350)"/>
    <wire from="(540,240)" to="(540,350)"/>
    <wire from="(290,320)" to="(320,320)"/>
    <wire from="(770,350)" to="(790,350)"/>
    <wire from="(300,360)" to="(320,360)"/>
    <wire from="(300,160)" to="(320,160)"/>
    <wire from="(460,200)" to="(480,200)"/>
    <wire from="(1090,240)" to="(1090,430)"/>
    <wire from="(620,220)" to="(710,220)"/>
    <wire from="(240,320)" to="(260,320)"/>
    <wire from="(300,430)" to="(1090,430)"/>
    <wire from="(110,220)" to="(190,220)"/>
    <wire from="(110,300)" to="(190,300)"/>
    <wire from="(1090,240)" to="(1120,240)"/>
    <wire from="(830,200)" to="(830,390)"/>
    <wire from="(130,340)" to="(140,340)"/>
    <wire from="(1050,240)" to="(1050,280)"/>
    <wire from="(670,260)" to="(670,310)"/>
    <wire from="(650,460)" to="(650,510)"/>
    <wire from="(690,280)" to="(690,330)"/>
    <wire from="(300,130)" to="(1070,130)"/>
    <wire from="(1050,350)" to="(1070,350)"/>
    <wire from="(930,260)" to="(930,310)"/>
    <wire from="(950,280)" to="(950,330)"/>
    <comp lib="1" loc="(620,370)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="6" loc="(1147,341)" name="Text">
      <a name="text" val="_"/>
    </comp>
    <comp lib="1" loc="(290,320)" name="NOT Gate"/>
    <comp lib="0" loc="(80,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="D"/>
    </comp>
    <comp lib="1" loc="(620,220)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(1030,240)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(80,460)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(1120,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="1" loc="(770,240)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(460,200)" name="OR Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(80,390)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="EN"/>
    </comp>
    <comp lib="1" loc="(170,340)" name="NOT Gate"/>
    <comp lib="1" loc="(370,180)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(720,510)" name="Tunnel">
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="0" loc="(690,350)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="1" loc="(530,390)" name="NOT Gate"/>
    <comp lib="1" loc="(1030,350)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(910,220)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(1120,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="(240,320)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(240,200)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(610,460)" name="NOT Gate"/>
    <comp lib="1" loc="(910,370)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(370,340)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(700,510)" name="reset"/>
    <comp lib="1" loc="(770,350)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
  </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>
