<?xml version="1.0" encoding="utf-8"?>
<circuit>
  <version>1</version>
  <attributes>
    <entry>
      <string>backgroundColor</string>
      <awt-color>
        <red>0</red>
        <green>222</green>
        <blue>255</blue>
        <alpha>255</alpha>
      </awt-color>
    </entry>
    <entry>
      <string>Width</string>
      <int>7</int>
    </entry>
  </attributes>
  <visualElements>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>48</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Stack ops</string>
        </entry>
      </elementAttributes>
      <pos x="1620" y="-360"/>
    </visualElement>
    <visualElement>
      <elementName>Not</elementName>
      <elementAttributes>
        <entry>
          <string>wideShape</string>
          <boolean>true</boolean>
        </entry>
      </elementAttributes>
      <pos x="660" y="600"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>~push/pop</string>
        </entry>
      </elementAttributes>
      <pos x="460" y="720"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
      </elementAttributes>
      <pos x="820" y="660"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>SP count enable, count up</string>
        </entry>
      </elementAttributes>
      <pos x="840" y="1140"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>A write enable
set stepper count reset</string>
        </entry>
      </elementAttributes>
      <pos x="1880" y="980"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>SP_count</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="140"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>When 0, counting is Up,
when 1, counting is Down</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>~Up/Down</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="260"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>MAR_we</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="380"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>memory write enable</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>MEM_we</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="600"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(low16) enable to D bus</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>PC_low16_en</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="740"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(hi8) enable to D bus</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>PC_hi8_en</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="840"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>B_en</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="940"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Enable A write</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>A_we</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="1060"/>
    </visualElement>
    <visualElement>
      <elementName>Clock</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>S3</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="-240"/>
    </visualElement>
    <visualElement>
      <elementName>Clock</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>S4</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="-180"/>
    </visualElement>
    <visualElement>
      <elementName>Clock</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>S5</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="-120"/>
    </visualElement>
    <visualElement>
      <elementName>Clock</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>S6</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="-60"/>
    </visualElement>
    <visualElement>
      <elementName>Splitter</elementName>
      <elementAttributes>
        <entry>
          <string>splitterSpreading</string>
          <int>4</int>
        </entry>
        <entry>
          <string>Input Splitting</string>
          <string>16</string>
        </entry>
        <entry>
          <string>Output Splitting</string>
          <string>2,1,1,12</string>
        </entry>
      </elementAttributes>
      <pos x="260" y="660"/>
    </visualElement>
    <visualElement>
      <elementName>Clock</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>S7</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="0"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>use PC</string>
        </entry>
      </elementAttributes>
      <pos x="360" y="800"/>
    </visualElement>
    <visualElement>
      <elementName>In</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>SP op</string>
        </entry>
      </elementAttributes>
      <pos x="240" y="1640"/>
    </visualElement>
    <visualElement>
      <elementName>In</elementName>
      <elementAttributes>
        <entry>
          <string>Label</string>
          <string>Instr_in</string>
        </entry>
        <entry>
          <string>Bits</string>
          <int>16</int>
        </entry>
      </elementAttributes>
      <pos x="240" y="660"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Push / Esr</string>
        </entry>
      </elementAttributes>
      <pos x="760" y="540"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Pop / Ret</string>
        </entry>
      </elementAttributes>
      <pos x="780" y="980"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
      </elementAttributes>
      <pos x="1260" y="1200"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Pop / Ret</string>
        </entry>
      </elementAttributes>
      <pos x="1260" y="1120"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Push / Esr</string>
        </entry>
      </elementAttributes>
      <pos x="1260" y="520"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MEM write enable	
SP count DOWN	
SP count enable</string>
        </entry>
      </elementAttributes>
      <pos x="1360" y="600"/>
    </visualElement>
    <visualElement>
      <elementName>Not</elementName>
      <elementAttributes>
        <entry>
          <string>wideShape</string>
          <boolean>true</boolean>
        </entry>
      </elementAttributes>
      <pos x="520" y="820"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>reg B enable to D bus
set stepper count reset</string>
        </entry>
      </elementAttributes>
      <pos x="1320" y="900"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Push</string>
        </entry>
      </elementAttributes>
      <pos x="1280" y="860"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MEM enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="1840" y="1140"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Pop / Ret</string>
        </entry>
      </elementAttributes>
      <pos x="1840" y="1080"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Pop:</string>
        </entry>
      </elementAttributes>
      <pos x="1840" y="920"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Hi8 write enable	
SP count UP	
SP count enable</string>
        </entry>
      </elementAttributes>
      <pos x="1920" y="1420"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Ret</string>
        </entry>
      </elementAttributes>
      <pos x="1840" y="1300"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Esr</string>
        </entry>
      </elementAttributes>
      <pos x="1860" y="540"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
      </elementAttributes>
      <pos x="1880" y="580"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Esr</string>
        </entry>
      </elementAttributes>
      <pos x="2440" y="480"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(hi8) enable to D bus

MEM write enable	
SP count DOWN	
SP count enable

set stepper count reset</string>
        </entry>
      </elementAttributes>
      <pos x="2600" y="460"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Esr</string>
        </entry>
      </elementAttributes>
      <pos x="1320" y="720"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(low16) enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="1300" y="760"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Step 3</string>
        </entry>
      </elementAttributes>
      <pos x="660" y="40"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Step 4</string>
        </entry>
      </elementAttributes>
      <pos x="1120" y="20"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Step 5</string>
        </entry>
      </elementAttributes>
      <pos x="1680" y="20"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Step 6</string>
        </entry>
      </elementAttributes>
      <pos x="2320" y="0"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Step 7</string>
        </entry>
      </elementAttributes>
      <pos x="2920" y="20"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
      </elementAttributes>
      <pos x="2500" y="1280"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Ret</string>
        </entry>
      </elementAttributes>
      <pos x="2500" y="1140"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>textFontSize</string>
          <int>36</int>
        </entry>
        <entry>
          <string>Description</string>
          <string>Ret</string>
        </entry>
      </elementAttributes>
      <pos x="3060" y="1100"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Steps 6 and 7 will never be reached by Push/Pop instructions,
So there is no need to distinguish ESR and RET from PUSH/POP,
therefore we can use 2-input AND gates as well as slighly less wires</string>
        </entry>
      </elementAttributes>
      <pos x="2380" y="-160"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MEM enable to D bus	
	
[Hi8][Bus16]	
PC write enable	

set stepper count reset</string>
        </entry>
      </elementAttributes>
      <pos x="3040" y="1220"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MEM enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="3420" y="1140"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>SP count enable</string>
        </entry>
      </elementAttributes>
      <pos x="3480" y="100"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>set stepper count reset</string>
        </entry>
      </elementAttributes>
      <pos x="3400" y="1480"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>count DOWN</string>
        </entry>
      </elementAttributes>
      <pos x="3500" y="220"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MAR write enable
select [SP24] (101)</string>
        </entry>
      </elementAttributes>
      <pos x="3440" y="340"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>MEM write enable</string>
        </entry>
      </elementAttributes>
      <pos x="3440" y="560"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Hi8 write enable</string>
        </entry>
      </elementAttributes>
      <pos x="3460" y="1340"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>A write enable</string>
        </entry>
      </elementAttributes>
      <pos x="3480" y="1020"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>reg B enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="3400" y="900"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(low16) enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="3360" y="740"/>
    </visualElement>
    <visualElement>
      <elementName>Text</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>PC(hi8) enable to D bus</string>
        </entry>
      </elementAttributes>
      <pos x="3380" y="800"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="120"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="240"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="360"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="580"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="720"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="820"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="920"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="1040"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="1180"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="1380"/>
    </visualElement>
    <visualElement>
      <elementName>And</elementName>
      <elementAttributes/>
      <pos x="3700" y="1500"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Enable Memory to bus</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>MEM_en</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="1200"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Enable Hi8 write</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>Hi8_we</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="1400"/>
    </visualElement>
    <visualElement>
      <elementName>Out</elementName>
      <elementAttributes>
        <entry>
          <string>Description</string>
          <string>Stepper Reset</string>
        </entry>
        <entry>
          <string>Label</string>
          <string>St_R</string>
        </entry>
      </elementAttributes>
      <pos x="3840" y="1520"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>3</int>
        </entry>
      </elementAttributes>
      <pos x="1240" y="740"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>4</int>
        </entry>
      </elementAttributes>
      <pos x="3260" y="80"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="780" y="600"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="780" y="1120"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="1240" y="1160"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="1800" y="1180"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="1240" y="580"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="2440" y="540"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="2440" y="1240"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="3040" y="1180"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="3280" y="1160"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="3260" y="560"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes/>
      <pos x="3260" y="220"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>3</int>
        </entry>
      </elementAttributes>
      <pos x="1240" y="900"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>3</int>
        </entry>
      </elementAttributes>
      <pos x="1800" y="1020"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>3</int>
        </entry>
      </elementAttributes>
      <pos x="1800" y="560"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>3</int>
        </entry>
      </elementAttributes>
      <pos x="1800" y="1360"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>4</int>
        </entry>
      </elementAttributes>
      <pos x="3260" y="320"/>
    </visualElement>
    <visualElement>
      <elementName>NAnd</elementName>
      <elementAttributes>
        <entry>
          <string>Inputs</string>
          <int>4</int>
        </entry>
      </elementAttributes>
      <pos x="3280" y="1500"/>
    </visualElement>
  </visualElements>
  <wires>
    <wire>
      <p1 x="240" y="0"/>
      <p2 x="3000" y="0"/>
    </wire>
    <wire>
      <p1 x="2400" y="1280"/>
      <p2 x="2440" y="1280"/>
    </wire>
    <wire>
      <p1 x="740" y="640"/>
      <p2 x="780" y="640"/>
    </wire>
    <wire>
      <p1 x="1220" y="900"/>
      <p2 x="1240" y="900"/>
    </wire>
    <wire>
      <p1 x="3060" y="260"/>
      <p2 x="3260" y="260"/>
    </wire>
    <wire>
      <p1 x="3760" y="260"/>
      <p2 x="3840" y="260"/>
    </wire>
    <wire>
      <p1 x="3360" y="1540"/>
      <p2 x="3700" y="1540"/>
    </wire>
    <wire>
      <p1 x="2280" y="1160"/>
      <p2 x="3280" y="1160"/>
    </wire>
    <wire>
      <p1 x="640" y="1160"/>
      <p2 x="760" y="1160"/>
    </wire>
    <wire>
      <p1 x="1200" y="1160"/>
      <p2 x="1240" y="1160"/>
    </wire>
    <wire>
      <p1 x="760" y="1160"/>
      <p2 x="780" y="1160"/>
    </wire>
    <wire>
      <p1 x="1180" y="780"/>
      <p2 x="1240" y="780"/>
    </wire>
    <wire>
      <p1 x="1920" y="140"/>
      <p2 x="3260" y="140"/>
    </wire>
    <wire>
      <p1 x="3760" y="140"/>
      <p2 x="3840" y="140"/>
    </wire>
    <wire>
      <p1 x="3680" y="1420"/>
      <p2 x="3700" y="1420"/>
    </wire>
    <wire>
      <p1 x="1140" y="1040"/>
      <p2 x="1800" y="1040"/>
    </wire>
    <wire>
      <p1 x="1880" y="1040"/>
      <p2 x="1900" y="1040"/>
    </wire>
    <wire>
      <p1 x="1900" y="1040"/>
      <p2 x="3700" y="1040"/>
    </wire>
    <wire>
      <p1 x="2620" y="400"/>
      <p2 x="3260" y="400"/>
    </wire>
    <wire>
      <p1 x="3680" y="400"/>
      <p2 x="3700" y="400"/>
    </wire>
    <wire>
      <p1 x="240" y="660"/>
      <p2 x="260" y="660"/>
    </wire>
    <wire>
      <p1 x="1320" y="920"/>
      <p2 x="1360" y="920"/>
    </wire>
    <wire>
      <p1 x="1140" y="920"/>
      <p2 x="1240" y="920"/>
    </wire>
    <wire>
      <p1 x="1360" y="920"/>
      <p2 x="3700" y="920"/>
    </wire>
    <wire>
      <p1 x="1900" y="1560"/>
      <p2 x="3280" y="1560"/>
    </wire>
    <wire>
      <p1 x="3680" y="280"/>
      <p2 x="3700" y="280"/>
    </wire>
    <wire>
      <p1 x="1780" y="540"/>
      <p2 x="2440" y="540"/>
    </wire>
    <wire>
      <p1 x="3000" y="1180"/>
      <p2 x="3040" y="1180"/>
    </wire>
    <wire>
      <p1 x="1320" y="1180"/>
      <p2 x="1380" y="1180"/>
    </wire>
    <wire>
      <p1 x="1760" y="1180"/>
      <p2 x="1800" y="1180"/>
    </wire>
    <wire>
      <p1 x="3360" y="1180"/>
      <p2 x="3700" y="1180"/>
    </wire>
    <wire>
      <p1 x="2540" y="160"/>
      <p2 x="3060" y="160"/>
    </wire>
    <wire>
      <p1 x="3680" y="160"/>
      <p2 x="3700" y="160"/>
    </wire>
    <wire>
      <p1 x="3060" y="160"/>
      <p2 x="3260" y="160"/>
    </wire>
    <wire>
      <p1 x="1780" y="1060"/>
      <p2 x="1800" y="1060"/>
    </wire>
    <wire>
      <p1 x="3760" y="1060"/>
      <p2 x="3840" y="1060"/>
    </wire>
    <wire>
      <p1 x="1200" y="940"/>
      <p2 x="1240" y="940"/>
    </wire>
    <wire>
      <p1 x="3760" y="940"/>
      <p2 x="3840" y="940"/>
    </wire>
    <wire>
      <p1 x="1360" y="1580"/>
      <p2 x="3280" y="1580"/>
    </wire>
    <wire>
      <p1 x="760" y="1200"/>
      <p2 x="1220" y="1200"/>
    </wire>
    <wire>
      <p1 x="1880" y="1200"/>
      <p2 x="2280" y="1200"/>
    </wire>
    <wire>
      <p1 x="3120" y="1200"/>
      <p2 x="3140" y="1200"/>
    </wire>
    <wire>
      <p1 x="3760" y="1200"/>
      <p2 x="3840" y="1200"/>
    </wire>
    <wire>
      <p1 x="1220" y="1200"/>
      <p2 x="1240" y="1200"/>
    </wire>
    <wire>
      <p1 x="3140" y="1200"/>
      <p2 x="3280" y="1200"/>
    </wire>
    <wire>
      <p1 x="1220" y="560"/>
      <p2 x="1780" y="560"/>
    </wire>
    <wire>
      <p1 x="2520" y="560"/>
      <p2 x="2540" y="560"/>
    </wire>
    <wire>
      <p1 x="1780" y="560"/>
      <p2 x="1800" y="560"/>
    </wire>
    <wire>
      <p1 x="2540" y="560"/>
      <p2 x="3260" y="560"/>
    </wire>
    <wire>
      <p1 x="240" y="-180"/>
      <p2 x="1200" y="-180"/>
    </wire>
    <wire>
      <p1 x="280" y="820"/>
      <p2 x="500" y="820"/>
    </wire>
    <wire>
      <p1 x="580" y="820"/>
      <p2 x="1140" y="820"/>
    </wire>
    <wire>
      <p1 x="2620" y="820"/>
      <p2 x="3700" y="820"/>
    </wire>
    <wire>
      <p1 x="500" y="820"/>
      <p2 x="520" y="820"/>
    </wire>
    <wire>
      <p1 x="3680" y="1080"/>
      <p2 x="3700" y="1080"/>
    </wire>
    <wire>
      <p1 x="240" y="-60"/>
      <p2 x="2400" y="-60"/>
    </wire>
    <wire>
      <p1 x="920" y="320"/>
      <p2 x="3260" y="320"/>
    </wire>
    <wire>
      <p1 x="3680" y="960"/>
      <p2 x="3700" y="960"/>
    </wire>
    <wire>
      <p1 x="1220" y="1220"/>
      <p2 x="1780" y="1220"/>
    </wire>
    <wire>
      <p1 x="2420" y="1220"/>
      <p2 x="3040" y="1220"/>
    </wire>
    <wire>
      <p1 x="3680" y="1220"/>
      <p2 x="3700" y="1220"/>
    </wire>
    <wire>
      <p1 x="1780" y="1220"/>
      <p2 x="1800" y="1220"/>
    </wire>
    <wire>
      <p1 x="2400" y="580"/>
      <p2 x="2440" y="580"/>
    </wire>
    <wire>
      <p1 x="760" y="580"/>
      <p2 x="1220" y="580"/>
    </wire>
    <wire>
      <p1 x="1760" y="580"/>
      <p2 x="1800" y="580"/>
    </wire>
    <wire>
      <p1 x="1880" y="580"/>
      <p2 x="2000" y="580"/>
    </wire>
    <wire>
      <p1 x="3340" y="580"/>
      <p2 x="3700" y="580"/>
    </wire>
    <wire>
      <p1 x="1220" y="580"/>
      <p2 x="1240" y="580"/>
    </wire>
    <wire>
      <p1 x="3760" y="840"/>
      <p2 x="3840" y="840"/>
    </wire>
    <wire>
      <p1 x="1780" y="1360"/>
      <p2 x="1800" y="1360"/>
    </wire>
    <wire>
      <p1 x="900" y="80"/>
      <p2 x="3260" y="80"/>
    </wire>
    <wire>
      <p1 x="3680" y="720"/>
      <p2 x="3700" y="720"/>
    </wire>
    <wire>
      <p1 x="1380" y="340"/>
      <p2 x="3260" y="340"/>
    </wire>
    <wire>
      <p1 x="1780" y="1240"/>
      <p2 x="2420" y="1240"/>
    </wire>
    <wire>
      <p1 x="2420" y="1240"/>
      <p2 x="2440" y="1240"/>
    </wire>
    <wire>
      <p1 x="640" y="600"/>
      <p2 x="660" y="600"/>
    </wire>
    <wire>
      <p1 x="720" y="600"/>
      <p2 x="760" y="600"/>
    </wire>
    <wire>
      <p1 x="1320" y="600"/>
      <p2 x="1340" y="600"/>
    </wire>
    <wire>
      <p1 x="1740" y="600"/>
      <p2 x="1800" y="600"/>
    </wire>
    <wire>
      <p1 x="3100" y="600"/>
      <p2 x="3260" y="600"/>
    </wire>
    <wire>
      <p1 x="3760" y="600"/>
      <p2 x="3840" y="600"/>
    </wire>
    <wire>
      <p1 x="1340" y="600"/>
      <p2 x="1600" y="600"/>
    </wire>
    <wire>
      <p1 x="760" y="600"/>
      <p2 x="780" y="600"/>
    </wire>
    <wire>
      <p1 x="3140" y="1500"/>
      <p2 x="3280" y="1500"/>
    </wire>
    <wire>
      <p1 x="3680" y="1500"/>
      <p2 x="3700" y="1500"/>
    </wire>
    <wire>
      <p1 x="3080" y="220"/>
      <p2 x="3260" y="220"/>
    </wire>
    <wire>
      <p1 x="3680" y="860"/>
      <p2 x="3700" y="860"/>
    </wire>
    <wire>
      <p1 x="740" y="1120"/>
      <p2 x="780" y="1120"/>
    </wire>
    <wire>
      <p1 x="1760" y="1380"/>
      <p2 x="1800" y="1380"/>
    </wire>
    <wire>
      <p1 x="1880" y="1380"/>
      <p2 x="1920" y="1380"/>
    </wire>
    <wire>
      <p1 x="1920" y="1380"/>
      <p2 x="3700" y="1380"/>
    </wire>
    <wire>
      <p1 x="280" y="740"/>
      <p2 x="640" y="740"/>
    </wire>
    <wire>
      <p1 x="1220" y="740"/>
      <p2 x="1240" y="740"/>
    </wire>
    <wire>
      <p1 x="3760" y="740"/>
      <p2 x="3840" y="740"/>
    </wire>
    <wire>
      <p1 x="1340" y="100"/>
      <p2 x="3080" y="100"/>
    </wire>
    <wire>
      <p1 x="3080" y="100"/>
      <p2 x="3260" y="100"/>
    </wire>
    <wire>
      <p1 x="240" y="1640"/>
      <p2 x="3680" y="1640"/>
    </wire>
    <wire>
      <p1 x="3340" y="360"/>
      <p2 x="3700" y="360"/>
    </wire>
    <wire>
      <p1 x="1600" y="620"/>
      <p2 x="3100" y="620"/>
    </wire>
    <wire>
      <p1 x="860" y="620"/>
      <p2 x="920" y="620"/>
    </wire>
    <wire>
      <p1 x="1200" y="620"/>
      <p2 x="1240" y="620"/>
    </wire>
    <wire>
      <p1 x="3680" y="620"/>
      <p2 x="3700" y="620"/>
    </wire>
    <wire>
      <p1 x="2520" y="1260"/>
      <p2 x="2620" y="1260"/>
    </wire>
    <wire>
      <p1 x="240" y="-240"/>
      <p2 x="740" y="-240"/>
    </wire>
    <wire>
      <p1 x="2540" y="1520"/>
      <p2 x="3280" y="1520"/>
    </wire>
    <wire>
      <p1 x="3760" y="1520"/>
      <p2 x="3840" y="1520"/>
    </wire>
    <wire>
      <p1 x="3340" y="240"/>
      <p2 x="3700" y="240"/>
    </wire>
    <wire>
      <p1 x="860" y="1140"/>
      <p2 x="900" y="1140"/>
    </wire>
    <wire>
      <p1 x="240" y="-120"/>
      <p2 x="1760" y="-120"/>
    </wire>
    <wire>
      <p1 x="3760" y="1400"/>
      <p2 x="3840" y="1400"/>
    </wire>
    <wire>
      <p1 x="500" y="1400"/>
      <p2 x="1180" y="1400"/>
    </wire>
    <wire>
      <p1 x="1740" y="1400"/>
      <p2 x="1800" y="1400"/>
    </wire>
    <wire>
      <p1 x="1180" y="1400"/>
      <p2 x="1740" y="1400"/>
    </wire>
    <wire>
      <p1 x="1200" y="760"/>
      <p2 x="1240" y="760"/>
    </wire>
    <wire>
      <p1 x="1320" y="760"/>
      <p2 x="3700" y="760"/>
    </wire>
    <wire>
      <p1 x="3340" y="120"/>
      <p2 x="3700" y="120"/>
    </wire>
    <wire>
      <p1 x="2000" y="380"/>
      <p2 x="3260" y="380"/>
    </wire>
    <wire>
      <p1 x="3760" y="380"/>
      <p2 x="3840" y="380"/>
    </wire>
    <wire>
      <p1 x="1760" y="1020"/>
      <p2 x="1800" y="1020"/>
    </wire>
    <wire>
      <p1 x="640" y="600"/>
      <p2 x="640" y="740"/>
    </wire>
    <wire>
      <p1 x="640" y="740"/>
      <p2 x="640" y="1160"/>
    </wire>
    <wire>
      <p1 x="1920" y="140"/>
      <p2 x="1920" y="1380"/>
    </wire>
    <wire>
      <p1 x="1600" y="600"/>
      <p2 x="1600" y="620"/>
    </wire>
    <wire>
      <p1 x="900" y="80"/>
      <p2 x="900" y="1140"/>
    </wire>
    <wire>
      <p1 x="1220" y="1200"/>
      <p2 x="1220" y="1220"/>
    </wire>
    <wire>
      <p1 x="1220" y="560"/>
      <p2 x="1220" y="580"/>
    </wire>
    <wire>
      <p1 x="1220" y="580"/>
      <p2 x="1220" y="740"/>
    </wire>
    <wire>
      <p1 x="1220" y="740"/>
      <p2 x="1220" y="900"/>
    </wire>
    <wire>
      <p1 x="3140" y="1200"/>
      <p2 x="3140" y="1500"/>
    </wire>
    <wire>
      <p1 x="3080" y="100"/>
      <p2 x="3080" y="220"/>
    </wire>
    <wire>
      <p1 x="1740" y="600"/>
      <p2 x="1740" y="1400"/>
    </wire>
    <wire>
      <p1 x="1360" y="920"/>
      <p2 x="1360" y="1580"/>
    </wire>
    <wire>
      <p1 x="2000" y="380"/>
      <p2 x="2000" y="580"/>
    </wire>
    <wire>
      <p1 x="920" y="320"/>
      <p2 x="920" y="620"/>
    </wire>
    <wire>
      <p1 x="1180" y="780"/>
      <p2 x="1180" y="1400"/>
    </wire>
    <wire>
      <p1 x="3100" y="600"/>
      <p2 x="3100" y="620"/>
    </wire>
    <wire>
      <p1 x="3680" y="160"/>
      <p2 x="3680" y="280"/>
    </wire>
    <wire>
      <p1 x="3680" y="620"/>
      <p2 x="3680" y="720"/>
    </wire>
    <wire>
      <p1 x="3680" y="1220"/>
      <p2 x="3680" y="1420"/>
    </wire>
    <wire>
      <p1 x="3680" y="720"/>
      <p2 x="3680" y="860"/>
    </wire>
    <wire>
      <p1 x="3680" y="280"/>
      <p2 x="3680" y="400"/>
    </wire>
    <wire>
      <p1 x="3680" y="860"/>
      <p2 x="3680" y="960"/>
    </wire>
    <wire>
      <p1 x="3680" y="1420"/>
      <p2 x="3680" y="1500"/>
    </wire>
    <wire>
      <p1 x="3680" y="400"/>
      <p2 x="3680" y="620"/>
    </wire>
    <wire>
      <p1 x="3680" y="960"/>
      <p2 x="3680" y="1080"/>
    </wire>
    <wire>
      <p1 x="3680" y="1500"/>
      <p2 x="3680" y="1640"/>
    </wire>
    <wire>
      <p1 x="3680" y="1080"/>
      <p2 x="3680" y="1220"/>
    </wire>
    <wire>
      <p1 x="1760" y="-120"/>
      <p2 x="1760" y="580"/>
    </wire>
    <wire>
      <p1 x="1760" y="1020"/>
      <p2 x="1760" y="1180"/>
    </wire>
    <wire>
      <p1 x="1760" y="580"/>
      <p2 x="1760" y="1020"/>
    </wire>
    <wire>
      <p1 x="1760" y="1180"/>
      <p2 x="1760" y="1380"/>
    </wire>
    <wire>
      <p1 x="2400" y="-60"/>
      <p2 x="2400" y="580"/>
    </wire>
    <wire>
      <p1 x="2400" y="580"/>
      <p2 x="2400" y="1280"/>
    </wire>
    <wire>
      <p1 x="740" y="-240"/>
      <p2 x="740" y="640"/>
    </wire>
    <wire>
      <p1 x="740" y="640"/>
      <p2 x="740" y="1120"/>
    </wire>
    <wire>
      <p1 x="1380" y="340"/>
      <p2 x="1380" y="1180"/>
    </wire>
    <wire>
      <p1 x="2280" y="1160"/>
      <p2 x="2280" y="1200"/>
    </wire>
    <wire>
      <p1 x="2540" y="160"/>
      <p2 x="2540" y="560"/>
    </wire>
    <wire>
      <p1 x="2540" y="560"/>
      <p2 x="2540" y="1520"/>
    </wire>
    <wire>
      <p1 x="1900" y="1040"/>
      <p2 x="1900" y="1560"/>
    </wire>
    <wire>
      <p1 x="1200" y="-180"/>
      <p2 x="1200" y="620"/>
    </wire>
    <wire>
      <p1 x="1200" y="760"/>
      <p2 x="1200" y="940"/>
    </wire>
    <wire>
      <p1 x="1200" y="940"/>
      <p2 x="1200" y="1160"/>
    </wire>
    <wire>
      <p1 x="1200" y="620"/>
      <p2 x="1200" y="760"/>
    </wire>
    <wire>
      <p1 x="1780" y="1060"/>
      <p2 x="1780" y="1220"/>
    </wire>
    <wire>
      <p1 x="1780" y="540"/>
      <p2 x="1780" y="560"/>
    </wire>
    <wire>
      <p1 x="1780" y="1220"/>
      <p2 x="1780" y="1240"/>
    </wire>
    <wire>
      <p1 x="1780" y="1240"/>
      <p2 x="1780" y="1360"/>
    </wire>
    <wire>
      <p1 x="1140" y="820"/>
      <p2 x="1140" y="920"/>
    </wire>
    <wire>
      <p1 x="1140" y="920"/>
      <p2 x="1140" y="1040"/>
    </wire>
    <wire>
      <p1 x="2420" y="1220"/>
      <p2 x="2420" y="1240"/>
    </wire>
    <wire>
      <p1 x="3060" y="160"/>
      <p2 x="3060" y="260"/>
    </wire>
    <wire>
      <p1 x="500" y="820"/>
      <p2 x="500" y="1400"/>
    </wire>
    <wire>
      <p1 x="3000" y="0"/>
      <p2 x="3000" y="1180"/>
    </wire>
    <wire>
      <p1 x="760" y="1160"/>
      <p2 x="760" y="1200"/>
    </wire>
    <wire>
      <p1 x="760" y="580"/>
      <p2 x="760" y="600"/>
    </wire>
    <wire>
      <p1 x="1340" y="100"/>
      <p2 x="1340" y="600"/>
    </wire>
    <wire>
      <p1 x="2620" y="400"/>
      <p2 x="2620" y="560"/>
    </wire>
    <wire>
      <p1 x="2620" y="820"/>
      <p2 x="2620" y="1260"/>
    </wire>
    <wire>
      <p1 x="2620" y="560"/>
      <p2 x="2620" y="820"/>
    </wire>
  </wires>
  <measurementOrdering/>
</circuit>