<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.14.6" version="1.0">
  This file is intended to be loaded by Logisim-evolution (https://github.com/reds-heig/logisim-evolution).

  <lib desc="#Wiring" name="0">
    <tool name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="center"/>
      <a name="bit1" val="0"/>
      <a name="bit2" val="0"/>
      <a name="bit3" val="1"/>
      <a name="bit4" val="1"/>
      <a name="bit5" val="1"/>
      <a name="bit6" val="2"/>
      <a name="bit7" val="2"/>
    </tool>
    <tool name="Pin">
      <a name="facing" val="north"/>
    </tool>
    <tool name="Probe">
      <a name="facing" val="south"/>
    </tool>
    <tool name="Pull Resistor">
      <a name="facing" val="north"/>
    </tool>
    <tool name="Constant">
      <a name="width" val="4"/>
      <a name="value" val="0x0"/>
    </tool>
  </lib>
  <lib desc="#Gates" name="1"/>
  <lib desc="#Plexers" name="2">
    <tool name="Multiplexer">
      <a name="enable" val="false"/>
    </tool>
    <tool name="Demultiplexer">
      <a name="enable" val="false"/>
    </tool>
  </lib>
  <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>
  <lib desc="#HDL-IP" name="7">
    <tool name="VHDL Entity">
      <a name="content">--------------------------------------------------------------------------------&#13;
-- HEIG-VD, institute REDS, 1400 Yverdon-les-Bains&#13;
-- Project :&#13;
-- File    :&#13;
-- Autor   :&#13;
-- Date    :&#13;
--&#13;
--------------------------------------------------------------------------------&#13;
-- Description :&#13;
--&#13;
--------------------------------------------------------------------------------&#13;
&#13;
library ieee;&#13;
  use ieee.std_logic_1164.all;&#13;
  --use ieee.numeric_std.all;&#13;
&#13;
entity VHDL_Component is&#13;
  port(&#13;
  ------------------------------------------------------------------------------&#13;
  --Insert input ports below&#13;
    horloge_i  : in  std_logic;                    -- input bit example&#13;
    val_i      : in  std_logic_vector(3 downto 0); -- input vector example&#13;
  ------------------------------------------------------------------------------&#13;
  --Insert output ports below&#13;
    max_o      : out std_logic;                    -- output bit example&#13;
    cpt_o      : out std_logic_Vector(3 downto 0)  -- output vector example&#13;
    );&#13;
end VHDL_Component;&#13;
&#13;
--------------------------------------------------------------------------------&#13;
--Complete your VHDL description below&#13;
architecture type_architecture of VHDL_Component is&#13;
&#13;
&#13;
begin&#13;
&#13;
&#13;
end type_architecture;&#13;
</a>
    </tool>
  </lib>
  <lib desc="#TCL" name="8">
    <tool name="TclGeneric">
      <a name="content">library ieee;&#13;
use ieee.std_logic_1164.all;&#13;
&#13;
entity TCL_Generic is&#13;
  port(&#13;
    --Insert input ports below&#13;
    horloge_i  : in  std_logic;                    -- input bit example&#13;
    val_i      : in  std_logic_vector(3 downto 0); -- input vector example&#13;
&#13;
	  --Insert output ports below&#13;
    max_o      : out std_logic;                    -- output bit example&#13;
    cpt_o      : out std_logic_Vector(3 downto 0)  -- output vector example&#13;
  );&#13;
end TCL_Generic;&#13;
</a>
    </tool>
  </lib>
  <lib desc="#BFH-Praktika" name="9"/>
  <main name="One_Bit_Full_Adder"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
    <a name="tickmain" val="half_period"/>
  </options>
  <mappings>
    <tool lib="6" map="Button2" name="Menu Tool"/>
    <tool lib="6" map="Button3" name="Menu Tool"/>
    <tool lib="6" map="Ctrl Button1" name="Menu Tool"/>
  </mappings>
  <toolbar>
    <tool lib="6" name="Poke Tool"/>
    <tool lib="6" name="Edit Tool"/>
    <tool lib="6" name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
    <sep/>
    <tool lib="0" name="Pin"/>
    <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="One_Bit_Full_Adder">
    <a name="circuit" val="One_Bit_Full_Adder"/>
    <a name="clabel" val="ADD"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 10"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(440,350)" to="(440,450)"/>
    <wire from="(600,410)" to="(600,420)"/>
    <wire from="(600,460)" to="(600,470)"/>
    <wire from="(520,430)" to="(540,430)"/>
    <wire from="(520,330)" to="(540,330)"/>
    <wire from="(430,310)" to="(450,310)"/>
    <wire from="(420,350)" to="(440,350)"/>
    <wire from="(520,330)" to="(520,430)"/>
    <wire from="(440,350)" to="(450,350)"/>
    <wire from="(420,310)" to="(430,310)"/>
    <wire from="(510,330)" to="(520,330)"/>
    <wire from="(430,310)" to="(430,490)"/>
    <wire from="(430,490)" to="(540,490)"/>
    <wire from="(420,390)" to="(530,390)"/>
    <wire from="(440,450)" to="(540,450)"/>
    <wire from="(530,370)" to="(530,390)"/>
    <wire from="(660,440)" to="(670,440)"/>
    <wire from="(530,370)" to="(540,370)"/>
    <wire from="(530,390)" to="(540,390)"/>
    <wire from="(600,350)" to="(610,350)"/>
    <wire from="(590,470)" to="(600,470)"/>
    <wire from="(600,420)" to="(610,420)"/>
    <wire from="(600,460)" to="(610,460)"/>
    <wire from="(590,410)" to="(600,410)"/>
    <comp lib="0" loc="(420,350)" name="Pin">
      <a name="label" val="B"/>
    </comp>
    <comp lib="1" loc="(590,410)" name="AND Gate"/>
    <comp lib="0" loc="(670,440)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="C_OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,390)" name="Pin">
      <a name="label" val="C_IN"/>
    </comp>
    <comp lib="1" loc="(660,440)" name="OR Gate"/>
    <comp lib="1" loc="(600,350)" name="XOR Gate"/>
    <comp lib="1" loc="(590,470)" name="AND Gate"/>
    <comp lib="0" loc="(610,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="SUM"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,310)" name="Pin">
      <a name="label" val="A"/>
    </comp>
    <comp lib="1" loc="(510,330)" name="XOR Gate"/>
  </circuit>
  <circuit name="Four_Bit_Full_Adder_74LS283">
    <a name="circuit" val="Four_Bit_Full_Adder_74LS283"/>
    <a name="clabel" val="FOUR BIT FULL ADDER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <circ-port height="10" pin="440,180" width="10" x="155" y="75"/>
      <circ-port height="10" pin="440,140" width="10" x="155" y="55"/>
      <circ-port height="8" pin="330,280" width="8" x="56" y="216"/>
      <circ-port height="8" pin="290,260" width="8" x="56" y="196"/>
      <circ-port height="8" pin="330,240" width="8" x="56" y="176"/>
      <circ-port height="8" pin="290,220" width="8" x="56" y="156"/>
      <circ-port height="8" pin="330,200" width="8" x="56" y="136"/>
      <circ-port height="8" pin="290,180" width="8" x="56" y="116"/>
      <circ-port height="8" pin="330,160" width="8" x="56" y="96"/>
      <circ-port height="8" pin="290,140" width="8" x="56" y="76"/>
      <circ-port height="8" pin="350,120" width="8" x="56" y="56"/>
      <circ-port height="10" pin="440,220" width="10" x="155" y="95"/>
      <circ-port height="10" pin="440,260" width="10" x="155" y="115"/>
      <circ-port height="10" pin="440,300" width="10" x="155" y="135"/>
      <rect fill="none" height="180" stroke="#000000" stroke-width="2" width="100" x="60" y="50"/>
      <circ-anchor facing="east" height="6" width="6" x="157" y="57"/>
    </appear>
    <wire from="(360,170)" to="(410,170)"/>
    <wire from="(360,210)" to="(410,210)"/>
    <wire from="(360,250)" to="(410,250)"/>
    <wire from="(340,270)" to="(340,280)"/>
    <wire from="(340,150)" to="(340,160)"/>
    <wire from="(340,190)" to="(340,200)"/>
    <wire from="(340,230)" to="(340,240)"/>
    <wire from="(410,190)" to="(410,210)"/>
    <wire from="(410,150)" to="(410,170)"/>
    <wire from="(410,230)" to="(410,250)"/>
    <wire from="(410,270)" to="(410,300)"/>
    <wire from="(360,170)" to="(360,200)"/>
    <wire from="(360,210)" to="(360,240)"/>
    <wire from="(360,250)" to="(360,280)"/>
    <wire from="(400,260)" to="(440,260)"/>
    <wire from="(400,140)" to="(440,140)"/>
    <wire from="(400,180)" to="(440,180)"/>
    <wire from="(400,220)" to="(440,220)"/>
    <wire from="(410,300)" to="(440,300)"/>
    <wire from="(340,270)" to="(370,270)"/>
    <wire from="(340,150)" to="(370,150)"/>
    <wire from="(340,190)" to="(370,190)"/>
    <wire from="(340,230)" to="(370,230)"/>
    <wire from="(360,120)" to="(360,160)"/>
    <wire from="(400,190)" to="(410,190)"/>
    <wire from="(400,150)" to="(410,150)"/>
    <wire from="(400,230)" to="(410,230)"/>
    <wire from="(400,270)" to="(410,270)"/>
    <wire from="(360,160)" to="(370,160)"/>
    <wire from="(360,240)" to="(370,240)"/>
    <wire from="(360,280)" to="(370,280)"/>
    <wire from="(360,200)" to="(370,200)"/>
    <wire from="(330,280)" to="(340,280)"/>
    <wire from="(350,120)" to="(360,120)"/>
    <wire from="(330,160)" to="(340,160)"/>
    <wire from="(330,200)" to="(340,200)"/>
    <wire from="(330,240)" to="(340,240)"/>
    <wire from="(290,140)" to="(370,140)"/>
    <wire from="(290,180)" to="(370,180)"/>
    <wire from="(290,220)" to="(370,220)"/>
    <wire from="(290,260)" to="(370,260)"/>
    <comp lib="0" loc="(330,200)" name="Pin">
      <a name="label" val="B1"/>
    </comp>
    <comp loc="(400,180)" name="One_Bit_Full_Adder"/>
    <comp lib="0" loc="(440,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(330,160)" name="Pin">
      <a name="label" val="B0"/>
    </comp>
    <comp lib="0" loc="(330,240)" name="Pin">
      <a name="label" val="B2"/>
    </comp>
    <comp loc="(400,260)" name="One_Bit_Full_Adder"/>
    <comp loc="(400,220)" name="One_Bit_Full_Adder"/>
    <comp lib="0" loc="(350,120)" name="Pin">
      <a name="label" val="C_IN"/>
    </comp>
    <comp lib="0" loc="(440,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(290,180)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(330,280)" name="Pin">
      <a name="label" val="B3"/>
    </comp>
    <comp lib="0" loc="(440,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(290,140)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(440,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(290,220)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp loc="(400,140)" name="One_Bit_Full_Adder"/>
    <comp lib="0" loc="(290,260)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(440,300)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="C_OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Eight_Bit_Full_Adder_2x74LS283">
    <a name="circuit" val="Eight_Bit_Full_Adder_2x74LS283"/>
    <a name="clabel" val="FULL ADDER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(420,330)" to="(480,330)"/>
    <wire from="(420,310)" to="(470,310)"/>
    <wire from="(310,250)" to="(430,250)"/>
    <wire from="(310,250)" to="(310,270)"/>
    <wire from="(420,290)" to="(460,290)"/>
    <wire from="(450,150)" to="(490,150)"/>
    <wire from="(430,150)" to="(430,250)"/>
    <wire from="(420,270)" to="(450,270)"/>
    <wire from="(460,170)" to="(490,170)"/>
    <wire from="(300,210)" to="(320,210)"/>
    <wire from="(300,90)" to="(320,90)"/>
    <wire from="(300,130)" to="(320,130)"/>
    <wire from="(300,170)" to="(320,170)"/>
    <wire from="(300,290)" to="(320,290)"/>
    <wire from="(300,330)" to="(320,330)"/>
    <wire from="(300,370)" to="(320,370)"/>
    <wire from="(300,410)" to="(320,410)"/>
    <wire from="(470,190)" to="(490,190)"/>
    <wire from="(420,150)" to="(430,150)"/>
    <wire from="(480,210)" to="(490,210)"/>
    <wire from="(310,270)" to="(320,270)"/>
    <wire from="(250,230)" to="(320,230)"/>
    <wire from="(250,190)" to="(320,190)"/>
    <wire from="(250,350)" to="(320,350)"/>
    <wire from="(250,150)" to="(320,150)"/>
    <wire from="(250,310)" to="(320,310)"/>
    <wire from="(250,110)" to="(320,110)"/>
    <wire from="(250,70)" to="(320,70)"/>
    <wire from="(420,70)" to="(490,70)"/>
    <wire from="(420,90)" to="(490,90)"/>
    <wire from="(420,110)" to="(490,110)"/>
    <wire from="(420,350)" to="(490,350)"/>
    <wire from="(420,130)" to="(490,130)"/>
    <wire from="(450,150)" to="(450,270)"/>
    <wire from="(250,430)" to="(320,430)"/>
    <wire from="(250,390)" to="(320,390)"/>
    <wire from="(460,170)" to="(460,290)"/>
    <wire from="(480,210)" to="(480,330)"/>
    <wire from="(470,190)" to="(470,310)"/>
    <comp loc="(420,70)" name="Four_Bit_Full_Adder_74LS283"/>
    <comp loc="(420,270)" name="Four_Bit_Full_Adder_74LS283"/>
    <comp lib="0" loc="(300,90)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(300,130)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(300,170)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(300,210)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(300,290)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(300,410)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(300,330)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(300,370)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp lib="0" loc="(490,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,70)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="C_OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,90)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(490,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(250,350)" name="Pin">
      <a name="label" val="B5"/>
    </comp>
    <comp lib="0" loc="(250,110)" name="Pin">
      <a name="label" val="B0"/>
    </comp>
    <comp lib="0" loc="(250,230)" name="Pin">
      <a name="label" val="B3"/>
    </comp>
    <comp lib="0" loc="(250,310)" name="Pin">
      <a name="label" val="B4"/>
    </comp>
    <comp lib="0" loc="(250,390)" name="Pin">
      <a name="label" val="B6"/>
    </comp>
    <comp lib="0" loc="(250,430)" name="Pin">
      <a name="label" val="B7"/>
    </comp>
    <comp lib="0" loc="(250,150)" name="Pin">
      <a name="label" val="B1"/>
    </comp>
    <comp lib="0" loc="(250,190)" name="Pin">
      <a name="label" val="B2"/>
    </comp>
    <comp lib="0" loc="(250,70)" name="Pin">
      <a name="label" val="C_IN"/>
    </comp>
  </circuit>
  <circuit name="Eight_Bit_Full_Adder_w_Sub">
    <a name="circuit" val="Eight_Bit_Full_Adder_w_Sub"/>
    <a name="clabel" val="8-BIT FULL ADDER W/ SUB"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 11"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(660,260)" to="(710,260)"/>
    <wire from="(580,260)" to="(630,260)"/>
    <wire from="(570,240)" to="(630,240)"/>
    <wire from="(660,250)" to="(720,250)"/>
    <wire from="(510,330)" to="(630,330)"/>
    <wire from="(410,470)" to="(580,470)"/>
    <wire from="(590,280)" to="(630,280)"/>
    <wire from="(660,270)" to="(700,270)"/>
    <wire from="(290,350)" to="(460,350)"/>
    <wire from="(340,250)" to="(340,330)"/>
    <wire from="(340,330)" to="(340,410)"/>
    <wire from="(340,410)" to="(340,490)"/>
    <wire from="(340,490)" to="(340,570)"/>
    <wire from="(340,650)" to="(340,730)"/>
    <wire from="(340,730)" to="(340,810)"/>
    <wire from="(340,570)" to="(340,650)"/>
    <wire from="(670,300)" to="(670,380)"/>
    <wire from="(430,220)" to="(430,310)"/>
    <wire from="(290,750)" to="(510,750)"/>
    <wire from="(510,330)" to="(510,750)"/>
    <wire from="(610,320)" to="(630,320)"/>
    <wire from="(660,290)" to="(680,290)"/>
    <wire from="(660,280)" to="(690,280)"/>
    <wire from="(320,150)" to="(340,150)"/>
    <wire from="(600,300)" to="(630,300)"/>
    <wire from="(490,290)" to="(490,590)"/>
    <wire from="(470,250)" to="(470,430)"/>
    <wire from="(450,210)" to="(450,270)"/>
    <wire from="(660,300)" to="(670,300)"/>
    <wire from="(620,340)" to="(630,340)"/>
    <wire from="(740,230)" to="(740,240)"/>
    <wire from="(590,280)" to="(590,550)"/>
    <wire from="(290,430)" to="(470,430)"/>
    <wire from="(410,550)" to="(590,550)"/>
    <wire from="(610,320)" to="(610,710)"/>
    <wire from="(720,250)" to="(720,280)"/>
    <wire from="(570,240)" to="(570,390)"/>
    <wire from="(330,450)" to="(350,450)"/>
    <wire from="(330,210)" to="(350,210)"/>
    <wire from="(330,290)" to="(350,290)"/>
    <wire from="(330,370)" to="(350,370)"/>
    <wire from="(330,530)" to="(350,530)"/>
    <wire from="(330,610)" to="(350,610)"/>
    <wire from="(330,690)" to="(350,690)"/>
    <wire from="(330,770)" to="(350,770)"/>
    <wire from="(680,360)" to="(750,360)"/>
    <wire from="(700,270)" to="(700,320)"/>
    <wire from="(670,380)" to="(750,380)"/>
    <wire from="(410,630)" to="(600,630)"/>
    <wire from="(700,320)" to="(750,320)"/>
    <wire from="(290,510)" to="(480,510)"/>
    <wire from="(680,290)" to="(680,360)"/>
    <wire from="(690,340)" to="(750,340)"/>
    <wire from="(710,300)" to="(750,300)"/>
    <wire from="(610,150)" to="(610,180)"/>
    <wire from="(420,200)" to="(420,230)"/>
    <wire from="(340,150)" to="(340,250)"/>
    <wire from="(610,180)" to="(630,180)"/>
    <wire from="(730,260)" to="(750,260)"/>
    <wire from="(290,190)" to="(630,190)"/>
    <wire from="(720,280)" to="(750,280)"/>
    <wire from="(500,310)" to="(500,670)"/>
    <wire from="(410,230)" to="(420,230)"/>
    <wire from="(480,270)" to="(480,510)"/>
    <wire from="(290,590)" to="(490,590)"/>
    <wire from="(740,240)" to="(750,240)"/>
    <wire from="(410,710)" to="(610,710)"/>
    <wire from="(460,230)" to="(460,350)"/>
    <wire from="(600,300)" to="(600,630)"/>
    <wire from="(450,210)" to="(630,210)"/>
    <wire from="(620,340)" to="(620,790)"/>
    <wire from="(460,230)" to="(630,230)"/>
    <wire from="(580,260)" to="(580,470)"/>
    <wire from="(730,240)" to="(730,260)"/>
    <wire from="(710,260)" to="(710,300)"/>
    <wire from="(290,270)" to="(450,270)"/>
    <wire from="(410,390)" to="(570,390)"/>
    <wire from="(470,250)" to="(630,250)"/>
    <wire from="(410,790)" to="(620,790)"/>
    <wire from="(420,200)" to="(630,200)"/>
    <wire from="(410,310)" to="(430,310)"/>
    <wire from="(290,670)" to="(500,670)"/>
    <wire from="(660,220)" to="(750,220)"/>
    <wire from="(480,270)" to="(630,270)"/>
    <wire from="(660,240)" to="(730,240)"/>
    <wire from="(340,650)" to="(350,650)"/>
    <wire from="(490,290)" to="(630,290)"/>
    <wire from="(340,810)" to="(350,810)"/>
    <wire from="(340,570)" to="(350,570)"/>
    <wire from="(340,730)" to="(350,730)"/>
    <wire from="(340,490)" to="(350,490)"/>
    <wire from="(340,250)" to="(350,250)"/>
    <wire from="(340,330)" to="(350,330)"/>
    <wire from="(340,410)" to="(350,410)"/>
    <wire from="(690,280)" to="(690,340)"/>
    <wire from="(340,150)" to="(610,150)"/>
    <wire from="(500,310)" to="(630,310)"/>
    <wire from="(660,230)" to="(740,230)"/>
    <wire from="(430,220)" to="(630,220)"/>
    <comp lib="0" loc="(330,290)" name="Pin">
      <a name="label" val="B1"/>
    </comp>
    <comp lib="0" loc="(750,380)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="C_OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(750,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(750,340)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(660,220)" name="Eight_Bit_Full_Adder_2x74LS283"/>
    <comp lib="0" loc="(750,300)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(410,310)" name="XOR Gate"/>
    <comp lib="0" loc="(290,590)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(290,670)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp lib="0" loc="(330,690)" name="Pin">
      <a name="label" val="B6"/>
    </comp>
    <comp lib="1" loc="(410,790)" name="XOR Gate"/>
    <comp lib="0" loc="(330,370)" name="Pin">
      <a name="label" val="B2"/>
    </comp>
    <comp lib="0" loc="(290,430)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(750,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(750,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(290,510)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(290,270)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="1" loc="(410,550)" name="XOR Gate"/>
    <comp lib="0" loc="(290,350)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(330,770)" name="Pin">
      <a name="label" val="B7"/>
    </comp>
    <comp lib="1" loc="(410,630)" name="XOR Gate"/>
    <comp lib="0" loc="(330,210)" name="Pin">
      <a name="label" val="B0"/>
    </comp>
    <comp lib="1" loc="(410,710)" name="XOR Gate"/>
    <comp lib="1" loc="(410,390)" name="XOR Gate"/>
    <comp lib="0" loc="(750,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(410,470)" name="XOR Gate"/>
    <comp lib="0" loc="(330,530)" name="Pin">
      <a name="label" val="B4"/>
    </comp>
    <comp lib="0" loc="(750,360)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(410,230)" name="XOR Gate"/>
    <comp lib="0" loc="(290,190)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(750,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(320,150)" name="Pin">
      <a name="label" val="ADD_SUB"/>
    </comp>
    <comp lib="0" loc="(330,450)" name="Pin">
      <a name="label" val="B3"/>
    </comp>
    <comp lib="0" loc="(290,750)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(330,610)" name="Pin">
      <a name="label" val="B5"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_Buffer">
    <a name="circuit" val="Four_Bit_Buffer"/>
    <a name="clabel" val="BUFFER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 10"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(240,180)" to="(240,190)"/>
    <wire from="(240,100)" to="(240,110)"/>
    <wire from="(240,140)" to="(240,150)"/>
    <wire from="(240,220)" to="(240,230)"/>
    <wire from="(310,100)" to="(310,140)"/>
    <wire from="(310,140)" to="(310,180)"/>
    <wire from="(310,180)" to="(310,220)"/>
    <wire from="(250,240)" to="(260,240)"/>
    <wire from="(250,160)" to="(260,160)"/>
    <wire from="(250,200)" to="(260,200)"/>
    <wire from="(220,240)" to="(230,240)"/>
    <wire from="(220,120)" to="(230,120)"/>
    <wire from="(220,160)" to="(230,160)"/>
    <wire from="(220,200)" to="(230,200)"/>
    <wire from="(250,120)" to="(260,120)"/>
    <wire from="(240,80)" to="(240,100)"/>
    <wire from="(240,220)" to="(310,220)"/>
    <wire from="(240,100)" to="(310,100)"/>
    <wire from="(240,140)" to="(310,140)"/>
    <wire from="(240,180)" to="(310,180)"/>
    <comp lib="0" loc="(260,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(220,200)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(260,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(250,160)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(260,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(250,200)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(260,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(220,240)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(220,160)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="1" loc="(250,120)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="1" loc="(250,240)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(240,80)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="E"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(220,120)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
  </circuit>
  <circuit name="Eight_Bit_Buffer">
    <a name="circuit" val="Eight_Bit_Buffer"/>
    <a name="clabel" val="BUFFER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(250,150)" to="(250,160)"/>
    <wire from="(250,230)" to="(250,240)"/>
    <wire from="(250,70)" to="(250,80)"/>
    <wire from="(250,110)" to="(250,120)"/>
    <wire from="(250,190)" to="(250,200)"/>
    <wire from="(250,270)" to="(250,280)"/>
    <wire from="(250,310)" to="(250,320)"/>
    <wire from="(250,350)" to="(250,360)"/>
    <wire from="(250,50)" to="(250,70)"/>
    <wire from="(320,70)" to="(320,110)"/>
    <wire from="(320,110)" to="(320,150)"/>
    <wire from="(320,150)" to="(320,190)"/>
    <wire from="(320,190)" to="(320,230)"/>
    <wire from="(320,230)" to="(320,270)"/>
    <wire from="(320,270)" to="(320,310)"/>
    <wire from="(320,310)" to="(320,350)"/>
    <wire from="(260,250)" to="(270,250)"/>
    <wire from="(260,370)" to="(270,370)"/>
    <wire from="(260,210)" to="(270,210)"/>
    <wire from="(260,290)" to="(270,290)"/>
    <wire from="(260,330)" to="(270,330)"/>
    <wire from="(260,130)" to="(270,130)"/>
    <wire from="(260,170)" to="(270,170)"/>
    <wire from="(230,290)" to="(240,290)"/>
    <wire from="(230,250)" to="(240,250)"/>
    <wire from="(230,330)" to="(240,330)"/>
    <wire from="(230,370)" to="(240,370)"/>
    <wire from="(230,210)" to="(240,210)"/>
    <wire from="(230,90)" to="(240,90)"/>
    <wire from="(230,130)" to="(240,130)"/>
    <wire from="(230,170)" to="(240,170)"/>
    <wire from="(260,90)" to="(270,90)"/>
    <wire from="(250,190)" to="(320,190)"/>
    <wire from="(250,70)" to="(320,70)"/>
    <wire from="(250,110)" to="(320,110)"/>
    <wire from="(250,150)" to="(320,150)"/>
    <wire from="(250,230)" to="(320,230)"/>
    <wire from="(250,270)" to="(320,270)"/>
    <wire from="(250,310)" to="(320,310)"/>
    <wire from="(250,350)" to="(320,350)"/>
    <comp lib="0" loc="(270,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(270,290)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,210)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(270,330)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,330)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(230,130)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="1" loc="(260,170)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(230,90)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(270,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(250,50)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="E"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(230,210)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(270,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(230,330)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp lib="1" loc="(260,130)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(230,250)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(270,370)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(230,170)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="1" loc="(260,290)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(270,90)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,90)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="0" loc="(230,370)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(230,290)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(270,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(260,250)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
    <comp lib="1" loc="(260,370)" name="Controlled Buffer">
      <a name="control" val="left"/>
    </comp>
  </circuit>
  <circuit name="D_Type_Flip_Flop_Rising_Edge">
    <a name="circuit" val="D_Type_Flip_Flop_Rising_Edge"/>
    <a name="clabel" val="D_TYPE"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 6"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(550,290)" to="(550,300)"/>
    <wire from="(550,270)" to="(550,280)"/>
    <wire from="(540,120)" to="(540,250)"/>
    <wire from="(520,230)" to="(560,230)"/>
    <wire from="(390,140)" to="(390,360)"/>
    <wire from="(510,290)" to="(510,320)"/>
    <wire from="(390,360)" to="(430,360)"/>
    <wire from="(630,250)" to="(630,290)"/>
    <wire from="(640,280)" to="(640,320)"/>
    <wire from="(540,250)" to="(560,250)"/>
    <wire from="(410,250)" to="(440,250)"/>
    <wire from="(500,230)" to="(520,230)"/>
    <wire from="(500,410)" to="(520,410)"/>
    <wire from="(550,280)" to="(640,280)"/>
    <wire from="(430,390)" to="(440,390)"/>
    <wire from="(430,210)" to="(440,210)"/>
    <wire from="(500,160)" to="(510,160)"/>
    <wire from="(500,340)" to="(510,340)"/>
    <wire from="(430,270)" to="(430,320)"/>
    <wire from="(550,290)" to="(630,290)"/>
    <wire from="(370,230)" to="(370,290)"/>
    <wire from="(550,270)" to="(560,270)"/>
    <wire from="(640,320)" to="(650,320)"/>
    <wire from="(310,310)" to="(370,310)"/>
    <wire from="(510,320)" to="(560,320)"/>
    <wire from="(510,340)" to="(560,340)"/>
    <wire from="(390,140)" to="(440,140)"/>
    <wire from="(330,160)" to="(330,430)"/>
    <wire from="(430,180)" to="(430,190)"/>
    <wire from="(430,380)" to="(430,390)"/>
    <wire from="(430,200)" to="(430,210)"/>
    <wire from="(430,360)" to="(430,370)"/>
    <wire from="(350,100)" to="(350,110)"/>
    <wire from="(330,460)" to="(330,470)"/>
    <wire from="(350,140)" to="(350,290)"/>
    <wire from="(310,340)" to="(410,340)"/>
    <wire from="(410,250)" to="(410,340)"/>
    <wire from="(430,190)" to="(520,190)"/>
    <wire from="(430,270)" to="(520,270)"/>
    <wire from="(430,370)" to="(520,370)"/>
    <wire from="(520,370)" to="(520,410)"/>
    <wire from="(350,410)" to="(440,410)"/>
    <wire from="(410,340)" to="(440,340)"/>
    <wire from="(410,160)" to="(440,160)"/>
    <wire from="(620,320)" to="(640,320)"/>
    <wire from="(630,250)" to="(650,250)"/>
    <wire from="(350,290)" to="(370,290)"/>
    <wire from="(410,120)" to="(410,160)"/>
    <wire from="(520,190)" to="(520,230)"/>
    <wire from="(520,230)" to="(520,270)"/>
    <wire from="(510,340)" to="(510,380)"/>
    <wire from="(510,160)" to="(510,200)"/>
    <wire from="(430,180)" to="(440,180)"/>
    <wire from="(430,320)" to="(440,320)"/>
    <wire from="(430,360)" to="(440,360)"/>
    <wire from="(370,290)" to="(510,290)"/>
    <wire from="(330,160)" to="(410,160)"/>
    <wire from="(430,200)" to="(510,200)"/>
    <wire from="(430,380)" to="(510,380)"/>
    <wire from="(410,120)" to="(540,120)"/>
    <wire from="(370,310)" to="(370,430)"/>
    <wire from="(350,290)" to="(350,410)"/>
    <wire from="(550,300)" to="(560,300)"/>
    <wire from="(620,250)" to="(630,250)"/>
    <wire from="(370,430)" to="(440,430)"/>
    <wire from="(370,230)" to="(440,230)"/>
    <comp lib="0" loc="(310,310)" name="Pin">
      <a name="label" val="D"/>
    </comp>
    <comp lib="0" loc="(310,340)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="1" loc="(350,140)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(350,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(500,410)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(650,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(620,320)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(620,250)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(650,320)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="NOT_Q"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(500,340)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(500,160)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(500,230)" name="NAND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="1" loc="(330,430)" name="NOT Gate">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(330,470)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="PRE"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_Synchronous_Up_Counter">
    <a name="circuit" val="Four_Bit_Synchronous_Up_Counter"/>
    <a name="clabel" val="4 BIT COUNT"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif bold 8"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M61,51 Q65,61 69,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="60" stroke="#000000" stroke-width="2" width="30" x="50" y="50"/>
      <circ-port height="8" pin="120,150" width="8" x="46" y="56"/>
      <circ-port height="8" pin="120,250" width="8" x="46" y="66"/>
      <circ-port height="8" pin="120,280" width="8" x="46" y="76"/>
      <circ-port height="10" pin="480,160" width="10" x="75" y="95"/>
      <circ-port height="10" pin="210,130" width="10" x="75" y="55"/>
      <circ-port height="10" pin="290,130" width="10" x="75" y="65"/>
      <circ-port height="10" pin="370,130" width="10" x="75" y="75"/>
      <circ-port height="10" pin="450,130" width="10" x="75" y="85"/>
      <circ-anchor facing="east" height="6" width="6" x="77" y="97"/>
    </appear>
    <wire from="(120,250)" to="(180,250)"/>
    <wire from="(320,280)" to="(320,300)"/>
    <wire from="(400,280)" to="(400,300)"/>
    <wire from="(160,280)" to="(160,300)"/>
    <wire from="(240,280)" to="(240,300)"/>
    <wire from="(220,160)" to="(220,200)"/>
    <wire from="(300,160)" to="(300,200)"/>
    <wire from="(380,160)" to="(380,200)"/>
    <wire from="(120,150)" to="(140,150)"/>
    <wire from="(400,280)" to="(410,280)"/>
    <wire from="(320,280)" to="(330,280)"/>
    <wire from="(160,300)" to="(240,300)"/>
    <wire from="(240,300)" to="(320,300)"/>
    <wire from="(160,280)" to="(170,280)"/>
    <wire from="(240,280)" to="(250,280)"/>
    <wire from="(320,300)" to="(400,300)"/>
    <wire from="(290,130)" to="(290,190)"/>
    <wire from="(370,130)" to="(370,190)"/>
    <wire from="(450,130)" to="(450,190)"/>
    <wire from="(210,130)" to="(210,190)"/>
    <wire from="(160,190)" to="(160,200)"/>
    <wire from="(400,190)" to="(450,190)"/>
    <wire from="(180,250)" to="(180,260)"/>
    <wire from="(240,190)" to="(240,200)"/>
    <wire from="(220,150)" to="(220,160)"/>
    <wire from="(320,190)" to="(370,190)"/>
    <wire from="(160,190)" to="(210,190)"/>
    <wire from="(400,190)" to="(400,200)"/>
    <wire from="(420,250)" to="(420,260)"/>
    <wire from="(240,190)" to="(290,190)"/>
    <wire from="(320,190)" to="(320,200)"/>
    <wire from="(300,150)" to="(300,160)"/>
    <wire from="(260,250)" to="(260,260)"/>
    <wire from="(380,150)" to="(380,160)"/>
    <wire from="(340,250)" to="(340,260)"/>
    <wire from="(320,170)" to="(320,190)"/>
    <wire from="(400,170)" to="(400,190)"/>
    <wire from="(210,190)" to="(210,270)"/>
    <wire from="(290,190)" to="(290,270)"/>
    <wire from="(370,190)" to="(370,270)"/>
    <wire from="(160,170)" to="(160,190)"/>
    <wire from="(450,190)" to="(450,270)"/>
    <wire from="(240,170)" to="(240,190)"/>
    <wire from="(390,240)" to="(390,270)"/>
    <wire from="(120,280)" to="(160,280)"/>
    <wire from="(310,240)" to="(310,270)"/>
    <wire from="(150,240)" to="(150,270)"/>
    <wire from="(230,240)" to="(230,270)"/>
    <wire from="(440,160)" to="(480,160)"/>
    <wire from="(140,150)" to="(170,150)"/>
    <wire from="(220,150)" to="(250,150)"/>
    <wire from="(300,150)" to="(330,150)"/>
    <wire from="(380,150)" to="(410,150)"/>
    <wire from="(280,160)" to="(300,160)"/>
    <wire from="(310,270)" to="(330,270)"/>
    <wire from="(360,160)" to="(380,160)"/>
    <wire from="(390,270)" to="(410,270)"/>
    <wire from="(150,270)" to="(170,270)"/>
    <wire from="(200,160)" to="(220,160)"/>
    <wire from="(230,270)" to="(250,270)"/>
    <wire from="(400,170)" to="(410,170)"/>
    <wire from="(140,150)" to="(140,200)"/>
    <wire from="(440,270)" to="(450,270)"/>
    <wire from="(320,170)" to="(330,170)"/>
    <wire from="(280,270)" to="(290,270)"/>
    <wire from="(180,250)" to="(260,250)"/>
    <wire from="(360,270)" to="(370,270)"/>
    <wire from="(160,170)" to="(170,170)"/>
    <wire from="(260,250)" to="(340,250)"/>
    <wire from="(240,170)" to="(250,170)"/>
    <wire from="(200,270)" to="(210,270)"/>
    <wire from="(340,250)" to="(420,250)"/>
    <comp lib="1" loc="(390,240)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(310,240)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(230,240)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(150,240)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(360,160)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(280,160)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(200,160)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(440,160)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(120,150)" name="Pin">
      <a name="label" val="INC"/>
    </comp>
    <comp loc="(440,270)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp loc="(200,270)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp loc="(280,270)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp loc="(360,270)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(120,250)" name="Pin">
      <a name="label" val="CLEAR"/>
    </comp>
    <comp lib="0" loc="(120,280)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(210,130)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(290,130)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(370,130)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(450,130)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(480,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="CARRY"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_Synchronous_Up_Counter_with_Load_74LS161">
    <a name="circuit" val="Four_Bit_Synchronous_Up_Counter_with_Load_74LS161"/>
    <a name="clabel" val="COUNTER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 8"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M66,50 Q70,60 74,50" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="60" stroke="#000000" stroke-width="2" width="40" x="50" y="50"/>
      <circ-port height="10" pin="210,90" width="10" x="85" y="55"/>
      <circ-port height="10" pin="290,90" width="10" x="85" y="65"/>
      <circ-port height="10" pin="370,90" width="10" x="85" y="75"/>
      <circ-port height="10" pin="450,90" width="10" x="85" y="85"/>
      <circ-port height="8" pin="120,110" width="8" x="66" y="106"/>
      <circ-port height="10" pin="480,120" width="10" x="85" y="95"/>
      <circ-port height="8" pin="100,400" width="8" x="76" y="106"/>
      <circ-port height="8" pin="100,450" width="8" x="56" y="106"/>
      <circ-port height="8" pin="250,530" width="8" x="46" y="56"/>
      <circ-port height="8" pin="280,530" width="8" x="46" y="66"/>
      <circ-port height="8" pin="310,530" width="8" x="46" y="76"/>
      <circ-port height="8" pin="340,530" width="8" x="46" y="86"/>
      <circ-port height="8" pin="100,320" width="8" x="46" y="96"/>
      <circ-anchor facing="east" height="6" width="6" x="87" y="97"/>
    </appear>
    <wire from="(190,260)" to="(190,330)"/>
    <wire from="(100,450)" to="(160,450)"/>
    <wire from="(290,220)" to="(470,220)"/>
    <wire from="(280,520)" to="(280,530)"/>
    <wire from="(160,360)" to="(160,390)"/>
    <wire from="(180,300)" to="(180,330)"/>
    <wire from="(230,390)" to="(230,420)"/>
    <wire from="(370,460)" to="(460,460)"/>
    <wire from="(100,320)" to="(130,320)"/>
    <wire from="(250,510)" to="(280,510)"/>
    <wire from="(310,420)" to="(330,420)"/>
    <wire from="(390,420)" to="(410,420)"/>
    <wire from="(120,110)" to="(140,110)"/>
    <wire from="(180,370)" to="(390,370)"/>
    <wire from="(150,420)" to="(170,420)"/>
    <wire from="(230,420)" to="(250,420)"/>
    <wire from="(210,230)" to="(480,230)"/>
    <wire from="(100,400)" to="(180,400)"/>
    <wire from="(180,400)" to="(260,400)"/>
    <wire from="(280,520)" to="(290,520)"/>
    <wire from="(260,400)" to="(340,400)"/>
    <wire from="(340,400)" to="(420,400)"/>
    <wire from="(170,380)" to="(310,380)"/>
    <wire from="(290,90)" to="(290,150)"/>
    <wire from="(160,390)" to="(230,390)"/>
    <wire from="(370,90)" to="(370,150)"/>
    <wire from="(450,90)" to="(450,150)"/>
    <wire from="(210,90)" to="(210,150)"/>
    <wire from="(170,250)" to="(230,250)"/>
    <wire from="(290,470)" to="(470,470)"/>
    <wire from="(220,110)" to="(220,120)"/>
    <wire from="(190,260)" to="(310,260)"/>
    <wire from="(200,290)" to="(250,290)"/>
    <wire from="(300,110)" to="(300,120)"/>
    <wire from="(300,510)" to="(300,520)"/>
    <wire from="(310,520)" to="(310,530)"/>
    <wire from="(380,110)" to="(380,120)"/>
    <wire from="(210,270)" to="(390,270)"/>
    <wire from="(320,130)" to="(320,150)"/>
    <wire from="(340,510)" to="(340,530)"/>
    <wire from="(400,130)" to="(400,150)"/>
    <wire from="(170,250)" to="(170,330)"/>
    <wire from="(160,130)" to="(160,150)"/>
    <wire from="(240,130)" to="(240,150)"/>
    <wire from="(280,120)" to="(300,120)"/>
    <wire from="(360,120)" to="(380,120)"/>
    <wire from="(200,290)" to="(200,330)"/>
    <wire from="(370,420)" to="(370,460)"/>
    <wire from="(200,120)" to="(220,120)"/>
    <wire from="(400,130)" to="(410,130)"/>
    <wire from="(140,110)" to="(140,160)"/>
    <wire from="(230,200)" to="(230,250)"/>
    <wire from="(210,480)" to="(480,480)"/>
    <wire from="(320,130)" to="(330,130)"/>
    <wire from="(160,130)" to="(170,130)"/>
    <wire from="(240,130)" to="(250,130)"/>
    <wire from="(290,420)" to="(290,470)"/>
    <wire from="(310,200)" to="(310,260)"/>
    <wire from="(180,300)" to="(250,300)"/>
    <wire from="(150,360)" to="(150,420)"/>
    <wire from="(210,420)" to="(210,480)"/>
    <wire from="(390,200)" to="(390,270)"/>
    <wire from="(180,400)" to="(180,410)"/>
    <wire from="(180,360)" to="(180,370)"/>
    <wire from="(140,320)" to="(140,330)"/>
    <wire from="(450,150)" to="(450,420)"/>
    <wire from="(420,400)" to="(420,410)"/>
    <wire from="(260,400)" to="(260,410)"/>
    <wire from="(290,510)" to="(290,520)"/>
    <wire from="(340,400)" to="(340,410)"/>
    <wire from="(250,510)" to="(250,530)"/>
    <wire from="(160,310)" to="(250,310)"/>
    <wire from="(310,510)" to="(340,510)"/>
    <wire from="(270,310)" to="(300,310)"/>
    <wire from="(220,120)" to="(220,160)"/>
    <wire from="(300,120)" to="(300,160)"/>
    <wire from="(380,120)" to="(380,160)"/>
    <wire from="(440,420)" to="(450,420)"/>
    <wire from="(280,420)" to="(290,420)"/>
    <wire from="(300,520)" to="(310,520)"/>
    <wire from="(360,420)" to="(370,420)"/>
    <wire from="(390,370)" to="(390,420)"/>
    <wire from="(200,420)" to="(210,420)"/>
    <wire from="(370,150)" to="(370,210)"/>
    <wire from="(480,230)" to="(480,480)"/>
    <wire from="(470,220)" to="(470,470)"/>
    <wire from="(460,210)" to="(460,460)"/>
    <wire from="(210,270)" to="(210,330)"/>
    <wire from="(150,200)" to="(150,330)"/>
    <wire from="(290,150)" to="(290,220)"/>
    <wire from="(160,150)" to="(160,160)"/>
    <wire from="(400,150)" to="(450,150)"/>
    <wire from="(130,320)" to="(130,330)"/>
    <wire from="(240,150)" to="(240,160)"/>
    <wire from="(320,150)" to="(370,150)"/>
    <wire from="(160,150)" to="(210,150)"/>
    <wire from="(400,150)" to="(400,160)"/>
    <wire from="(240,150)" to="(290,150)"/>
    <wire from="(320,150)" to="(320,160)"/>
    <wire from="(140,320)" to="(250,320)"/>
    <wire from="(320,430)" to="(320,450)"/>
    <wire from="(400,430)" to="(400,450)"/>
    <wire from="(210,150)" to="(210,230)"/>
    <wire from="(120,310)" to="(120,330)"/>
    <wire from="(160,430)" to="(160,450)"/>
    <wire from="(170,360)" to="(170,380)"/>
    <wire from="(160,310)" to="(160,330)"/>
    <wire from="(240,430)" to="(240,450)"/>
    <wire from="(440,120)" to="(480,120)"/>
    <wire from="(140,110)" to="(170,110)"/>
    <wire from="(220,110)" to="(250,110)"/>
    <wire from="(370,210)" to="(460,210)"/>
    <wire from="(300,110)" to="(330,110)"/>
    <wire from="(380,110)" to="(410,110)"/>
    <wire from="(310,380)" to="(310,420)"/>
    <wire from="(400,430)" to="(410,430)"/>
    <wire from="(300,310)" to="(300,490)"/>
    <wire from="(160,450)" to="(240,450)"/>
    <wire from="(320,430)" to="(330,430)"/>
    <wire from="(240,450)" to="(320,450)"/>
    <wire from="(160,430)" to="(170,430)"/>
    <wire from="(240,430)" to="(250,430)"/>
    <wire from="(320,450)" to="(400,450)"/>
    <comp lib="1" loc="(310,200)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(210,90)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(230,200)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(200,120)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(390,200)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(290,90)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(450,90)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(480,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="CARRY"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(120,110)" name="Pin">
      <a name="label" val="INC"/>
    </comp>
    <comp lib="1" loc="(360,120)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(440,120)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(370,90)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="Q2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(280,120)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(150,200)" name="XOR Gate">
      <a name="facing" val="south"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(270,310)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp loc="(280,420)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(250,530)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="D0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(100,320)" name="Pin">
      <a name="label" val="LOAD"/>
    </comp>
    <comp loc="(440,420)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(120,310)" name="Pull Resistor">
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(300,490)" name="Splitter">
      <a name="facing" val="south"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(280,530)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="D1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(100,400)" name="Pin">
      <a name="label" val="CLEAR"/>
    </comp>
    <comp loc="(360,420)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(340,530)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="D3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(180,360)" name="Quad_2_to_1_Mux_1_Bit_74LS157">
      <a name="facing" val="south"/>
    </comp>
    <comp loc="(200,420)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(310,530)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="D2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(100,450)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
  </circuit>
  <circuit name="Two_to_1_Mux_1_Bit">
    <a name="circuit" val="Two_to_1_Mux_1_Bit"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(330,260)" to="(390,260)"/>
    <wire from="(370,280)" to="(390,280)"/>
    <wire from="(370,340)" to="(390,340)"/>
    <wire from="(330,260)" to="(330,370)"/>
    <wire from="(450,310)" to="(450,320)"/>
    <wire from="(450,260)" to="(450,270)"/>
    <wire from="(270,300)" to="(390,300)"/>
    <wire from="(270,240)" to="(390,240)"/>
    <wire from="(440,320)" to="(450,320)"/>
    <wire from="(440,260)" to="(450,260)"/>
    <wire from="(450,270)" to="(460,270)"/>
    <wire from="(450,310)" to="(460,310)"/>
    <wire from="(510,290)" to="(520,290)"/>
    <wire from="(270,370)" to="(280,370)"/>
    <wire from="(280,370)" to="(290,370)"/>
    <wire from="(320,370)" to="(330,370)"/>
    <wire from="(280,320)" to="(280,370)"/>
    <wire from="(280,320)" to="(390,320)"/>
    <wire from="(370,340)" to="(370,390)"/>
    <wire from="(270,390)" to="(370,390)"/>
    <wire from="(370,280)" to="(370,340)"/>
    <comp lib="1" loc="(440,320)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(270,240)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="1" loc="(440,260)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(270,300)" name="Pin">
      <a name="label" val="B0"/>
    </comp>
    <comp lib="1" loc="(510,290)" name="OR Gate"/>
    <comp lib="0" loc="(520,290)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(270,370)" name="Pin">
      <a name="label" val="SEL"/>
    </comp>
    <comp lib="1" loc="(320,370)" name="NOT Gate"/>
    <comp lib="0" loc="(270,390)" name="Pin">
      <a name="label" val="ENABLE"/>
    </comp>
  </circuit>
  <circuit name="Quad_2_to_1_Mux_1_Bit_74LS157">
    <a name="circuit" val="Quad_2_to_1_Mux_1_Bit_74LS157"/>
    <a name="clabel" val="SELECTOR"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M61,56 Q65,66 69,56" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="100" stroke="#000000" stroke-width="2" width="30" x="50" y="55"/>
      <circ-port height="8" pin="270,160" width="8" x="46" y="136"/>
      <circ-port height="8" pin="270,180" width="8" x="46" y="146"/>
      <circ-port height="8" pin="270,240" width="8" x="46" y="126"/>
      <circ-port height="8" pin="270,300" width="8" x="46" y="116"/>
      <circ-port height="8" pin="270,360" width="8" x="46" y="106"/>
      <circ-port height="8" pin="270,420" width="8" x="46" y="96"/>
      <circ-port height="8" pin="270,480" width="8" x="46" y="86"/>
      <circ-port height="8" pin="270,540" width="8" x="46" y="76"/>
      <circ-port height="8" pin="270,600" width="8" x="46" y="66"/>
      <circ-port height="8" pin="270,660" width="8" x="46" y="56"/>
      <circ-port height="10" pin="530,250" width="10" x="75" y="115"/>
      <circ-port height="10" pin="530,370" width="10" x="75" y="105"/>
      <circ-port height="10" pin="530,490" width="10" x="75" y="95"/>
      <circ-port height="10" pin="530,610" width="10" x="75" y="85"/>
      <circ-anchor facing="east" height="6" width="6" x="77" y="87"/>
    </appear>
    <wire from="(280,120)" to="(330,120)"/>
    <wire from="(460,220)" to="(460,230)"/>
    <wire from="(460,340)" to="(460,350)"/>
    <wire from="(460,460)" to="(460,470)"/>
    <wire from="(460,580)" to="(460,590)"/>
    <wire from="(290,140)" to="(330,140)"/>
    <wire from="(290,180)" to="(330,180)"/>
    <wire from="(270,180)" to="(290,180)"/>
    <wire from="(280,120)" to="(280,160)"/>
    <wire from="(320,160)" to="(330,160)"/>
    <wire from="(370,260)" to="(370,380)"/>
    <wire from="(370,380)" to="(370,500)"/>
    <wire from="(370,500)" to="(370,620)"/>
    <wire from="(390,200)" to="(390,320)"/>
    <wire from="(390,320)" to="(390,440)"/>
    <wire from="(390,440)" to="(390,560)"/>
    <wire from="(390,130)" to="(390,200)"/>
    <wire from="(460,270)" to="(460,280)"/>
    <wire from="(460,390)" to="(460,400)"/>
    <wire from="(460,510)" to="(460,520)"/>
    <wire from="(460,630)" to="(460,640)"/>
    <wire from="(370,170)" to="(370,260)"/>
    <wire from="(370,260)" to="(400,260)"/>
    <wire from="(370,380)" to="(400,380)"/>
    <wire from="(370,500)" to="(400,500)"/>
    <wire from="(370,620)" to="(400,620)"/>
    <wire from="(360,130)" to="(390,130)"/>
    <wire from="(280,160)" to="(300,160)"/>
    <wire from="(290,140)" to="(290,180)"/>
    <wire from="(450,280)" to="(460,280)"/>
    <wire from="(450,340)" to="(460,340)"/>
    <wire from="(450,220)" to="(460,220)"/>
    <wire from="(390,200)" to="(400,200)"/>
    <wire from="(390,320)" to="(400,320)"/>
    <wire from="(390,440)" to="(400,440)"/>
    <wire from="(390,560)" to="(400,560)"/>
    <wire from="(460,270)" to="(470,270)"/>
    <wire from="(450,640)" to="(460,640)"/>
    <wire from="(460,230)" to="(470,230)"/>
    <wire from="(450,580)" to="(460,580)"/>
    <wire from="(450,520)" to="(460,520)"/>
    <wire from="(450,400)" to="(460,400)"/>
    <wire from="(450,460)" to="(460,460)"/>
    <wire from="(460,350)" to="(470,350)"/>
    <wire from="(460,390)" to="(470,390)"/>
    <wire from="(460,470)" to="(470,470)"/>
    <wire from="(460,510)" to="(470,510)"/>
    <wire from="(460,590)" to="(470,590)"/>
    <wire from="(460,630)" to="(470,630)"/>
    <wire from="(520,250)" to="(530,250)"/>
    <wire from="(270,160)" to="(280,160)"/>
    <wire from="(360,170)" to="(370,170)"/>
    <wire from="(270,540)" to="(400,540)"/>
    <wire from="(270,600)" to="(400,600)"/>
    <wire from="(270,300)" to="(400,300)"/>
    <wire from="(270,480)" to="(400,480)"/>
    <wire from="(270,360)" to="(400,360)"/>
    <wire from="(270,420)" to="(400,420)"/>
    <wire from="(270,660)" to="(400,660)"/>
    <wire from="(270,240)" to="(400,240)"/>
    <wire from="(520,370)" to="(530,370)"/>
    <wire from="(520,490)" to="(530,490)"/>
    <wire from="(520,610)" to="(530,610)"/>
    <comp lib="1" loc="(520,490)" name="OR Gate"/>
    <comp lib="0" loc="(530,610)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(270,600)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="B0"/>
    </comp>
    <comp lib="0" loc="(270,300)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="A3"/>
    </comp>
    <comp lib="1" loc="(450,640)" name="AND Gate"/>
    <comp lib="1" loc="(450,460)" name="AND Gate"/>
    <comp lib="1" loc="(360,170)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(450,280)" name="AND Gate"/>
    <comp lib="0" loc="(530,370)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(270,240)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="B3"/>
    </comp>
    <comp lib="0" loc="(270,480)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="B1"/>
    </comp>
    <comp lib="0" loc="(270,360)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="B2"/>
    </comp>
    <comp lib="1" loc="(450,340)" name="AND Gate"/>
    <comp lib="0" loc="(530,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(450,220)" name="AND Gate"/>
    <comp lib="1" loc="(520,370)" name="OR Gate"/>
    <comp lib="1" loc="(520,610)" name="OR Gate"/>
    <comp lib="0" loc="(270,420)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="A2"/>
    </comp>
    <comp lib="1" loc="(450,400)" name="AND Gate"/>
    <comp lib="0" loc="(270,540)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="A1"/>
    </comp>
    <comp lib="1" loc="(450,580)" name="AND Gate"/>
    <comp lib="1" loc="(520,250)" name="OR Gate"/>
    <comp lib="0" loc="(270,160)" name="Pin">
      <a name="label" val="SEL"/>
    </comp>
    <comp lib="0" loc="(270,660)" name="Pin">
      <a name="tristate" val="true"/>
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(530,490)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="tristate" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(320,160)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="0" loc="(270,180)" name="Pin">
      <a name="label" val="ENABLE"/>
    </comp>
    <comp lib="1" loc="(450,520)" name="AND Gate"/>
    <comp lib="1" loc="(360,130)" name="AND Gate">
      <a name="size" val="30"/>
    </comp>
  </circuit>
  <circuit name="Four_to_1_Mux_4_Bit">
    <a name="circuit" val="Four_to_1_Mux_4_Bit"/>
    <a name="clabel" val="4 TO 1 MUX 4-BIT"/>
    <a name="clabelup" val="north"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M136,51 Q140,61 144,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="50" stroke="#000000" stroke-width="2" width="180" x="50" y="50"/>
      <circ-port height="10" pin="440,240" width="10" x="185" y="95"/>
      <circ-port height="10" pin="440,220" width="10" x="195" y="95"/>
      <circ-port height="10" pin="440,200" width="10" x="205" y="95"/>
      <circ-port height="10" pin="440,180" width="10" x="215" y="95"/>
      <circ-port height="8" pin="50,100" width="8" x="186" y="46"/>
      <circ-port height="8" pin="50,240" width="8" x="106" y="46"/>
      <circ-port height="8" pin="70,100" width="8" x="196" y="46"/>
      <circ-port height="8" pin="70,240" width="8" x="116" y="46"/>
      <circ-port height="8" pin="90,100" width="8" x="206" y="46"/>
      <circ-port height="8" pin="90,240" width="8" x="126" y="46"/>
      <circ-port height="8" pin="110,100" width="8" x="216" y="46"/>
      <circ-port height="8" pin="110,240" width="8" x="136" y="46"/>
      <circ-port height="8" pin="140,100" width="8" x="146" y="46"/>
      <circ-port height="8" pin="140,240" width="8" x="66" y="46"/>
      <circ-port height="8" pin="160,100" width="8" x="156" y="46"/>
      <circ-port height="8" pin="160,240" width="8" x="76" y="46"/>
      <circ-port height="8" pin="180,100" width="8" x="166" y="46"/>
      <circ-port height="8" pin="180,240" width="8" x="86" y="46"/>
      <circ-port height="8" pin="200,100" width="8" x="176" y="46"/>
      <circ-port height="8" pin="200,240" width="8" x="96" y="46"/>
      <circ-port height="8" pin="360,130" width="8" x="56" y="46"/>
      <circ-port height="8" pin="200,380" width="8" x="46" y="66"/>
      <circ-port height="8" pin="220,380" width="8" x="46" y="76"/>
      <circ-anchor facing="east" height="6" width="6" x="217" y="97"/>
    </appear>
    <wire from="(270,160)" to="(330,160)"/>
    <wire from="(50,170)" to="(240,170)"/>
    <wire from="(320,170)" to="(320,240)"/>
    <wire from="(50,310)" to="(240,310)"/>
    <wire from="(300,230)" to="(300,300)"/>
    <wire from="(50,240)" to="(50,310)"/>
    <wire from="(50,100)" to="(50,170)"/>
    <wire from="(320,240)" to="(370,240)"/>
    <wire from="(270,170)" to="(320,170)"/>
    <wire from="(420,200)" to="(420,220)"/>
    <wire from="(200,360)" to="(200,380)"/>
    <wire from="(200,240)" to="(200,260)"/>
    <wire from="(70,290)" to="(240,290)"/>
    <wire from="(200,100)" to="(200,120)"/>
    <wire from="(70,150)" to="(240,150)"/>
    <wire from="(330,220)" to="(370,220)"/>
    <wire from="(140,180)" to="(240,180)"/>
    <wire from="(280,190)" to="(280,280)"/>
    <wire from="(140,320)" to="(240,320)"/>
    <wire from="(360,270)" to="(360,370)"/>
    <wire from="(350,260)" to="(350,360)"/>
    <wire from="(280,190)" to="(370,190)"/>
    <wire from="(340,200)" to="(370,200)"/>
    <wire from="(350,180)" to="(370,180)"/>
    <wire from="(350,260)" to="(370,260)"/>
    <wire from="(200,360)" to="(350,360)"/>
    <wire from="(180,100)" to="(180,140)"/>
    <wire from="(180,240)" to="(180,280)"/>
    <wire from="(90,130)" to="(240,130)"/>
    <wire from="(90,270)" to="(240,270)"/>
    <wire from="(220,330)" to="(240,330)"/>
    <wire from="(220,190)" to="(240,190)"/>
    <wire from="(160,300)" to="(240,300)"/>
    <wire from="(160,160)" to="(240,160)"/>
    <wire from="(290,210)" to="(370,210)"/>
    <wire from="(310,250)" to="(310,310)"/>
    <wire from="(230,370)" to="(360,370)"/>
    <wire from="(160,240)" to="(160,300)"/>
    <wire from="(160,100)" to="(160,160)"/>
    <wire from="(300,230)" to="(370,230)"/>
    <wire from="(110,250)" to="(240,250)"/>
    <wire from="(110,110)" to="(240,110)"/>
    <wire from="(310,250)" to="(370,250)"/>
    <wire from="(180,140)" to="(240,140)"/>
    <wire from="(180,280)" to="(240,280)"/>
    <wire from="(360,130)" to="(360,270)"/>
    <wire from="(110,240)" to="(110,250)"/>
    <wire from="(110,100)" to="(110,110)"/>
    <wire from="(430,220)" to="(430,230)"/>
    <wire from="(230,200)" to="(230,340)"/>
    <wire from="(220,190)" to="(220,330)"/>
    <wire from="(140,100)" to="(140,180)"/>
    <wire from="(140,240)" to="(140,320)"/>
    <wire from="(290,210)" to="(290,290)"/>
    <wire from="(410,180)" to="(410,210)"/>
    <wire from="(200,260)" to="(240,260)"/>
    <wire from="(200,120)" to="(240,120)"/>
    <wire from="(270,310)" to="(310,310)"/>
    <wire from="(230,340)" to="(230,370)"/>
    <wire from="(400,240)" to="(440,240)"/>
    <wire from="(90,100)" to="(90,130)"/>
    <wire from="(90,240)" to="(90,270)"/>
    <wire from="(400,230)" to="(430,230)"/>
    <wire from="(410,180)" to="(440,180)"/>
    <wire from="(270,300)" to="(300,300)"/>
    <wire from="(270,290)" to="(290,290)"/>
    <wire from="(400,220)" to="(420,220)"/>
    <wire from="(420,200)" to="(440,200)"/>
    <wire from="(350,140)" to="(350,180)"/>
    <wire from="(400,210)" to="(410,210)"/>
    <wire from="(430,220)" to="(440,220)"/>
    <wire from="(220,330)" to="(220,380)"/>
    <wire from="(270,280)" to="(280,280)"/>
    <wire from="(70,240)" to="(70,290)"/>
    <wire from="(70,100)" to="(70,150)"/>
    <wire from="(360,270)" to="(370,270)"/>
    <wire from="(270,140)" to="(350,140)"/>
    <wire from="(230,200)" to="(240,200)"/>
    <wire from="(230,340)" to="(240,340)"/>
    <wire from="(340,150)" to="(340,200)"/>
    <wire from="(330,160)" to="(330,220)"/>
    <wire from="(270,150)" to="(340,150)"/>
    <comp lib="0" loc="(200,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="B0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(270,140)" name="Quad_2_to_1_Mux_1_Bit_74LS157">
      <a name="label" val="SEL1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(110,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="C0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(50,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="C3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(180,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="B1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(160,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="D2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(110,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(140,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="B3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(270,280)" name="Quad_2_to_1_Mux_1_Bit_74LS157">
      <a name="label" val="SEL2"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(50,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(140,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="D3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(400,210)" name="Quad_2_to_1_Mux_1_Bit_74LS157">
      <a name="label" val="SEL3"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(70,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="C2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(160,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="B2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(90,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(90,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="C1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(200,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="D0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(70,100)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(180,240)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="D1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(200,380)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(220,380)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(440,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(440,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(440,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(440,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(360,130)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="ENABLE"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="Sixteen_to_1_Mux_4_Bit">
    <a name="circuit" val="Sixteen_to_1_Mux_4_Bit"/>
    <a name="clabel" val="16-to-1 Mux (4-Bit Width)"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 18"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M71,51 Q75,61 79,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="660" stroke="#000000" stroke-width="2" width="50" x="50" y="50"/>
      <circ-port height="8" pin="430,10" width="8" x="46" y="56"/>
      <circ-port height="8" pin="750,10" width="8" x="46" y="216"/>
      <circ-port height="8" pin="430,30" width="8" x="46" y="66"/>
      <circ-port height="8" pin="750,30" width="8" x="46" y="226"/>
      <circ-port height="8" pin="430,50" width="8" x="46" y="76"/>
      <circ-port height="8" pin="750,50" width="8" x="46" y="236"/>
      <circ-port height="8" pin="430,70" width="8" x="46" y="86"/>
      <circ-port height="8" pin="750,70" width="8" x="46" y="246"/>
      <circ-port height="8" pin="430,100" width="8" x="46" y="96"/>
      <circ-port height="8" pin="750,100" width="8" x="46" y="256"/>
      <circ-port height="8" pin="430,120" width="8" x="46" y="106"/>
      <circ-port height="8" pin="750,120" width="8" x="46" y="266"/>
      <circ-port height="8" pin="430,140" width="8" x="46" y="116"/>
      <circ-port height="8" pin="750,140" width="8" x="46" y="276"/>
      <circ-port height="8" pin="430,160" width="8" x="46" y="126"/>
      <circ-port height="8" pin="750,160" width="8" x="46" y="286"/>
      <circ-port height="8" pin="430,190" width="8" x="46" y="136"/>
      <circ-port height="8" pin="750,190" width="8" x="46" y="296"/>
      <circ-port height="8" pin="430,210" width="8" x="46" y="146"/>
      <circ-port height="8" pin="750,210" width="8" x="46" y="306"/>
      <circ-port height="8" pin="430,230" width="8" x="46" y="156"/>
      <circ-port height="8" pin="750,230" width="8" x="46" y="316"/>
      <circ-port height="8" pin="430,250" width="8" x="46" y="166"/>
      <circ-port height="8" pin="750,250" width="8" x="46" y="326"/>
      <circ-port height="8" pin="430,280" width="8" x="46" y="176"/>
      <circ-port height="8" pin="750,280" width="8" x="46" y="336"/>
      <circ-port height="8" pin="430,300" width="8" x="46" y="186"/>
      <circ-port height="8" pin="750,300" width="8" x="46" y="346"/>
      <circ-port height="8" pin="430,320" width="8" x="46" y="196"/>
      <circ-port height="8" pin="750,320" width="8" x="46" y="356"/>
      <circ-port height="8" pin="430,340" width="8" x="46" y="206"/>
      <circ-port height="8" pin="750,340" width="8" x="46" y="366"/>
      <circ-port height="8" pin="430,370" width="8" x="46" y="376"/>
      <circ-port height="8" pin="750,370" width="8" x="46" y="536"/>
      <circ-port height="8" pin="430,390" width="8" x="46" y="386"/>
      <circ-port height="8" pin="750,390" width="8" x="46" y="546"/>
      <circ-port height="8" pin="430,410" width="8" x="46" y="396"/>
      <circ-port height="8" pin="750,410" width="8" x="46" y="556"/>
      <circ-port height="8" pin="430,430" width="8" x="46" y="406"/>
      <circ-port height="8" pin="750,430" width="8" x="46" y="566"/>
      <circ-port height="8" pin="430,460" width="8" x="46" y="416"/>
      <circ-port height="8" pin="750,460" width="8" x="46" y="576"/>
      <circ-port height="8" pin="430,480" width="8" x="46" y="426"/>
      <circ-port height="8" pin="750,480" width="8" x="46" y="586"/>
      <circ-port height="8" pin="430,500" width="8" x="46" y="436"/>
      <circ-port height="8" pin="750,500" width="8" x="46" y="596"/>
      <circ-port height="8" pin="430,520" width="8" x="46" y="446"/>
      <circ-port height="8" pin="750,520" width="8" x="46" y="606"/>
      <circ-port height="8" pin="430,550" width="8" x="46" y="456"/>
      <circ-port height="8" pin="750,550" width="8" x="46" y="616"/>
      <circ-port height="8" pin="430,570" width="8" x="46" y="466"/>
      <circ-port height="8" pin="750,570" width="8" x="46" y="626"/>
      <circ-port height="8" pin="430,590" width="8" x="46" y="476"/>
      <circ-port height="8" pin="750,590" width="8" x="46" y="636"/>
      <circ-port height="8" pin="430,610" width="8" x="46" y="486"/>
      <circ-port height="8" pin="750,610" width="8" x="46" y="646"/>
      <circ-port height="8" pin="430,640" width="8" x="46" y="496"/>
      <circ-port height="8" pin="750,640" width="8" x="46" y="656"/>
      <circ-port height="8" pin="430,660" width="8" x="46" y="506"/>
      <circ-port height="8" pin="750,660" width="8" x="46" y="666"/>
      <circ-port height="8" pin="430,680" width="8" x="46" y="516"/>
      <circ-port height="8" pin="750,680" width="8" x="46" y="676"/>
      <circ-port height="8" pin="430,700" width="8" x="46" y="526"/>
      <circ-port height="8" pin="750,700" width="8" x="46" y="686"/>
      <circ-port height="8" pin="430,730" width="8" x="46" y="696"/>
      <circ-port height="10" pin="1170,700" width="10" x="95" y="355"/>
      <circ-port height="10" pin="1170,720" width="10" x="95" y="365"/>
      <circ-port height="10" pin="1170,740" width="10" x="95" y="375"/>
      <circ-port height="10" pin="1170,760" width="10" x="95" y="385"/>
      <circ-port height="8" pin="570,900" width="8" x="56" y="706"/>
      <circ-port height="8" pin="590,900" width="8" x="66" y="706"/>
      <circ-port height="8" pin="610,900" width="8" x="76" y="706"/>
      <circ-port height="8" pin="630,900" width="8" x="86" y="706"/>
      <circ-anchor facing="east" height="6" width="6" x="97" y="357"/>
    </appear>
    <wire from="(760,200)" to="(760,210)"/>
    <wire from="(430,500)" to="(490,500)"/>
    <wire from="(770,210)" to="(820,210)"/>
    <wire from="(450,210)" to="(500,210)"/>
    <wire from="(630,540)" to="(630,860)"/>
    <wire from="(440,200)" to="(440,210)"/>
    <wire from="(1000,410)" to="(1000,860)"/>
    <wire from="(950,540)" to="(950,860)"/>
    <wire from="(750,500)" to="(810,500)"/>
    <wire from="(450,210)" to="(450,230)"/>
    <wire from="(750,280)" to="(790,280)"/>
    <wire from="(780,220)" to="(780,250)"/>
    <wire from="(460,220)" to="(460,250)"/>
    <wire from="(430,280)" to="(470,280)"/>
    <wire from="(770,210)" to="(770,230)"/>
    <wire from="(570,880)" to="(1060,880)"/>
    <wire from="(430,610)" to="(460,610)"/>
    <wire from="(470,410)" to="(500,410)"/>
    <wire from="(1160,720)" to="(1170,720)"/>
    <wire from="(750,610)" to="(780,610)"/>
    <wire from="(550,490)" to="(580,490)"/>
    <wire from="(790,410)" to="(820,410)"/>
    <wire from="(870,490)" to="(900,490)"/>
    <wire from="(800,240)" to="(800,300)"/>
    <wire from="(430,390)" to="(440,390)"/>
    <wire from="(750,700)" to="(820,700)"/>
    <wire from="(490,610)" to="(500,610)"/>
    <wire from="(1140,760)" to="(1170,760)"/>
    <wire from="(470,230)" to="(470,280)"/>
    <wire from="(810,610)" to="(820,610)"/>
    <wire from="(480,240)" to="(480,300)"/>
    <wire from="(430,700)" to="(500,700)"/>
    <wire from="(690,740)" to="(1020,740)"/>
    <wire from="(750,390)" to="(760,390)"/>
    <wire from="(790,230)" to="(790,280)"/>
    <wire from="(490,250)" to="(490,320)"/>
    <wire from="(440,560)" to="(500,560)"/>
    <wire from="(750,480)" to="(800,480)"/>
    <wire from="(1150,720)" to="(1150,740)"/>
    <wire from="(430,480)" to="(480,480)"/>
    <wire from="(810,250)" to="(810,320)"/>
    <wire from="(760,560)" to="(820,560)"/>
    <wire from="(780,40)" to="(820,40)"/>
    <wire from="(500,260)" to="(500,340)"/>
    <wire from="(1060,870)" to="(1060,880)"/>
    <wire from="(820,260)" to="(820,340)"/>
    <wire from="(460,40)" to="(500,40)"/>
    <wire from="(800,240)" to="(820,240)"/>
    <wire from="(630,180)" to="(630,350)"/>
    <wire from="(950,180)" to="(950,350)"/>
    <wire from="(750,590)" to="(770,590)"/>
    <wire from="(430,590)" to="(450,590)"/>
    <wire from="(520,590)" to="(550,590)"/>
    <wire from="(480,240)" to="(500,240)"/>
    <wire from="(840,590)" to="(870,590)"/>
    <wire from="(750,190)" to="(820,190)"/>
    <wire from="(430,730)" to="(570,730)"/>
    <wire from="(540,850)" to="(620,850)"/>
    <wire from="(890,870)" to="(1030,870)"/>
    <wire from="(1010,780)" to="(1020,780)"/>
    <wire from="(430,190)" to="(500,190)"/>
    <wire from="(860,850)" to="(940,850)"/>
    <wire from="(760,380)" to="(760,390)"/>
    <wire from="(890,730)" to="(890,870)"/>
    <wire from="(430,680)" to="(490,680)"/>
    <wire from="(590,530)" to="(590,540)"/>
    <wire from="(520,50)" to="(580,50)"/>
    <wire from="(910,530)" to="(910,540)"/>
    <wire from="(770,390)" to="(820,390)"/>
    <wire from="(840,50)" to="(900,50)"/>
    <wire from="(840,450)" to="(900,450)"/>
    <wire from="(450,390)" to="(500,390)"/>
    <wire from="(440,380)" to="(440,390)"/>
    <wire from="(520,450)" to="(580,450)"/>
    <wire from="(750,680)" to="(810,680)"/>
    <wire from="(520,630)" to="(560,630)"/>
    <wire from="(780,400)" to="(780,430)"/>
    <wire from="(450,390)" to="(450,410)"/>
    <wire from="(750,460)" to="(790,460)"/>
    <wire from="(840,630)" to="(880,630)"/>
    <wire from="(610,870)" to="(610,900)"/>
    <wire from="(460,400)" to="(460,430)"/>
    <wire from="(430,460)" to="(470,460)"/>
    <wire from="(770,390)" to="(770,410)"/>
    <wire from="(570,180)" to="(570,540)"/>
    <wire from="(890,540)" to="(910,540)"/>
    <wire from="(880,530)" to="(900,530)"/>
    <wire from="(430,70)" to="(460,70)"/>
    <wire from="(570,540)" to="(590,540)"/>
    <wire from="(560,530)" to="(580,530)"/>
    <wire from="(470,590)" to="(500,590)"/>
    <wire from="(890,180)" to="(890,540)"/>
    <wire from="(680,820)" to="(1020,820)"/>
    <wire from="(1140,720)" to="(1150,720)"/>
    <wire from="(750,70)" to="(780,70)"/>
    <wire from="(880,530)" to="(880,630)"/>
    <wire from="(560,530)" to="(560,630)"/>
    <wire from="(790,590)" to="(820,590)"/>
    <wire from="(800,420)" to="(800,480)"/>
    <wire from="(430,570)" to="(440,570)"/>
    <wire from="(750,160)" to="(820,160)"/>
    <wire from="(490,70)" to="(500,70)"/>
    <wire from="(1140,700)" to="(1170,700)"/>
    <wire from="(470,410)" to="(470,460)"/>
    <wire from="(690,50)" to="(690,740)"/>
    <wire from="(540,340)" to="(620,340)"/>
    <wire from="(990,410)" to="(1000,410)"/>
    <wire from="(810,70)" to="(820,70)"/>
    <wire from="(480,420)" to="(480,480)"/>
    <wire from="(910,170)" to="(920,170)"/>
    <wire from="(670,410)" to="(680,410)"/>
    <wire from="(430,160)" to="(500,160)"/>
    <wire from="(750,570)" to="(760,570)"/>
    <wire from="(860,340)" to="(940,340)"/>
    <wire from="(1140,710)" to="(1160,710)"/>
    <wire from="(790,410)" to="(790,460)"/>
    <wire from="(590,170)" to="(600,170)"/>
    <wire from="(490,430)" to="(490,500)"/>
    <wire from="(440,20)" to="(500,20)"/>
    <wire from="(750,660)" to="(800,660)"/>
    <wire from="(430,660)" to="(480,660)"/>
    <wire from="(570,730)" to="(890,730)"/>
    <wire from="(810,430)" to="(810,500)"/>
    <wire from="(760,20)" to="(820,20)"/>
    <wire from="(1140,730)" to="(1140,760)"/>
    <wire from="(780,220)" to="(820,220)"/>
    <wire from="(1010,50)" to="(1010,780)"/>
    <wire from="(500,440)" to="(500,520)"/>
    <wire from="(1030,860)" to="(1030,870)"/>
    <wire from="(820,440)" to="(820,520)"/>
    <wire from="(570,880)" to="(570,900)"/>
    <wire from="(620,850)" to="(620,870)"/>
    <wire from="(460,220)" to="(500,220)"/>
    <wire from="(800,420)" to="(820,420)"/>
    <wire from="(630,860)" to="(630,900)"/>
    <wire from="(990,50)" to="(1010,50)"/>
    <wire from="(1000,860)" to="(1020,860)"/>
    <wire from="(670,50)" to="(690,50)"/>
    <wire from="(750,50)" to="(770,50)"/>
    <wire from="(1110,740)" to="(1120,740)"/>
    <wire from="(870,490)" to="(870,590)"/>
    <wire from="(430,50)" to="(450,50)"/>
    <wire from="(480,420)" to="(500,420)"/>
    <wire from="(550,490)" to="(550,590)"/>
    <wire from="(750,370)" to="(820,370)"/>
    <wire from="(860,340)" to="(860,850)"/>
    <wire from="(890,540)" to="(890,730)"/>
    <wire from="(540,340)" to="(540,850)"/>
    <wire from="(570,540)" to="(570,730)"/>
    <wire from="(430,370)" to="(500,370)"/>
    <wire from="(760,560)" to="(760,570)"/>
    <wire from="(430,140)" to="(490,140)"/>
    <wire from="(1070,870)" to="(1070,890)"/>
    <wire from="(770,570)" to="(820,570)"/>
    <wire from="(450,570)" to="(500,570)"/>
    <wire from="(440,560)" to="(440,570)"/>
    <wire from="(750,140)" to="(810,140)"/>
    <wire from="(780,580)" to="(780,610)"/>
    <wire from="(750,640)" to="(790,640)"/>
    <wire from="(450,570)" to="(450,590)"/>
    <wire from="(460,580)" to="(460,610)"/>
    <wire from="(430,640)" to="(470,640)"/>
    <wire from="(770,570)" to="(770,590)"/>
    <wire from="(430,250)" to="(460,250)"/>
    <wire from="(470,50)" to="(500,50)"/>
    <wire from="(750,250)" to="(780,250)"/>
    <wire from="(790,50)" to="(820,50)"/>
    <wire from="(550,130)" to="(580,130)"/>
    <wire from="(870,130)" to="(900,130)"/>
    <wire from="(800,600)" to="(800,660)"/>
    <wire from="(430,30)" to="(440,30)"/>
    <wire from="(750,340)" to="(820,340)"/>
    <wire from="(490,250)" to="(500,250)"/>
    <wire from="(470,590)" to="(470,640)"/>
    <wire from="(940,540)" to="(940,850)"/>
    <wire from="(810,250)" to="(820,250)"/>
    <wire from="(480,600)" to="(480,660)"/>
    <wire from="(430,340)" to="(500,340)"/>
    <wire from="(750,30)" to="(760,30)"/>
    <wire from="(1150,740)" to="(1170,740)"/>
    <wire from="(790,590)" to="(790,640)"/>
    <wire from="(620,540)" to="(620,850)"/>
    <wire from="(490,610)" to="(490,680)"/>
    <wire from="(440,200)" to="(500,200)"/>
    <wire from="(750,120)" to="(800,120)"/>
    <wire from="(430,120)" to="(480,120)"/>
    <wire from="(810,610)" to="(810,680)"/>
    <wire from="(760,200)" to="(820,200)"/>
    <wire from="(850,860)" to="(950,860)"/>
    <wire from="(780,400)" to="(820,400)"/>
    <wire from="(530,860)" to="(630,860)"/>
    <wire from="(500,620)" to="(500,700)"/>
    <wire from="(820,620)" to="(820,700)"/>
    <wire from="(460,400)" to="(500,400)"/>
    <wire from="(800,600)" to="(820,600)"/>
    <wire from="(520,230)" to="(550,230)"/>
    <wire from="(750,230)" to="(770,230)"/>
    <wire from="(430,230)" to="(450,230)"/>
    <wire from="(480,600)" to="(500,600)"/>
    <wire from="(840,230)" to="(870,230)"/>
    <wire from="(630,860)" to="(850,860)"/>
    <wire from="(750,550)" to="(820,550)"/>
    <wire from="(850,350)" to="(850,860)"/>
    <wire from="(530,350)" to="(530,860)"/>
    <wire from="(430,550)" to="(500,550)"/>
    <wire from="(760,20)" to="(760,30)"/>
    <wire from="(430,320)" to="(490,320)"/>
    <wire from="(590,890)" to="(590,900)"/>
    <wire from="(590,170)" to="(590,180)"/>
    <wire from="(520,90)" to="(580,90)"/>
    <wire from="(770,30)" to="(820,30)"/>
    <wire from="(910,170)" to="(910,180)"/>
    <wire from="(450,30)" to="(500,30)"/>
    <wire from="(840,90)" to="(900,90)"/>
    <wire from="(840,410)" to="(900,410)"/>
    <wire from="(440,20)" to="(440,30)"/>
    <wire from="(520,410)" to="(580,410)"/>
    <wire from="(750,320)" to="(810,320)"/>
    <wire from="(520,270)" to="(560,270)"/>
    <wire from="(850,350)" to="(950,350)"/>
    <wire from="(450,30)" to="(450,50)"/>
    <wire from="(750,100)" to="(790,100)"/>
    <wire from="(840,270)" to="(880,270)"/>
    <wire from="(530,350)" to="(630,350)"/>
    <wire from="(780,40)" to="(780,70)"/>
    <wire from="(460,40)" to="(460,70)"/>
    <wire from="(430,100)" to="(470,100)"/>
    <wire from="(770,30)" to="(770,50)"/>
    <wire from="(890,180)" to="(910,180)"/>
    <wire from="(880,170)" to="(900,170)"/>
    <wire from="(430,430)" to="(460,430)"/>
    <wire from="(570,180)" to="(590,180)"/>
    <wire from="(560,170)" to="(580,170)"/>
    <wire from="(470,230)" to="(500,230)"/>
    <wire from="(750,430)" to="(780,430)"/>
    <wire from="(880,170)" to="(880,270)"/>
    <wire from="(590,890)" to="(1070,890)"/>
    <wire from="(620,180)" to="(620,340)"/>
    <wire from="(560,170)" to="(560,270)"/>
    <wire from="(790,230)" to="(820,230)"/>
    <wire from="(940,180)" to="(940,340)"/>
    <wire from="(800,60)" to="(800,120)"/>
    <wire from="(430,210)" to="(440,210)"/>
    <wire from="(750,520)" to="(820,520)"/>
    <wire from="(490,430)" to="(500,430)"/>
    <wire from="(470,50)" to="(470,100)"/>
    <wire from="(910,530)" to="(920,530)"/>
    <wire from="(790,50)" to="(790,100)"/>
    <wire from="(810,430)" to="(820,430)"/>
    <wire from="(480,60)" to="(480,120)"/>
    <wire from="(430,520)" to="(500,520)"/>
    <wire from="(750,210)" to="(760,210)"/>
    <wire from="(590,530)" to="(600,530)"/>
    <wire from="(610,870)" to="(620,870)"/>
    <wire from="(490,70)" to="(490,140)"/>
    <wire from="(440,380)" to="(500,380)"/>
    <wire from="(750,300)" to="(800,300)"/>
    <wire from="(430,300)" to="(480,300)"/>
    <wire from="(810,70)" to="(810,140)"/>
    <wire from="(760,380)" to="(820,380)"/>
    <wire from="(680,410)" to="(680,820)"/>
    <wire from="(780,580)" to="(820,580)"/>
    <wire from="(500,80)" to="(500,160)"/>
    <wire from="(620,850)" to="(860,850)"/>
    <wire from="(1160,710)" to="(1160,720)"/>
    <wire from="(820,80)" to="(820,160)"/>
    <wire from="(460,580)" to="(500,580)"/>
    <wire from="(800,60)" to="(820,60)"/>
    <wire from="(1030,860)" to="(1040,860)"/>
    <wire from="(750,410)" to="(770,410)"/>
    <wire from="(870,130)" to="(870,230)"/>
    <wire from="(430,410)" to="(450,410)"/>
    <wire from="(480,60)" to="(500,60)"/>
    <wire from="(550,130)" to="(550,230)"/>
    <wire from="(750,10)" to="(820,10)"/>
    <wire from="(430,10)" to="(500,10)"/>
    <comp lib="0" loc="(520,590)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,250)" name="Pin">
      <a name="label" val="D11"/>
    </comp>
    <comp lib="0" loc="(590,900)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(990,50)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,340)" name="Pin">
      <a name="label" val="D31"/>
    </comp>
    <comp lib="0" loc="(1170,720)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(430,480)" name="Pin">
      <a name="label" val="D37"/>
    </comp>
    <comp lib="0" loc="(430,280)" name="Pin">
      <a name="label" val="D12"/>
    </comp>
    <comp lib="0" loc="(750,640)" name="Pin">
      <a name="label" val="D60"/>
    </comp>
    <comp loc="(970,370)" name="Four_to_1_Mux_4_Bit">
      <a name="facing" val="north"/>
      <a name="label" val="MUX4"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(520,630)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,160)" name="Pin">
      <a name="label" val="D23"/>
    </comp>
    <comp lib="0" loc="(900,130)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,500)" name="Pin">
      <a name="label" val="D38"/>
    </comp>
    <comp lib="0" loc="(520,230)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(900,450)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,520)" name="Pin">
      <a name="label" val="D39"/>
    </comp>
    <comp loc="(1090,700)" name="Four_to_1_Mux_4_Bit">
      <a name="facing" val="north"/>
      <a name="label" val="MUX5"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(750,280)" name="Pin">
      <a name="label" val="D28"/>
    </comp>
    <comp lib="0" loc="(430,300)" name="Pin">
      <a name="label" val="D13"/>
    </comp>
    <comp lib="0" loc="(900,410)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(750,500)" name="Pin">
      <a name="label" val="D54"/>
    </comp>
    <comp lib="0" loc="(1020,740)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(750,230)" name="Pin">
      <a name="label" val="D26"/>
    </comp>
    <comp lib="0" loc="(1170,740)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(900,530)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(750,610)" name="Pin">
      <a name="label" val="D59"/>
    </comp>
    <comp lib="0" loc="(750,210)" name="Pin">
      <a name="label" val="D25"/>
    </comp>
    <comp lib="0" loc="(750,10)" name="Pin">
      <a name="label" val="D16"/>
    </comp>
    <comp lib="0" loc="(750,320)" name="Pin">
      <a name="label" val="D30"/>
    </comp>
    <comp lib="0" loc="(750,370)" name="Pin">
      <a name="label" val="D48"/>
    </comp>
    <comp lib="0" loc="(520,90)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,390)" name="Pin">
      <a name="label" val="D33"/>
    </comp>
    <comp lib="0" loc="(670,50)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,190)" name="Pin">
      <a name="label" val="D24"/>
    </comp>
    <comp lib="0" loc="(750,480)" name="Pin">
      <a name="label" val="D53"/>
    </comp>
    <comp lib="0" loc="(430,100)" name="Pin">
      <a name="label" val="D4"/>
    </comp>
    <comp lib="0" loc="(750,460)" name="Pin">
      <a name="label" val="D52"/>
    </comp>
    <comp lib="0" loc="(630,900)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(430,460)" name="Pin">
      <a name="label" val="D36"/>
    </comp>
    <comp lib="0" loc="(750,590)" name="Pin">
      <a name="label" val="D58"/>
    </comp>
    <comp lib="0" loc="(1020,780)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(610,900)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(750,570)" name="Pin">
      <a name="label" val="D57"/>
    </comp>
    <comp lib="0" loc="(1020,860)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(750,430)" name="Pin">
      <a name="label" val="D51"/>
    </comp>
    <comp lib="0" loc="(430,120)" name="Pin">
      <a name="label" val="D5"/>
    </comp>
    <comp lib="0" loc="(1020,820)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1110,740)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,680)" name="Pin">
      <a name="label" val="D62"/>
    </comp>
    <comp lib="0" loc="(750,250)" name="Pin">
      <a name="label" val="D27"/>
    </comp>
    <comp lib="0" loc="(750,50)" name="Pin">
      <a name="label" val="D18"/>
    </comp>
    <comp loc="(650,370)" name="Four_to_1_Mux_4_Bit">
      <a name="facing" val="north"/>
      <a name="label" val="MUX3"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(750,70)" name="Pin">
      <a name="label" val="D19"/>
    </comp>
    <comp lib="0" loc="(430,230)" name="Pin">
      <a name="label" val="D10"/>
    </comp>
    <comp lib="0" loc="(750,550)" name="Pin">
      <a name="label" val="D56"/>
    </comp>
    <comp lib="0" loc="(580,530)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(840,90)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,70)" name="Pin">
      <a name="label" val="D3"/>
    </comp>
    <comp lib="0" loc="(670,410)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(840,270)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(900,170)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,660)" name="Pin">
      <a name="label" val="D45"/>
    </comp>
    <comp lib="0" loc="(520,450)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(1170,760)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(430,30)" name="Pin">
      <a name="label" val="D1"/>
    </comp>
    <comp lib="0" loc="(430,370)" name="Pin">
      <a name="label" val="D32"/>
    </comp>
    <comp lib="0" loc="(580,410)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(840,590)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,430)" name="Pin">
      <a name="label" val="D35"/>
    </comp>
    <comp lib="0" loc="(430,140)" name="Pin">
      <a name="label" val="D6"/>
    </comp>
    <comp lib="0" loc="(750,300)" name="Pin">
      <a name="label" val="D29"/>
    </comp>
    <comp lib="0" loc="(840,230)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,700)" name="Pin">
      <a name="label" val="D47"/>
    </comp>
    <comp lib="0" loc="(430,320)" name="Pin">
      <a name="label" val="D14"/>
    </comp>
    <comp lib="0" loc="(520,270)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,390)" name="Pin">
      <a name="label" val="D49"/>
    </comp>
    <comp lib="0" loc="(900,90)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,50)" name="Pin">
      <a name="label" val="D2"/>
    </comp>
    <comp lib="0" loc="(430,550)" name="Pin">
      <a name="label" val="D40"/>
    </comp>
    <comp lib="0" loc="(430,410)" name="Pin">
      <a name="label" val="D34"/>
    </comp>
    <comp lib="0" loc="(750,140)" name="Pin">
      <a name="label" val="D22"/>
    </comp>
    <comp lib="0" loc="(750,120)" name="Pin">
      <a name="label" val="D21"/>
    </comp>
    <comp lib="0" loc="(430,10)" name="Pin">
      <a name="label" val="D0"/>
    </comp>
    <comp lib="0" loc="(1120,740)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(580,450)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,640)" name="Pin">
      <a name="label" val="D44"/>
    </comp>
    <comp lib="0" loc="(750,100)" name="Pin">
      <a name="label" val="D20"/>
    </comp>
    <comp lib="0" loc="(430,680)" name="Pin">
      <a name="label" val="D46"/>
    </comp>
    <comp lib="0" loc="(520,50)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(430,340)" name="Pin">
      <a name="label" val="D15"/>
    </comp>
    <comp lib="0" loc="(430,160)" name="Pin">
      <a name="label" val="D7"/>
    </comp>
    <comp lib="0" loc="(430,590)" name="Pin">
      <a name="label" val="D42"/>
    </comp>
    <comp lib="0" loc="(430,570)" name="Pin">
      <a name="label" val="D41"/>
    </comp>
    <comp lib="0" loc="(430,210)" name="Pin">
      <a name="label" val="D9"/>
    </comp>
    <comp lib="0" loc="(430,190)" name="Pin">
      <a name="label" val="D8"/>
    </comp>
    <comp lib="0" loc="(430,730)" name="Pin">
      <a name="label" val="ENABLE"/>
    </comp>
    <comp lib="0" loc="(900,50)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,610)" name="Pin">
      <a name="label" val="D43"/>
    </comp>
    <comp lib="0" loc="(900,490)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(520,410)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(840,630)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(570,900)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(580,490)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(840,50)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,660)" name="Pin">
      <a name="label" val="D61"/>
    </comp>
    <comp lib="0" loc="(990,410)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(840,410)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(840,450)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(750,410)" name="Pin">
      <a name="label" val="D50"/>
    </comp>
    <comp lib="0" loc="(750,700)" name="Pin">
      <a name="label" val="D63"/>
    </comp>
    <comp lib="0" loc="(750,30)" name="Pin">
      <a name="label" val="D17"/>
    </comp>
    <comp lib="0" loc="(1170,700)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(750,520)" name="Pin">
      <a name="label" val="D55"/>
    </comp>
    <comp loc="(970,10)" name="Four_to_1_Mux_4_Bit">
      <a name="facing" val="north"/>
      <a name="label" val="MUX2"/>
    </comp>
    <comp loc="(650,10)" name="Four_to_1_Mux_4_Bit">
      <a name="facing" val="north"/>
      <a name="label" val="MUX1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(580,170)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(580,130)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(580,90)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(580,50)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
  </circuit>
  <circuit name="One_Bit_Register">
    <a name="circuit" val="One_Bit_Register"/>
    <a name="clabel" val="REG"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 8"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(320,50)" to="(320,120)"/>
    <wire from="(210,90)" to="(210,100)"/>
    <wire from="(210,140)" to="(210,150)"/>
    <wire from="(140,50)" to="(320,50)"/>
    <wire from="(320,130)" to="(320,140)"/>
    <wire from="(100,130)" to="(150,130)"/>
    <wire from="(270,130)" to="(270,150)"/>
    <wire from="(290,90)" to="(290,110)"/>
    <wire from="(100,110)" to="(100,130)"/>
    <wire from="(100,90)" to="(100,110)"/>
    <wire from="(140,50)" to="(140,70)"/>
    <wire from="(120,170)" to="(150,170)"/>
    <wire from="(270,130)" to="(280,130)"/>
    <wire from="(320,120)" to="(330,120)"/>
    <wire from="(310,130)" to="(320,130)"/>
    <wire from="(320,140)" to="(330,140)"/>
    <wire from="(270,120)" to="(280,120)"/>
    <wire from="(310,120)" to="(320,120)"/>
    <wire from="(280,90)" to="(290,90)"/>
    <wire from="(140,70)" to="(150,70)"/>
    <wire from="(140,110)" to="(150,110)"/>
    <wire from="(200,90)" to="(210,90)"/>
    <wire from="(210,100)" to="(220,100)"/>
    <wire from="(200,150)" to="(210,150)"/>
    <wire from="(210,140)" to="(220,140)"/>
    <wire from="(100,110)" to="(110,110)"/>
    <comp lib="1" loc="(140,110)" name="NOT Gate"/>
    <comp lib="0" loc="(330,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="NOT_Q"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(270,120)" name="OR Gate"/>
    <comp lib="1" loc="(200,150)" name="AND Gate"/>
    <comp lib="0" loc="(280,90)" name="Pin">
      <a name="label" val="CLR"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="1" loc="(200,90)" name="AND Gate"/>
    <comp lib="0" loc="(120,170)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(100,90)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="LOAD"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(270,150)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(310,120)" name="D_Type_Flip_Flop_Rising_Edge"/>
    <comp lib="0" loc="(330,120)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_Register">
    <a name="circuit" val="Four_Bit_Register"/>
    <a name="clabel" val="REG"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(400,260)" to="(400,270)"/>
    <wire from="(470,190)" to="(470,200)"/>
    <wire from="(470,150)" to="(470,160)"/>
    <wire from="(470,210)" to="(470,220)"/>
    <wire from="(470,250)" to="(470,260)"/>
    <wire from="(470,30)" to="(470,40)"/>
    <wire from="(470,70)" to="(470,80)"/>
    <wire from="(470,90)" to="(470,100)"/>
    <wire from="(470,130)" to="(470,140)"/>
    <wire from="(500,260)" to="(500,270)"/>
    <wire from="(440,230)" to="(440,260)"/>
    <wire from="(400,260)" to="(440,260)"/>
    <wire from="(430,240)" to="(460,240)"/>
    <wire from="(430,180)" to="(460,180)"/>
    <wire from="(430,120)" to="(460,120)"/>
    <wire from="(430,60)" to="(460,60)"/>
    <wire from="(470,140)" to="(500,140)"/>
    <wire from="(470,200)" to="(500,200)"/>
    <wire from="(470,260)" to="(500,260)"/>
    <wire from="(470,80)" to="(500,80)"/>
    <wire from="(440,230)" to="(460,230)"/>
    <wire from="(440,170)" to="(460,170)"/>
    <wire from="(440,110)" to="(460,110)"/>
    <wire from="(440,50)" to="(460,50)"/>
    <wire from="(450,210)" to="(470,210)"/>
    <wire from="(450,90)" to="(470,90)"/>
    <wire from="(450,150)" to="(470,150)"/>
    <wire from="(450,30)" to="(470,30)"/>
    <wire from="(490,50)" to="(510,50)"/>
    <wire from="(490,110)" to="(510,110)"/>
    <wire from="(490,170)" to="(510,170)"/>
    <wire from="(490,230)" to="(510,230)"/>
    <wire from="(450,30)" to="(450,90)"/>
    <wire from="(450,90)" to="(450,150)"/>
    <wire from="(450,150)" to="(450,210)"/>
    <wire from="(450,210)" to="(450,270)"/>
    <wire from="(440,170)" to="(440,230)"/>
    <wire from="(440,110)" to="(440,170)"/>
    <wire from="(440,50)" to="(440,110)"/>
    <wire from="(500,200)" to="(500,260)"/>
    <wire from="(500,80)" to="(500,140)"/>
    <wire from="(500,140)" to="(500,200)"/>
    <comp lib="0" loc="(450,270)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="LOAD"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(490,170)" name="One_Bit_Register">
      <a name="label" val="L_1_Bit_Register_3"/>
    </comp>
    <comp loc="(490,50)" name="One_Bit_Register">
      <a name="label" val="L_1_Bit_Register_1"/>
    </comp>
    <comp lib="0" loc="(510,230)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(490,230)" name="One_Bit_Register">
      <a name="label" val="L_1_Bit_Register_4"/>
    </comp>
    <comp lib="0" loc="(430,120)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(510,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(500,270)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(430,240)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(430,60)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(430,180)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(510,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(400,270)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(490,110)" name="One_Bit_Register">
      <a name="label" val="L_1_Bit_Register_2"/>
    </comp>
    <comp lib="0" loc="(510,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_Buffered_Register_74LS173">
    <a name="circuit" val="Four_Bit_Buffered_Register_74LS173"/>
    <a name="clabel" val="REG"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M71,51 Q75,61 79,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="50" stroke="#000000" stroke-width="2" width="50" x="50" y="50"/>
      <circ-port height="8" pin="390,140" width="8" x="46" y="56"/>
      <circ-port height="8" pin="390,160" width="8" x="46" y="66"/>
      <circ-port height="8" pin="390,180" width="8" x="46" y="76"/>
      <circ-port height="8" pin="390,200" width="8" x="46" y="86"/>
      <circ-port height="10" pin="670,140" width="10" x="95" y="55"/>
      <circ-port height="10" pin="670,160" width="10" x="95" y="65"/>
      <circ-port height="10" pin="670,180" width="10" x="95" y="75"/>
      <circ-port height="10" pin="670,200" width="10" x="95" y="85"/>
      <circ-port height="8" pin="470,210" width="8" x="56" y="96"/>
      <circ-port height="8" pin="490,210" width="8" x="66" y="96"/>
      <circ-port height="8" pin="510,210" width="8" x="76" y="96"/>
      <circ-port height="8" pin="560,210" width="8" x="86" y="96"/>
      <circ-anchor facing="east" height="6" width="6" x="97" y="57"/>
    </appear>
    <wire from="(660,150)" to="(660,160)"/>
    <wire from="(580,120)" to="(580,130)"/>
    <wire from="(420,170)" to="(480,170)"/>
    <wire from="(600,160)" to="(650,160)"/>
    <wire from="(520,140)" to="(570,140)"/>
    <wire from="(520,160)" to="(570,160)"/>
    <wire from="(520,170)" to="(570,170)"/>
    <wire from="(520,150)" to="(570,150)"/>
    <wire from="(400,150)" to="(400,160)"/>
    <wire from="(600,150)" to="(660,150)"/>
    <wire from="(490,200)" to="(490,210)"/>
    <wire from="(490,180)" to="(490,190)"/>
    <wire from="(600,170)" to="(640,170)"/>
    <wire from="(560,120)" to="(560,210)"/>
    <wire from="(410,160)" to="(410,180)"/>
    <wire from="(500,180)" to="(500,200)"/>
    <wire from="(470,190)" to="(470,210)"/>
    <wire from="(640,170)" to="(640,200)"/>
    <wire from="(420,170)" to="(420,200)"/>
    <wire from="(510,180)" to="(510,210)"/>
    <wire from="(650,160)" to="(650,180)"/>
    <wire from="(390,140)" to="(480,140)"/>
    <wire from="(560,120)" to="(580,120)"/>
    <wire from="(390,200)" to="(420,200)"/>
    <wire from="(650,180)" to="(670,180)"/>
    <wire from="(390,180)" to="(410,180)"/>
    <wire from="(640,200)" to="(670,200)"/>
    <wire from="(470,190)" to="(490,190)"/>
    <wire from="(490,200)" to="(500,200)"/>
    <wire from="(600,140)" to="(670,140)"/>
    <wire from="(390,160)" to="(400,160)"/>
    <wire from="(400,150)" to="(480,150)"/>
    <wire from="(660,160)" to="(670,160)"/>
    <wire from="(410,160)" to="(480,160)"/>
    <comp lib="0" loc="(390,140)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(510,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(670,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(670,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(390,160)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(490,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="LOAD"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(470,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp lib="0" loc="(670,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(390,200)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp loc="(600,140)" name="Four_Bit_Buffer"/>
    <comp lib="0" loc="(560,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="ENABLE"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(390,180)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp loc="(520,140)" name="Four_Bit_Register"/>
    <comp lib="0" loc="(670,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Eight_Bit_Register">
    <a name="circuit" val="Eight_Bit_Register"/>
    <a name="clabel" val="REGISTER"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(470,330)" to="(470,340)"/>
    <wire from="(470,390)" to="(470,400)"/>
    <wire from="(470,270)" to="(470,280)"/>
    <wire from="(470,450)" to="(470,460)"/>
    <wire from="(470,490)" to="(470,500)"/>
    <wire from="(470,430)" to="(470,440)"/>
    <wire from="(470,370)" to="(470,380)"/>
    <wire from="(470,310)" to="(470,320)"/>
    <wire from="(470,210)" to="(470,220)"/>
    <wire from="(470,250)" to="(470,260)"/>
    <wire from="(470,190)" to="(470,200)"/>
    <wire from="(470,150)" to="(470,160)"/>
    <wire from="(470,90)" to="(470,100)"/>
    <wire from="(470,130)" to="(470,140)"/>
    <wire from="(470,30)" to="(470,40)"/>
    <wire from="(470,70)" to="(470,80)"/>
    <wire from="(430,290)" to="(460,290)"/>
    <wire from="(430,410)" to="(460,410)"/>
    <wire from="(430,230)" to="(460,230)"/>
    <wire from="(430,170)" to="(460,170)"/>
    <wire from="(430,110)" to="(460,110)"/>
    <wire from="(430,50)" to="(460,50)"/>
    <wire from="(430,350)" to="(460,350)"/>
    <wire from="(440,80)" to="(470,80)"/>
    <wire from="(440,140)" to="(470,140)"/>
    <wire from="(430,470)" to="(460,470)"/>
    <wire from="(440,200)" to="(470,200)"/>
    <wire from="(440,260)" to="(470,260)"/>
    <wire from="(440,320)" to="(470,320)"/>
    <wire from="(440,380)" to="(470,380)"/>
    <wire from="(440,440)" to="(470,440)"/>
    <wire from="(440,500)" to="(470,500)"/>
    <wire from="(420,550)" to="(440,550)"/>
    <wire from="(430,470)" to="(430,510)"/>
    <wire from="(490,230)" to="(500,230)"/>
    <wire from="(490,50)" to="(500,50)"/>
    <wire from="(490,110)" to="(500,110)"/>
    <wire from="(490,170)" to="(500,170)"/>
    <wire from="(490,290)" to="(500,290)"/>
    <wire from="(490,350)" to="(500,350)"/>
    <wire from="(490,410)" to="(500,410)"/>
    <wire from="(490,470)" to="(500,470)"/>
    <wire from="(440,500)" to="(440,550)"/>
    <wire from="(450,90)" to="(450,150)"/>
    <wire from="(450,150)" to="(450,210)"/>
    <wire from="(450,30)" to="(450,90)"/>
    <wire from="(450,330)" to="(450,390)"/>
    <wire from="(450,270)" to="(450,330)"/>
    <wire from="(450,210)" to="(450,270)"/>
    <wire from="(440,440)" to="(440,500)"/>
    <wire from="(440,380)" to="(440,440)"/>
    <wire from="(440,80)" to="(440,140)"/>
    <wire from="(430,410)" to="(430,470)"/>
    <wire from="(440,140)" to="(440,200)"/>
    <wire from="(440,200)" to="(440,260)"/>
    <wire from="(440,260)" to="(440,320)"/>
    <wire from="(440,320)" to="(440,380)"/>
    <wire from="(430,350)" to="(430,410)"/>
    <wire from="(430,290)" to="(430,350)"/>
    <wire from="(430,230)" to="(430,290)"/>
    <wire from="(430,170)" to="(430,230)"/>
    <wire from="(430,50)" to="(430,110)"/>
    <wire from="(430,110)" to="(430,170)"/>
    <wire from="(450,390)" to="(450,450)"/>
    <wire from="(450,450)" to="(450,530)"/>
    <wire from="(420,420)" to="(460,420)"/>
    <wire from="(420,180)" to="(460,180)"/>
    <wire from="(420,120)" to="(460,120)"/>
    <wire from="(420,360)" to="(460,360)"/>
    <wire from="(420,60)" to="(460,60)"/>
    <wire from="(420,300)" to="(460,300)"/>
    <wire from="(420,240)" to="(460,240)"/>
    <wire from="(420,480)" to="(460,480)"/>
    <wire from="(420,530)" to="(450,530)"/>
    <wire from="(450,150)" to="(470,150)"/>
    <wire from="(450,330)" to="(470,330)"/>
    <wire from="(450,270)" to="(470,270)"/>
    <wire from="(450,210)" to="(470,210)"/>
    <wire from="(450,90)" to="(470,90)"/>
    <wire from="(450,30)" to="(470,30)"/>
    <wire from="(450,450)" to="(470,450)"/>
    <wire from="(450,390)" to="(470,390)"/>
    <wire from="(420,510)" to="(430,510)"/>
    <comp lib="0" loc="(420,240)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(420,300)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(420,360)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(420,550)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(420,180)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(420,530)" name="Pin">
      <a name="label" val="LOAD"/>
    </comp>
    <comp lib="0" loc="(500,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(490,290)" name="One_Bit_Register"/>
    <comp lib="0" loc="(500,290)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(500,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(490,350)" name="One_Bit_Register"/>
    <comp lib="0" loc="(500,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,510)" name="Pin">
      <a name="label" val="CLR"/>
    </comp>
    <comp loc="(490,50)" name="One_Bit_Register"/>
    <comp lib="0" loc="(500,50)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,120)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(500,230)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,480)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(420,420)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp loc="(490,170)" name="One_Bit_Register"/>
    <comp lib="0" loc="(500,410)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(420,60)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp loc="(490,230)" name="One_Bit_Register"/>
    <comp loc="(490,410)" name="One_Bit_Register"/>
    <comp loc="(490,470)" name="One_Bit_Register"/>
    <comp lib="0" loc="(500,470)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(490,110)" name="One_Bit_Register"/>
  </circuit>
  <circuit name="Eight_Bit_Buffered_Register_2x74LS173">
    <a name="circuit" val="Eight_Bit_Buffered_Register_2x74LS173"/>
    <a name="clabel" val="REG"/>
    <a name="clabelup" val="west"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(540,120)" to="(540,130)"/>
    <wire from="(630,150)" to="(630,160)"/>
    <wire from="(430,210)" to="(480,210)"/>
    <wire from="(350,230)" to="(400,230)"/>
    <wire from="(360,140)" to="(480,140)"/>
    <wire from="(360,140)" to="(360,150)"/>
    <wire from="(370,150)" to="(370,170)"/>
    <wire from="(610,170)" to="(610,200)"/>
    <wire from="(380,160)" to="(480,160)"/>
    <wire from="(380,160)" to="(380,190)"/>
    <wire from="(620,160)" to="(620,180)"/>
    <wire from="(600,180)" to="(600,220)"/>
    <wire from="(350,190)" to="(380,190)"/>
    <wire from="(520,120)" to="(520,280)"/>
    <wire from="(510,160)" to="(530,160)"/>
    <wire from="(510,180)" to="(530,180)"/>
    <wire from="(510,140)" to="(530,140)"/>
    <wire from="(510,200)" to="(530,200)"/>
    <wire from="(390,170)" to="(390,210)"/>
    <wire from="(470,230)" to="(480,230)"/>
    <wire from="(570,280)" to="(640,280)"/>
    <wire from="(560,150)" to="(630,150)"/>
    <wire from="(350,150)" to="(360,150)"/>
    <wire from="(580,200)" to="(580,260)"/>
    <wire from="(400,180)" to="(400,230)"/>
    <wire from="(470,230)" to="(470,280)"/>
    <wire from="(400,180)" to="(480,180)"/>
    <wire from="(560,140)" to="(640,140)"/>
    <wire from="(410,190)" to="(410,250)"/>
    <wire from="(590,190)" to="(590,240)"/>
    <wire from="(350,130)" to="(480,130)"/>
    <wire from="(420,200)" to="(420,270)"/>
    <wire from="(430,210)" to="(430,280)"/>
    <wire from="(350,250)" to="(410,250)"/>
    <wire from="(420,200)" to="(480,200)"/>
    <wire from="(560,170)" to="(610,170)"/>
    <wire from="(590,240)" to="(640,240)"/>
    <wire from="(580,260)" to="(640,260)"/>
    <wire from="(560,160)" to="(620,160)"/>
    <wire from="(570,210)" to="(570,280)"/>
    <wire from="(560,180)" to="(600,180)"/>
    <wire from="(600,220)" to="(640,220)"/>
    <wire from="(370,150)" to="(480,150)"/>
    <wire from="(350,210)" to="(390,210)"/>
    <wire from="(390,170)" to="(480,170)"/>
    <wire from="(560,200)" to="(580,200)"/>
    <wire from="(450,220)" to="(480,220)"/>
    <wire from="(620,180)" to="(640,180)"/>
    <wire from="(350,170)" to="(370,170)"/>
    <wire from="(560,190)" to="(590,190)"/>
    <wire from="(510,190)" to="(530,190)"/>
    <wire from="(510,150)" to="(530,150)"/>
    <wire from="(510,170)" to="(530,170)"/>
    <wire from="(510,210)" to="(530,210)"/>
    <wire from="(520,120)" to="(540,120)"/>
    <wire from="(610,200)" to="(640,200)"/>
    <wire from="(450,220)" to="(450,280)"/>
    <wire from="(410,190)" to="(480,190)"/>
    <wire from="(560,210)" to="(570,210)"/>
    <wire from="(630,160)" to="(640,160)"/>
    <wire from="(350,270)" to="(420,270)"/>
    <comp lib="0" loc="(470,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(350,270)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(640,140)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(520,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="ENABLE"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(350,170)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp loc="(560,140)" name="Eight_Bit_Buffer"/>
    <comp lib="0" loc="(350,210)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(640,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(450,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="LOAD"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(640,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(640,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(640,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(640,200)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(640,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(430,280)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp loc="(510,140)" name="Eight_Bit_Register"/>
    <comp lib="0" loc="(350,190)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(350,150)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(640,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(350,250)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp lib="0" loc="(350,230)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(350,130)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
  </circuit>
  <circuit name="Two_to_4_Line_Decoder_1_Bit">
    <a name="circuit" val="Two_to_4_Line_Decoder_1_Bit"/>
    <a name="clabel" val="2 TO 4"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 8"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(160,220)" to="(280,220)"/>
    <wire from="(230,240)" to="(230,320)"/>
    <wire from="(260,200)" to="(300,200)"/>
    <wire from="(220,260)" to="(220,420)"/>
    <wire from="(300,200)" to="(300,360)"/>
    <wire from="(220,260)" to="(310,260)"/>
    <wire from="(220,420)" to="(310,420)"/>
    <wire from="(280,280)" to="(310,280)"/>
    <wire from="(280,220)" to="(310,220)"/>
    <wire from="(280,340)" to="(310,340)"/>
    <wire from="(280,400)" to="(310,400)"/>
    <wire from="(290,300)" to="(310,300)"/>
    <wire from="(290,240)" to="(310,240)"/>
    <wire from="(270,240)" to="(290,240)"/>
    <wire from="(210,240)" to="(230,240)"/>
    <wire from="(300,360)" to="(310,360)"/>
    <wire from="(300,200)" to="(310,200)"/>
    <wire from="(360,400)" to="(370,400)"/>
    <wire from="(360,340)" to="(370,340)"/>
    <wire from="(360,280)" to="(370,280)"/>
    <wire from="(360,220)" to="(370,220)"/>
    <wire from="(230,320)" to="(310,320)"/>
    <wire from="(230,380)" to="(310,380)"/>
    <wire from="(210,200)" to="(220,200)"/>
    <wire from="(230,240)" to="(240,240)"/>
    <wire from="(220,200)" to="(230,200)"/>
    <wire from="(290,240)" to="(290,300)"/>
    <wire from="(280,220)" to="(280,280)"/>
    <wire from="(280,280)" to="(280,340)"/>
    <wire from="(280,340)" to="(280,400)"/>
    <wire from="(220,200)" to="(220,260)"/>
    <wire from="(230,320)" to="(230,380)"/>
    <comp lib="1" loc="(260,200)" name="NOT Gate"/>
    <comp lib="1" loc="(270,240)" name="NOT Gate"/>
    <comp lib="1" loc="(360,340)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(160,220)" name="Pin">
      <a name="label" val="ENABLE"/>
    </comp>
    <comp lib="1" loc="(360,400)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(210,200)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(370,280)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="D1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,340)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="D2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(360,280)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
    <comp lib="0" loc="(370,400)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="D3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="D0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(210,240)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="1" loc="(360,220)" name="AND Gate">
      <a name="inputs" val="3"/>
    </comp>
  </circuit>
  <circuit name="Four_to_16_Line_Decoder_1_Bit">
    <a name="circuit" val="Four_to_16_Line_Decoder_1_Bit"/>
    <a name="clabel" val="4-to-16 Line Decoder"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(230,160)" to="(290,160)"/>
    <wire from="(240,190)" to="(240,520)"/>
    <wire from="(240,520)" to="(290,520)"/>
    <wire from="(190,180)" to="(190,270)"/>
    <wire from="(250,400)" to="(290,400)"/>
    <wire from="(330,240)" to="(370,240)"/>
    <wire from="(330,360)" to="(370,360)"/>
    <wire from="(330,480)" to="(370,480)"/>
    <wire from="(330,600)" to="(370,600)"/>
    <wire from="(170,210)" to="(270,210)"/>
    <wire from="(250,180)" to="(250,400)"/>
    <wire from="(230,170)" to="(260,170)"/>
    <wire from="(260,280)" to="(290,280)"/>
    <wire from="(320,160)" to="(350,160)"/>
    <wire from="(320,280)" to="(350,280)"/>
    <wire from="(320,400)" to="(350,400)"/>
    <wire from="(320,520)" to="(350,520)"/>
    <wire from="(320,170)" to="(340,170)"/>
    <wire from="(320,290)" to="(340,290)"/>
    <wire from="(350,180)" to="(370,180)"/>
    <wire from="(350,300)" to="(370,300)"/>
    <wire from="(350,420)" to="(370,420)"/>
    <wire from="(350,540)" to="(370,540)"/>
    <wire from="(320,410)" to="(340,410)"/>
    <wire from="(320,530)" to="(340,530)"/>
    <wire from="(260,170)" to="(260,280)"/>
    <wire from="(230,180)" to="(250,180)"/>
    <wire from="(320,180)" to="(330,180)"/>
    <wire from="(320,300)" to="(330,300)"/>
    <wire from="(320,420)" to="(330,420)"/>
    <wire from="(320,540)" to="(330,540)"/>
    <wire from="(170,250)" to="(180,250)"/>
    <wire from="(190,170)" to="(200,170)"/>
    <wire from="(230,190)" to="(240,190)"/>
    <wire from="(270,150)" to="(270,210)"/>
    <wire from="(270,210)" to="(270,270)"/>
    <wire from="(280,290)" to="(280,410)"/>
    <wire from="(280,410)" to="(280,530)"/>
    <wire from="(320,150)" to="(370,150)"/>
    <wire from="(320,270)" to="(370,270)"/>
    <wire from="(320,390)" to="(370,390)"/>
    <wire from="(320,510)" to="(370,510)"/>
    <wire from="(170,230)" to="(280,230)"/>
    <wire from="(350,160)" to="(350,180)"/>
    <wire from="(350,280)" to="(350,300)"/>
    <wire from="(350,400)" to="(350,420)"/>
    <wire from="(350,520)" to="(350,540)"/>
    <wire from="(180,160)" to="(180,250)"/>
    <wire from="(190,140)" to="(190,170)"/>
    <wire from="(340,210)" to="(370,210)"/>
    <wire from="(340,330)" to="(370,330)"/>
    <wire from="(340,450)" to="(370,450)"/>
    <wire from="(340,570)" to="(370,570)"/>
    <wire from="(270,150)" to="(290,150)"/>
    <wire from="(270,270)" to="(290,270)"/>
    <wire from="(270,390)" to="(290,390)"/>
    <wire from="(270,510)" to="(290,510)"/>
    <wire from="(340,170)" to="(340,210)"/>
    <wire from="(340,290)" to="(340,330)"/>
    <wire from="(340,410)" to="(340,450)"/>
    <wire from="(340,530)" to="(340,570)"/>
    <wire from="(180,160)" to="(200,160)"/>
    <wire from="(170,270)" to="(190,270)"/>
    <wire from="(280,170)" to="(290,170)"/>
    <wire from="(280,290)" to="(290,290)"/>
    <wire from="(280,410)" to="(290,410)"/>
    <wire from="(280,530)" to="(290,530)"/>
    <wire from="(190,180)" to="(200,180)"/>
    <wire from="(280,170)" to="(280,230)"/>
    <wire from="(280,230)" to="(280,290)"/>
    <wire from="(330,180)" to="(330,240)"/>
    <wire from="(330,300)" to="(330,360)"/>
    <wire from="(330,420)" to="(330,480)"/>
    <wire from="(330,540)" to="(330,600)"/>
    <wire from="(270,270)" to="(270,390)"/>
    <wire from="(270,390)" to="(270,510)"/>
    <comp lib="0" loc="(370,240)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,180)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(320,150)" name="Two_to_4_Line_Decoder_1_Bit"/>
    <comp lib="0" loc="(370,150)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(190,140)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="ENABLE"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(230,160)" name="Two_to_4_Line_Decoder_1_Bit"/>
    <comp lib="0" loc="(170,250)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(170,230)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(170,270)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(170,210)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(370,300)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q5"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(320,270)" name="Two_to_4_Line_Decoder_1_Bit"/>
    <comp lib="0" loc="(370,360)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q7"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,330)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q6"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,270)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q4"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,480)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q11"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,390)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q8"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,420)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q9"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,450)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q10"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(320,390)" name="Two_to_4_Line_Decoder_1_Bit"/>
    <comp loc="(320,510)" name="Two_to_4_Line_Decoder_1_Bit"/>
    <comp lib="0" loc="(370,600)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q15"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,510)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q12"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,570)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q14"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(370,540)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="Q13"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="RAM64_16_word_4_Bit_74189">
    <a name="circuit" val="RAM64_16_word_4_Bit_74189"/>
    <a name="clabel" val="RAM"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <path d="M61,51 Q65,61 69,51" fill="none" stroke="#808080" stroke-width="2"/>
      <rect fill="none" height="90" stroke="#000000" stroke-width="2" width="30" x="50" y="50"/>
      <circ-port height="8" pin="80,270" width="8" x="46" y="86"/>
      <circ-port height="8" pin="80,250" width="8" x="46" y="76"/>
      <circ-port height="8" pin="80,230" width="8" x="46" y="66"/>
      <circ-port height="8" pin="80,210" width="8" x="46" y="56"/>
      <circ-port height="8" pin="80,400" width="8" x="46" y="126"/>
      <circ-port height="8" pin="80,380" width="8" x="46" y="116"/>
      <circ-port height="8" pin="80,360" width="8" x="46" y="106"/>
      <circ-port height="8" pin="80,340" width="8" x="46" y="96"/>
      <circ-port height="10" pin="1310,450" width="10" x="75" y="105"/>
      <circ-port height="10" pin="1310,430" width="10" x="75" y="95"/>
      <circ-port height="10" pin="1310,410" width="10" x="75" y="85"/>
      <circ-port height="10" pin="1310,390" width="10" x="75" y="75"/>
      <circ-port height="8" pin="390,180" width="8" x="56" y="46"/>
      <circ-port height="8" pin="420,180" width="8" x="66" y="46"/>
      <circ-anchor facing="east" height="6" width="6" x="77" y="107"/>
    </appear>
    <wire from="(970,490)" to="(1020,490)"/>
    <wire from="(620,380)" to="(620,390)"/>
    <wire from="(1020,380)" to="(1020,390)"/>
    <wire from="(570,490)" to="(620,490)"/>
    <wire from="(1290,410)" to="(1290,430)"/>
    <wire from="(90,250)" to="(90,260)"/>
    <wire from="(410,710)" to="(580,710)"/>
    <wire from="(580,710)" to="(810,710)"/>
    <wire from="(460,380)" to="(460,400)"/>
    <wire from="(1140,410)" to="(1200,410)"/>
    <wire from="(380,330)" to="(380,410)"/>
    <wire from="(220,200)" to="(390,200)"/>
    <wire from="(360,510)" to="(470,510)"/>
    <wire from="(420,180)" to="(420,210)"/>
    <wire from="(860,380)" to="(860,400)"/>
    <wire from="(810,710)" to="(980,710)"/>
    <wire from="(530,170)" to="(1150,170)"/>
    <wire from="(550,130)" to="(550,280)"/>
    <wire from="(640,480)" to="(640,520)"/>
    <wire from="(410,280)" to="(410,380)"/>
    <wire from="(390,500)" to="(390,600)"/>
    <wire from="(80,340)" to="(110,340)"/>
    <wire from="(1040,480)" to="(1040,520)"/>
    <wire from="(790,500)" to="(790,600)"/>
    <wire from="(810,280)" to="(810,380)"/>
    <wire from="(780,310)" to="(870,310)"/>
    <wire from="(540,150)" to="(540,380)"/>
    <wire from="(1210,730)" to="(1210,790)"/>
    <wire from="(930,680)" to="(1190,680)"/>
    <wire from="(310,400)" to="(310,640)"/>
    <wire from="(270,440)" to="(270,680)"/>
    <wire from="(790,500)" to="(860,500)"/>
    <wire from="(240,330)" to="(380,330)"/>
    <wire from="(980,380)" to="(990,380)"/>
    <wire from="(390,500)" to="(460,500)"/>
    <wire from="(240,340)" to="(370,340)"/>
    <wire from="(1180,250)" to="(1200,250)"/>
    <wire from="(100,250)" to="(360,250)"/>
    <wire from="(580,380)" to="(590,380)"/>
    <wire from="(530,170)" to="(530,480)"/>
    <wire from="(700,160)" to="(1160,160)"/>
    <wire from="(550,130)" to="(1200,130)"/>
    <wire from="(520,190)" to="(520,580)"/>
    <wire from="(1090,730)" to="(1200,730)"/>
    <wire from="(800,290)" to="(850,290)"/>
    <wire from="(1250,740)" to="(1250,760)"/>
    <wire from="(850,580)" to="(850,590)"/>
    <wire from="(400,290)" to="(450,290)"/>
    <wire from="(240,350)" to="(360,350)"/>
    <wire from="(90,380)" to="(90,390)"/>
    <wire from="(450,580)" to="(450,590)"/>
    <wire from="(240,360)" to="(350,360)"/>
    <wire from="(870,280)" to="(870,310)"/>
    <wire from="(130,750)" to="(1260,750)"/>
    <wire from="(100,230)" to="(100,250)"/>
    <wire from="(470,280)" to="(470,310)"/>
    <wire from="(350,520)" to="(640,520)"/>
    <wire from="(1030,280)" to="(1030,300)"/>
    <wire from="(630,280)" to="(630,300)"/>
    <wire from="(240,370)" to="(340,370)"/>
    <wire from="(1190,120)" to="(1190,170)"/>
    <wire from="(720,610)" to="(870,610)"/>
    <wire from="(900,580)" to="(920,580)"/>
    <wire from="(240,380)" to="(330,380)"/>
    <wire from="(970,490)" to="(970,590)"/>
    <wire from="(960,400)" to="(960,500)"/>
    <wire from="(950,660)" to="(1170,660)"/>
    <wire from="(500,580)" to="(520,580)"/>
    <wire from="(730,520)" to="(730,680)"/>
    <wire from="(560,400)" to="(560,500)"/>
    <wire from="(570,490)" to="(570,590)"/>
    <wire from="(140,380)" to="(160,380)"/>
    <wire from="(280,670)" to="(740,670)"/>
    <wire from="(410,580)" to="(420,580)"/>
    <wire from="(320,630)" to="(780,630)"/>
    <wire from="(560,400)" to="(630,400)"/>
    <wire from="(240,390)" to="(320,390)"/>
    <wire from="(240,320)" to="(640,320)"/>
    <wire from="(960,400)" to="(1030,400)"/>
    <wire from="(80,250)" to="(90,250)"/>
    <wire from="(240,400)" to="(310,400)"/>
    <wire from="(770,320)" to="(1040,320)"/>
    <wire from="(810,580)" to="(820,580)"/>
    <wire from="(1180,140)" to="(1180,250)"/>
    <wire from="(970,590)" to="(1020,590)"/>
    <wire from="(900,280)" to="(950,280)"/>
    <wire from="(620,480)" to="(620,490)"/>
    <wire from="(1020,480)" to="(1020,490)"/>
    <wire from="(570,590)" to="(620,590)"/>
    <wire from="(930,480)" to="(930,680)"/>
    <wire from="(240,410)" to="(300,410)"/>
    <wire from="(110,240)" to="(360,240)"/>
    <wire from="(1070,380)" to="(1110,380)"/>
    <wire from="(500,280)" to="(550,280)"/>
    <wire from="(580,580)" to="(580,710)"/>
    <wire from="(780,310)" to="(780,630)"/>
    <wire from="(240,420)" to="(290,420)"/>
    <wire from="(1280,420)" to="(1280,450)"/>
    <wire from="(980,580)" to="(980,710)"/>
    <wire from="(670,380)" to="(710,380)"/>
    <wire from="(460,480)" to="(460,500)"/>
    <wire from="(370,340)" to="(370,420)"/>
    <wire from="(100,360)" to="(100,380)"/>
    <wire from="(400,210)" to="(400,290)"/>
    <wire from="(520,190)" to="(1130,190)"/>
    <wire from="(860,480)" to="(860,500)"/>
    <wire from="(240,310)" to="(470,310)"/>
    <wire from="(240,430)" to="(280,430)"/>
    <wire from="(720,610)" to="(720,690)"/>
    <wire from="(800,210)" to="(800,290)"/>
    <wire from="(110,210)" to="(110,240)"/>
    <wire from="(1150,290)" to="(1200,290)"/>
    <wire from="(240,440)" to="(270,440)"/>
    <wire from="(640,580)" to="(640,620)"/>
    <wire from="(390,200)" to="(390,300)"/>
    <wire from="(410,380)" to="(410,480)"/>
    <wire from="(400,290)" to="(400,390)"/>
    <wire from="(380,410)" to="(470,410)"/>
    <wire from="(1190,610)" to="(1200,610)"/>
    <wire from="(800,290)" to="(800,390)"/>
    <wire from="(790,200)" to="(790,300)"/>
    <wire from="(810,380)" to="(810,480)"/>
    <wire from="(390,600)" to="(390,710)"/>
    <wire from="(400,210)" to="(420,210)"/>
    <wire from="(1170,150)" to="(1170,210)"/>
    <wire from="(240,450)" to="(260,450)"/>
    <wire from="(260,450)" to="(260,690)"/>
    <wire from="(300,410)" to="(300,650)"/>
    <wire from="(690,180)" to="(1140,180)"/>
    <wire from="(340,370)" to="(340,610)"/>
    <wire from="(240,460)" to="(250,460)"/>
    <wire from="(790,600)" to="(860,600)"/>
    <wire from="(80,380)" to="(90,380)"/>
    <wire from="(1040,580)" to="(1040,620)"/>
    <wire from="(980,480)" to="(990,480)"/>
    <wire from="(390,600)" to="(460,600)"/>
    <wire from="(710,620)" to="(1040,620)"/>
    <wire from="(580,480)" to="(590,480)"/>
    <wire from="(800,390)" to="(850,390)"/>
    <wire from="(1170,450)" to="(1170,660)"/>
    <wire from="(90,390)" to="(150,390)"/>
    <wire from="(1090,580)" to="(1090,730)"/>
    <wire from="(850,280)" to="(850,290)"/>
    <wire from="(400,390)" to="(450,390)"/>
    <wire from="(1270,390)" to="(1310,390)"/>
    <wire from="(450,280)" to="(450,290)"/>
    <wire from="(390,200)" to="(560,200)"/>
    <wire from="(560,200)" to="(790,200)"/>
    <wire from="(570,210)" to="(800,210)"/>
    <wire from="(870,380)" to="(870,410)"/>
    <wire from="(470,380)" to="(470,410)"/>
    <wire from="(800,210)" to="(970,210)"/>
    <wire from="(790,200)" to="(960,200)"/>
    <wire from="(1030,380)" to="(1030,400)"/>
    <wire from="(630,380)" to="(630,400)"/>
    <wire from="(110,340)" to="(110,370)"/>
    <wire from="(1120,490)" to="(1200,490)"/>
    <wire from="(1270,420)" to="(1280,420)"/>
    <wire from="(980,280)" to="(980,380)"/>
    <wire from="(960,500)" to="(960,600)"/>
    <wire from="(560,500)" to="(560,600)"/>
    <wire from="(580,280)" to="(580,380)"/>
    <wire from="(110,370)" to="(130,370)"/>
    <wire from="(410,280)" to="(420,280)"/>
    <wire from="(270,680)" to="(730,680)"/>
    <wire from="(310,640)" to="(770,640)"/>
    <wire from="(1270,400)" to="(1300,400)"/>
    <wire from="(560,500)" to="(630,500)"/>
    <wire from="(960,500)" to="(1030,500)"/>
    <wire from="(740,510)" to="(870,510)"/>
    <wire from="(1140,180)" to="(1140,410)"/>
    <wire from="(370,420)" to="(640,420)"/>
    <wire from="(810,280)" to="(820,280)"/>
    <wire from="(1230,740)" to="(1230,780)"/>
    <wire from="(1270,410)" to="(1290,410)"/>
    <wire from="(1290,430)" to="(1310,430)"/>
    <wire from="(970,290)" to="(1020,290)"/>
    <wire from="(620,580)" to="(620,590)"/>
    <wire from="(1020,580)" to="(1020,590)"/>
    <wire from="(570,290)" to="(620,290)"/>
    <wire from="(1160,330)" to="(1200,330)"/>
    <wire from="(770,320)" to="(770,640)"/>
    <wire from="(160,780)" to="(1230,780)"/>
    <wire from="(460,580)" to="(460,600)"/>
    <wire from="(860,580)" to="(860,600)"/>
    <wire from="(1260,740)" to="(1260,750)"/>
    <wire from="(710,620)" to="(710,700)"/>
    <wire from="(640,280)" to="(640,320)"/>
    <wire from="(390,300)" to="(390,400)"/>
    <wire from="(410,480)" to="(410,580)"/>
    <wire from="(400,390)" to="(400,490)"/>
    <wire from="(1210,730)" to="(1220,730)"/>
    <wire from="(500,480)" to="(530,480)"/>
    <wire from="(1130,190)" to="(1130,370)"/>
    <wire from="(920,690)" to="(1200,690)"/>
    <wire from="(670,580)" to="(690,580)"/>
    <wire from="(1040,280)" to="(1040,320)"/>
    <wire from="(380,280)" to="(410,280)"/>
    <wire from="(800,390)" to="(800,490)"/>
    <wire from="(790,300)" to="(790,400)"/>
    <wire from="(810,480)" to="(810,580)"/>
    <wire from="(940,380)" to="(940,670)"/>
    <wire from="(80,230)" to="(100,230)"/>
    <wire from="(900,480)" to="(930,480)"/>
    <wire from="(290,420)" to="(290,660)"/>
    <wire from="(250,460)" to="(250,700)"/>
    <wire from="(150,390)" to="(160,390)"/>
    <wire from="(330,380)" to="(330,620)"/>
    <wire from="(790,300)" to="(860,300)"/>
    <wire from="(980,580)" to="(990,580)"/>
    <wire from="(1100,480)" to="(1100,650)"/>
    <wire from="(760,410)" to="(760,650)"/>
    <wire from="(390,300)" to="(460,300)"/>
    <wire from="(1070,580)" to="(1090,580)"/>
    <wire from="(1180,530)" to="(1200,530)"/>
    <wire from="(580,580)" to="(590,580)"/>
    <wire from="(730,520)" to="(1040,520)"/>
    <wire from="(800,490)" to="(850,490)"/>
    <wire from="(670,280)" to="(720,280)"/>
    <wire from="(850,380)" to="(850,390)"/>
    <wire from="(400,490)" to="(450,490)"/>
    <wire from="(390,790)" to="(1210,790)"/>
    <wire from="(450,380)" to="(450,390)"/>
    <wire from="(870,480)" to="(870,510)"/>
    <wire from="(570,210)" to="(570,290)"/>
    <wire from="(470,480)" to="(470,510)"/>
    <wire from="(1030,480)" to="(1030,500)"/>
    <wire from="(630,480)" to="(630,500)"/>
    <wire from="(970,210)" to="(970,290)"/>
    <wire from="(1070,280)" to="(1120,280)"/>
    <wire from="(1180,530)" to="(1180,670)"/>
    <wire from="(940,670)" to="(1180,670)"/>
    <wire from="(360,350)" to="(360,510)"/>
    <wire from="(960,200)" to="(960,300)"/>
    <wire from="(970,290)" to="(970,390)"/>
    <wire from="(980,380)" to="(980,480)"/>
    <wire from="(1130,370)" to="(1200,370)"/>
    <wire from="(570,290)" to="(570,390)"/>
    <wire from="(560,200)" to="(560,300)"/>
    <wire from="(580,380)" to="(580,480)"/>
    <wire from="(80,360)" to="(100,360)"/>
    <wire from="(1110,380)" to="(1110,570)"/>
    <wire from="(410,380)" to="(420,380)"/>
    <wire from="(260,690)" to="(720,690)"/>
    <wire from="(300,650)" to="(760,650)"/>
    <wire from="(560,600)" to="(630,600)"/>
    <wire from="(960,600)" to="(1030,600)"/>
    <wire from="(1110,570)" to="(1200,570)"/>
    <wire from="(810,380)" to="(820,380)"/>
    <wire from="(340,610)" to="(470,610)"/>
    <wire from="(150,770)" to="(1240,770)"/>
    <wire from="(160,400)" to="(160,780)"/>
    <wire from="(150,390)" to="(150,770)"/>
    <wire from="(140,380)" to="(140,760)"/>
    <wire from="(130,370)" to="(130,750)"/>
    <wire from="(970,390)" to="(1020,390)"/>
    <wire from="(540,150)" to="(1170,150)"/>
    <wire from="(620,280)" to="(620,290)"/>
    <wire from="(1020,280)" to="(1020,290)"/>
    <wire from="(570,390)" to="(620,390)"/>
    <wire from="(1240,740)" to="(1240,770)"/>
    <wire from="(460,280)" to="(460,300)"/>
    <wire from="(760,410)" to="(870,410)"/>
    <wire from="(860,280)" to="(860,300)"/>
    <wire from="(1300,400)" to="(1300,410)"/>
    <wire from="(130,370)" to="(160,370)"/>
    <wire from="(710,140)" to="(1180,140)"/>
    <wire from="(640,380)" to="(640,420)"/>
    <wire from="(390,400)" to="(390,500)"/>
    <wire from="(400,490)" to="(400,590)"/>
    <wire from="(1190,170)" to="(1200,170)"/>
    <wire from="(1040,380)" to="(1040,420)"/>
    <wire from="(800,490)" to="(800,590)"/>
    <wire from="(790,400)" to="(790,500)"/>
    <wire from="(80,270)" to="(360,270)"/>
    <wire from="(720,120)" to="(720,280)"/>
    <wire from="(80,400)" to="(160,400)"/>
    <wire from="(950,280)" to="(950,660)"/>
    <wire from="(1170,450)" to="(1200,450)"/>
    <wire from="(1170,210)" to="(1200,210)"/>
    <wire from="(280,430)" to="(280,670)"/>
    <wire from="(320,390)" to="(320,630)"/>
    <wire from="(790,400)" to="(860,400)"/>
    <wire from="(980,280)" to="(990,280)"/>
    <wire from="(710,140)" to="(710,380)"/>
    <wire from="(750,420)" to="(750,660)"/>
    <wire from="(1160,160)" to="(1160,330)"/>
    <wire from="(390,400)" to="(460,400)"/>
    <wire from="(580,280)" to="(590,280)"/>
    <wire from="(800,590)" to="(850,590)"/>
    <wire from="(1120,280)" to="(1120,490)"/>
    <wire from="(410,580)" to="(410,710)"/>
    <wire from="(850,480)" to="(850,490)"/>
    <wire from="(400,590)" to="(450,590)"/>
    <wire from="(700,160)" to="(700,480)"/>
    <wire from="(450,480)" to="(450,490)"/>
    <wire from="(1100,650)" to="(1200,650)"/>
    <wire from="(810,580)" to="(810,710)"/>
    <wire from="(330,620)" to="(640,620)"/>
    <wire from="(390,180)" to="(390,200)"/>
    <wire from="(870,580)" to="(870,610)"/>
    <wire from="(1190,610)" to="(1190,680)"/>
    <wire from="(750,420)" to="(1040,420)"/>
    <wire from="(900,380)" to="(940,380)"/>
    <wire from="(470,580)" to="(470,610)"/>
    <wire from="(100,380)" to="(140,380)"/>
    <wire from="(690,180)" to="(690,580)"/>
    <wire from="(1030,580)" to="(1030,600)"/>
    <wire from="(630,580)" to="(630,600)"/>
    <wire from="(500,380)" to="(540,380)"/>
    <wire from="(920,580)" to="(920,690)"/>
    <wire from="(720,120)" to="(1190,120)"/>
    <wire from="(80,210)" to="(110,210)"/>
    <wire from="(350,360)" to="(350,520)"/>
    <wire from="(1300,410)" to="(1310,410)"/>
    <wire from="(220,200)" to="(220,300)"/>
    <wire from="(670,480)" to="(700,480)"/>
    <wire from="(1150,170)" to="(1150,290)"/>
    <wire from="(140,760)" to="(1250,760)"/>
    <wire from="(960,300)" to="(960,400)"/>
    <wire from="(970,390)" to="(970,490)"/>
    <wire from="(980,480)" to="(980,580)"/>
    <wire from="(740,510)" to="(740,670)"/>
    <wire from="(570,390)" to="(570,490)"/>
    <wire from="(560,300)" to="(560,400)"/>
    <wire from="(420,210)" to="(570,210)"/>
    <wire from="(580,480)" to="(580,580)"/>
    <wire from="(410,480)" to="(420,480)"/>
    <wire from="(290,660)" to="(750,660)"/>
    <wire from="(250,700)" to="(710,700)"/>
    <wire from="(1280,450)" to="(1310,450)"/>
    <wire from="(1070,480)" to="(1100,480)"/>
    <wire from="(560,300)" to="(630,300)"/>
    <wire from="(90,260)" to="(360,260)"/>
    <wire from="(180,410)" to="(190,410)"/>
    <wire from="(960,300)" to="(1030,300)"/>
    <wire from="(390,740)" to="(390,790)"/>
    <wire from="(810,480)" to="(820,480)"/>
    <comp lib="0" loc="(180,410)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(420,380)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(1050,340)" name="Four_Bit_Register">
      <a name="label" val="REG12"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(990,380)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(670,480)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(1070,480)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(880,340)" name="Four_Bit_Register">
      <a name="label" val="REG11"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(500,280)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(990,580)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(650,240)" name="Four_Bit_Register">
      <a name="label" val="REG2"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(500,380)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(380,280)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(480,440)" name="Four_Bit_Register">
      <a name="label" val="REG5"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(670,580)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(590,480)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(900,380)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(590,280)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(820,580)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(670,280)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(880,240)" name="Four_Bit_Register">
      <a name="label" val="REG9"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp loc="(880,440)" name="Four_Bit_Register">
      <a name="label" val="REG13"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(420,480)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(480,240)" name="Four_Bit_Register">
      <a name="label" val="REG1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="1" loc="(390,740)" name="NOT Gate">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(1070,280)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(480,540)" name="Four_Bit_Register">
      <a name="label" val="REG7"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp loc="(1050,240)" name="Four_Bit_Register">
      <a name="label" val="REG10"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(990,480)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(880,540)" name="Four_Bit_Register">
      <a name="label" val="REG15"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(820,480)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(590,580)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(990,280)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1070,580)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(240,310)" name="Four_to_16_Line_Decoder_1_Bit">
      <a name="label" val="DEC1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(390,180)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="WRITE_ENABLE"/>
    </comp>
    <comp lib="0" loc="(820,380)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(500,480)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(590,380)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(500,580)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(480,340)" name="Four_Bit_Register">
      <a name="label" val="REG3"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp loc="(1050,440)" name="Four_Bit_Register">
      <a name="label" val="REG14"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(900,480)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(670,380)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(420,580)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(650,540)" name="Four_Bit_Register">
      <a name="label" val="REG8"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(900,280)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(650,440)" name="Four_Bit_Register">
      <a name="label" val="REG6"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(420,280)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(1050,540)" name="Four_Bit_Register">
      <a name="label" val="REG16"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(820,280)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(420,180)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(190,410)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1070,380)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(650,340)" name="Four_Bit_Register">
      <a name="label" val="REG4"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(900,580)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(1200,370)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,250)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,450)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,210)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,170)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,330)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,130)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,570)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,410)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,530)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,490)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,690)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,730)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,610)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,290)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(1200,650)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(80,270)" name="Pin">
      <a name="label" val="D3"/>
    </comp>
    <comp lib="0" loc="(80,250)" name="Pin">
      <a name="label" val="D2"/>
    </comp>
    <comp lib="0" loc="(80,230)" name="Pin">
      <a name="label" val="D1"/>
    </comp>
    <comp lib="0" loc="(80,210)" name="Pin">
      <a name="label" val="D0"/>
    </comp>
    <comp lib="0" loc="(80,400)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(80,380)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp lib="0" loc="(80,340)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(80,360)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp loc="(1270,390)" name="Sixteen_to_1_Mux_4_Bit">
      <a name="label" val="MUX1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(1310,450)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(1310,410)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(1310,430)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S2"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(1310,390)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="S0"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="A_B_Reg">
    <a name="circuit" val="A_B_Reg"/>
    <a name="clabel" val="REG"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(400,430)" to="(400,500)"/>
    <wire from="(260,490)" to="(320,490)"/>
    <wire from="(300,470)" to="(300,540)"/>
    <wire from="(260,310)" to="(260,380)"/>
    <wire from="(210,320)" to="(270,320)"/>
    <wire from="(330,350)" to="(450,350)"/>
    <wire from="(210,310)" to="(260,310)"/>
    <wire from="(250,300)" to="(250,380)"/>
    <wire from="(260,410)" to="(260,490)"/>
    <wire from="(290,460)" to="(290,540)"/>
    <wire from="(340,370)" to="(450,370)"/>
    <wire from="(240,290)" to="(240,380)"/>
    <wire from="(210,300)" to="(250,300)"/>
    <wire from="(270,480)" to="(310,480)"/>
    <wire from="(310,420)" to="(350,420)"/>
    <wire from="(420,430)" to="(420,520)"/>
    <wire from="(210,290)" to="(240,290)"/>
    <wire from="(240,410)" to="(240,510)"/>
    <wire from="(230,280)" to="(230,380)"/>
    <wire from="(280,470)" to="(300,470)"/>
    <wire from="(330,400)" to="(350,400)"/>
    <wire from="(200,400)" to="(200,440)"/>
    <wire from="(370,430)" to="(370,470)"/>
    <wire from="(220,270)" to="(220,380)"/>
    <wire from="(360,340)" to="(360,380)"/>
    <wire from="(210,280)" to="(230,280)"/>
    <wire from="(320,260)" to="(330,260)"/>
    <wire from="(180,260)" to="(190,260)"/>
    <wire from="(200,400)" to="(210,400)"/>
    <wire from="(210,270)" to="(220,270)"/>
    <wire from="(350,270)" to="(430,270)"/>
    <wire from="(290,410)" to="(290,460)"/>
    <wire from="(370,330)" to="(370,380)"/>
    <wire from="(330,350)" to="(330,400)"/>
    <wire from="(220,530)" to="(360,530)"/>
    <wire from="(380,320)" to="(380,380)"/>
    <wire from="(390,430)" to="(390,490)"/>
    <wire from="(220,410)" to="(220,530)"/>
    <wire from="(290,460)" to="(360,460)"/>
    <wire from="(310,480)" to="(380,480)"/>
    <wire from="(300,470)" to="(370,470)"/>
    <wire from="(360,530)" to="(430,530)"/>
    <wire from="(350,520)" to="(420,520)"/>
    <wire from="(340,510)" to="(410,510)"/>
    <wire from="(330,500)" to="(400,500)"/>
    <wire from="(320,490)" to="(390,490)"/>
    <wire from="(350,280)" to="(420,280)"/>
    <wire from="(390,310)" to="(390,380)"/>
    <wire from="(350,290)" to="(410,290)"/>
    <wire from="(270,410)" to="(270,480)"/>
    <wire from="(200,440)" to="(450,440)"/>
    <wire from="(200,370)" to="(320,370)"/>
    <wire from="(230,520)" to="(350,520)"/>
    <wire from="(350,300)" to="(400,300)"/>
    <wire from="(360,530)" to="(360,540)"/>
    <wire from="(350,520)" to="(350,540)"/>
    <wire from="(340,370)" to="(340,390)"/>
    <wire from="(410,430)" to="(410,510)"/>
    <wire from="(400,300)" to="(400,380)"/>
    <wire from="(250,410)" to="(250,500)"/>
    <wire from="(340,510)" to="(340,540)"/>
    <wire from="(360,430)" to="(360,460)"/>
    <wire from="(410,290)" to="(410,380)"/>
    <wire from="(350,310)" to="(390,310)"/>
    <wire from="(240,510)" to="(340,510)"/>
    <wire from="(430,430)" to="(430,530)"/>
    <wire from="(420,280)" to="(420,380)"/>
    <wire from="(320,410)" to="(350,410)"/>
    <wire from="(350,320)" to="(380,320)"/>
    <wire from="(430,270)" to="(430,380)"/>
    <wire from="(350,330)" to="(370,330)"/>
    <wire from="(290,340)" to="(290,380)"/>
    <wire from="(320,370)" to="(320,410)"/>
    <wire from="(330,500)" to="(330,540)"/>
    <wire from="(230,410)" to="(230,520)"/>
    <wire from="(340,390)" to="(350,390)"/>
    <wire from="(370,560)" to="(380,560)"/>
    <wire from="(210,340)" to="(290,340)"/>
    <wire from="(350,340)" to="(360,340)"/>
    <wire from="(250,500)" to="(330,500)"/>
    <wire from="(280,330)" to="(280,380)"/>
    <wire from="(380,430)" to="(380,480)"/>
    <wire from="(320,490)" to="(320,540)"/>
    <wire from="(280,410)" to="(280,470)"/>
    <wire from="(310,480)" to="(310,540)"/>
    <wire from="(270,320)" to="(270,380)"/>
    <wire from="(210,330)" to="(280,330)"/>
    <comp lib="0" loc="(180,260)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(370,560)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(190,260)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(220,380)" name="Eight_Bit_Buffer">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(200,370)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(450,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="AI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(450,370)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(380,560)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="A0_A7"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp loc="(430,430)" name="Eight_Bit_Buffered_Register_2x74LS173">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(450,440)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="AO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(310,420)" name="Pull Resistor">
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(330,260)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(320,260)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="Instruction_Reg">
    <a name="circuit" val="Instruction_Reg"/>
    <a name="clabel" val="IR"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(340,270)" to="(400,270)"/>
    <wire from="(380,290)" to="(380,360)"/>
    <wire from="(190,420)" to="(440,420)"/>
    <wire from="(190,350)" to="(310,350)"/>
    <wire from="(340,280)" to="(390,280)"/>
    <wire from="(330,350)" to="(330,370)"/>
    <wire from="(390,410)" to="(390,430)"/>
    <wire from="(390,280)" to="(390,360)"/>
    <wire from="(400,270)" to="(400,360)"/>
    <wire from="(340,290)" to="(380,290)"/>
    <wire from="(410,260)" to="(410,360)"/>
    <wire from="(310,390)" to="(340,390)"/>
    <wire from="(340,300)" to="(370,300)"/>
    <wire from="(420,250)" to="(420,360)"/>
    <wire from="(340,310)" to="(360,310)"/>
    <wire from="(310,350)" to="(310,390)"/>
    <wire from="(280,320)" to="(280,360)"/>
    <wire from="(210,460)" to="(420,460)"/>
    <wire from="(410,410)" to="(410,450)"/>
    <wire from="(390,490)" to="(400,490)"/>
    <wire from="(230,390)" to="(230,440)"/>
    <wire from="(330,370)" to="(340,370)"/>
    <wire from="(200,320)" to="(280,320)"/>
    <wire from="(340,320)" to="(350,320)"/>
    <wire from="(270,310)" to="(270,360)"/>
    <wire from="(260,300)" to="(260,360)"/>
    <wire from="(200,310)" to="(270,310)"/>
    <wire from="(350,410)" to="(350,470)"/>
    <wire from="(370,410)" to="(370,470)"/>
    <wire from="(220,450)" to="(410,450)"/>
    <wire from="(250,290)" to="(250,360)"/>
    <wire from="(210,390)" to="(210,460)"/>
    <wire from="(200,300)" to="(260,300)"/>
    <wire from="(320,330)" to="(440,330)"/>
    <wire from="(200,290)" to="(250,290)"/>
    <wire from="(240,280)" to="(240,360)"/>
    <wire from="(230,440)" to="(400,440)"/>
    <wire from="(330,350)" to="(440,350)"/>
    <wire from="(400,410)" to="(400,440)"/>
    <wire from="(230,270)" to="(230,360)"/>
    <wire from="(200,280)" to="(240,280)"/>
    <wire from="(300,400)" to="(340,400)"/>
    <wire from="(200,270)" to="(230,270)"/>
    <wire from="(220,260)" to="(220,360)"/>
    <wire from="(320,380)" to="(340,380)"/>
    <wire from="(240,430)" to="(390,430)"/>
    <wire from="(190,380)" to="(190,420)"/>
    <wire from="(240,390)" to="(240,430)"/>
    <wire from="(210,250)" to="(210,360)"/>
    <wire from="(350,320)" to="(350,360)"/>
    <wire from="(200,260)" to="(220,260)"/>
    <wire from="(310,240)" to="(320,240)"/>
    <wire from="(420,410)" to="(420,460)"/>
    <wire from="(170,240)" to="(180,240)"/>
    <wire from="(190,380)" to="(200,380)"/>
    <wire from="(200,250)" to="(210,250)"/>
    <wire from="(340,250)" to="(420,250)"/>
    <wire from="(320,330)" to="(320,380)"/>
    <wire from="(360,310)" to="(360,360)"/>
    <wire from="(380,410)" to="(380,470)"/>
    <wire from="(360,410)" to="(360,470)"/>
    <wire from="(370,300)" to="(370,360)"/>
    <wire from="(220,390)" to="(220,450)"/>
    <wire from="(340,260)" to="(410,260)"/>
    <comp loc="(420,410)" name="Eight_Bit_Buffered_Register_2x74LS173">
      <a name="facing" val="south"/>
    </comp>
    <comp loc="(210,360)" name="Eight_Bit_Buffer">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(390,490)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(180,240)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(170,240)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(190,350)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(440,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(440,330)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="II"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(400,490)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="IR4_IR7"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(440,420)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="IO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(300,400)" name="Pull Resistor">
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(320,240)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(310,240)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="ALU">
    <a name="circuit" val="ALU"/>
    <a name="clabel" val="ALU"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 16"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(370,400)" to="(430,400)"/>
    <wire from="(630,580)" to="(690,580)"/>
    <wire from="(320,440)" to="(320,450)"/>
    <wire from="(510,550)" to="(510,580)"/>
    <wire from="(580,450)" to="(580,530)"/>
    <wire from="(190,560)" to="(230,560)"/>
    <wire from="(200,340)" to="(200,500)"/>
    <wire from="(240,420)" to="(240,580)"/>
    <wire from="(340,430)" to="(430,430)"/>
    <wire from="(410,360)" to="(410,470)"/>
    <wire from="(410,360)" to="(430,360)"/>
    <wire from="(460,420)" to="(470,420)"/>
    <wire from="(460,380)" to="(470,380)"/>
    <wire from="(500,580)" to="(510,580)"/>
    <wire from="(500,500)" to="(510,500)"/>
    <wire from="(510,550)" to="(520,550)"/>
    <wire from="(200,340)" to="(280,340)"/>
    <wire from="(190,620)" to="(260,620)"/>
    <wire from="(210,360)" to="(280,360)"/>
    <wire from="(610,570)" to="(610,620)"/>
    <wire from="(580,540)" to="(590,540)"/>
    <wire from="(650,540)" to="(650,550)"/>
    <wire from="(390,380)" to="(390,510)"/>
    <wire from="(220,380)" to="(280,380)"/>
    <wire from="(380,390)" to="(430,390)"/>
    <wire from="(230,400)" to="(280,400)"/>
    <wire from="(460,510)" to="(460,520)"/>
    <wire from="(460,590)" to="(460,600)"/>
    <wire from="(370,400)" to="(370,550)"/>
    <wire from="(690,580)" to="(690,610)"/>
    <wire from="(310,360)" to="(410,360)"/>
    <wire from="(240,420)" to="(280,420)"/>
    <wire from="(190,540)" to="(220,540)"/>
    <wire from="(310,370)" to="(400,370)"/>
    <wire from="(210,360)" to="(210,520)"/>
    <wire from="(250,440)" to="(250,600)"/>
    <wire from="(190,370)" to="(280,370)"/>
    <wire from="(190,410)" to="(280,410)"/>
    <wire from="(190,330)" to="(280,330)"/>
    <wire from="(190,450)" to="(280,450)"/>
    <wire from="(250,440)" to="(280,440)"/>
    <wire from="(260,460)" to="(280,460)"/>
    <wire from="(350,420)" to="(350,590)"/>
    <wire from="(460,590)" to="(470,590)"/>
    <wire from="(460,430)" to="(470,430)"/>
    <wire from="(460,390)" to="(470,390)"/>
    <wire from="(460,510)" to="(470,510)"/>
    <wire from="(270,480)" to="(280,480)"/>
    <wire from="(310,440)" to="(320,440)"/>
    <wire from="(310,380)" to="(390,380)"/>
    <wire from="(350,420)" to="(430,420)"/>
    <wire from="(340,610)" to="(420,610)"/>
    <wire from="(600,570)" to="(600,630)"/>
    <wire from="(310,390)" to="(380,390)"/>
    <wire from="(350,590)" to="(420,590)"/>
    <wire from="(310,400)" to="(370,400)"/>
    <wire from="(360,570)" to="(420,570)"/>
    <wire from="(640,620)" to="(640,630)"/>
    <wire from="(630,570)" to="(630,580)"/>
    <wire from="(190,600)" to="(250,600)"/>
    <wire from="(310,410)" to="(360,410)"/>
    <wire from="(370,550)" to="(420,550)"/>
    <wire from="(460,480)" to="(460,490)"/>
    <wire from="(460,560)" to="(460,570)"/>
    <wire from="(200,300)" to="(200,320)"/>
    <wire from="(310,420)" to="(350,420)"/>
    <wire from="(390,380)" to="(430,380)"/>
    <wire from="(380,530)" to="(420,530)"/>
    <wire from="(220,380)" to="(220,540)"/>
    <wire from="(260,460)" to="(260,620)"/>
    <wire from="(390,510)" to="(420,510)"/>
    <wire from="(640,530)" to="(660,530)"/>
    <wire from="(310,430)" to="(340,430)"/>
    <wire from="(400,490)" to="(420,490)"/>
    <wire from="(190,520)" to="(210,520)"/>
    <wire from="(410,470)" to="(420,470)"/>
    <wire from="(460,400)" to="(470,400)"/>
    <wire from="(460,360)" to="(470,360)"/>
    <wire from="(490,350)" to="(500,350)"/>
    <wire from="(510,530)" to="(520,530)"/>
    <wire from="(200,320)" to="(280,320)"/>
    <wire from="(320,450)" to="(580,450)"/>
    <wire from="(650,550)" to="(660,550)"/>
    <wire from="(400,370)" to="(400,490)"/>
    <wire from="(360,410)" to="(430,410)"/>
    <wire from="(640,540)" to="(650,540)"/>
    <wire from="(380,390)" to="(380,530)"/>
    <wire from="(190,580)" to="(240,580)"/>
    <wire from="(510,500)" to="(510,530)"/>
    <wire from="(230,400)" to="(230,560)"/>
    <wire from="(270,480)" to="(270,640)"/>
    <wire from="(400,370)" to="(430,370)"/>
    <wire from="(190,350)" to="(280,350)"/>
    <wire from="(190,470)" to="(280,470)"/>
    <wire from="(190,390)" to="(280,390)"/>
    <wire from="(190,430)" to="(280,430)"/>
    <wire from="(360,410)" to="(360,570)"/>
    <wire from="(610,620)" to="(640,620)"/>
    <wire from="(440,310)" to="(440,350)"/>
    <wire from="(460,370)" to="(470,370)"/>
    <wire from="(460,410)" to="(470,410)"/>
    <wire from="(450,600)" to="(460,600)"/>
    <wire from="(460,490)" to="(470,490)"/>
    <wire from="(450,520)" to="(460,520)"/>
    <wire from="(450,560)" to="(460,560)"/>
    <wire from="(450,480)" to="(460,480)"/>
    <wire from="(340,430)" to="(340,610)"/>
    <wire from="(460,570)" to="(470,570)"/>
    <wire from="(190,640)" to="(270,640)"/>
    <wire from="(190,500)" to="(200,500)"/>
    <wire from="(190,300)" to="(200,300)"/>
    <wire from="(620,570)" to="(620,630)"/>
    <wire from="(550,540)" to="(560,540)"/>
    <wire from="(580,530)" to="(590,530)"/>
    <comp lib="0" loc="(190,350)" name="Pin">
      <a name="label" val="A1"/>
    </comp>
    <comp lib="0" loc="(190,540)" name="Pin">
      <a name="label" val="B2"/>
    </comp>
    <comp lib="0" loc="(190,560)" name="Pin">
      <a name="label" val="B3"/>
    </comp>
    <comp lib="0" loc="(190,300)" name="Pin">
      <a name="label" val="SUB"/>
    </comp>
    <comp lib="0" loc="(190,580)" name="Pin">
      <a name="label" val="B4"/>
    </comp>
    <comp lib="0" loc="(190,640)" name="Pin">
      <a name="label" val="B7"/>
    </comp>
    <comp lib="0" loc="(190,520)" name="Pin">
      <a name="label" val="B1"/>
    </comp>
    <comp lib="0" loc="(190,430)" name="Pin">
      <a name="label" val="A5"/>
    </comp>
    <comp lib="0" loc="(190,390)" name="Pin">
      <a name="label" val="A3"/>
    </comp>
    <comp lib="0" loc="(190,450)" name="Pin">
      <a name="label" val="A6"/>
    </comp>
    <comp lib="0" loc="(190,600)" name="Pin">
      <a name="label" val="B5"/>
    </comp>
    <comp lib="0" loc="(190,330)" name="Pin">
      <a name="label" val="A0"/>
    </comp>
    <comp lib="0" loc="(190,620)" name="Pin">
      <a name="label" val="B6"/>
    </comp>
    <comp lib="0" loc="(190,470)" name="Pin">
      <a name="label" val="A7"/>
    </comp>
    <comp lib="0" loc="(190,500)" name="Pin">
      <a name="label" val="B0"/>
    </comp>
    <comp lib="0" loc="(190,370)" name="Pin">
      <a name="label" val="A2"/>
    </comp>
    <comp loc="(310,360)" name="Eight_Bit_Full_Adder_w_Sub"/>
    <comp lib="0" loc="(190,410)" name="Pin">
      <a name="label" val="A4"/>
    </comp>
    <comp lib="0" loc="(440,310)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="EO"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(460,360)" name="Eight_Bit_Buffer"/>
    <comp lib="0" loc="(500,350)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(490,350)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(620,630)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(690,610)" name="Pull Resistor">
      <a name="facing" val="north"/>
      <a name="pull" val="1"/>
    </comp>
    <comp lib="1" loc="(500,500)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(500,580)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(660,530)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="CF"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(640,630)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="FI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(550,540)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(450,600)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="1" loc="(580,540)" name="NOT Gate">
      <a name="size" val="20"/>
    </comp>
    <comp lib="1" loc="(450,560)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(600,630)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="FLAG_CLR"/>
    </comp>
    <comp lib="1" loc="(450,520)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(660,550)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="ZF"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="1" loc="(450,480)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp loc="(640,530)" name="Four_Bit_Buffered_Register_74LS173"/>
  </circuit>
  <circuit name="Four_Bit_MAR">
    <a name="circuit" val="Four_Bit_MAR"/>
    <a name="clabel" val="MAR"/>
    <a name="clabelup" val="south"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(310,220)" to="(370,220)"/>
    <wire from="(320,270)" to="(370,270)"/>
    <wire from="(320,280)" to="(370,280)"/>
    <wire from="(310,210)" to="(310,220)"/>
    <wire from="(300,380)" to="(300,390)"/>
    <wire from="(310,350)" to="(310,360)"/>
    <wire from="(300,350)" to="(300,370)"/>
    <wire from="(300,220)" to="(300,240)"/>
    <wire from="(320,370)" to="(320,390)"/>
    <wire from="(290,350)" to="(290,380)"/>
    <wire from="(290,230)" to="(290,260)"/>
    <wire from="(330,190)" to="(370,190)"/>
    <wire from="(320,340)" to="(360,340)"/>
    <wire from="(320,180)" to="(320,270)"/>
    <wire from="(360,250)" to="(360,340)"/>
    <wire from="(350,230)" to="(350,330)"/>
    <wire from="(240,240)" to="(270,240)"/>
    <wire from="(340,210)" to="(370,210)"/>
    <wire from="(320,330)" to="(350,330)"/>
    <wire from="(300,370)" to="(320,370)"/>
    <wire from="(310,360)" to="(330,360)"/>
    <wire from="(290,210)" to="(310,210)"/>
    <wire from="(350,230)" to="(370,230)"/>
    <wire from="(320,320)" to="(340,320)"/>
    <wire from="(340,210)" to="(340,320)"/>
    <wire from="(280,350)" to="(280,390)"/>
    <wire from="(420,210)" to="(430,210)"/>
    <wire from="(290,380)" to="(300,380)"/>
    <wire from="(320,310)" to="(330,310)"/>
    <wire from="(290,220)" to="(300,220)"/>
    <wire from="(360,250)" to="(370,250)"/>
    <wire from="(290,200)" to="(370,200)"/>
    <wire from="(290,260)" to="(370,260)"/>
    <wire from="(240,350)" to="(250,350)"/>
    <wire from="(330,190)" to="(330,310)"/>
    <wire from="(300,240)" to="(370,240)"/>
    <comp lib="0" loc="(320,280)" name="Pull Resistor">
      <a name="facing" val="east"/>
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(420,210)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(430,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="A0_A4"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(400,220)" name="Quad_2_to_1_Mux_1_Bit_74LS157"/>
    <comp lib="0" loc="(320,180)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="PROG"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(330,360)" name="Pull Resistor">
      <a name="facing" val="west"/>
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(250,350)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(280,390)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
    </comp>
    <comp loc="(320,310)" name="Four_Bit_Buffered_Register_74LS173"/>
    <comp lib="0" loc="(320,390)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(300,390)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="MI"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(240,350)" name="Pin">
      <a name="width" val="4"/>
      <a name="label" val="BUS"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(270,240)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(240,240)" name="Pin">
      <a name="width" val="4"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
  <circuit name="RAM">
    <a name="circuit" val="RAM"/>
    <a name="clabel" val="RAM"/>
    <a name="clabelup" val="south"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(680,320)" to="(680,330)"/>
    <wire from="(710,320)" to="(710,520)"/>
    <wire from="(610,70)" to="(610,200)"/>
    <wire from="(550,280)" to="(590,280)"/>
    <wire from="(620,230)" to="(660,230)"/>
    <wire from="(520,170)" to="(750,170)"/>
    <wire from="(600,110)" to="(600,200)"/>
    <wire from="(460,420)" to="(460,440)"/>
    <wire from="(550,510)" to="(650,510)"/>
    <wire from="(540,60)" to="(540,90)"/>
    <wire from="(430,350)" to="(670,350)"/>
    <wire from="(700,370)" to="(810,370)"/>
    <wire from="(700,410)" to="(810,410)"/>
    <wire from="(410,260)" to="(450,260)"/>
    <wire from="(390,420)" to="(390,520)"/>
    <wire from="(300,110)" to="(390,110)"/>
    <wire from="(300,110)" to="(300,340)"/>
    <wire from="(540,90)" to="(560,90)"/>
    <wire from="(620,250)" to="(640,250)"/>
    <wire from="(520,100)" to="(550,100)"/>
    <wire from="(400,70)" to="(610,70)"/>
    <wire from="(770,470)" to="(800,470)"/>
    <wire from="(410,240)" to="(430,240)"/>
    <wire from="(340,330)" to="(550,330)"/>
    <wire from="(620,240)" to="(650,240)"/>
    <wire from="(360,310)" to="(570,310)"/>
    <wire from="(320,130)" to="(790,130)"/>
    <wire from="(370,250)" to="(380,250)"/>
    <wire from="(550,490)" to="(680,490)"/>
    <wire from="(370,250)" to="(370,300)"/>
    <wire from="(350,270)" to="(350,320)"/>
    <wire from="(510,210)" to="(590,210)"/>
    <wire from="(660,380)" to="(670,380)"/>
    <wire from="(560,80)" to="(570,80)"/>
    <wire from="(620,260)" to="(630,260)"/>
    <wire from="(420,340)" to="(670,340)"/>
    <wire from="(400,70)" to="(400,200)"/>
    <wire from="(540,190)" to="(730,190)"/>
    <wire from="(740,180)" to="(740,500)"/>
    <wire from="(760,160)" to="(760,480)"/>
    <wire from="(780,140)" to="(780,460)"/>
    <wire from="(800,120)" to="(800,440)"/>
    <wire from="(490,420)" to="(490,430)"/>
    <wire from="(740,500)" to="(800,500)"/>
    <wire from="(630,410)" to="(670,410)"/>
    <wire from="(680,490)" to="(680,520)"/>
    <wire from="(380,420)" to="(380,500)"/>
    <wire from="(300,340)" to="(410,340)"/>
    <wire from="(340,150)" to="(770,150)"/>
    <wire from="(700,340)" to="(810,340)"/>
    <wire from="(700,380)" to="(810,380)"/>
    <wire from="(600,440)" to="(600,520)"/>
    <wire from="(340,280)" to="(380,280)"/>
    <wire from="(340,240)" to="(380,240)"/>
    <wire from="(390,110)" to="(390,200)"/>
    <wire from="(630,260)" to="(630,410)"/>
    <wire from="(650,240)" to="(650,390)"/>
    <wire from="(780,460)" to="(800,460)"/>
    <wire from="(810,530)" to="(830,530)"/>
    <wire from="(390,110)" to="(600,110)"/>
    <wire from="(830,430)" to="(830,530)"/>
    <wire from="(560,270)" to="(590,270)"/>
    <wire from="(470,430)" to="(490,430)"/>
    <wire from="(460,440)" to="(600,440)"/>
    <wire from="(410,340)" to="(410,390)"/>
    <wire from="(520,170)" to="(520,220)"/>
    <wire from="(510,160)" to="(510,210)"/>
    <wire from="(570,260)" to="(570,310)"/>
    <wire from="(550,280)" to="(550,330)"/>
    <wire from="(820,430)" to="(830,430)"/>
    <wire from="(540,190)" to="(540,240)"/>
    <wire from="(530,180)" to="(530,230)"/>
    <wire from="(570,80)" to="(570,260)"/>
    <wire from="(550,100)" to="(550,280)"/>
    <wire from="(650,510)" to="(650,520)"/>
    <wire from="(510,160)" to="(760,160)"/>
    <wire from="(750,490)" to="(800,490)"/>
    <wire from="(540,240)" to="(590,240)"/>
    <wire from="(330,230)" to="(380,230)"/>
    <wire from="(310,120)" to="(800,120)"/>
    <wire from="(700,390)" to="(810,390)"/>
    <wire from="(700,350)" to="(810,350)"/>
    <wire from="(560,60)" to="(560,80)"/>
    <wire from="(320,130)" to="(320,220)"/>
    <wire from="(310,120)" to="(310,210)"/>
    <wire from="(340,150)" to="(340,240)"/>
    <wire from="(330,140)" to="(330,230)"/>
    <wire from="(450,370)" to="(670,370)"/>
    <wire from="(410,250)" to="(440,250)"/>
    <wire from="(570,260)" to="(590,260)"/>
    <wire from="(530,180)" to="(740,180)"/>
    <wire from="(350,270)" to="(380,270)"/>
    <wire from="(450,260)" to="(450,370)"/>
    <wire from="(440,250)" to="(440,360)"/>
    <wire from="(430,240)" to="(430,350)"/>
    <wire from="(420,230)" to="(420,340)"/>
    <wire from="(680,320)" to="(710,320)"/>
    <wire from="(370,300)" to="(580,300)"/>
    <wire from="(350,320)" to="(560,320)"/>
    <wire from="(640,400)" to="(670,400)"/>
    <wire from="(520,60)" to="(520,100)"/>
    <wire from="(410,230)" to="(420,230)"/>
    <wire from="(580,60)" to="(580,250)"/>
    <wire from="(360,260)" to="(360,310)"/>
    <wire from="(340,280)" to="(340,330)"/>
    <wire from="(830,330)" to="(840,330)"/>
    <wire from="(790,450)" to="(800,450)"/>
    <wire from="(330,140)" to="(780,140)"/>
    <wire from="(610,70)" to="(620,70)"/>
    <wire from="(320,220)" to="(380,220)"/>
    <wire from="(750,170)" to="(750,490)"/>
    <wire from="(770,150)" to="(770,470)"/>
    <wire from="(730,190)" to="(730,510)"/>
    <wire from="(790,130)" to="(790,450)"/>
    <wire from="(530,230)" to="(590,230)"/>
    <wire from="(470,420)" to="(470,430)"/>
    <wire from="(760,480)" to="(800,480)"/>
    <wire from="(700,360)" to="(810,360)"/>
    <wire from="(700,400)" to="(810,400)"/>
    <wire from="(440,360)" to="(670,360)"/>
    <wire from="(660,230)" to="(660,380)"/>
    <wire from="(640,250)" to="(640,400)"/>
    <wire from="(650,390)" to="(670,390)"/>
    <wire from="(360,260)" to="(380,260)"/>
    <wire from="(730,510)" to="(800,510)"/>
    <wire from="(380,500)" to="(520,500)"/>
    <wire from="(520,220)" to="(590,220)"/>
    <wire from="(580,250)" to="(580,300)"/>
    <wire from="(560,270)" to="(560,320)"/>
    <wire from="(560,90)" to="(560,270)"/>
    <wire from="(580,250)" to="(590,250)"/>
    <wire from="(310,210)" to="(380,210)"/>
    <comp loc="(700,340)" name="Eight_Bit_Buffer">
      <a name="label" val="BUF1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp loc="(620,260)" name="RAM64_16_word_4_Bit_74189">
      <a name="label" val="RAM2"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(520,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A3"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(560,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A1"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(540,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A2"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(410,260)" name="RAM64_16_word_4_Bit_74189">
      <a name="label" val="RAM1"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(580,60)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="A0"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(620,70)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(410,390)" name="Quad_2_to_1_Mux_1_Bit_74LS157">
      <a name="facing" val="north"/>
      <a name="label" val="SEL1"/>
      <a name="labelloc" val="west"/>
      <a name="labelvisible" val="false"/>
    </comp>
    <comp lib="0" loc="(680,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="RI"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(490,420)" name="Pull Resistor">
      <a name="pull" val="1"/>
    </comp>
    <comp lib="0" loc="(600,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="PROG"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(390,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="TOGGLE"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(710,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="RO"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(650,520)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="1" loc="(520,500)" name="AND Gate">
      <a name="facing" val="west"/>
      <a name="size" val="30"/>
    </comp>
    <comp lib="0" loc="(810,530)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(830,330)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(840,330)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS_OUT"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(820,430)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
  </circuit>
  <circuit name="Program_Counter">
    <a name="circuit" val="Program_Counter"/>
    <a name="clabel" val="PC"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(210,200)" to="(240,200)"/>
    <wire from="(170,180)" to="(230,180)"/>
    <wire from="(260,200)" to="(290,200)"/>
    <wire from="(210,200)" to="(210,210)"/>
    <wire from="(240,190)" to="(240,200)"/>
    <wire from="(290,120)" to="(290,130)"/>
    <wire from="(290,200)" to="(290,210)"/>
    <wire from="(260,190)" to="(260,200)"/>
    <wire from="(330,110)" to="(330,130)"/>
    <wire from="(270,170)" to="(280,170)"/>
    <wire from="(270,150)" to="(280,150)"/>
    <wire from="(270,160)" to="(280,160)"/>
    <wire from="(270,140)" to="(280,140)"/>
    <wire from="(330,110)" to="(340,110)"/>
    <wire from="(200,110)" to="(210,110)"/>
    <wire from="(250,190)" to="(250,210)"/>
    <wire from="(210,110)" to="(210,130)"/>
    <wire from="(170,180)" to="(170,210)"/>
    <comp lib="0" loc="(210,130)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(270,180)" name="Four_Bit_Synchronous_Up_Counter_with_Load_74LS161"/>
    <comp lib="0" loc="(290,120)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="CO"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(330,130)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp loc="(310,140)" name="Four_Bit_Buffer"/>
    <comp lib="0" loc="(170,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="J"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(290,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(210,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(250,210)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CE"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(200,110)" name="Pin">
      <a name="width" val="4"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(340,110)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="BUS_OUT"/>
      <a name="labelloc" val="north"/>
    </comp>
  </circuit>
  <circuit name="Output_Register">
    <a name="circuit" val="Output_Register"/>
    <a name="clabel" val="OUT"/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <circ-port height="10" pin="430,260" width="10" x="95" y="115"/>
      <circ-port height="8" pin="330,370" width="8" x="66" y="146"/>
      <circ-port height="8" pin="330,350" width="8" x="76" y="146"/>
      <circ-port height="8" pin="330,330" width="8" x="86" y="146"/>
      <circ-port height="8" pin="340,250" width="8" x="56" y="116"/>
      <rect fill="none" height="40" stroke="#000000" stroke-width="2" width="40" x="60" y="110"/>
      <circ-anchor facing="east" height="6" width="6" x="97" y="117"/>
    </appear>
    <wire from="(420,260)" to="(430,260)"/>
    <wire from="(340,250)" to="(350,250)"/>
    <wire from="(330,370)" to="(340,370)"/>
    <wire from="(330,330)" to="(340,330)"/>
    <wire from="(340,360)" to="(370,360)"/>
    <wire from="(340,340)" to="(370,340)"/>
    <wire from="(330,350)" to="(370,350)"/>
    <wire from="(340,360)" to="(340,370)"/>
    <wire from="(340,330)" to="(340,340)"/>
    <comp loc="(400,270)" name="Eight_Bit_Register"/>
    <comp lib="0" loc="(350,250)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(420,260)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp lib="0" loc="(430,260)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS_OUT"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(340,250)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="DATA_IN"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(330,370)" name="Pin">
      <a name="label" val="CLK"/>
    </comp>
    <comp lib="0" loc="(330,330)" name="Pin">
      <a name="label" val="CLR"/>
    </comp>
    <comp lib="0" loc="(330,350)" name="Pin">
      <a name="label" val="OI"/>
    </comp>
  </circuit>
  <circuit name="Control_Logic_28C16">
    <a name="circuit" val="Control_Logic_28C16"/>
    <a name="clabel" val="CONTROL"/>
    <a name="clabelup" val="west"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitnamedbox" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <rect fill="none" height="170" stroke="#000000" stroke-width="2" width="30" x="50" y="70"/>
      <circ-port height="8" pin="290,140" width="8" x="46" y="136"/>
      <circ-port height="10" pin="390,80" width="10" x="65" y="65"/>
      <circ-port height="10" pin="820,310" width="10" x="75" y="145"/>
      <circ-port height="10" pin="820,290" width="10" x="75" y="135"/>
      <circ-port height="10" pin="820,270" width="10" x="75" y="125"/>
      <circ-port height="10" pin="820,250" width="10" x="75" y="115"/>
      <circ-port height="10" pin="820,230" width="10" x="75" y="105"/>
      <circ-port height="10" pin="820,210" width="10" x="75" y="95"/>
      <circ-port height="10" pin="820,190" width="10" x="75" y="85"/>
      <circ-port height="10" pin="820,170" width="10" x="75" y="75"/>
      <circ-port height="10" pin="820,540" width="10" x="75" y="225"/>
      <circ-port height="10" pin="820,520" width="10" x="75" y="215"/>
      <circ-port height="10" pin="820,500" width="10" x="75" y="205"/>
      <circ-port height="10" pin="820,480" width="10" x="75" y="195"/>
      <circ-port height="10" pin="820,460" width="10" x="75" y="185"/>
      <circ-port height="10" pin="820,440" width="10" x="75" y="175"/>
      <circ-port height="10" pin="820,420" width="10" x="75" y="165"/>
      <circ-port height="10" pin="820,400" width="10" x="75" y="155"/>
      <circ-port height="8" pin="290,430" width="8" x="56" y="236"/>
      <circ-port height="8" pin="330,430" width="8" x="66" y="236"/>
      <circ-port height="8" pin="270,190" width="8" x="46" y="146"/>
      <circ-port height="8" pin="270,210" width="8" x="46" y="156"/>
      <circ-anchor facing="east" height="6" width="6" x="67" y="67"/>
    </appear>
    <wire from="(750,190)" to="(800,190)"/>
    <wire from="(810,410)" to="(810,420)"/>
    <wire from="(440,440)" to="(440,450)"/>
    <wire from="(280,200)" to="(280,210)"/>
    <wire from="(750,180)" to="(810,180)"/>
    <wire from="(320,400)" to="(320,410)"/>
    <wire from="(290,410)" to="(290,430)"/>
    <wire from="(330,410)" to="(330,430)"/>
    <wire from="(790,430)" to="(790,460)"/>
    <wire from="(750,200)" to="(790,200)"/>
    <wire from="(410,420)" to="(450,420)"/>
    <wire from="(440,110)" to="(440,210)"/>
    <wire from="(360,370)" to="(450,370)"/>
    <wire from="(420,200)" to="(450,200)"/>
    <wire from="(750,220)" to="(770,220)"/>
    <wire from="(750,210)" to="(780,210)"/>
    <wire from="(330,360)" to="(350,360)"/>
    <wire from="(340,90)" to="(360,90)"/>
    <wire from="(440,440)" to="(450,440)"/>
    <wire from="(470,110)" to="(480,110)"/>
    <wire from="(750,540)" to="(820,540)"/>
    <wire from="(290,410)" to="(300,410)"/>
    <wire from="(320,180)" to="(400,180)"/>
    <wire from="(370,150)" to="(450,150)"/>
    <wire from="(770,450)" to="(770,500)"/>
    <wire from="(720,160)" to="(730,160)"/>
    <wire from="(750,230)" to="(760,230)"/>
    <wire from="(320,160)" to="(380,160)"/>
    <wire from="(770,500)" to="(820,500)"/>
    <wire from="(810,180)" to="(810,190)"/>
    <wire from="(400,410)" to="(450,410)"/>
    <wire from="(440,210)" to="(440,220)"/>
    <wire from="(750,470)" to="(750,540)"/>
    <wire from="(760,520)" to="(820,520)"/>
    <wire from="(790,200)" to="(790,230)"/>
    <wire from="(780,480)" to="(820,480)"/>
    <wire from="(350,360)" to="(450,360)"/>
    <wire from="(440,220)" to="(440,440)"/>
    <wire from="(410,190)" to="(450,190)"/>
    <wire from="(400,180)" to="(400,410)"/>
    <wire from="(800,440)" to="(820,440)"/>
    <wire from="(410,190)" to="(410,420)"/>
    <wire from="(420,200)" to="(420,430)"/>
    <wire from="(380,160)" to="(380,390)"/>
    <wire from="(370,150)" to="(370,380)"/>
    <wire from="(390,170)" to="(390,400)"/>
    <wire from="(360,140)" to="(450,140)"/>
    <wire from="(350,130)" to="(350,360)"/>
    <wire from="(360,140)" to="(360,370)"/>
    <wire from="(340,120)" to="(340,350)"/>
    <wire from="(790,460)" to="(820,460)"/>
    <wire from="(440,450)" to="(450,450)"/>
    <wire from="(440,210)" to="(450,210)"/>
    <wire from="(750,310)" to="(820,310)"/>
    <wire from="(290,140)" to="(300,140)"/>
    <wire from="(320,410)" to="(330,410)"/>
    <wire from="(770,220)" to="(770,270)"/>
    <wire from="(810,420)" to="(820,420)"/>
    <wire from="(390,400)" to="(450,400)"/>
    <wire from="(310,400)" to="(310,470)"/>
    <wire from="(770,270)" to="(820,270)"/>
    <wire from="(400,180)" to="(450,180)"/>
    <wire from="(750,240)" to="(750,310)"/>
    <wire from="(300,400)" to="(300,410)"/>
    <wire from="(760,290)" to="(820,290)"/>
    <wire from="(780,250)" to="(820,250)"/>
    <wire from="(340,350)" to="(450,350)"/>
    <wire from="(800,420)" to="(800,440)"/>
    <wire from="(350,130)" to="(450,130)"/>
    <wire from="(800,210)" to="(820,210)"/>
    <wire from="(780,440)" to="(780,480)"/>
    <wire from="(330,370)" to="(360,370)"/>
    <wire from="(790,230)" to="(820,230)"/>
    <wire from="(440,220)" to="(450,220)"/>
    <wire from="(750,400)" to="(820,400)"/>
    <wire from="(270,210)" to="(280,210)"/>
    <wire from="(330,350)" to="(340,350)"/>
    <wire from="(380,80)" to="(390,80)"/>
    <wire from="(760,460)" to="(760,520)"/>
    <wire from="(810,190)" to="(820,190)"/>
    <wire from="(320,170)" to="(390,170)"/>
    <wire from="(380,390)" to="(450,390)"/>
    <wire from="(390,170)" to="(450,170)"/>
    <wire from="(750,420)" to="(800,420)"/>
    <wire from="(320,150)" to="(370,150)"/>
    <wire from="(750,410)" to="(810,410)"/>
    <wire from="(750,430)" to="(790,430)"/>
    <wire from="(340,120)" to="(450,120)"/>
    <wire from="(800,190)" to="(800,210)"/>
    <wire from="(340,90)" to="(340,120)"/>
    <wire from="(350,100)" to="(350,130)"/>
    <wire from="(360,110)" to="(360,140)"/>
    <wire from="(780,210)" to="(780,250)"/>
    <wire from="(420,430)" to="(450,430)"/>
    <wire from="(750,450)" to="(770,450)"/>
    <wire from="(750,440)" to="(780,440)"/>
    <wire from="(270,190)" to="(410,190)"/>
    <wire from="(280,200)" to="(420,200)"/>
    <wire from="(750,170)" to="(820,170)"/>
    <wire from="(470,340)" to="(480,340)"/>
    <wire from="(350,100)" to="(360,100)"/>
    <wire from="(370,380)" to="(450,380)"/>
    <wire from="(760,230)" to="(760,290)"/>
    <wire from="(750,460)" to="(760,460)"/>
    <wire from="(720,390)" to="(730,390)"/>
    <wire from="(380,160)" to="(450,160)"/>
    <comp lib="4" loc="(480,100)" name="ROM">
      <a name="addrWidth" val="11"/>
      <a name="contents">addr/data: 11 8
40 14 6*0 40 14 48 12 4*0
40 14 48 10 2 0 0 0
40 14 48 10 2 0 0 0
40 14 48 21 4*0 40 14 a
5*0 40 14 8 5*0 40 14 6*0
40 14 6*0 40 14 6*0 40 14
6*0 40 14 6*0 40 14 6*0 40
14 6*0 40 14 1 5*0 40 14
80 5*0 40 14 6*0 40 14 48
12 4*0 40 14 48 10 2 0
0 0 40 14 48 10 2 0
0 0 40 14 48 21 4*0 40
14 a 5*0 40 14 8 5*0 40
14 8 5*0 40 14 6*0 40 14
6*0 40 14 6*0 40 14 6*0 40
14 6*0 40 14 6*0 40 14 1
5*0 40 14 80 5*0 40 14 6*0
40 14 48 12 4*0 40 14 48
10 2 0 0 0 40 14 48
10 2 0 0 0 40 14 48
21 4*0 40 14 a 5*0 40 14
8 5*0 40 14 6*0 40 14 8
5*0 40 14 6*0 40 14 6*0 40
14 6*0 40 14 6*0 40 14 6*0
40 14 1 5*0 40 14 80 5*0
40 14 6*0 40 14 48 12 4*0
40 14 48 10 2 0 0 0
40 14 48 10 2 0 0 0
40 14 48 21 4*0 40 14 a
5*0 40 14 8 5*0 40 14 8
5*0 40 14 8 5*0 40 14 6*0
40 14 6*0 40 14 6*0 40 14
6*0 40 14 6*0 40 14 1 5*0
40 14 80
</a>
      <a name="labelvisible" val="true"/>
    </comp>
    <comp lib="0" loc="(730,160)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(730,390)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(470,340)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="11"/>
      <a name="incoming" val="11"/>
    </comp>
    <comp lib="0" loc="(470,110)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="11"/>
      <a name="incoming" val="11"/>
    </comp>
    <comp lib="0" loc="(290,140)" name="Pin">
      <a name="width" val="4"/>
      <a name="label" val="IR4_IR7"/>
    </comp>
    <comp loc="(330,390)" name="Four_Bit_Synchronous_Up_Counter_with_Load_74LS161"/>
    <comp lib="0" loc="(330,430)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLR"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(300,140)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(290,430)" name="Pin">
      <a name="facing" val="north"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(380,80)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="3"/>
      <a name="incoming" val="3"/>
    </comp>
    <comp lib="0" loc="(440,110)" name="Pull Resistor"/>
    <comp lib="0" loc="(390,80)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="3"/>
      <a name="label" val="COUNT"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(820,210)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="II"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,190)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="AI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,290)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="MI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="RO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,310)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="HLT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,230)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="IO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,270)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="RI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,170)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="AO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,540)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="EO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,500)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="BI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,460)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="CE"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,420)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="J"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,480)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="OI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,440)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="CO"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,400)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="FI"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(820,520)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="label" val="SU"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="4" loc="(480,330)" name="ROM">
      <a name="addrWidth" val="11"/>
      <a name="contents">addr/data: 11 8
4 8 6*0 4 8 6*0 4 8
0 20 81 0 0 0 4 8
0 20 c1 0 0 0 4 8
6*0 4 8 6*0 4 8 2 5*0
4 8 6*0 4 8 6*0 4 8
6*0 4 8 6*0 4 8 6*0 4
8 6*0 4 8 6*0 4 8 10
5*0 4 8 6*0 4 8 6*0 4
8 6*0 4 8 0 20 81 0
0 0 4 8 0 20 c1 0
0 0 4 8 6*0 4 8 6*0
4 8 2 5*0 4 8 2 5*0
4 8 6*0 4 8 6*0 4 8
6*0 4 8 6*0 4 8 6*0 4
8 6*0 4 8 10 5*0 4 8
6*0 4 8 6*0 4 8 6*0 4
8 0 20 81 0 0 0 4
8 0 20 c1 0 0 0 4
8 6*0 4 8 6*0 4 8 2
5*0 4 8 6*0 4 8 2 5*0
4 8 6*0 4 8 6*0 4 8
6*0 4 8 6*0 4 8 6*0 4
8 10 5*0 4 8 6*0 4 8
6*0 4 8 6*0 4 8 0 20
81 0 0 0 4 8 0 20
c1 0 0 0 4 8 6*0 4
8 6*0 4 8 2 5*0 4 8
2 5*0 4 8 2 5*0 4 8
6*0 4 8 6*0 4 8 6*0 4
8 6*0 4 8 6*0 4 8 10
5*0 4 8
</a>
    </comp>
    <comp lib="0" loc="(270,190)" name="Pin">
      <a name="label" val="CF"/>
    </comp>
    <comp lib="0" loc="(270,210)" name="Pin">
      <a name="label" val="ZF"/>
    </comp>
    <comp lib="0" loc="(310,470)" name="Pull Resistor">
      <a name="facing" val="north"/>
      <a name="pull" val="1"/>
    </comp>
  </circuit>
  <circuit name="RAM_Programmer">
    <a name="circuit" val="RAM_Programmer"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif bold 16"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <rect fill="none" height="60" stroke="#000000" stroke-width="2" width="120" x="70" y="50"/>
      <text fill="#404040" font-family="Dialog" font-size="10" text-anchor="middle" x="107" y="64">INC_ENABLE</text>
      <text fill="#404040" font-family="Dialog" font-size="10" text-anchor="middle" x="89" y="104">STEP</text>
      <circ-port height="10" pin="590,250" width="10" x="185" y="75"/>
      <circ-port height="8" pin="240,230" width="8" x="66" y="76"/>
      <circ-port height="8" pin="240,210" width="8" x="66" y="56"/>
      <circ-port height="10" pin="610,220" width="10" x="185" y="55"/>
      <text fill="#404040" font-family="Dialog" font-size="10" text-anchor="middle" x="169" y="64">ADDR</text>
      <text fill="#404040" font-family="Dialog" font-size="10" text-anchor="middle" x="169" y="84">DATA</text>
      <text fill="#404040" font-family="Dialog" font-size="10" text-anchor="middle" x="92" y="84">RESET</text>
      <circ-port height="8" pin="240,250" width="8" x="66" y="96"/>
      <circ-anchor facing="east" height="6" width="6" x="187" y="57"/>
    </appear>
    <wire from="(580,180)" to="(580,220)"/>
    <wire from="(240,210)" to="(270,210)"/>
    <wire from="(330,180)" to="(580,180)"/>
    <wire from="(250,220)" to="(250,230)"/>
    <wire from="(580,220)" to="(610,220)"/>
    <wire from="(250,220)" to="(270,220)"/>
    <wire from="(240,250)" to="(260,250)"/>
    <wire from="(260,230)" to="(260,250)"/>
    <wire from="(330,180)" to="(330,200)"/>
    <wire from="(260,230)" to="(270,230)"/>
    <wire from="(320,200)" to="(330,200)"/>
    <wire from="(330,200)" to="(340,200)"/>
    <wire from="(240,230)" to="(250,230)"/>
    <wire from="(580,250)" to="(590,250)"/>
    <comp lib="4" loc="(340,190)" name="ROM">
      <a name="addrWidth" val="4"/>
      <a name="contents">addr/data: 4 8
0
</a>
    </comp>
    <comp lib="0" loc="(590,250)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="DATA"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(240,210)" name="Pin">
      <a name="label" val="INC_ENABLE"/>
    </comp>
    <comp loc="(300,250)" name="Four_Bit_Synchronous_Up_Counter"/>
    <comp lib="0" loc="(320,200)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
    </comp>
    <comp lib="0" loc="(240,230)" name="Pin">
      <a name="label" val="RESET"/>
    </comp>
    <comp lib="0" loc="(610,220)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="ADDR"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(240,250)" name="Pin">
      <a name="label" val="STEP"/>
    </comp>
  </circuit>
  <circuit name="Four_Bit_7_Seg">
    <a name="circuit" val="Four_Bit_7_Seg"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif bold 16"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="start" x="76" y="64">BCD_IN</text>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="end" x="183" y="64">SEG_OUT</text>
      <rect fill="none" height="20" stroke="#000000" stroke-width="2" width="120" x="70" y="50"/>
      <circ-port height="10" pin="440,450" width="10" x="185" y="55"/>
      <circ-port height="8" pin="180,400" width="8" x="66" y="56"/>
      <circ-anchor facing="east" height="6" width="6" x="187" y="57"/>
    </appear>
    <wire from="(430,450)" to="(440,450)"/>
    <wire from="(180,400)" to="(190,400)"/>
    <comp lib="4" loc="(190,390)" name="ROM">
      <a name="addrWidth" val="4"/>
      <a name="dataWidth" val="7"/>
      <a name="contents">addr/data: 4 7
7e 30 6d 79 33 5b 5f 70
7f 7b
</a>
    </comp>
    <comp lib="0" loc="(180,400)" name="Pin">
      <a name="width" val="4"/>
      <a name="label" val="BCD_IN"/>
    </comp>
    <comp lib="0" loc="(440,450)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="7"/>
      <a name="label" val="SEG_OUT"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="Twelve_Bit_BCD_to_7_Segs">
    <a name="circuit" val="Twelve_Bit_BCD_to_7_Segs"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif bold 16"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <appear>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="start" x="157" y="64">BYTE_IN</text>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="end" x="251" y="64">SEG_0</text>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="end" x="252" y="84">SEG_1</text>
      <text fill="#404040" font-family="Dialog" font-size="12" text-anchor="end" x="251" y="104">SEG_2</text>
      <circ-port height="10" pin="530,460" width="10" x="255" y="95"/>
      <circ-port height="10" pin="530,420" width="10" x="255" y="75"/>
      <circ-port height="10" pin="530,380" width="10" x="255" y="55"/>
      <circ-port height="8" pin="220,300" width="8" x="146" y="56"/>
      <rect fill="none" height="60" stroke="#000000" stroke-width="2" width="110" x="150" y="50"/>
      <circ-anchor facing="east" height="6" width="6" x="257" y="57"/>
    </appear>
    <wire from="(470,350)" to="(480,350)"/>
    <wire from="(220,300)" to="(230,300)"/>
    <wire from="(520,380)" to="(530,380)"/>
    <wire from="(520,420)" to="(530,420)"/>
    <wire from="(520,460)" to="(530,460)"/>
    <comp lib="4" loc="(230,290)" name="ROM">
      <a name="dataWidth" val="12"/>
      <a name="contents">addr/data: 8 12
0 1 2 3 4 5 6 7
8 9 10 11 12 13 14 15
16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31
32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63
64 65 66 67 68 69 70 71
72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87
88 89 90 91 92 93 94 95
96 97 98 99 100 101 102 103
104 105 106 107 108 109 110 111
112 113 114 115 116 117 118 119
120 121 122 123 124 125 126 127
128 129 130 131 132 133 134 135
136 137 138 139 140 141 142 143
144 145 146 147 148 149 150 151
152 153 154 155 156 157 158 159
160 161 162 163 164 165 166 167
168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183
184 185 186 187 188 189 190 191
192 193 194 195 196 197 198 199
200 201 202 203 204 205 206 207
208 209 210 211 212 213 214 215
216 217 218 219 220 221 222 223
224 225 226 227 228 229 230 231
232 233 234 235 236 237 238 239
240 241 242 243 244 245 246 247
248 249 250 251 252 253 254 255
</a>
    </comp>
    <comp lib="0" loc="(220,300)" name="Pin">
      <a name="width" val="8"/>
      <a name="label" val="BINARY_IN"/>
    </comp>
    <comp lib="0" loc="(480,350)" name="Splitter">
      <a name="fanout" val="12"/>
      <a name="incoming" val="12"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(520,380)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(520,420)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(520,460)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(530,380)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="BCD_0"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(530,420)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="BCD_1"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(530,460)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="BCD_2"/>
      <a name="labelloc" val="east"/>
    </comp>
  </circuit>
  <circuit name="CPU">
    <a name="circuit" val="CPU"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif bold 16"/>
    <a name="circuitnamedbox" val="true"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(1530,470)" to="(1530,620)"/>
    <wire from="(590,110)" to="(590,120)"/>
    <wire from="(1610,680)" to="(1610,770)"/>
    <wire from="(1380,480)" to="(1550,480)"/>
    <wire from="(660,340)" to="(710,340)"/>
    <wire from="(670,490)" to="(670,620)"/>
    <wire from="(1350,550)" to="(1350,580)"/>
    <wire from="(540,290)" to="(600,290)"/>
    <wire from="(590,460)" to="(590,530)"/>
    <wire from="(850,730)" to="(1040,730)"/>
    <wire from="(910,270)" to="(1010,270)"/>
    <wire from="(910,430)" to="(1010,430)"/>
    <wire from="(760,450)" to="(800,450)"/>
    <wire from="(590,400)" to="(820,400)"/>
    <wire from="(660,340)" to="(660,370)"/>
    <wire from="(1010,540)" to="(1050,540)"/>
    <wire from="(1380,540)" to="(1570,540)"/>
    <wire from="(1190,150)" to="(1190,160)"/>
    <wire from="(620,180)" to="(860,180)"/>
    <wire from="(840,580)" to="(1010,580)"/>
    <wire from="(320,370)" to="(550,370)"/>
    <wire from="(810,770)" to="(1150,770)"/>
    <wire from="(1410,590)" to="(1410,770)"/>
    <wire from="(710,500)" to="(710,610)"/>
    <wire from="(1190,510)" to="(1200,510)"/>
    <wire from="(1600,560)" to="(1600,620)"/>
    <wire from="(610,240)" to="(630,240)"/>
    <wire from="(720,510)" to="(720,620)"/>
    <wire from="(870,390)" to="(870,430)"/>
    <wire from="(1560,680)" to="(1560,730)"/>
    <wire from="(710,500)" to="(730,500)"/>
    <wire from="(1440,740)" to="(1570,740)"/>
    <wire from="(570,270)" to="(600,270)"/>
    <wire from="(440,70)" to="(440,690)"/>
    <wire from="(1410,770)" to="(1610,770)"/>
    <wire from="(920,380)" to="(1050,380)"/>
    <wire from="(1380,560)" to="(1600,560)"/>
    <wire from="(990,180)" to="(990,560)"/>
    <wire from="(840,630)" to="(840,750)"/>
    <wire from="(450,150)" to="(580,150)"/>
    <wire from="(1000,240)" to="(1000,550)"/>
    <wire from="(1030,190)" to="(1040,190)"/>
    <wire from="(790,510)" to="(800,510)"/>
    <wire from="(810,610)" to="(820,610)"/>
    <wire from="(870,430)" to="(880,430)"/>
    <wire from="(1060,370)" to="(1080,370)"/>
    <wire from="(950,630)" to="(950,680)"/>
    <wire from="(760,560)" to="(770,560)"/>
    <wire from="(610,330)" to="(620,330)"/>
    <wire from="(670,640)" to="(670,650)"/>
    <wire from="(980,710)" to="(1030,710)"/>
    <wire from="(970,700)" to="(1020,700)"/>
    <wire from="(620,430)" to="(620,440)"/>
    <wire from="(1010,150)" to="(1190,150)"/>
    <wire from="(1060,530)" to="(1060,680)"/>
    <wire from="(610,340)" to="(660,340)"/>
    <wire from="(1350,440)" to="(1350,470)"/>
    <wire from="(870,390)" to="(1120,390)"/>
    <wire from="(910,520)" to="(1100,520)"/>
    <wire from="(1020,570)" to="(1020,700)"/>
    <wire from="(1180,110)" to="(1180,650)"/>
    <wire from="(610,650)" to="(670,650)"/>
    <wire from="(900,510)" to="(1090,510)"/>
    <wire from="(920,250)" to="(920,280)"/>
    <wire from="(1470,710)" to="(1530,710)"/>
    <wire from="(610,310)" to="(840,310)"/>
    <wire from="(630,600)" to="(730,600)"/>
    <wire from="(680,470)" to="(680,620)"/>
    <wire from="(600,250)" to="(600,270)"/>
    <wire from="(630,600)" to="(630,620)"/>
    <wire from="(870,630)" to="(870,710)"/>
    <wire from="(1510,680)" to="(1510,690)"/>
    <wire from="(560,590)" to="(730,590)"/>
    <wire from="(1590,550)" to="(1590,620)"/>
    <wire from="(620,110)" to="(620,150)"/>
    <wire from="(830,760)" to="(1170,760)"/>
    <wire from="(580,550)" to="(730,550)"/>
    <wire from="(1190,160)" to="(1200,160)"/>
    <wire from="(610,130)" to="(630,130)"/>
    <wire from="(860,720)" to="(1140,720)"/>
    <wire from="(910,560)" to="(910,600)"/>
    <wire from="(620,220)" to="(620,330)"/>
    <wire from="(770,210)" to="(790,210)"/>
    <wire from="(920,280)" to="(920,380)"/>
    <wire from="(710,340)" to="(710,500)"/>
    <wire from="(1380,410)" to="(1510,410)"/>
    <wire from="(1460,720)" to="(1550,720)"/>
    <wire from="(1300,410)" to="(1330,410)"/>
    <wire from="(1380,460)" to="(1540,460)"/>
    <wire from="(1430,750)" to="(1590,750)"/>
    <wire from="(650,560)" to="(730,560)"/>
    <wire from="(1490,690)" to="(1510,690)"/>
    <wire from="(870,160)" to="(880,160)"/>
    <wire from="(870,240)" to="(880,240)"/>
    <wire from="(910,440)" to="(920,440)"/>
    <wire from="(910,180)" to="(990,180)"/>
    <wire from="(610,220)" to="(620,220)"/>
    <wire from="(1380,470)" to="(1530,470)"/>
    <wire from="(710,330)" to="(710,340)"/>
    <wire from="(540,400)" to="(540,410)"/>
    <wire from="(550,230)" to="(550,370)"/>
    <wire from="(1190,490)" to="(1190,510)"/>
    <wire from="(1380,430)" to="(1490,430)"/>
    <wire from="(1380,440)" to="(1480,440)"/>
    <wire from="(810,540)" to="(810,610)"/>
    <wire from="(1620,600)" to="(1620,620)"/>
    <wire from="(920,460)" to="(920,490)"/>
    <wire from="(930,630)" to="(930,660)"/>
    <wire from="(1490,430)" to="(1490,690)"/>
    <wire from="(760,470)" to="(800,470)"/>
    <wire from="(1010,580)" to="(1010,670)"/>
    <wire from="(1000,550)" to="(1040,550)"/>
    <wire from="(900,740)" to="(1070,740)"/>
    <wire from="(580,470)" to="(580,550)"/>
    <wire from="(1380,490)" to="(1560,490)"/>
    <wire from="(1060,360)" to="(1060,370)"/>
    <wire from="(1150,440)" to="(1150,770)"/>
    <wire from="(920,170)" to="(920,250)"/>
    <wire from="(1590,680)" to="(1590,750)"/>
    <wire from="(980,630)" to="(980,710)"/>
    <wire from="(810,540)" to="(830,540)"/>
    <wire from="(690,450)" to="(690,620)"/>
    <wire from="(920,490)" to="(920,600)"/>
    <wire from="(450,150)" to="(450,700)"/>
    <wire from="(640,580)" to="(640,620)"/>
    <wire from="(900,630)" to="(900,740)"/>
    <wire from="(1190,130)" to="(1200,130)"/>
    <wire from="(870,250)" to="(870,290)"/>
    <wire from="(620,390)" to="(830,390)"/>
    <wire from="(760,570)" to="(780,570)"/>
    <wire from="(770,490)" to="(800,490)"/>
    <wire from="(560,200)" to="(590,200)"/>
    <wire from="(1060,120)" to="(1060,180)"/>
    <wire from="(1070,360)" to="(1070,740)"/>
    <wire from="(610,160)" to="(700,160)"/>
    <wire from="(920,380)" to="(920,440)"/>
    <wire from="(1380,450)" to="(1470,450)"/>
    <wire from="(940,670)" to="(1010,670)"/>
    <wire from="(930,660)" to="(1000,660)"/>
    <wire from="(600,480)" to="(730,480)"/>
    <wire from="(910,160)" to="(980,160)"/>
    <wire from="(1010,270)" to="(1020,270)"/>
    <wire from="(910,250)" to="(920,250)"/>
    <wire from="(910,170)" to="(920,170)"/>
    <wire from="(720,620)" to="(730,620)"/>
    <wire from="(1000,140)" to="(1000,190)"/>
    <wire from="(700,370)" to="(700,380)"/>
    <wire from="(1320,430)" to="(1320,450)"/>
    <wire from="(460,80)" to="(710,80)"/>
    <wire from="(840,310)" to="(840,580)"/>
    <wire from="(850,320)" to="(850,590)"/>
    <wire from="(1150,420)" to="(1150,440)"/>
    <wire from="(1050,540)" to="(1050,690)"/>
    <wire from="(1460,500)" to="(1460,720)"/>
    <wire from="(870,170)" to="(870,240)"/>
    <wire from="(1380,580)" to="(1420,580)"/>
    <wire from="(670,490)" to="(730,490)"/>
    <wire from="(570,110)" to="(570,180)"/>
    <wire from="(690,450)" to="(730,450)"/>
    <wire from="(1560,490)" to="(1560,620)"/>
    <wire from="(610,320)" to="(850,320)"/>
    <wire from="(810,620)" to="(810,770)"/>
    <wire from="(550,370)" to="(660,370)"/>
    <wire from="(620,440)" to="(730,440)"/>
    <wire from="(610,350)" to="(720,350)"/>
    <wire from="(1550,480)" to="(1550,620)"/>
    <wire from="(1380,570)" to="(1430,570)"/>
    <wire from="(610,440)" to="(610,460)"/>
    <wire from="(620,610)" to="(620,630)"/>
    <wire from="(1080,430)" to="(1130,430)"/>
    <wire from="(1380,420)" to="(1520,420)"/>
    <wire from="(460,710)" to="(870,710)"/>
    <wire from="(1350,580)" to="(1360,580)"/>
    <wire from="(600,270)" to="(750,270)"/>
    <wire from="(570,110)" to="(590,110)"/>
    <wire from="(1570,680)" to="(1570,740)"/>
    <wire from="(770,230)" to="(790,230)"/>
    <wire from="(850,630)" to="(850,730)"/>
    <wire from="(910,190)" to="(1000,190)"/>
    <wire from="(530,610)" to="(620,610)"/>
    <wire from="(340,650)" to="(490,650)"/>
    <wire from="(460,80)" to="(460,710)"/>
    <wire from="(960,630)" to="(960,690)"/>
    <wire from="(730,110)" to="(730,230)"/>
    <wire from="(700,430)" to="(700,620)"/>
    <wire from="(860,370)" to="(1060,370)"/>
    <wire from="(730,110)" to="(1180,110)"/>
    <wire from="(650,560)" to="(650,620)"/>
    <wire from="(1010,150)" to="(1010,270)"/>
    <wire from="(1380,590)" to="(1410,590)"/>
    <wire from="(910,460)" to="(920,460)"/>
    <wire from="(720,510)" to="(730,510)"/>
    <wire from="(560,110)" to="(570,110)"/>
    <wire from="(1030,160)" to="(1110,160)"/>
    <wire from="(610,230)" to="(730,230)"/>
    <wire from="(1580,530)" to="(1580,620)"/>
    <wire from="(1520,680)" to="(1520,700)"/>
    <wire from="(560,440)" to="(610,440)"/>
    <wire from="(870,430)" to="(870,440)"/>
    <wire from="(1000,590)" to="(1000,660)"/>
    <wire from="(880,630)" to="(880,700)"/>
    <wire from="(1300,390)" to="(1340,390)"/>
    <wire from="(330,380)" to="(700,380)"/>
    <wire from="(560,430)" to="(620,430)"/>
    <wire from="(560,450)" to="(600,450)"/>
    <wire from="(570,480)" to="(570,570)"/>
    <wire from="(1480,440)" to="(1480,700)"/>
    <wire from="(1610,610)" to="(1610,620)"/>
    <wire from="(980,160)" to="(980,570)"/>
    <wire from="(990,560)" to="(1030,560)"/>
    <wire from="(860,370)" to="(860,450)"/>
    <wire from="(560,420)" to="(730,420)"/>
    <wire from="(1020,450)" to="(1020,530)"/>
    <wire from="(620,180)" to="(620,220)"/>
    <wire from="(860,450)" to="(880,450)"/>
    <wire from="(1430,570)" to="(1430,750)"/>
    <wire from="(890,560)" to="(910,560)"/>
    <wire from="(1000,190)" to="(1020,190)"/>
    <wire from="(560,470)" to="(580,470)"/>
    <wire from="(1190,470)" to="(1200,470)"/>
    <wire from="(1190,550)" to="(1200,550)"/>
    <wire from="(540,290)" to="(540,400)"/>
    <wire from="(700,370)" to="(720,370)"/>
    <wire from="(1080,280)" to="(1090,280)"/>
    <wire from="(770,200)" to="(790,200)"/>
    <wire from="(960,690)" to="(1050,690)"/>
    <wire from="(760,580)" to="(790,580)"/>
    <wire from="(560,460)" to="(590,460)"/>
    <wire from="(1100,270)" to="(1100,520)"/>
    <wire from="(910,240)" to="(1000,240)"/>
    <wire from="(1190,450)" to="(1320,450)"/>
    <wire from="(440,70)" to="(700,70)"/>
    <wire from="(1080,270)" to="(1100,270)"/>
    <wire from="(1140,420)" to="(1140,720)"/>
    <wire from="(560,480)" to="(570,480)"/>
    <wire from="(320,370)" to="(320,630)"/>
    <wire from="(590,200)" to="(590,210)"/>
    <wire from="(600,290)" to="(600,300)"/>
    <wire from="(1330,410)" to="(1330,490)"/>
    <wire from="(1450,730)" to="(1560,730)"/>
    <wire from="(1510,410)" to="(1510,620)"/>
    <wire from="(840,50)" to="(840,60)"/>
    <wire from="(870,160)" to="(870,170)"/>
    <wire from="(870,240)" to="(870,250)"/>
    <wire from="(1600,680)" to="(1600,760)"/>
    <wire from="(780,500)" to="(780,570)"/>
    <wire from="(790,510)" to="(790,580)"/>
    <wire from="(800,520)" to="(800,590)"/>
    <wire from="(1450,510)" to="(1450,730)"/>
    <wire from="(340,60)" to="(340,650)"/>
    <wire from="(770,490)" to="(770,560)"/>
    <wire from="(1480,700)" to="(1520,700)"/>
    <wire from="(840,60)" to="(840,280)"/>
    <wire from="(1030,160)" to="(1030,190)"/>
    <wire from="(1170,120)" to="(1170,760)"/>
    <wire from="(1100,130)" to="(1100,260)"/>
    <wire from="(760,460)" to="(800,460)"/>
    <wire from="(320,630)" to="(490,630)"/>
    <wire from="(610,140)" to="(710,140)"/>
    <wire from="(450,700)" to="(880,700)"/>
    <wire from="(600,450)" to="(600,480)"/>
    <wire from="(620,150)" to="(620,180)"/>
    <wire from="(870,130)" to="(1100,130)"/>
    <wire from="(1420,760)" to="(1600,760)"/>
    <wire from="(660,540)" to="(660,620)"/>
    <wire from="(1130,420)" to="(1130,430)"/>
    <wire from="(860,180)" to="(860,260)"/>
    <wire from="(1520,420)" to="(1520,620)"/>
    <wire from="(780,500)" to="(800,500)"/>
    <wire from="(860,180)" to="(880,180)"/>
    <wire from="(860,260)" to="(880,260)"/>
    <wire from="(630,240)" to="(630,280)"/>
    <wire from="(590,360)" to="(590,400)"/>
    <wire from="(1350,440)" to="(1360,440)"/>
    <wire from="(860,260)" to="(860,370)"/>
    <wire from="(1040,550)" to="(1040,730)"/>
    <wire from="(940,630)" to="(940,670)"/>
    <wire from="(560,200)" to="(560,310)"/>
    <wire from="(1190,490)" to="(1330,490)"/>
    <wire from="(910,520)" to="(910,560)"/>
    <wire from="(330,380)" to="(330,670)"/>
    <wire from="(570,570)" to="(730,570)"/>
    <wire from="(640,580)" to="(730,580)"/>
    <wire from="(1080,370)" to="(1080,430)"/>
    <wire from="(660,540)" to="(730,540)"/>
    <wire from="(1160,390)" to="(1190,390)"/>
    <wire from="(710,80)" to="(710,140)"/>
    <wire from="(1320,470)" to="(1350,470)"/>
    <wire from="(1320,550)" to="(1350,550)"/>
    <wire from="(920,490)" to="(930,490)"/>
    <wire from="(810,620)" to="(820,620)"/>
    <wire from="(870,440)" to="(880,440)"/>
    <wire from="(590,530)" to="(730,530)"/>
    <wire from="(550,200)" to="(560,200)"/>
    <wire from="(840,750)" to="(1110,750)"/>
    <wire from="(1550,680)" to="(1550,720)"/>
    <wire from="(720,620)" to="(720,630)"/>
    <wire from="(590,170)" to="(590,180)"/>
    <wire from="(590,250)" to="(590,260)"/>
    <wire from="(1380,600)" to="(1620,600)"/>
    <wire from="(1190,450)" to="(1190,470)"/>
    <wire from="(1190,530)" to="(1190,550)"/>
    <wire from="(1570,540)" to="(1570,620)"/>
    <wire from="(340,60)" to="(840,60)"/>
    <wire from="(1320,510)" to="(1360,510)"/>
    <wire from="(530,260)" to="(590,260)"/>
    <wire from="(1000,140)" to="(1190,140)"/>
    <wire from="(830,630)" to="(830,760)"/>
    <wire from="(1380,610)" to="(1610,610)"/>
    <wire from="(700,70)" to="(700,160)"/>
    <wire from="(570,180)" to="(570,270)"/>
    <wire from="(1470,450)" to="(1470,710)"/>
    <wire from="(870,130)" to="(870,160)"/>
    <wire from="(760,590)" to="(800,590)"/>
    <wire from="(430,400)" to="(540,400)"/>
    <wire from="(530,260)" to="(530,610)"/>
    <wire from="(980,570)" to="(1020,570)"/>
    <wire from="(1020,530)" to="(1060,530)"/>
    <wire from="(860,630)" to="(860,720)"/>
    <wire from="(900,510)" to="(900,600)"/>
    <wire from="(1190,130)" to="(1190,140)"/>
    <wire from="(830,390)" to="(830,540)"/>
    <wire from="(950,680)" to="(1060,680)"/>
    <wire from="(1110,160)" to="(1110,750)"/>
    <wire from="(1420,580)" to="(1420,760)"/>
    <wire from="(820,400)" to="(820,440)"/>
    <wire from="(570,180)" to="(590,180)"/>
    <wire from="(1380,500)" to="(1460,500)"/>
    <wire from="(850,590)" to="(1000,590)"/>
    <wire from="(630,280)" to="(840,280)"/>
    <wire from="(770,220)" to="(790,220)"/>
    <wire from="(550,230)" to="(580,230)"/>
    <wire from="(560,490)" to="(560,590)"/>
    <wire from="(1380,510)" to="(1450,510)"/>
    <wire from="(890,630)" to="(890,690)"/>
    <wire from="(920,650)" to="(1180,650)"/>
    <wire from="(1090,280)" to="(1090,510)"/>
    <wire from="(1540,460)" to="(1540,620)"/>
    <wire from="(1190,530)" to="(1340,530)"/>
    <wire from="(440,690)" to="(890,690)"/>
    <wire from="(870,170)" to="(880,170)"/>
    <wire from="(870,250)" to="(880,250)"/>
    <wire from="(1380,550)" to="(1590,550)"/>
    <wire from="(890,510)" to="(900,510)"/>
    <wire from="(840,280)" to="(920,280)"/>
    <wire from="(710,330)" to="(720,330)"/>
    <wire from="(820,240)" to="(820,290)"/>
    <wire from="(610,150)" to="(620,150)"/>
    <wire from="(1300,430)" to="(1320,430)"/>
    <wire from="(610,630)" to="(620,630)"/>
    <wire from="(610,460)" to="(730,460)"/>
    <wire from="(1060,120)" to="(1170,120)"/>
    <wire from="(820,290)" to="(870,290)"/>
    <wire from="(1050,360)" to="(1050,380)"/>
    <wire from="(680,470)" to="(730,470)"/>
    <wire from="(970,630)" to="(970,700)"/>
    <wire from="(1530,680)" to="(1530,710)"/>
    <wire from="(1440,520)" to="(1440,740)"/>
    <wire from="(1380,520)" to="(1440,520)"/>
    <wire from="(760,480)" to="(800,480)"/>
    <wire from="(920,440)" to="(1150,440)"/>
    <wire from="(1340,390)" to="(1340,530)"/>
    <wire from="(1030,560)" to="(1030,710)"/>
    <wire from="(920,630)" to="(920,650)"/>
    <wire from="(910,450)" to="(1020,450)"/>
    <wire from="(1010,430)" to="(1010,540)"/>
    <wire from="(330,670)" to="(490,670)"/>
    <wire from="(630,130)" to="(630,240)"/>
    <wire from="(710,610)" to="(730,610)"/>
    <wire from="(700,430)" to="(730,430)"/>
    <wire from="(870,290)" to="(870,390)"/>
    <wire from="(600,290)" to="(820,290)"/>
    <wire from="(1380,530)" to="(1580,530)"/>
    <wire from="(620,330)" to="(620,390)"/>
    <wire from="(750,220)" to="(750,270)"/>
    <wire from="(810,240)" to="(820,240)"/>
    <wire from="(1080,260)" to="(1100,260)"/>
    <comp lib="0" loc="(820,440)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
    </comp>
    <comp loc="(590,120)" name="Program_Counter">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(720,630)" name="Pull Resistor">
      <a name="facing" val="north"/>
      <a name="pull" val="1"/>
    </comp>
    <comp loc="(760,450)" name="Quad_2_to_1_Mux_1_Bit_74LS157"/>
    <comp loc="(590,210)" name="Four_Bit_MAR">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(540,410)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(910,240)" name="A_B_Reg">
      <a name="label" val="B"/>
    </comp>
    <comp loc="(910,160)" name="A_B_Reg">
      <a name="label" val="A"/>
    </comp>
    <comp loc="(1080,260)" name="ALU"/>
    <comp lib="0" loc="(1020,270)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(1020,190)" name="Splitter">
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="right"/>
    </comp>
    <comp loc="(760,560)" name="Quad_2_to_1_Mux_1_Bit_74LS157"/>
    <comp lib="0" loc="(560,110)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="PC"/>
    </comp>
    <comp loc="(990,620)" name="Control_Logic_28C16">
      <a name="facing" val="south"/>
    </comp>
    <comp loc="(1160,390)" name="Output_Register">
      <a name="labelfont" val="SansSerif plain 14"/>
    </comp>
    <comp loc="(910,430)" name="Instruction_Reg"/>
    <comp lib="0" loc="(930,490)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="IR"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(620,110)" name="Clock">
      <a name="facing" val="south"/>
      <a name="label" val="CLK"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(810,240)" name="Splitter">
      <a name="facing" val="west"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="center"/>
    </comp>
    <comp loc="(590,300)" name="RAM">
      <a name="facing" val="north"/>
    </comp>
    <comp lib="0" loc="(560,310)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </comp>
    <comp lib="0" loc="(550,200)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="4"/>
      <a name="label" val="MAR"/>
    </comp>
    <comp lib="0" loc="(750,220)" name="Splitter">
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(840,50)" name="Pin">
      <a name="facing" val="south"/>
      <a name="label" val="RESET"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(670,640)" name="Splitter">
      <a name="facing" val="north"/>
      <a name="fanout" val="8"/>
      <a name="incoming" val="8"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(720,330)" name="Pin">
      <a name="facing" val="west"/>
      <a name="label" val="PROG_RAM"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(720,350)" name="Button">
      <a name="facing" val="west"/>
      <a name="label" val="COMMIT"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="5" loc="(720,370)" name="Button">
      <a name="facing" val="west"/>
      <a name="label" val="STEP"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp loc="(1320,470)" name="Four_Bit_7_Seg"/>
    <comp loc="(1320,510)" name="Four_Bit_7_Seg"/>
    <comp loc="(1320,550)" name="Four_Bit_7_Seg"/>
    <comp lib="0" loc="(1360,440)" name="Splitter">
      <a name="fanout" val="7"/>
      <a name="incoming" val="7"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(1360,510)" name="Splitter">
      <a name="fanout" val="7"/>
      <a name="incoming" val="7"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="0" loc="(1360,580)" name="Splitter">
      <a name="fanout" val="7"/>
      <a name="incoming" val="7"/>
      <a name="appear" val="center"/>
    </comp>
    <comp lib="5" loc="(1510,620)" name="7-Segment Display">
      <a name="labelvisible" val="true"/>
    </comp>
    <comp lib="5" loc="(1590,620)" name="7-Segment Display"/>
    <comp lib="5" loc="(1550,620)" name="7-Segment Display">
      <a name="labelvisible" val="true"/>
    </comp>
    <comp lib="0" loc="(890,510)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="ZF"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(890,560)" name="Pin">
      <a name="output" val="true"/>
      <a name="label" val="CF"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp lib="0" loc="(1200,160)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="B_DATA"/>
      <a name="labelloc" val="south"/>
    </comp>
    <comp lib="0" loc="(1200,130)" name="Pin">
      <a name="facing" val="west"/>
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="A_DATA"/>
      <a name="labelloc" val="north"/>
    </comp>
    <comp loc="(1300,390)" name="Twelve_Bit_BCD_to_7_Segs"/>
    <comp loc="(610,630)" name="RAM_Programmer"/>
    <comp lib="0" loc="(430,400)" name="Pin">
      <a name="output" val="true"/>
      <a name="width" val="8"/>
      <a name="label" val="BUS_DATA"/>
      <a name="labelloc" val="south"/>
    </comp>
  </circuit>
</project>
