<?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="south"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1">
    <tool name="AND Gate">
      <a name="inputs" val="4"/>
    </tool>
    <tool name="OR Gate">
      <a name="inputs" val="2"/>
    </tool>
  </lib>
  <lib desc="#Plexers" name="2">
    <tool name="Multiplexer">
      <a name="select" val="3"/>
    </tool>
    <tool name="Decoder">
      <a name="select" val="3"/>
    </tool>
  </lib>
  <lib desc="#Arithmetic" name="3">
    <tool name="Comparator">
      <a name="width" val="6"/>
      <a name="mode" val="unsigned"/>
    </tool>
  </lib>
  <lib desc="#Memory" name="4">
    <tool name="Counter">
      <a name="width" val="3"/>
      <a name="max" val="0x7"/>
    </tool>
    <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="Interface"/>
  <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="Ctrl Button1" name="Menu Tool"/>
    <tool lib="6" map="Button3" 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="Interface">
    <a name="circuit" val="Interface"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <comp lib="6" loc="(179,333)" name="Text">
      <a name="text" val="Sigma(3, 4, 6, 7)"/>
    </comp>
    <comp lib="0" loc="(150,270)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(150,90)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="6" loc="(453,113)" name="Text">
      <a name="halign" val="left"/>
    </comp>
    <comp lib="0" loc="(150,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(300,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="east"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
  </circuit>
  <circuit name="Simple POS">
    <a name="circuit" val="Simple POS"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(100,90)" to="(100,130)"/>
    <wire from="(40,130)" to="(100,130)"/>
    <wire from="(60,70)" to="(180,70)"/>
    <wire from="(100,90)" to="(120,90)"/>
    <wire from="(210,30)" to="(230,30)"/>
    <wire from="(230,60)" to="(230,80)"/>
    <wire from="(80,20)" to="(180,20)"/>
    <wire from="(210,80)" to="(230,80)"/>
    <wire from="(140,90)" to="(180,90)"/>
    <wire from="(100,40)" to="(180,40)"/>
    <wire from="(230,60)" to="(250,60)"/>
    <wire from="(230,30)" to="(230,40)"/>
    <wire from="(100,40)" to="(100,90)"/>
    <wire from="(80,20)" to="(80,80)"/>
    <wire from="(40,30)" to="(60,30)"/>
    <wire from="(60,30)" to="(60,70)"/>
    <wire from="(230,40)" to="(250,40)"/>
    <wire from="(40,80)" to="(80,80)"/>
    <wire from="(280,50)" to="(300,50)"/>
    <comp lib="1" loc="(210,80)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(40,30)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(140,90)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(300,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(210,30)" name="AND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(40,130)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(40,80)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(280,50)" name="OR Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
  </circuit>
  <circuit name="NANDed POS">
    <a name="circuit" val="NANDed POS"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(100,90)" to="(100,130)"/>
    <wire from="(40,130)" to="(100,130)"/>
    <wire from="(60,70)" to="(200,70)"/>
    <wire from="(80,20)" to="(200,20)"/>
    <wire from="(100,40)" to="(200,40)"/>
    <wire from="(260,30)" to="(260,40)"/>
    <wire from="(240,30)" to="(260,30)"/>
    <wire from="(320,50)" to="(340,50)"/>
    <wire from="(240,80)" to="(260,80)"/>
    <wire from="(100,40)" to="(100,90)"/>
    <wire from="(170,90)" to="(200,90)"/>
    <wire from="(260,40)" to="(280,40)"/>
    <wire from="(260,60)" to="(280,60)"/>
    <wire from="(80,20)" to="(80,80)"/>
    <wire from="(40,30)" to="(60,30)"/>
    <wire from="(260,60)" to="(260,80)"/>
    <wire from="(60,30)" to="(60,70)"/>
    <wire from="(40,80)" to="(80,80)"/>
    <wire from="(100,90)" to="(140,90)"/>
    <comp lib="0" loc="(40,80)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(240,30)" name="NAND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(320,50)" name="NAND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(170,90)" name="NOT Gate"/>
    <comp lib="1" loc="(240,80)" name="NAND Gate">
      <a name="size" val="30"/>
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(40,30)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(40,130)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(340,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="MUX">
    <a name="circuit" val="MUX"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(130,90)" to="(220,90)"/>
    <wire from="(130,60)" to="(130,80)"/>
    <wire from="(170,110)" to="(220,110)"/>
    <wire from="(250,180)" to="(270,180)"/>
    <wire from="(170,150)" to="(220,150)"/>
    <wire from="(170,60)" to="(170,110)"/>
    <wire from="(260,120)" to="(310,120)"/>
    <wire from="(130,130)" to="(220,130)"/>
    <wire from="(160,280)" to="(160,360)"/>
    <wire from="(160,180)" to="(160,260)"/>
    <wire from="(170,120)" to="(220,120)"/>
    <wire from="(170,140)" to="(220,140)"/>
    <wire from="(130,80)" to="(220,80)"/>
    <wire from="(130,90)" to="(130,100)"/>
    <wire from="(250,160)" to="(250,180)"/>
    <wire from="(170,120)" to="(170,140)"/>
    <wire from="(160,280)" to="(220,280)"/>
    <wire from="(130,130)" to="(130,150)"/>
    <wire from="(130,100)" to="(220,100)"/>
    <wire from="(80,180)" to="(160,180)"/>
    <wire from="(240,160)" to="(240,250)"/>
    <wire from="(170,110)" to="(170,120)"/>
    <wire from="(170,140)" to="(170,150)"/>
    <wire from="(130,100)" to="(130,130)"/>
    <wire from="(160,260)" to="(220,260)"/>
    <wire from="(80,360)" to="(160,360)"/>
    <wire from="(130,80)" to="(130,90)"/>
    <wire from="(80,270)" to="(220,270)"/>
    <comp lib="0" loc="(240,250)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
      <a name="bit0" val="2"/>
      <a name="bit2" val="0"/>
    </comp>
    <comp lib="0" loc="(80,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(310,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="east"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(130,60)" name="Constant">
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(170,60)" name="Constant"/>
    <comp lib="0" loc="(80,360)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(270,180)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="0" loc="(80,270)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="2" loc="(260,120)" name="Multiplexer">
      <a name="select" val="3"/>
    </comp>
  </circuit>
  <circuit name="MUX with invertors">
    <a name="circuit" val="MUX with invertors"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(110,170)" to="(160,170)"/>
    <wire from="(230,260)" to="(230,310)"/>
    <wire from="(230,310)" to="(270,310)"/>
    <wire from="(70,260)" to="(230,260)"/>
    <wire from="(400,70)" to="(400,160)"/>
    <wire from="(270,140)" to="(430,140)"/>
    <wire from="(180,190)" to="(450,190)"/>
    <wire from="(70,90)" to="(110,90)"/>
    <wire from="(360,70)" to="(360,130)"/>
    <wire from="(450,170)" to="(450,190)"/>
    <wire from="(320,150)" to="(430,150)"/>
    <wire from="(230,260)" to="(270,260)"/>
    <wire from="(460,170)" to="(460,190)"/>
    <wire from="(320,150)" to="(320,310)"/>
    <wire from="(360,130)" to="(430,130)"/>
    <wire from="(270,140)" to="(270,260)"/>
    <wire from="(460,190)" to="(480,190)"/>
    <wire from="(470,150)" to="(520,150)"/>
    <wire from="(400,160)" to="(430,160)"/>
    <wire from="(110,90)" to="(110,170)"/>
    <wire from="(300,310)" to="(320,310)"/>
    <wire from="(70,180)" to="(160,180)"/>
    <comp lib="0" loc="(520,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="east"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(70,180)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(70,90)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(360,70)" name="Constant">
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="2" loc="(470,150)" name="Multiplexer">
      <a name="select" val="2"/>
    </comp>
    <comp lib="0" loc="(70,260)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(480,190)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="0" loc="(400,70)" name="Constant"/>
    <comp lib="0" loc="(180,190)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="appear" val="right"/>
      <a name="bit0" val="1"/>
      <a name="bit1" val="0"/>
    </comp>
    <comp lib="1" loc="(300,310)" name="NOT Gate"/>
  </circuit>
  <circuit name="Decoder">
    <a name="circuit" val="Decoder"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(320,130)" to="(350,130)"/>
    <wire from="(160,250)" to="(220,250)"/>
    <wire from="(230,160)" to="(230,180)"/>
    <wire from="(80,240)" to="(220,240)"/>
    <wire from="(300,100)" to="(300,120)"/>
    <wire from="(80,150)" to="(160,150)"/>
    <wire from="(300,100)" to="(350,100)"/>
    <wire from="(260,110)" to="(290,110)"/>
    <wire from="(240,160)" to="(240,220)"/>
    <wire from="(310,120)" to="(350,120)"/>
    <wire from="(260,150)" to="(320,150)"/>
    <wire from="(320,130)" to="(320,150)"/>
    <wire from="(160,230)" to="(220,230)"/>
    <wire from="(260,120)" to="(300,120)"/>
    <wire from="(290,90)" to="(350,90)"/>
    <wire from="(160,250)" to="(160,330)"/>
    <wire from="(260,140)" to="(310,140)"/>
    <wire from="(400,110)" to="(450,110)"/>
    <wire from="(80,330)" to="(160,330)"/>
    <wire from="(290,90)" to="(290,110)"/>
    <wire from="(310,120)" to="(310,140)"/>
    <wire from="(160,150)" to="(160,230)"/>
    <wire from="(210,180)" to="(230,180)"/>
    <comp lib="2" loc="(240,160)" name="Decoder">
      <a name="select" val="3"/>
    </comp>
    <comp lib="0" loc="(80,240)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="1" loc="(400,110)" name="OR Gate">
      <a name="inputs" val="4"/>
    </comp>
    <comp lib="0" loc="(80,150)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(80,330)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(210,180)" name="Constant"/>
    <comp lib="0" loc="(240,220)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
      <a name="bit0" val="2"/>
      <a name="bit2" val="0"/>
    </comp>
    <comp lib="0" loc="(450,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="east"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
  </circuit>
  <circuit name="ROM">
    <a name="circuit" val="ROM"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(70,230)" to="(150,230)"/>
    <wire from="(150,150)" to="(150,230)"/>
    <wire from="(310,160)" to="(310,180)"/>
    <wire from="(150,130)" to="(210,130)"/>
    <wire from="(150,150)" to="(210,150)"/>
    <wire from="(400,120)" to="(450,120)"/>
    <wire from="(150,50)" to="(150,130)"/>
    <wire from="(230,120)" to="(260,120)"/>
    <wire from="(70,50)" to="(150,50)"/>
    <wire from="(70,140)" to="(210,140)"/>
    <comp lib="0" loc="(70,230)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="4" loc="(400,120)" name="ROM">
      <a name="addrWidth" val="3"/>
      <a name="dataWidth" val="1"/>
      <a name="contents">addr/data: 3 1
0 0 0 1 1 0 1 1
</a>
    </comp>
    <comp lib="0" loc="(70,140)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(310,180)" name="Constant">
      <a name="facing" val="west"/>
    </comp>
    <comp lib="0" loc="(70,50)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(450,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="out"/>
      <a name="labelloc" val="east"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(230,120)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
      <a name="bit0" val="2"/>
      <a name="bit2" val="0"/>
    </comp>
  </circuit>
  <circuit name="Try All">
    <a name="circuit" val="Try All"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="west"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <wire from="(210,150)" to="(270,150)"/>
    <wire from="(210,150)" to="(210,210)"/>
    <wire from="(570,130)" to="(600,130)"/>
    <wire from="(570,170)" to="(570,180)"/>
    <wire from="(230,220)" to="(230,280)"/>
    <wire from="(410,110)" to="(490,110)"/>
    <wire from="(350,230)" to="(390,230)"/>
    <wire from="(300,330)" to="(360,330)"/>
    <wire from="(100,80)" to="(120,80)"/>
    <wire from="(210,210)" to="(270,210)"/>
    <wire from="(190,140)" to="(270,140)"/>
    <wire from="(140,310)" to="(230,310)"/>
    <wire from="(460,130)" to="(490,130)"/>
    <wire from="(300,90)" to="(370,90)"/>
    <wire from="(460,190)" to="(490,190)"/>
    <wire from="(210,330)" to="(270,330)"/>
    <wire from="(230,220)" to="(270,220)"/>
    <wire from="(210,210)" to="(210,220)"/>
    <wire from="(190,80)" to="(190,130)"/>
    <wire from="(190,140)" to="(190,200)"/>
    <wire from="(230,160)" to="(230,220)"/>
    <wire from="(120,60)" to="(120,80)"/>
    <wire from="(210,270)" to="(270,270)"/>
    <wire from="(190,200)" to="(190,260)"/>
    <wire from="(230,100)" to="(230,160)"/>
    <wire from="(360,150)" to="(360,220)"/>
    <wire from="(370,210)" to="(390,210)"/>
    <wire from="(530,120)" to="(570,120)"/>
    <wire from="(370,90)" to="(370,210)"/>
    <wire from="(190,80)" to="(200,80)"/>
    <wire from="(650,150)" to="(680,150)"/>
    <wire from="(230,280)" to="(230,310)"/>
    <wire from="(210,220)" to="(210,270)"/>
    <wire from="(530,180)" to="(570,180)"/>
    <wire from="(360,250)" to="(360,330)"/>
    <wire from="(190,260)" to="(190,320)"/>
    <wire from="(300,270)" to="(350,270)"/>
    <wire from="(370,260)" to="(390,260)"/>
    <wire from="(230,310)" to="(230,340)"/>
    <wire from="(370,260)" to="(370,390)"/>
    <wire from="(410,170)" to="(410,200)"/>
    <wire from="(570,170)" to="(600,170)"/>
    <wire from="(140,130)" to="(190,130)"/>
    <wire from="(230,160)" to="(270,160)"/>
    <wire from="(360,250)" to="(390,250)"/>
    <wire from="(300,150)" to="(360,150)"/>
    <wire from="(190,130)" to="(190,140)"/>
    <wire from="(300,390)" to="(370,390)"/>
    <wire from="(410,170)" to="(490,170)"/>
    <wire from="(210,60)" to="(210,90)"/>
    <wire from="(230,340)" to="(230,400)"/>
    <wire from="(200,60)" to="(200,80)"/>
    <wire from="(230,280)" to="(270,280)"/>
    <wire from="(210,330)" to="(210,390)"/>
    <wire from="(190,320)" to="(190,380)"/>
    <wire from="(230,340)" to="(270,340)"/>
    <wire from="(350,210)" to="(350,230)"/>
    <wire from="(220,100)" to="(230,100)"/>
    <wire from="(220,60)" to="(220,100)"/>
    <wire from="(350,240)" to="(390,240)"/>
    <wire from="(140,40)" to="(190,40)"/>
    <wire from="(230,400)" to="(270,400)"/>
    <wire from="(210,390)" to="(270,390)"/>
    <wire from="(90,50)" to="(110,50)"/>
    <wire from="(190,380)" to="(270,380)"/>
    <wire from="(190,200)" to="(270,200)"/>
    <wire from="(570,120)" to="(570,130)"/>
    <wire from="(200,80)" to="(270,80)"/>
    <wire from="(210,90)" to="(210,150)"/>
    <wire from="(210,270)" to="(210,330)"/>
    <wire from="(410,110)" to="(410,170)"/>
    <wire from="(190,260)" to="(270,260)"/>
    <wire from="(230,100)" to="(270,100)"/>
    <wire from="(210,90)" to="(270,90)"/>
    <wire from="(360,220)" to="(390,220)"/>
    <wire from="(300,210)" to="(350,210)"/>
    <wire from="(350,240)" to="(350,270)"/>
    <wire from="(190,320)" to="(270,320)"/>
    <wire from="(140,220)" to="(210,220)"/>
    <comp lib="1" loc="(650,150)" name="OR Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp loc="(300,150)" name="NANDed POS"/>
    <comp lib="0" loc="(410,200)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="6"/>
      <a name="incoming" val="6"/>
    </comp>
    <comp lib="0" loc="(680,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(300,90)" name="Simple POS"/>
    <comp loc="(300,330)" name="Decoder"/>
    <comp lib="0" loc="(100,80)" name="Clock"/>
    <comp lib="0" loc="(460,130)" name="Constant">
      <a name="width" val="6"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="4" loc="(140,40)" name="Counter">
      <a name="width" val="3"/>
      <a name="max" val="0x7"/>
    </comp>
    <comp lib="0" loc="(460,190)" name="Constant">
      <a name="width" val="6"/>
      <a name="value" val="0x3f"/>
    </comp>
    <comp lib="3" loc="(530,120)" name="Comparator">
      <a name="width" val="6"/>
      <a name="mode" val="unsigned"/>
    </comp>
    <comp loc="(300,390)" name="ROM"/>
    <comp lib="0" loc="(190,40)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
    </comp>
    <comp lib="0" loc="(140,130)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="X"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="3" loc="(530,180)" name="Comparator">
      <a name="width" val="6"/>
      <a name="mode" val="unsigned"/>
    </comp>
    <comp loc="(300,270)" name="MUX with invertors"/>
    <comp lib="0" loc="(90,50)" name="Constant"/>
    <comp loc="(300,210)" name="MUX"/>
    <comp lib="0" loc="(140,220)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Y"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
    <comp lib="0" loc="(140,310)" name="Pin">
      <a name="output" val="true"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Z"/>
      <a name="labelfont" val="SansSerif plain 24"/>
    </comp>
  </circuit>
</project>
