<?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"/>
  <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="Wiring 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"/>
    <tool lib="0" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
    </tool>
    <sep/>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
    <tool lib="1" name="XOR Gate"/>
    <tool lib="1" name="NAND Gate"/>
    <tool lib="1" name="NOR Gate"/>
    <sep/>
    <tool lib="4" name="D Flip-Flop"/>
    <tool lib="4" name="Register"/>
  </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="(190,540)" to="(190,610)"/>
    <wire from="(160,510)" to="(220,510)"/>
    <wire from="(400,180)" to="(400,320)"/>
    <wire from="(180,630)" to="(180,830)"/>
    <wire from="(220,550)" to="(220,750)"/>
    <wire from="(540,330)" to="(600,330)"/>
    <wire from="(160,520)" to="(210,520)"/>
    <wire from="(440,650)" to="(440,850)"/>
    <wire from="(580,370)" to="(580,460)"/>
    <wire from="(570,360)" to="(570,450)"/>
    <wire from="(380,120)" to="(380,270)"/>
    <wire from="(360,830)" to="(470,830)"/>
    <wire from="(90,340)" to="(130,340)"/>
    <wire from="(160,530)" to="(200,530)"/>
    <wire from="(200,330)" to="(240,330)"/>
    <wire from="(520,440)" to="(520,460)"/>
    <wire from="(570,450)" to="(570,470)"/>
    <wire from="(620,180)" to="(620,200)"/>
    <wire from="(160,540)" to="(190,540)"/>
    <wire from="(210,350)" to="(240,350)"/>
    <wire from="(410,430)" to="(440,430)"/>
    <wire from="(400,180)" to="(430,180)"/>
    <wire from="(490,430)" to="(490,590)"/>
    <wire from="(370,590)" to="(400,590)"/>
    <wire from="(360,270)" to="(380,270)"/>
    <wire from="(230,390)" to="(230,430)"/>
    <wire from="(160,550)" to="(180,550)"/>
    <wire from="(150,620)" to="(170,620)"/>
    <wire from="(180,330)" to="(200,330)"/>
    <wire from="(220,370)" to="(240,370)"/>
    <wire from="(160,560)" to="(170,560)"/>
    <wire from="(370,670)" to="(450,670)"/>
    <wire from="(230,390)" to="(240,390)"/>
    <wire from="(540,420)" to="(550,420)"/>
    <wire from="(450,440)" to="(450,570)"/>
    <wire from="(170,650)" to="(230,650)"/>
    <wire from="(170,850)" to="(230,850)"/>
    <wire from="(140,350)" to="(140,360)"/>
    <wire from="(190,610)" to="(190,810)"/>
    <wire from="(180,630)" to="(230,630)"/>
    <wire from="(180,830)" to="(230,830)"/>
    <wire from="(390,570)" to="(390,770)"/>
    <wire from="(450,670)" to="(450,870)"/>
    <wire from="(100,460)" to="(100,540)"/>
    <wire from="(740,300)" to="(740,390)"/>
    <wire from="(640,100)" to="(680,100)"/>
    <wire from="(550,400)" to="(650,400)"/>
    <wire from="(200,330)" to="(200,350)"/>
    <wire from="(360,360)" to="(470,360)"/>
    <wire from="(190,610)" to="(230,610)"/>
    <wire from="(190,810)" to="(230,810)"/>
    <wire from="(260,200)" to="(300,200)"/>
    <wire from="(550,400)" to="(550,420)"/>
    <wire from="(370,550)" to="(410,550)"/>
    <wire from="(470,330)" to="(510,330)"/>
    <wire from="(200,430)" to="(230,430)"/>
    <wire from="(200,590)" to="(230,590)"/>
    <wire from="(200,790)" to="(230,790)"/>
    <wire from="(740,300)" to="(760,300)"/>
    <wire from="(370,570)" to="(390,570)"/>
    <wire from="(410,210)" to="(430,210)"/>
    <wire from="(220,510)" to="(220,550)"/>
    <wire from="(100,290)" to="(100,460)"/>
    <wire from="(200,400)" to="(220,400)"/>
    <wire from="(210,570)" to="(230,570)"/>
    <wire from="(210,770)" to="(230,770)"/>
    <wire from="(50,520)" to="(130,520)"/>
    <wire from="(200,370)" to="(210,370)"/>
    <wire from="(220,550)" to="(230,550)"/>
    <wire from="(220,750)" to="(230,750)"/>
    <wire from="(600,330)" to="(600,380)"/>
    <wire from="(200,530)" to="(200,590)"/>
    <wire from="(370,650)" to="(440,650)"/>
    <wire from="(530,350)" to="(530,360)"/>
    <wire from="(410,210)" to="(410,340)"/>
    <wire from="(140,350)" to="(200,350)"/>
    <wire from="(600,380)" to="(650,380)"/>
    <wire from="(390,150)" to="(390,290)"/>
    <wire from="(360,340)" to="(410,340)"/>
    <wire from="(380,120)" to="(430,120)"/>
    <wire from="(200,590)" to="(200,790)"/>
    <wire from="(520,370)" to="(580,370)"/>
    <wire from="(400,590)" to="(400,790)"/>
    <wire from="(530,360)" to="(570,360)"/>
    <wire from="(410,390)" to="(410,410)"/>
    <wire from="(180,550)" to="(180,630)"/>
    <wire from="(360,810)" to="(470,810)"/>
    <wire from="(210,350)" to="(210,370)"/>
    <wire from="(470,330)" to="(470,360)"/>
    <wire from="(200,270)" to="(240,270)"/>
    <wire from="(130,310)" to="(130,340)"/>
    <wire from="(490,340)" to="(490,430)"/>
    <wire from="(360,790)" to="(400,790)"/>
    <wire from="(470,420)" to="(510,420)"/>
    <wire from="(190,190)" to="(220,190)"/>
    <wire from="(400,590)" to="(490,590)"/>
    <wire from="(90,470)" to="(570,470)"/>
    <wire from="(100,540)" to="(130,540)"/>
    <wire from="(360,870)" to="(450,870)"/>
    <wire from="(410,410)" to="(440,410)"/>
    <wire from="(490,340)" to="(510,340)"/>
    <wire from="(300,160)" to="(300,200)"/>
    <wire from="(80,290)" to="(100,290)"/>
    <wire from="(200,210)" to="(220,210)"/>
    <wire from="(100,290)" to="(240,290)"/>
    <wire from="(80,340)" to="(90,340)"/>
    <wire from="(730,390)" to="(740,390)"/>
    <wire from="(90,470)" to="(90,530)"/>
    <wire from="(640,420)" to="(650,420)"/>
    <wire from="(390,570)" to="(450,570)"/>
    <wire from="(530,440)" to="(530,450)"/>
    <wire from="(90,340)" to="(90,470)"/>
    <wire from="(170,650)" to="(170,850)"/>
    <wire from="(360,390)" to="(410,390)"/>
    <wire from="(210,570)" to="(210,770)"/>
    <wire from="(520,460)" to="(580,460)"/>
    <wire from="(130,310)" to="(240,310)"/>
    <wire from="(530,450)" to="(570,450)"/>
    <wire from="(90,530)" to="(130,530)"/>
    <wire from="(130,650)" to="(170,650)"/>
    <wire from="(520,350)" to="(520,370)"/>
    <wire from="(100,460)" to="(520,460)"/>
    <wire from="(360,320)" to="(400,320)"/>
    <wire from="(390,150)" to="(430,150)"/>
    <wire from="(220,370)" to="(220,400)"/>
    <wire from="(440,650)" to="(470,650)"/>
    <wire from="(360,290)" to="(390,290)"/>
    <wire from="(360,770)" to="(390,770)"/>
    <wire from="(740,390)" to="(770,390)"/>
    <wire from="(590,200)" to="(620,200)"/>
    <wire from="(450,670)" to="(470,670)"/>
    <wire from="(490,430)" to="(510,430)"/>
    <wire from="(210,520)" to="(210,570)"/>
    <wire from="(620,200)" to="(690,200)"/>
    <wire from="(360,850)" to="(440,850)"/>
    <wire from="(410,430)" to="(410,550)"/>
    <wire from="(170,560)" to="(170,620)"/>
    <comp lib="0" loc="(200,370)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_A"/>
    </comp>
    <comp lib="0" loc="(200,210)" name="Constant">
      <a name="width" val="4"/>
    </comp>
    <comp lib="0" loc="(430,150)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="16"/>
      <a name="label" val="R1"/>
    </comp>
    <comp lib="0" loc="(430,180)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="16"/>
      <a name="label" val="R2"/>
    </comp>
    <comp lib="0" loc="(180,330)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="label" val="WrEn"/>
    </comp>
    <comp lib="0" loc="(620,180)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="16"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="1"/>
      <a name="bit3" val="1"/>
      <a name="bit4" val="2"/>
      <a name="bit5" val="2"/>
      <a name="bit6" val="3"/>
      <a name="bit7" val="3"/>
      <a name="bit8" val="4"/>
      <a name="bit9" val="4"/>
      <a name="bit10" val="5"/>
      <a name="bit11" val="5"/>
      <a name="bit12" val="6"/>
      <a name="bit13" val="6"/>
      <a name="bit14" val="7"/>
      <a name="bit15" val="7"/>
    </comp>
    <comp lib="0" loc="(130,650)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="16"/>
      <a name="label" val="IR"/>
    </comp>
    <comp lib="0" loc="(190,190)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="4"/>
      <a name="label" val="PHASE_NUM"/>
    </comp>
    <comp loc="(730,390)" name="ALU"/>
    <comp loc="(360,750)" name="ALU_OP"/>
    <comp lib="0" loc="(80,340)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp lib="0" loc="(200,400)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_B"/>
    </comp>
    <comp loc="(370,550)" name="MOV"/>
    <comp lib="0" loc="(80,290)" name="Clock">
      <a name="label" val="CLOCK"/>
    </comp>
    <comp lib="0" loc="(470,670)" name="Tunnel">
      <a name="label" val="WrEn"/>
    </comp>
    <comp lib="0" loc="(770,390)" name="Tunnel">
      <a name="width" val="16"/>
      <a name="label" val="Res"/>
    </comp>
    <comp lib="4" loc="(540,420)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="RB"/>
    </comp>
    <comp lib="0" loc="(470,650)" name="Tunnel">
      <a name="width" val="2"/>
      <a name="label" val="SEL_C"/>
    </comp>
    <comp lib="0" loc="(430,120)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="16"/>
      <a name="label" val="R0"/>
    </comp>
    <comp lib="0" loc="(140,360)" name="Pull Resistor">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="3" loc="(260,200)" name="Adder">
      <a name="width" val="4"/>
    </comp>
    <comp lib="0" loc="(470,830)" name="Tunnel">
      <a name="width" val="2"/>
      <a name="label" val="SEL_B"/>
    </comp>
    <comp lib="0" loc="(200,430)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_C"/>
    </comp>
    <comp lib="4" loc="(540,330)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="RA"/>
    </comp>
    <comp lib="0" loc="(470,810)" name="Tunnel">
      <a name="width" val="2"/>
      <a name="label" val="SEL_A"/>
    </comp>
    <comp lib="0" loc="(200,270)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="16"/>
      <a name="label" val="Res"/>
    </comp>
    <comp loc="(160,510)" name="PhaseGenerator"/>
    <comp loc="(360,360)" name="Register_Bank"/>
    <comp lib="2" loc="(470,420)" name="Multiplexer">
      <a name="width" val="16"/>
      <a name="disabled" val="0"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="0" loc="(690,200)" name="Tunnel">
      <a name="width" val="16"/>
      <a name="label" val="IR"/>
    </comp>
    <comp lib="0" loc="(760,300)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="16"/>
      <a name="label" val="Res"/>
    </comp>
    <comp lib="0" loc="(590,200)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="IR"/>
    </comp>
    <comp lib="0" loc="(50,520)" name="Constant"/>
    <comp lib="0" loc="(640,420)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="2"/>
      <a name="label" val="OpType"/>
    </comp>
    <comp lib="5" loc="(300,160)" name="Hex Digit Display"/>
    <comp lib="0" loc="(430,210)" name="Probe">
      <a name="facing" val="west"/>
      <a name="radix" val="16"/>
      <a name="label" val="R3"/>
    </comp>
    <comp lib="0" loc="(150,620)" name="Tunnel">
      <a name="facing" val="east"/>
      <a name="width" val="4"/>
      <a name="label" val="PHASE_NUM"/>
    </comp>
    <comp lib="0" loc="(680,100)" name="Tunnel">
      <a name="width" val="2"/>
      <a name="label" val="OpType"/>
    </comp>
  </circuit>
  <circuit name="Register_Bank">
    <a name="circuit" val="Register_Bank"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <rect fill="none" height="178" stroke="#000000" stroke-width="2" width="121" x="50" y="11"/>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="141" y="144">OUT_A</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="142" y="173">OUT_B</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="79" y="54">DataIn</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="73" y="95">CLR</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="76" y="114">WrEn</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="79" y="174">SEL_C</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="77" y="134">SEL_A</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="78" y="154">SEL_B</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="110" y="32">RegisterBank</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="72" y="75">CLK</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="153" y="55">R0</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="153" y="76">R1</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="155" y="103">R2</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="155" y="124">R3</text>
      <circ-port height="8" pin="170,60" width="8" x="46" y="46"/>
      <circ-port height="8" pin="110,160" width="8" x="46" y="86"/>
      <circ-port height="8" pin="100,470" width="8" x="46" y="106"/>
      <circ-port height="8" pin="490,570" width="8" x="46" y="126"/>
      <circ-port height="8" pin="90,690" width="8" x="46" y="166"/>
      <circ-port height="8" pin="490,610" width="8" x="46" y="146"/>
      <circ-port height="10" pin="710,40" width="10" x="165" y="135"/>
      <circ-port height="10" pin="710,380" width="10" x="165" y="165"/>
      <circ-port height="8" pin="110,130" width="8" x="46" y="66"/>
      <circ-port height="10" pin="710,110" width="10" x="165" y="45"/>
      <circ-port height="10" pin="710,160" width="10" x="165" y="65"/>
      <circ-port height="10" pin="710,210" width="10" x="165" y="95"/>
      <circ-port height="10" pin="710,260" width="10" x="165" y="115"/>
      <circ-anchor facing="east" height="6" width="6" x="167" y="137"/>
    </appear>
    <wire from="(250,680)" to="(310,680)"/>
    <wire from="(240,260)" to="(240,390)"/>
    <wire from="(200,60)" to="(200,190)"/>
    <wire from="(240,520)" to="(430,520)"/>
    <wire from="(480,80)" to="(530,80)"/>
    <wire from="(430,510)" to="(430,520)"/>
    <wire from="(460,60)" to="(460,70)"/>
    <wire from="(310,340)" to="(310,680)"/>
    <wire from="(410,450)" to="(410,470)"/>
    <wire from="(170,560)" to="(170,640)"/>
    <wire from="(140,550)" to="(180,550)"/>
    <wire from="(480,210)" to="(710,210)"/>
    <wire from="(140,560)" to="(170,560)"/>
    <wire from="(270,100)" to="(430,100)"/>
    <wire from="(270,500)" to="(430,500)"/>
    <wire from="(120,590)" to="(120,690)"/>
    <wire from="(100,470)" to="(190,470)"/>
    <wire from="(400,70)" to="(420,70)"/>
    <wire from="(140,570)" to="(160,570)"/>
    <wire from="(430,510)" to="(440,510)"/>
    <wire from="(640,110)" to="(710,110)"/>
    <wire from="(140,580)" to="(150,580)"/>
    <wire from="(510,370)" to="(590,370)"/>
    <wire from="(200,190)" to="(200,320)"/>
    <wire from="(240,390)" to="(240,520)"/>
    <wire from="(500,60)" to="(500,130)"/>
    <wire from="(470,70)" to="(530,70)"/>
    <wire from="(490,570)" to="(550,570)"/>
    <wire from="(190,470)" to="(190,540)"/>
    <wire from="(250,620)" to="(300,620)"/>
    <wire from="(300,210)" to="(420,210)"/>
    <wire from="(400,330)" to="(400,340)"/>
    <wire from="(150,760)" to="(200,760)"/>
    <wire from="(460,190)" to="(460,200)"/>
    <wire from="(430,120)" to="(430,140)"/>
    <wire from="(440,490)" to="(440,510)"/>
    <wire from="(470,160)" to="(710,160)"/>
    <wire from="(440,90)" to="(440,120)"/>
    <wire from="(470,160)" to="(470,190)"/>
    <wire from="(160,700)" to="(200,700)"/>
    <wire from="(180,550)" to="(180,580)"/>
    <wire from="(470,70)" to="(470,160)"/>
    <wire from="(300,210)" to="(300,620)"/>
    <wire from="(170,640)" to="(200,640)"/>
    <wire from="(270,230)" to="(430,230)"/>
    <wire from="(450,320)" to="(480,320)"/>
    <wire from="(460,450)" to="(490,450)"/>
    <wire from="(240,160)" to="(240,260)"/>
    <wire from="(400,200)" to="(420,200)"/>
    <wire from="(400,480)" to="(420,480)"/>
    <wire from="(480,320)" to="(500,320)"/>
    <wire from="(180,580)" to="(200,580)"/>
    <wire from="(430,120)" to="(440,120)"/>
    <wire from="(460,190)" to="(470,190)"/>
    <wire from="(520,360)" to="(590,360)"/>
    <wire from="(320,470)" to="(400,470)"/>
    <wire from="(190,720)" to="(200,720)"/>
    <wire from="(190,600)" to="(200,600)"/>
    <wire from="(150,580)" to="(150,760)"/>
    <wire from="(570,80)" to="(700,80)"/>
    <wire from="(630,380)" to="(710,380)"/>
    <wire from="(290,80)" to="(420,80)"/>
    <wire from="(190,600)" to="(190,660)"/>
    <wire from="(200,320)" to="(200,450)"/>
    <wire from="(240,140)" to="(430,140)"/>
    <wire from="(240,260)" to="(430,260)"/>
    <wire from="(480,80)" to="(480,210)"/>
    <wire from="(270,230)" to="(270,360)"/>
    <wire from="(430,250)" to="(430,260)"/>
    <wire from="(400,60)" to="(400,70)"/>
    <wire from="(430,90)" to="(430,100)"/>
    <wire from="(430,490)" to="(430,500)"/>
    <wire from="(490,610)" to="(610,610)"/>
    <wire from="(520,150)" to="(520,360)"/>
    <wire from="(240,140)" to="(240,160)"/>
    <wire from="(440,220)" to="(440,250)"/>
    <wire from="(610,400)" to="(610,610)"/>
    <wire from="(490,390)" to="(590,390)"/>
    <wire from="(250,560)" to="(290,560)"/>
    <wire from="(550,100)" to="(550,570)"/>
    <wire from="(310,340)" to="(400,340)"/>
    <wire from="(700,40)" to="(700,80)"/>
    <wire from="(90,690)" to="(120,690)"/>
    <wire from="(270,360)" to="(430,360)"/>
    <wire from="(290,80)" to="(290,560)"/>
    <wire from="(500,60)" to="(530,60)"/>
    <wire from="(200,320)" to="(420,320)"/>
    <wire from="(480,210)" to="(480,320)"/>
    <wire from="(400,330)" to="(420,330)"/>
    <wire from="(500,150)" to="(520,150)"/>
    <wire from="(200,450)" to="(410,450)"/>
    <wire from="(490,90)" to="(490,260)"/>
    <wire from="(440,340)" to="(440,380)"/>
    <wire from="(450,70)" to="(460,70)"/>
    <wire from="(430,250)" to="(440,250)"/>
    <wire from="(410,470)" to="(420,470)"/>
    <wire from="(450,470)" to="(460,470)"/>
    <wire from="(510,190)" to="(510,370)"/>
    <wire from="(500,130)" to="(640,130)"/>
    <wire from="(200,60)" to="(400,60)"/>
    <wire from="(490,390)" to="(490,450)"/>
    <wire from="(500,320)" to="(500,380)"/>
    <wire from="(700,40)" to="(710,40)"/>
    <wire from="(250,740)" to="(320,740)"/>
    <wire from="(160,570)" to="(160,700)"/>
    <wire from="(240,390)" to="(430,390)"/>
    <wire from="(490,260)" to="(490,390)"/>
    <wire from="(270,360)" to="(270,500)"/>
    <wire from="(320,470)" to="(320,740)"/>
    <wire from="(430,380)" to="(430,390)"/>
    <wire from="(430,220)" to="(430,230)"/>
    <wire from="(400,190)" to="(400,200)"/>
    <wire from="(400,470)" to="(400,480)"/>
    <wire from="(430,340)" to="(430,360)"/>
    <wire from="(460,450)" to="(460,470)"/>
    <wire from="(500,130)" to="(500,150)"/>
    <wire from="(270,100)" to="(270,130)"/>
    <wire from="(640,110)" to="(640,130)"/>
    <wire from="(490,90)" to="(530,90)"/>
    <wire from="(470,190)" to="(510,190)"/>
    <wire from="(460,60)" to="(500,60)"/>
    <wire from="(170,60)" to="(200,60)"/>
    <wire from="(270,130)" to="(270,230)"/>
    <wire from="(110,130)" to="(270,130)"/>
    <wire from="(500,380)" to="(590,380)"/>
    <wire from="(490,260)" to="(710,260)"/>
    <wire from="(450,200)" to="(460,200)"/>
    <wire from="(430,380)" to="(440,380)"/>
    <wire from="(190,660)" to="(200,660)"/>
    <wire from="(190,540)" to="(200,540)"/>
    <wire from="(200,190)" to="(400,190)"/>
    <wire from="(110,160)" to="(240,160)"/>
    <wire from="(190,660)" to="(190,720)"/>
    <wire from="(190,540)" to="(190,600)"/>
    <comp lib="0" loc="(710,380)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DataOut_B"/>
    </comp>
    <comp lib="0" loc="(710,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="R3"/>
    </comp>
    <comp lib="0" loc="(110,130)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="4" loc="(450,200)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="R1"/>
    </comp>
    <comp lib="0" loc="(710,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="R0"/>
    </comp>
    <comp lib="0" loc="(710,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="R1"/>
    </comp>
    <comp lib="2" loc="(570,80)" name="Multiplexer">
      <a name="select" val="2"/>
      <a name="width" val="16"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="2" loc="(630,380)" name="Multiplexer">
      <a name="select" val="2"/>
      <a name="width" val="16"/>
      <a name="disabled" val="0"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="4" loc="(450,470)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="R3"/>
    </comp>
    <comp lib="4" loc="(450,70)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="R0"/>
    </comp>
    <comp lib="1" loc="(250,620)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(250,560)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(710,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="R2"/>
    </comp>
    <comp lib="0" loc="(170,60)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DataIn"/>
    </comp>
    <comp lib="1" loc="(250,680)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(490,570)" name="Pin">
      <a name="width" val="2"/>
      <a name="tristate" val="false"/>
      <a name="label" val="SEL_A"/>
    </comp>
    <comp lib="0" loc="(490,610)" name="Pin">
      <a name="width" val="2"/>
      <a name="tristate" val="false"/>
      <a name="label" val="SEL_B"/>
    </comp>
    <comp lib="0" loc="(90,690)" name="Pin">
      <a name="width" val="2"/>
      <a name="tristate" val="false"/>
      <a name="label" val="SEL_C"/>
    </comp>
    <comp lib="1" loc="(250,740)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(110,160)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp lib="4" loc="(450,320)" name="Register">
      <a name="width" val="16"/>
      <a name="label" val="R2"/>
    </comp>
    <comp lib="0" loc="(710,40)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="DataOut_A"/>
    </comp>
    <comp lib="0" loc="(100,470)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="REG_C_WEN"/>
    </comp>
    <comp lib="2" loc="(120,590)" name="Decoder">
      <a name="select" val="2"/>
      <a name="disabled" val="0"/>
      <a name="enable" val="false"/>
    </comp>
  </circuit>
  <circuit name="ALU">
    <a name="circuit" val="ALU"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <rect fill="none" height="100" stroke="#000000" stroke-width="2" width="82" x="49" y="19"/>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="64" y="65">A</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="64" y="84">B</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="80" y="104">OpType</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="111" y="76">Res</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="92" y="42">ALU</text>
      <circ-port height="8" pin="170,100" width="8" x="46" y="56"/>
      <circ-port height="8" pin="170,220" width="8" x="46" y="76"/>
      <circ-port height="8" pin="400,360" width="8" x="46" y="96"/>
      <circ-port height="10" pin="550,130" width="10" x="125" y="65"/>
      <circ-anchor facing="east" height="6" width="6" x="127" y="67"/>
    </appear>
    <wire from="(170,100)" to="(200,100)"/>
    <wire from="(360,120)" to="(420,120)"/>
    <wire from="(460,130)" to="(550,130)"/>
    <wire from="(190,220)" to="(380,220)"/>
    <wire from="(360,120)" to="(360,190)"/>
    <wire from="(190,120)" to="(280,120)"/>
    <wire from="(190,200)" to="(280,200)"/>
    <wire from="(370,130)" to="(370,270)"/>
    <wire from="(320,270)" to="(370,270)"/>
    <wire from="(370,130)" to="(420,130)"/>
    <wire from="(170,220)" to="(190,220)"/>
    <wire from="(190,120)" to="(190,200)"/>
    <wire from="(200,180)" to="(280,180)"/>
    <wire from="(200,100)" to="(200,180)"/>
    <wire from="(200,100)" to="(280,100)"/>
    <wire from="(200,270)" to="(280,270)"/>
    <wire from="(440,150)" to="(440,360)"/>
    <wire from="(380,140)" to="(380,220)"/>
    <wire from="(190,200)" to="(190,220)"/>
    <wire from="(320,110)" to="(420,110)"/>
    <wire from="(200,180)" to="(200,270)"/>
    <wire from="(320,190)" to="(360,190)"/>
    <wire from="(380,140)" to="(420,140)"/>
    <wire from="(400,360)" to="(440,360)"/>
    <comp lib="0" loc="(170,220)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Operand_B"/>
    </comp>
    <comp lib="0" loc="(550,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Result"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="3" loc="(320,190)" name="Subtractor">
      <a name="width" val="16"/>
    </comp>
    <comp lib="2" loc="(460,130)" name="Multiplexer">
      <a name="select" val="2"/>
      <a name="width" val="16"/>
      <a name="disabled" val="0"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="0" loc="(170,100)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="Operand_A"/>
    </comp>
    <comp lib="3" loc="(320,110)" name="Adder">
      <a name="width" val="16"/>
    </comp>
    <comp lib="3" loc="(320,270)" name="Negator">
      <a name="width" val="16"/>
    </comp>
    <comp lib="0" loc="(400,360)" name="Pin">
      <a name="width" val="2"/>
      <a name="tristate" val="false"/>
      <a name="label" val="OpType"/>
    </comp>
  </circuit>
  <circuit name="PhaseGenerator">
    <a name="circuit" val="PhaseGenerator"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <path d="M61,56 Q65,66 69,56" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="67" stroke="#000000" stroke-width="2" width="31" x="49" y="55"/>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="30" y="67">EN</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="28" y="82">CLR</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="98" y="58">PH1</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="104" y="107">PH5</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="52" y="142">Phase Gen</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="29" y="93">CLK</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="117" y="122">phase_num</text>
      <circ-port height="8" pin="170,190" width="8" x="46" y="66"/>
      <circ-port height="8" pin="200,280" width="8" x="46" y="76"/>
      <circ-port height="10" pin="490,70" width="10" x="75" y="55"/>
      <circ-port height="10" pin="490,100" width="10" x="75" y="65"/>
      <circ-port height="10" pin="490,130" width="10" x="75" y="75"/>
      <circ-port height="10" pin="490,160" width="10" x="75" y="85"/>
      <circ-port height="10" pin="490,190" width="10" x="75" y="95"/>
      <circ-port height="8" pin="170,230" width="8" x="46" y="86"/>
      <circ-port height="10" pin="480,290" width="10" x="75" y="105"/>
      <circ-anchor facing="east" height="6" width="6" x="77" y="57"/>
    </appear>
    <wire from="(320,180)" to="(320,250)"/>
    <wire from="(430,130)" to="(490,130)"/>
    <wire from="(440,100)" to="(490,100)"/>
    <wire from="(180,220)" to="(180,230)"/>
    <wire from="(390,80)" to="(440,80)"/>
    <wire from="(260,200)" to="(260,220)"/>
    <wire from="(370,230)" to="(370,250)"/>
    <wire from="(440,80)" to="(440,100)"/>
    <wire from="(270,200)" to="(270,280)"/>
    <wire from="(410,110)" to="(410,190)"/>
    <wire from="(390,70)" to="(490,70)"/>
    <wire from="(280,180)" to="(320,180)"/>
    <wire from="(390,90)" to="(430,90)"/>
    <wire from="(230,220)" to="(260,220)"/>
    <wire from="(390,100)" to="(420,100)"/>
    <wire from="(340,250)" to="(370,250)"/>
    <wire from="(320,250)" to="(340,250)"/>
    <wire from="(390,110)" to="(410,110)"/>
    <wire from="(340,250)" to="(340,290)"/>
    <wire from="(430,90)" to="(430,130)"/>
    <wire from="(180,220)" to="(200,220)"/>
    <wire from="(340,290)" to="(480,290)"/>
    <wire from="(170,190)" to="(250,190)"/>
    <wire from="(170,230)" to="(180,230)"/>
    <wire from="(410,190)" to="(490,190)"/>
    <wire from="(200,280)" to="(270,280)"/>
    <wire from="(420,100)" to="(420,160)"/>
    <wire from="(420,160)" to="(490,160)"/>
    <comp lib="0" loc="(490,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="PH3"/>
    </comp>
    <comp lib="0" loc="(170,190)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="EN"/>
    </comp>
    <comp lib="2" loc="(370,230)" name="Decoder">
      <a name="select" val="4"/>
      <a name="enable" val="false"/>
    </comp>
    <comp lib="0" loc="(490,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="PH4"/>
    </comp>
    <comp lib="0" loc="(480,290)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="tristate" val="false"/>
      <a name="label" val="PHASE_NUM"/>
    </comp>
    <comp lib="0" loc="(200,280)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp lib="0" loc="(490,70)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="PH1"/>
    </comp>
    <comp lib="0" loc="(490,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="PH5"/>
    </comp>
    <comp lib="1" loc="(230,220)" name="NOT Gate"/>
    <comp lib="0" loc="(170,230)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="4" loc="(280,180)" name="Counter">
      <a name="width" val="4"/>
      <a name="max" val="0x4"/>
    </comp>
    <comp lib="0" loc="(490,100)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="PH2"/>
    </comp>
  </circuit>
  <circuit name="MOV">
    <a name="circuit" val="MOV"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <rect fill="none" height="170" stroke="#000000" stroke-width="2" width="140" x="50" y="30"/>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="120" y="46">MOV</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="155" y="64">IMM_VAL</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="158" y="83">IMM_EN</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="156" y="104">R_AB_EN</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="162" y="124">SEL_A</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="163" y="144">SEL_B</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="163" y="164">SEL_C</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="165" y="183">WrEn</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="65">PH1</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="68" y="85">PH2</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="70" y="126">PH4</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="105">PH3</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="70" y="145">PH5</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="66" y="164">IR</text>
      <circ-port height="8" pin="130,100" width="8" x="46" y="56"/>
      <circ-port height="8" pin="130,130" width="8" x="46" y="76"/>
      <circ-port height="8" pin="130,160" width="8" x="46" y="96"/>
      <circ-port height="8" pin="130,190" width="8" x="46" y="116"/>
      <circ-port height="8" pin="130,220" width="8" x="46" y="136"/>
      <circ-port height="8" pin="130,510" width="8" x="46" y="156"/>
      <circ-port height="10" pin="620,80" width="10" x="185" y="55"/>
      <circ-port height="10" pin="620,120" width="10" x="185" y="75"/>
      <circ-port height="10" pin="620,160" width="10" x="185" y="95"/>
      <circ-port height="10" pin="620,200" width="10" x="185" y="115"/>
      <circ-port height="10" pin="620,240" width="10" x="185" y="135"/>
      <circ-port height="10" pin="620,280" width="10" x="185" y="155"/>
      <circ-port height="10" pin="620,320" width="10" x="185" y="175"/>
      <circ-anchor facing="east" height="6" width="6" x="187" y="57"/>
    </appear>
    <wire from="(380,160)" to="(380,420)"/>
    <wire from="(530,90)" to="(530,100)"/>
    <wire from="(530,130)" to="(530,140)"/>
    <wire from="(530,170)" to="(530,180)"/>
    <wire from="(530,290)" to="(530,300)"/>
    <wire from="(530,210)" to="(530,220)"/>
    <wire from="(530,250)" to="(530,260)"/>
    <wire from="(220,120)" to="(220,130)"/>
    <wire from="(300,440)" to="(300,450)"/>
    <wire from="(380,420)" to="(500,420)"/>
    <wire from="(530,100)" to="(570,100)"/>
    <wire from="(300,460)" to="(300,480)"/>
    <wire from="(530,180)" to="(570,180)"/>
    <wire from="(530,300)" to="(570,300)"/>
    <wire from="(530,220)" to="(570,220)"/>
    <wire from="(530,260)" to="(570,260)"/>
    <wire from="(250,400)" to="(290,400)"/>
    <wire from="(530,330)" to="(530,350)"/>
    <wire from="(190,350)" to="(290,350)"/>
    <wire from="(550,400)" to="(570,400)"/>
    <wire from="(260,470)" to="(280,470)"/>
    <wire from="(310,80)" to="(520,80)"/>
    <wire from="(380,420)" to="(380,460)"/>
    <wire from="(210,370)" to="(290,370)"/>
    <wire from="(440,280)" to="(520,280)"/>
    <wire from="(540,80)" to="(620,80)"/>
    <wire from="(540,120)" to="(620,120)"/>
    <wire from="(540,160)" to="(620,160)"/>
    <wire from="(540,200)" to="(620,200)"/>
    <wire from="(540,240)" to="(620,240)"/>
    <wire from="(540,280)" to="(620,280)"/>
    <wire from="(540,320)" to="(620,320)"/>
    <wire from="(570,130)" to="(570,180)"/>
    <wire from="(570,350)" to="(570,400)"/>
    <wire from="(310,80)" to="(310,330)"/>
    <wire from="(170,490)" to="(230,490)"/>
    <wire from="(230,390)" to="(290,390)"/>
    <wire from="(170,480)" to="(220,480)"/>
    <wire from="(260,410)" to="(260,420)"/>
    <wire from="(220,120)" to="(400,120)"/>
    <wire from="(180,340)" to="(290,340)"/>
    <wire from="(530,130)" to="(570,130)"/>
    <wire from="(530,350)" to="(570,350)"/>
    <wire from="(570,100)" to="(570,130)"/>
    <wire from="(170,470)" to="(210,470)"/>
    <wire from="(440,280)" to="(440,500)"/>
    <wire from="(480,120)" to="(520,120)"/>
    <wire from="(480,160)" to="(520,160)"/>
    <wire from="(480,200)" to="(520,200)"/>
    <wire from="(480,240)" to="(520,240)"/>
    <wire from="(170,460)" to="(200,460)"/>
    <wire from="(570,180)" to="(570,220)"/>
    <wire from="(570,220)" to="(570,260)"/>
    <wire from="(170,430)" to="(260,430)"/>
    <wire from="(130,130)" to="(220,130)"/>
    <wire from="(200,360)" to="(290,360)"/>
    <wire from="(350,220)" to="(350,380)"/>
    <wire from="(490,320)" to="(520,320)"/>
    <wire from="(180,340)" to="(180,440)"/>
    <wire from="(260,410)" to="(290,410)"/>
    <wire from="(130,220)" to="(350,220)"/>
    <wire from="(190,350)" to="(190,450)"/>
    <wire from="(200,360)" to="(200,460)"/>
    <wire from="(210,370)" to="(210,470)"/>
    <wire from="(220,380)" to="(220,480)"/>
    <wire from="(230,390)" to="(230,490)"/>
    <wire from="(300,480)" to="(320,480)"/>
    <wire from="(300,440)" to="(320,440)"/>
    <wire from="(380,160)" to="(400,160)"/>
    <wire from="(260,430)" to="(260,470)"/>
    <wire from="(130,510)" to="(150,510)"/>
    <wire from="(170,450)" to="(190,450)"/>
    <wire from="(350,380)" to="(500,380)"/>
    <wire from="(170,500)" to="(440,500)"/>
    <wire from="(370,460)" to="(380,460)"/>
    <wire from="(170,440)" to="(180,440)"/>
    <wire from="(250,420)" to="(260,420)"/>
    <wire from="(450,140)" to="(530,140)"/>
    <wire from="(220,380)" to="(290,380)"/>
    <wire from="(570,300)" to="(570,350)"/>
    <comp lib="1" loc="(550,400)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(490,320)" name="Constant"/>
    <comp lib="0" loc="(130,160)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH3"/>
    </comp>
    <comp lib="1" loc="(540,80)" name="Controlled Buffer">
      <a name="width" val="16"/>
    </comp>
    <comp lib="0" loc="(620,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="WrEn"/>
    </comp>
    <comp lib="1" loc="(540,280)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="0" loc="(620,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_A"/>
    </comp>
    <comp lib="0" loc="(250,420)" name="Constant">
      <a name="width" val="2"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(310,330)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="16"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="1"/>
      <a name="bit3" val="1"/>
      <a name="bit4" val="2"/>
      <a name="bit5" val="2"/>
      <a name="bit6" val="3"/>
      <a name="bit7" val="3"/>
      <a name="bit8" val="4"/>
      <a name="bit9" val="4"/>
      <a name="bit10" val="5"/>
      <a name="bit11" val="5"/>
      <a name="bit12" val="6"/>
      <a name="bit13" val="6"/>
      <a name="bit14" val="7"/>
      <a name="bit15" val="7"/>
    </comp>
    <comp lib="1" loc="(540,120)" name="Controlled Buffer"/>
    <comp lib="0" loc="(130,100)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH1"/>
    </comp>
    <comp lib="0" loc="(150,510)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="16"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="1"/>
      <a name="bit3" val="1"/>
      <a name="bit4" val="2"/>
      <a name="bit5" val="2"/>
      <a name="bit6" val="3"/>
      <a name="bit7" val="3"/>
      <a name="bit8" val="4"/>
      <a name="bit9" val="4"/>
      <a name="bit10" val="5"/>
      <a name="bit11" val="5"/>
      <a name="bit12" val="6"/>
      <a name="bit13" val="6"/>
      <a name="bit14" val="7"/>
      <a name="bit15" val="7"/>
    </comp>
    <comp lib="1" loc="(540,320)" name="Controlled Buffer"/>
    <comp lib="0" loc="(620,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_B"/>
    </comp>
    <comp lib="0" loc="(130,220)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH5"/>
    </comp>
    <comp lib="1" loc="(370,460)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="1" loc="(540,240)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="0" loc="(250,400)" name="Constant">
      <a name="width" val="2"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="1" loc="(540,200)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="0" loc="(130,130)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH2"/>
    </comp>
    <comp lib="0" loc="(620,80)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="label" val="IMM_VAL"/>
    </comp>
    <comp lib="1" loc="(540,160)" name="Controlled Buffer"/>
    <comp lib="0" loc="(480,240)" name="Constant">
      <a name="width" val="2"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(130,510)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="IR"/>
    </comp>
    <comp lib="0" loc="(480,160)" name="Constant"/>
    <comp lib="1" loc="(450,140)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(280,470)" name="Splitter"/>
    <comp lib="0" loc="(480,120)" name="Constant"/>
    <comp lib="0" loc="(620,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_C"/>
    </comp>
    <comp lib="0" loc="(130,190)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH4"/>
    </comp>
    <comp lib="0" loc="(620,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="IMM_EN"/>
    </comp>
    <comp lib="0" loc="(480,200)" name="Constant">
      <a name="width" val="2"/>
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(620,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="R_AB_EN"/>
    </comp>
  </circuit>
  <circuit name="ALU_OP">
    <a name="circuit" val="ALU_OP"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <appear>
      <rect fill="none" height="171" stroke="#000000" stroke-width="2" width="130" x="50" y="30"/>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="65">PH1</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="85">PH2</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="104">PH3</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="69" y="124">PH4</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="70" y="145">PH5</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="71" y="165">IR</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="143" y="64">IMM_VAL</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="144" y="84">IMM_EN</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="143" y="104">R_AB_EN</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="152" y="123">SEL_A</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="152" y="143">SEL_B</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="151" y="163">SEL_C</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="155" y="183">WrEn</text>
      <text font-family="SansSerif" font-size="12" text-anchor="middle" x="118" y="42">ALU_OP</text>
      <circ-port height="8" pin="130,100" width="8" x="46" y="56"/>
      <circ-port height="8" pin="130,130" width="8" x="46" y="76"/>
      <circ-port height="8" pin="130,160" width="8" x="46" y="96"/>
      <circ-port height="8" pin="130,190" width="8" x="46" y="116"/>
      <circ-port height="8" pin="130,220" width="8" x="46" y="136"/>
      <circ-port height="8" pin="130,510" width="8" x="46" y="156"/>
      <circ-port height="10" pin="620,80" width="10" x="175" y="55"/>
      <circ-port height="10" pin="620,120" width="10" x="175" y="75"/>
      <circ-port height="10" pin="620,160" width="10" x="175" y="95"/>
      <circ-port height="10" pin="620,200" width="10" x="175" y="115"/>
      <circ-port height="10" pin="620,240" width="10" x="175" y="135"/>
      <circ-port height="10" pin="620,280" width="10" x="175" y="155"/>
      <circ-port height="10" pin="620,320" width="10" x="175" y="175"/>
      <circ-anchor facing="east" height="6" width="6" x="177" y="57"/>
    </appear>
    <wire from="(380,160)" to="(380,420)"/>
    <wire from="(530,130)" to="(530,140)"/>
    <wire from="(530,170)" to="(530,180)"/>
    <wire from="(530,290)" to="(530,300)"/>
    <wire from="(530,210)" to="(530,220)"/>
    <wire from="(530,250)" to="(530,260)"/>
    <wire from="(530,90)" to="(530,100)"/>
    <wire from="(220,120)" to="(220,130)"/>
    <wire from="(380,420)" to="(500,420)"/>
    <wire from="(300,440)" to="(300,450)"/>
    <wire from="(530,180)" to="(570,180)"/>
    <wire from="(530,300)" to="(570,300)"/>
    <wire from="(530,220)" to="(570,220)"/>
    <wire from="(530,260)" to="(570,260)"/>
    <wire from="(300,460)" to="(300,480)"/>
    <wire from="(220,200)" to="(220,480)"/>
    <wire from="(530,330)" to="(530,350)"/>
    <wire from="(550,400)" to="(570,400)"/>
    <wire from="(260,470)" to="(280,470)"/>
    <wire from="(510,100)" to="(530,100)"/>
    <wire from="(380,420)" to="(380,460)"/>
    <wire from="(300,440)" to="(310,440)"/>
    <wire from="(300,480)" to="(310,480)"/>
    <wire from="(440,280)" to="(520,280)"/>
    <wire from="(540,80)" to="(620,80)"/>
    <wire from="(540,120)" to="(620,120)"/>
    <wire from="(540,160)" to="(620,160)"/>
    <wire from="(540,200)" to="(620,200)"/>
    <wire from="(540,240)" to="(620,240)"/>
    <wire from="(540,280)" to="(620,280)"/>
    <wire from="(540,320)" to="(620,320)"/>
    <wire from="(230,240)" to="(230,490)"/>
    <wire from="(570,130)" to="(570,180)"/>
    <wire from="(570,350)" to="(570,400)"/>
    <wire from="(170,490)" to="(230,490)"/>
    <wire from="(170,480)" to="(220,480)"/>
    <wire from="(220,120)" to="(400,120)"/>
    <wire from="(530,350)" to="(570,350)"/>
    <wire from="(530,130)" to="(570,130)"/>
    <wire from="(220,200)" to="(520,200)"/>
    <wire from="(440,280)" to="(440,500)"/>
    <wire from="(230,240)" to="(520,240)"/>
    <wire from="(480,120)" to="(520,120)"/>
    <wire from="(480,160)" to="(520,160)"/>
    <wire from="(570,180)" to="(570,220)"/>
    <wire from="(570,220)" to="(570,260)"/>
    <wire from="(170,430)" to="(260,430)"/>
    <wire from="(130,130)" to="(220,130)"/>
    <wire from="(350,220)" to="(350,380)"/>
    <wire from="(490,320)" to="(520,320)"/>
    <wire from="(130,220)" to="(350,220)"/>
    <wire from="(380,160)" to="(400,160)"/>
    <wire from="(260,430)" to="(260,470)"/>
    <wire from="(130,510)" to="(150,510)"/>
    <wire from="(350,380)" to="(500,380)"/>
    <wire from="(170,500)" to="(440,500)"/>
    <wire from="(370,460)" to="(380,460)"/>
    <wire from="(450,140)" to="(530,140)"/>
    <wire from="(570,300)" to="(570,350)"/>
    <comp lib="0" loc="(620,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_A"/>
    </comp>
    <comp lib="0" loc="(620,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="IMM_EN"/>
    </comp>
    <comp lib="0" loc="(480,120)" name="Constant">
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="0" loc="(620,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="WrEn"/>
    </comp>
    <comp lib="0" loc="(280,470)" name="Splitter"/>
    <comp lib="1" loc="(540,200)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="0" loc="(620,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="R_AB_EN"/>
    </comp>
    <comp lib="0" loc="(620,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_C"/>
    </comp>
    <comp lib="0" loc="(130,220)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH5"/>
    </comp>
    <comp lib="1" loc="(370,460)" name="OR Gate">
      <a name="inputs" val="2"/>
      <a name="negate0" val="true"/>
      <a name="negate1" val="true"/>
    </comp>
    <comp lib="0" loc="(130,100)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH1"/>
    </comp>
    <comp lib="0" loc="(490,320)" name="Constant"/>
    <comp lib="1" loc="(540,240)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="1" loc="(540,320)" name="Controlled Buffer"/>
    <comp lib="1" loc="(540,120)" name="Controlled Buffer"/>
    <comp lib="0" loc="(130,130)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH2"/>
    </comp>
    <comp lib="0" loc="(480,160)" name="Constant"/>
    <comp lib="0" loc="(620,80)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="16"/>
      <a name="label" val="IMM_VAL"/>
    </comp>
    <comp lib="1" loc="(540,280)" name="Controlled Buffer">
      <a name="width" val="2"/>
    </comp>
    <comp lib="0" loc="(150,510)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="16"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="1"/>
      <a name="bit3" val="1"/>
      <a name="bit4" val="2"/>
      <a name="bit5" val="2"/>
      <a name="bit6" val="3"/>
      <a name="bit7" val="3"/>
      <a name="bit8" val="4"/>
      <a name="bit9" val="4"/>
      <a name="bit10" val="5"/>
      <a name="bit11" val="5"/>
      <a name="bit12" val="6"/>
      <a name="bit13" val="6"/>
      <a name="bit14" val="7"/>
      <a name="bit15" val="7"/>
    </comp>
    <comp lib="0" loc="(130,510)" name="Pin">
      <a name="width" val="16"/>
      <a name="tristate" val="false"/>
      <a name="label" val="IR"/>
    </comp>
    <comp lib="1" loc="(540,80)" name="Controlled Buffer">
      <a name="width" val="16"/>
    </comp>
    <comp lib="0" loc="(130,160)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH3"/>
    </comp>
    <comp lib="1" loc="(540,160)" name="Controlled Buffer"/>
    <comp lib="0" loc="(510,100)" name="Constant">
      <a name="value" val="0x0"/>
    </comp>
    <comp lib="1" loc="(550,400)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(620,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="2"/>
      <a name="label" val="SEL_B"/>
    </comp>
    <comp lib="1" loc="(450,140)" name="AND Gate">
      <a name="inputs" val="2"/>
    </comp>
    <comp lib="0" loc="(130,190)" name="Pin">
      <a name="tristate" val="false"/>
      <a name="label" val="PH4"/>
    </comp>
  </circuit>
</project>
