<?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="west"/>
    </tool>
    <tool name="Constant">
      <a name="facing" val="west"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="NOT Gate">
      <a name="size" val="20"/>
    </tool>
    <tool name="OR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </tool>
    <tool name="NAND Gate">
      <a name="inputs" val="2"/>
    </tool>
  </lib>
  <lib desc="#Memory" name="2">
    <tool name="ROM">
      <a name="contents">addr/data: 8 8
0
</a>
    </tool>
  </lib>
  <lib desc="#Plexers" name="3">
    <tool name="Multiplexer">
      <a name="select" val="2"/>
    </tool>
    <tool name="Decoder">
      <a name="facing" val="west"/>
      <a name="select" val="2"/>
    </tool>
    <tool name="Priority Encoder">
      <a name="select" val="2"/>
    </tool>
  </lib>
  <lib desc="#Base" name="4">
    <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="4" map="Button2" name="Menu Tool"/>
    <tool lib="4" map="Ctrl Button1" name="Menu Tool"/>
    <tool lib="4" map="Button3" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="4" name="Poke Tool"/>
    <tool lib="4" name="Edit Tool"/>
    <tool lib="4" 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="south"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(380,70)" to="(380,100)"/>
    <wire from="(800,420)" to="(830,420)"/>
    <wire from="(870,210)" to="(870,630)"/>
    <wire from="(180,130)" to="(210,130)"/>
    <wire from="(160,420)" to="(190,420)"/>
    <wire from="(180,90)" to="(180,130)"/>
    <wire from="(300,220)" to="(470,220)"/>
    <wire from="(230,260)" to="(300,260)"/>
    <wire from="(420,80)" to="(420,200)"/>
    <wire from="(470,140)" to="(470,150)"/>
    <wire from="(250,460)" to="(250,500)"/>
    <wire from="(210,450)" to="(230,450)"/>
    <wire from="(420,320)" to="(420,500)"/>
    <wire from="(230,520)" to="(230,610)"/>
    <wire from="(550,180)" to="(550,200)"/>
    <wire from="(210,420)" to="(230,420)"/>
    <wire from="(160,610)" to="(230,610)"/>
    <wire from="(440,380)" to="(440,590)"/>
    <wire from="(250,130)" to="(260,130)"/>
    <wire from="(190,440)" to="(190,450)"/>
    <wire from="(420,500)" to="(470,500)"/>
    <wire from="(380,440)" to="(470,440)"/>
    <wire from="(160,120)" to="(170,120)"/>
    <wire from="(380,440)" to="(380,570)"/>
    <wire from="(220,510)" to="(220,570)"/>
    <wire from="(300,260)" to="(300,400)"/>
    <wire from="(320,160)" to="(320,280)"/>
    <wire from="(800,400)" to="(850,400)"/>
    <wire from="(180,260)" to="(180,280)"/>
    <wire from="(700,20)" to="(700,40)"/>
    <wire from="(220,510)" to="(230,510)"/>
    <wire from="(320,280)" to="(320,340)"/>
    <wire from="(550,430)" to="(550,480)"/>
    <wire from="(440,380)" to="(470,380)"/>
    <wire from="(700,190)" to="(760,190)"/>
    <wire from="(790,220)" to="(790,240)"/>
    <wire from="(730,90)" to="(790,90)"/>
    <wire from="(160,260)" to="(180,260)"/>
    <wire from="(530,60)" to="(610,60)"/>
    <wire from="(730,450)" to="(730,540)"/>
    <wire from="(240,300)" to="(340,300)"/>
    <wire from="(790,430)" to="(790,450)"/>
    <wire from="(420,200)" to="(420,320)"/>
    <wire from="(300,400)" to="(300,460)"/>
    <wire from="(300,220)" to="(300,260)"/>
    <wire from="(340,300)" to="(340,360)"/>
    <wire from="(570,400)" to="(590,400)"/>
    <wire from="(300,40)" to="(470,40)"/>
    <wire from="(380,300)" to="(470,300)"/>
    <wire from="(300,40)" to="(300,220)"/>
    <wire from="(700,40)" to="(760,40)"/>
    <wire from="(550,200)" to="(590,200)"/>
    <wire from="(230,190)" to="(240,190)"/>
    <wire from="(850,400)" to="(850,610)"/>
    <wire from="(700,40)" to="(700,190)"/>
    <wire from="(530,480)" to="(550,480)"/>
    <wire from="(420,320)" to="(470,320)"/>
    <wire from="(550,220)" to="(550,240)"/>
    <wire from="(210,320)" to="(360,320)"/>
    <wire from="(230,190)" to="(230,260)"/>
    <wire from="(380,100)" to="(470,100)"/>
    <wire from="(160,570)" to="(220,570)"/>
    <wire from="(640,60)" to="(760,60)"/>
    <wire from="(190,430)" to="(230,430)"/>
    <wire from="(380,300)" to="(380,440)"/>
    <wire from="(180,300)" to="(180,320)"/>
    <wire from="(180,320)" to="(190,320)"/>
    <wire from="(830,420)" to="(830,590)"/>
    <wire from="(190,120)" to="(210,120)"/>
    <wire from="(210,280)" to="(320,280)"/>
    <wire from="(550,410)" to="(590,410)"/>
    <wire from="(320,160)" to="(470,160)"/>
    <wire from="(650,420)" to="(760,420)"/>
    <wire from="(420,80)" to="(470,80)"/>
    <wire from="(420,560)" to="(420,610)"/>
    <wire from="(210,450)" to="(210,480)"/>
    <wire from="(380,650)" to="(890,650)"/>
    <wire from="(530,240)" to="(550,240)"/>
    <wire from="(340,50)" to="(340,180)"/>
    <wire from="(360,420)" to="(360,520)"/>
    <wire from="(340,360)" to="(470,360)"/>
    <wire from="(160,390)" to="(210,390)"/>
    <wire from="(340,180)" to="(340,300)"/>
    <wire from="(650,20)" to="(700,20)"/>
    <wire from="(570,440)" to="(570,540)"/>
    <wire from="(530,420)" to="(590,420)"/>
    <wire from="(380,70)" to="(470,70)"/>
    <wire from="(730,90)" to="(730,240)"/>
    <wire from="(890,190)" to="(890,650)"/>
    <wire from="(400,480)" to="(470,480)"/>
    <wire from="(160,480)" to="(210,480)"/>
    <wire from="(230,160)" to="(230,170)"/>
    <wire from="(360,520)" to="(470,520)"/>
    <wire from="(240,200)" to="(240,300)"/>
    <wire from="(320,340)" to="(470,340)"/>
    <wire from="(190,420)" to="(190,430)"/>
    <wire from="(530,360)" to="(550,360)"/>
    <wire from="(550,430)" to="(590,430)"/>
    <wire from="(160,150)" to="(210,150)"/>
    <wire from="(170,120)" to="(170,140)"/>
    <wire from="(730,450)" to="(790,450)"/>
    <wire from="(360,420)" to="(470,420)"/>
    <wire from="(420,200)" to="(470,200)"/>
    <wire from="(420,610)" to="(850,610)"/>
    <wire from="(400,630)" to="(870,630)"/>
    <wire from="(570,190)" to="(590,190)"/>
    <wire from="(220,570)" to="(380,570)"/>
    <wire from="(320,280)" to="(470,280)"/>
    <wire from="(360,320)" to="(360,420)"/>
    <wire from="(530,120)" to="(570,120)"/>
    <wire from="(790,70)" to="(790,90)"/>
    <wire from="(570,440)" to="(590,440)"/>
    <wire from="(180,300)" to="(240,300)"/>
    <wire from="(360,260)" to="(470,260)"/>
    <wire from="(700,190)" to="(700,400)"/>
    <wire from="(340,180)" to="(470,180)"/>
    <wire from="(420,500)" to="(420,560)"/>
    <wire from="(730,240)" to="(730,450)"/>
    <wire from="(570,300)" to="(570,400)"/>
    <wire from="(400,480)" to="(400,630)"/>
    <wire from="(550,220)" to="(590,220)"/>
    <wire from="(710,540)" to="(730,540)"/>
    <wire from="(260,130)" to="(260,180)"/>
    <wire from="(440,140)" to="(470,140)"/>
    <wire from="(190,440)" to="(230,440)"/>
    <wire from="(440,590)" to="(830,590)"/>
    <wire from="(420,560)" to="(470,560)"/>
    <wire from="(380,100)" to="(380,300)"/>
    <wire from="(440,140)" to="(440,380)"/>
    <wire from="(650,210)" to="(760,210)"/>
    <wire from="(700,400)" to="(760,400)"/>
    <wire from="(160,300)" to="(180,300)"/>
    <wire from="(160,90)" to="(180,90)"/>
    <wire from="(800,210)" to="(870,210)"/>
    <wire from="(180,260)" to="(230,260)"/>
    <wire from="(570,230)" to="(570,300)"/>
    <wire from="(570,120)" to="(570,190)"/>
    <wire from="(300,460)" to="(470,460)"/>
    <wire from="(380,570)" to="(380,650)"/>
    <wire from="(530,540)" to="(570,540)"/>
    <wire from="(340,50)" to="(470,50)"/>
    <wire from="(230,610)" to="(420,610)"/>
    <wire from="(300,400)" to="(470,400)"/>
    <wire from="(570,230)" to="(590,230)"/>
    <wire from="(530,300)" to="(570,300)"/>
    <wire from="(530,180)" to="(550,180)"/>
    <wire from="(170,140)" to="(210,140)"/>
    <wire from="(550,360)" to="(550,410)"/>
    <wire from="(730,240)" to="(790,240)"/>
    <wire from="(180,280)" to="(190,280)"/>
    <wire from="(160,450)" to="(190,450)"/>
    <wire from="(360,260)" to="(360,320)"/>
    <wire from="(210,390)" to="(210,420)"/>
    <wire from="(800,190)" to="(890,190)"/>
    <wire from="(800,40)" to="(850,40)"/>
    <comp lib="0" loc="(710,540)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Reset"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="2" loc="(800,190)" name="D Flip-Flop"/>
    <comp lib="3" loc="(250,460)" name="Decoder">
      <a name="facing" val="west"/>
      <a name="select" val="2"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="1" loc="(530,420)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(530,60)" name="NAND Gate">
      <a name="inputs" val="4"/>
    </comp>
    <comp lib="1" loc="(640,60)" name="NOT Gate"/>
    <comp lib="0" loc="(160,610)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="St1"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="3" loc="(250,130)" name="Priority Encoder">
      <a name="select" val="2"/>
    </comp>
    <comp lib="0" loc="(160,260)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="In0"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(250,500)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="bit0" val="1"/>
      <a name="bit1" val="0"/>
    </comp>
    <comp lib="0" loc="(160,480)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="15"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(160,450)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="10"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(160,90)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="5"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(190,120)" name="Constant">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="1" loc="(210,320)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="1" loc="(530,120)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(210,280)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(160,60)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="0"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(160,420)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="5"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(160,570)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="St0"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="1" loc="(530,360)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(160,390)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="0"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="0" loc="(850,40)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Out"/>
      <a name="labelloc" val="south"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="1" loc="(650,210)" name="NAND Gate">
      <a name="inputs" val="4"/>
    </comp>
    <comp lib="0" loc="(160,150)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Nabs"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="1" loc="(530,300)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(530,240)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(160,120)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="10"/>
      <a name="labelfont" val="SansSerif plain 18"/>
    </comp>
    <comp lib="1" loc="(530,540)" name="NAND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="2" loc="(800,400)" name="D Flip-Flop"/>
    <comp lib="0" loc="(160,300)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="In1"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="4" loc="(830,61)" name="Text"/>
    <comp lib="1" loc="(530,480)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(230,170)" name="Constant"/>
    <comp lib="4" loc="(830,61)" name="Text"/>
    <comp lib="4" loc="(837,71)" name="Text"/>
    <comp lib="0" loc="(650,20)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Clock"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="1" loc="(650,420)" name="NAND Gate"/>
    <comp lib="1" loc="(530,180)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="2" loc="(800,40)" name="D Flip-Flop"/>
    <comp lib="0" loc="(260,180)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="bit0" val="1"/>
      <a name="bit1" val="0"/>
    </comp>
  </circuit>
</project>
