<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.13.8" 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="north"/>
      <a name="fanout" val="4"/>
      <a name="incoming" val="4"/>
      <a name="appear" val="right"/>
    </tool>
    <tool name="Pin">
      <a name="width" val="4"/>
    </tool>
    <tool name="Probe">
      <a name="facing" val="west"/>
    </tool>
    <tool name="Pull Resistor">
      <a name="facing" val="north"/>
    </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">
    <tool name="LED">
      <a name="facing" val="south"/>
    </tool>
  </lib>
  <lib desc="#Base" name="6">
    <tool name="Text Tool">
      <a name="text" val=""/>
      <a name="font" val="SansSerif plain 12"/>
      <a name="halign" val="center"/>
      <a name="valign" val="base"/>
    </tool>
  </lib>
  <main name="main"/>
  <options>
    <a name="gateUndefined" val="ignore"/>
    <a name="simlimit" val="1000"/>
    <a name="simrand" val="0"/>
    <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="south"/>
      <a name="output" val="true"/>
      <a name="labelloc" val="east"/>
    </tool>
    <tool lib="1" name="NOT Gate"/>
    <tool lib="1" name="AND Gate"/>
    <tool lib="1" name="OR Gate"/>
  </toolbar>
  <circuit name="main">
    <a name="circuit" val="main"/>
    <a name="clabel" val=""/>
    <a name="clabelup" val="east"/>
    <a name="clabelfont" val="SansSerif plain 12"/>
    <a name="circuitvhdl" val="false"/>
    <a name="circuitvhdlpath" val=""/>
    <wire from="(90,470)" to="(210,470)"/>
    <wire from="(370,210)" to="(370,230)"/>
    <wire from="(110,300)" to="(110,380)"/>
    <wire from="(710,470)" to="(810,470)"/>
    <wire from="(310,470)" to="(410,470)"/>
    <wire from="(970,210)" to="(970,230)"/>
    <wire from="(510,470)" to="(610,470)"/>
    <wire from="(570,210)" to="(570,230)"/>
    <wire from="(800,150)" to="(800,230)"/>
    <wire from="(770,210)" to="(770,230)"/>
    <wire from="(150,290)" to="(180,290)"/>
    <wire from="(300,130)" to="(300,230)"/>
    <wire from="(650,90)" to="(650,130)"/>
    <wire from="(350,330)" to="(380,330)"/>
    <wire from="(370,230)" to="(400,230)"/>
    <wire from="(750,330)" to="(780,330)"/>
    <wire from="(770,230)" to="(800,230)"/>
    <wire from="(550,330)" to="(580,330)"/>
    <wire from="(540,160)" to="(570,160)"/>
    <wire from="(300,130)" to="(510,130)"/>
    <wire from="(970,230)" to="(1000,230)"/>
    <wire from="(870,230)" to="(870,290)"/>
    <wire from="(370,290)" to="(380,290)"/>
    <wire from="(610,90)" to="(610,150)"/>
    <wire from="(670,230)" to="(670,290)"/>
    <wire from="(270,230)" to="(270,290)"/>
    <wire from="(400,140)" to="(530,140)"/>
    <wire from="(530,90)" to="(530,140)"/>
    <wire from="(470,230)" to="(470,290)"/>
    <wire from="(770,290)" to="(780,290)"/>
    <wire from="(570,290)" to="(580,290)"/>
    <wire from="(510,340)" to="(510,470)"/>
    <wire from="(310,340)" to="(310,470)"/>
    <wire from="(710,340)" to="(710,470)"/>
    <wire from="(500,150)" to="(550,150)"/>
    <wire from="(570,90)" to="(570,160)"/>
    <wire from="(910,340)" to="(910,470)"/>
    <wire from="(650,330)" to="(650,420)"/>
    <wire from="(970,290)" to="(970,380)"/>
    <wire from="(650,420)" to="(750,420)"/>
    <wire from="(850,330)" to="(850,420)"/>
    <wire from="(900,140)" to="(900,230)"/>
    <wire from="(250,420)" to="(350,420)"/>
    <wire from="(250,330)" to="(250,420)"/>
    <wire from="(450,420)" to="(550,420)"/>
    <wire from="(450,330)" to="(450,420)"/>
    <wire from="(90,280)" to="(120,280)"/>
    <wire from="(160,420)" to="(250,420)"/>
    <wire from="(340,290)" to="(370,290)"/>
    <wire from="(650,130)" to="(1000,130)"/>
    <wire from="(740,290)" to="(770,290)"/>
    <wire from="(540,290)" to="(570,290)"/>
    <wire from="(940,290)" to="(970,290)"/>
    <wire from="(630,140)" to="(900,140)"/>
    <wire from="(610,150)" to="(800,150)"/>
    <wire from="(270,210)" to="(270,230)"/>
    <wire from="(810,470)" to="(910,470)"/>
    <wire from="(470,210)" to="(470,230)"/>
    <wire from="(610,470)" to="(710,470)"/>
    <wire from="(500,150)" to="(500,230)"/>
    <wire from="(160,330)" to="(160,420)"/>
    <wire from="(870,210)" to="(870,230)"/>
    <wire from="(90,560)" to="(130,560)"/>
    <wire from="(410,470)" to="(510,470)"/>
    <wire from="(590,160)" to="(700,160)"/>
    <wire from="(670,210)" to="(670,230)"/>
    <wire from="(210,470)" to="(310,470)"/>
    <wire from="(250,330)" to="(280,330)"/>
    <wire from="(450,330)" to="(480,330)"/>
    <wire from="(470,230)" to="(500,230)"/>
    <wire from="(270,230)" to="(300,230)"/>
    <wire from="(650,330)" to="(680,330)"/>
    <wire from="(670,230)" to="(700,230)"/>
    <wire from="(1000,130)" to="(1000,230)"/>
    <wire from="(160,330)" to="(180,330)"/>
    <wire from="(510,90)" to="(510,130)"/>
    <wire from="(850,330)" to="(880,330)"/>
    <wire from="(870,230)" to="(900,230)"/>
    <wire from="(470,290)" to="(480,290)"/>
    <wire from="(270,290)" to="(280,290)"/>
    <wire from="(970,230)" to="(970,290)"/>
    <wire from="(570,230)" to="(570,290)"/>
    <wire from="(550,90)" to="(550,150)"/>
    <wire from="(770,230)" to="(770,290)"/>
    <wire from="(370,230)" to="(370,290)"/>
    <wire from="(90,420)" to="(160,420)"/>
    <wire from="(870,290)" to="(880,290)"/>
    <wire from="(630,90)" to="(630,140)"/>
    <wire from="(670,290)" to="(680,290)"/>
    <wire from="(210,340)" to="(210,470)"/>
    <wire from="(410,340)" to="(410,470)"/>
    <wire from="(610,340)" to="(610,470)"/>
    <wire from="(700,160)" to="(700,230)"/>
    <wire from="(810,340)" to="(810,470)"/>
    <wire from="(540,160)" to="(540,230)"/>
    <wire from="(590,90)" to="(590,160)"/>
    <wire from="(750,330)" to="(750,420)"/>
    <wire from="(550,330)" to="(550,420)"/>
    <wire from="(550,420)" to="(650,420)"/>
    <wire from="(750,420)" to="(850,420)"/>
    <wire from="(350,420)" to="(450,420)"/>
    <wire from="(400,140)" to="(400,230)"/>
    <wire from="(350,330)" to="(350,420)"/>
    <wire from="(240,290)" to="(270,290)"/>
    <wire from="(440,290)" to="(470,290)"/>
    <wire from="(110,380)" to="(970,380)"/>
    <wire from="(540,230)" to="(570,230)"/>
    <wire from="(640,290)" to="(670,290)"/>
    <wire from="(840,290)" to="(870,290)"/>
    <wire from="(110,300)" to="(120,300)"/>
    <comp lib="5" loc="(650,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="5" loc="(90,470)" name="Button"/>
    <comp lib="0" loc="(270,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D0"/>
    </comp>
    <comp lib="0" loc="(370,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D1"/>
    </comp>
    <comp lib="5" loc="(610,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="5" loc="(530,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="4" loc="(690,280)" name="D Flip-Flop"/>
    <comp lib="4" loc="(790,280)" name="D Flip-Flop"/>
    <comp lib="4" loc="(490,280)" name="D Flip-Flop"/>
    <comp lib="5" loc="(630,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="5" loc="(570,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(870,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D6"/>
    </comp>
    <comp lib="4" loc="(390,280)" name="D Flip-Flop"/>
    <comp lib="0" loc="(90,560)" name="Clock">
      <a name="label" val="sysclk"/>
    </comp>
    <comp lib="0" loc="(970,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D7"/>
    </comp>
    <comp lib="5" loc="(510,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="1" loc="(150,290)" name="OR Gate">
      <a name="size" val="30"/>
    </comp>
    <comp lib="4" loc="(590,280)" name="D Flip-Flop"/>
    <comp lib="0" loc="(670,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D4"/>
    </comp>
    <comp lib="0" loc="(770,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D5"/>
    </comp>
    <comp lib="4" loc="(190,280)" name="D Flip-Flop"/>
    <comp lib="0" loc="(90,280)" name="Pin"/>
    <comp lib="4" loc="(290,280)" name="D Flip-Flop"/>
    <comp lib="5" loc="(590,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="4" loc="(890,280)" name="D Flip-Flop"/>
    <comp lib="5" loc="(550,90)" name="LED">
      <a name="facing" val="south"/>
    </comp>
    <comp lib="0" loc="(470,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D2"/>
    </comp>
    <comp lib="0" loc="(570,210)" name="Pin">
      <a name="facing" val="south"/>
      <a name="output" val="true"/>
      <a name="label" val="D3"/>
      <a name="labelloc" val="east"/>
    </comp>
    <comp lib="0" loc="(90,420)" name="Clock">
      <a name="highDuration" val="4"/>
      <a name="lowDuration" val="4"/>
      <a name="label" val="clk"/>
    </comp>
    <comp lib="6" loc="(4,16)" name="Text">
      <a name="text" val="Designed by S. Gražulis (https://saulius.grazulis.lt) CC-BY-NC"/>
      <a name="halign" val="left"/>
    </comp>
  </circuit>
</project>
