<?xml version="1.0" encoding="UTF-8"?>
<net name="vga_disp_analog" type="iopt-flow">
  <signal id="Xcntr" x="295" y="135" mode="internal" type="range" min="0" max="1079" frac="0" value="0" dynamic="none"/>
  <signal id="Ycntr" x="295" y="210" mode="internal" type="range" min="0" max="779" frac="0" value="0" dynamic="none"/>
  <signal id="XSync" x="840" y="135" mode="output" type="boolean" min="0" max="1" dynamic="type" frac="0"/>
  <signal id="YSync" x="840" y="210" mode="output" type="boolean" min="0" max="1" dynamic="type" frac="0"/>
  <operation id="o005" x="635" y="135" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SyncX"/>
    <input off_x="-16" off_y="0" name="Xcntr" id="o005.Xcntr" type="range" min="0" max="1079" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o005.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Xcntr"/>
        <operator type="more"/>
        <operand type="literal" value="1060"/>
        <text>Xcntr &gt; 1060</text>
      </expression>
    </output>
  </operation>
  <arc id="a006" type="read" source="Xcntr" target="o005.Xcntr"/>
  <operation id="o010" x="735" y="135" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SyncXD"/>
    <input off_x="-16" off_y="0" name="o005" id="o010.o005" type="boolean" min="0" max="1" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o010.out" type="boolean" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="o005" delay="1"/>
        <text>o005[-1]</text>
      </expression>
    </output>
  </operation>
  <arc id="a011" type="read" source="o005.out" target="o010.o005"/>
  <arc id="a012" type="read" source="o010.out" target="XSync"/>
  <operation id="o013" x="635" y="210" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SyncY"/>
    <input off_x="-16" off_y="0" name="Ycntr" id="o013.Ycntr" type="range" min="0" max="779" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o013.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Ycntr"/>
        <operator type="more"/>
        <operand type="literal" value="770"/>
        <text>Ycntr &gt; 770</text>
      </expression>
    </output>
  </operation>
  <operation id="o014" x="730" y="210" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SyncYD"/>
    <input off_x="-16" off_y="0" name="o005" id="o014.o005" type="boolean" min="0" max="1" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o014.out" type="boolean" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="o005" delay="1"/>
        <text>o005[-1]</text>
      </expression>
    </output>
  </operation>
  <arc id="a015" type="read" source="o013.out" target="o014.o005"/>
  <arc id="a016" type="read" source="Ycntr" target="o013.Ycntr"/>
  <arc id="a017" type="read" source="o014.out" target="YSync"/>
  <signal id="I0" x="120" y="390" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="OutCol" x="1090" y="625" mode="internal" type="range" min="0" max="7" frac="0" value="0" dynamic="none"/>
  <operation id="o020" x="1190" y="570" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SliptRed"/>
    <input off_x="-16" off_y="0" name="OutCol" id="o020.OutCol" type="range" min="0" max="7" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o020.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="OutCol" delay="1"/>
        <operator type="mod"/>
        <operand type="literal" value="2"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>OutCol[-1] MOD 2 = 1</text>
      </expression>
    </output>
  </operation>
  <operation id="o021" x="1190" y="625" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SplitGreen"/>
    <input off_x="-16" off_y="0" name="OutCol" id="o021.OutCol" type="range" min="0" max="7" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o021.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="OutCol" delay="1"/>
          <operator type="div"/>
          <operand type="literal" value="2"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="2"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>(OutCol[-1] / 2) MOD 2 = 1</text>
      </expression>
    </output>
  </operation>
  <operation id="o022" x="1190" y="680" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="SplitBlue"/>
    <input off_x="-16" off_y="0" name="OutCol" id="o022.OutCol" type="range" min="0" max="7" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o022.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="OutCol" delay="1"/>
          <operator type="div"/>
          <operand type="literal" value="4"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="2"/>
        <operator type="equal"/>
        <operand type="literal" value="1"/>
        <text>(OutCol[-1] / 4) MOD 2 = 1</text>
      </expression>
    </output>
  </operation>
  <signal id="Red" x="1255" y="570" mode="output" type="boolean" min="0" max="1" dynamic="type" frac="0"/>
  <arc id="a025" type="read" source="OutCol" target="o020.OutCol"/>
  <arc id="a026" type="read" source="OutCol" target="o021.OutCol"/>
  <arc id="a027" type="read" source="OutCol" target="o022.OutCol"/>
  <arc id="a028" type="read" source="o020.out" target="Red"/>
  <signal id="Green" x="1255" y="625" mode="output" type="boolean" min="0" max="1" dynamic="type" frac="0"/>
  <arc id="a030" type="read" source="o021.out" target="Green"/>
  <signal id="Blue" x="1255" y="680" mode="output" type="boolean" min="0" max="1" dynamic="type" frac="0"/>
  <arc id="a032" type="read" source="o022.out" target="Blue"/>
  <signal id="I1" x="120" y="425" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I7" x="115" y="740" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I4" x="120" y="535" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I9" x="115" y="810" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I2" x="120" y="460" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I3" x="120" y="500" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I6" x="115" y="705" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <signal id="I5" x="115" y="670" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <operation id="o042" x="105" y="300" constant="0" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="0"/>
    <output off_x="20" off_y="0" name="K" id="o042.K" type="range" min="0" max="0" dynamic="none" frac="0">
      <expression>
        <text>0</text>
        <operand type="literal" value="0"/>
      </expression>
    </output>
  </operation>
  <operation id="o044" x="285" y="345" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o044.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o044.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o044.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o044.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o044.StartY" type="range" min="10" max="10" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o044.OutCol" type="range" min="0" max="1079" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o044.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a045" type="read" source="Xcntr" target="o044.X" view="symbolic"/>
  <arc id="a046" type="read" source="Ycntr" target="o044.Y" view="symbolic"/>
  <arc id="a047" type="read" source="o042.K" target="o044.InCol"/>
  <arc id="a048" type="read" source="I0" target="o044.In"/>
  <signal id="Enable" x="125" y="65" mode="input" type="boolean" min="0" max="1"/>
  <operation id="o065" x="180" y="135" rot="0" shape="arrow" size="24">
    <name off_x="-19" off_y="-24" text="o065"/>
    <input off_x="-24" off_y="-8" name="Enable" id="o065.Enable" type="boolean" min="0" max="1" dynamic="all"/>
    <input off_x="-24" off_y="8" name="Xcntr" id="o065.Xcntr" type="range" min="0" max="1079" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="o065.out" type="range" min="0" max="1079" dynamic="type" frac="0">
      <expression>
        <operand type="literal" value="0"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Enable"/>
          <operator type="equal"/>
          <operand type="literal" value="0"/>
          <operator type="or"/>
          <operand type="signal" idRef="Xcntr" delay="1"/>
          <operator type="equal"/>
          <operand type="literal" value="1079"/>
        </operand>
        <text>0 WHEN (Enable = 0 OR Xcntr[-1] = 1079)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Xcntr" delay="1"/>
        <operator type="add"/>
        <operand type="literal" value="1"/>
        <text>Xcntr[-1] + 1 OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="a066" type="read" source="Enable" target="o065.Enable" view="symbolic"/>
  <arc id="a067" type="read" source="Xcntr" target="o065.Xcntr" view="symbolic"/>
  <arc id="a068" type="read" source="o065.out" target="Xcntr"/>
  <operation id="o069" x="190" y="210" rot="0" shape="arrow" size="32">
    <name off_x="-27" off_y="-32" text="o069"/>
    <input off_x="-32" off_y="-16" name="Enable" id="o069.Enable" type="boolean" min="0" max="1" dynamic="all"/>
    <input off_x="-32" off_y="0" name="Xcntr" id="o069.Xcntr" type="range" min="0" max="1079" dynamic="all" frac="0"/>
    <input off_x="-32" off_y="16" name="Ycntr" id="o069.Ycntr" type="range" min="0" max="779" dynamic="all" frac="0"/>
    <output off_x="32" off_y="0" name="out" id="o069.out" type="range" min="0" max="772" dynamic="none" frac="0">
      <expression>
        <operand type="literal" value="0"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Enable"/>
          <operator type="equal"/>
          <operand type="literal" value="0"/>
          <operator type="or"/>
          <operand type="sub-expression">
            <operand type="signal" idRef="Ycntr" delay="1"/>
            <operator type="equal"/>
            <operand type="literal" value="779"/>
            <operator type="and"/>
            <operand type="signal" idRef="Xcntr" delay="1"/>
            <operator type="equal"/>
            <operand type="literal" value="1079"/>
          </operand>
        </operand>
        <text>0 WHEN (Enable = 0 OR (Ycntr[-1] = 779 AND Xcntr[-1] = 1079))</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Ycntr" delay="1"/>
        <operator type="add"/>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Xcntr" delay="1"/>
          <operator type="equal"/>
          <operand type="literal" value="1079"/>
        </operand>
        <text>Ycntr[-1] + 1 WHEN (Xcntr[-1] = 1079)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="Ycntr" delay="1"/>
        <text>Ycntr[-1] OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="a070" type="read" source="Ycntr" target="o069.Ycntr" view="symbolic"/>
  <arc id="a071" type="read" source="Xcntr" target="o069.Xcntr" view="symbolic"/>
  <arc id="a072" type="read" source="Enable" target="o069.Enable" view="symbolic"/>
  <arc id="a073" type="read" source="o069.out" target="Ycntr"/>
  <operation id="o079" x="160" y="320" constant="16" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="16"/>
    <output off_x="20" off_y="0" name="K" id="o079.K" type="range" min="16" max="16" dynamic="none" frac="0">
      <expression>
        <text>16</text>
        <operand type="literal" value="16"/>
      </expression>
    </output>
  </operation>
  <arc id="a081" type="read" source="o079.K" target="o044.StartY"/>
  <signal id="I8" x="115" y="775" mode="input" type="range" min="0" max="1023" frac="0" value="0" dynamic="none"/>
  <operation id="o002" x="445" y="380" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o002.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o002.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o002.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o002.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o002.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o002.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o002.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a003" type="read" source="I1" target="o002.In"/>
  <arc id="a004" type="read" source="o044.OutCol" target="o002.InCol"/>
  <arc id="a005" type="read" source="o044.OutY" target="o002.StartY"/>
  <operation id="o006" x="610" y="415" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o006.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o006.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o006.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o006.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o006.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o006.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o006.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a007" type="read" source="I2" target="o006.In"/>
  <arc id="a008" type="read" source="o002.OutY" target="o006.StartY"/>
  <arc id="a009" type="read" source="o002.OutCol" target="o006.InCol"/>
  <operation id="o011" x="775" y="450" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o011.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o011.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o011.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o011.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o011.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o011.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o011.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a013" type="read" source="I3" target="o011.In"/>
  <arc id="a014" type="read" source="o006.OutY" target="o011.StartY"/>
  <arc id="a018" type="read" source="o006.OutCol" target="o011.InCol"/>
  <operation id="o019" x="940" y="485" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o019.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o019.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o019.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o019.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o019.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o019.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>1 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>(StartY / 32) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o019.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a020" type="read" source="I4" target="o019.In"/>
  <arc id="a021" type="read" source="o011.OutY" target="o019.StartY"/>
  <arc id="a022" type="read" source="o011.OutCol" target="o019.InCol"/>
  <operation id="o023" x="285" y="625" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o023.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o023.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o023.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o023.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o023.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o023.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o023.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <operation id="o024" x="445" y="660" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o024.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o024.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o024.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o024.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o024.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o024.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o024.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <operation id="o025" x="610" y="695" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o025.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o025.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o025.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o025.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o025.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o025.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o025.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <operation id="o026" x="775" y="730" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o026.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o026.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o026.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o026.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o026.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o026.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o026.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <operation id="o027" x="940" y="765" rot="0" shape="arrow" size="60">
    <name off_x="-53" off_y="-60" text="DispIn"/>
    <input off_x="-60" off_y="-45" name="InCol" id="o027.InCol" type="range" min="0" max="7" frac="0"/>
    <input off_x="-60" off_y="0" name="X" id="o027.X" type="range" min="0" max="1079" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="20" name="Y" id="o027.Y" type="range" min="0" max="779" dynamic="type" frac="0"/>
    <input off_x="-60" off_y="45" name="In" id="o027.In" type="range" min="0" max="1023" dynamic="type" frac="0"/>
    <input name="StartY" id="o027.StartY" type="range" min="-32768" max="32767" frac="0" dynamic="type" off_x="-60" off_y="-25"/>
    <output off_x="60" off_y="-10" name="OutCol" id="o027.OutCol" type="range" min="-32768" max="32767" dynamic="type" frac="0">
      <expression>
        <operand type="sub-expression">
          <operand type="signal" idRef="StartY"/>
          <operator type="div"/>
          <operand type="literal" value="32"/>
          <operator type="add"/>
          <operand type="literal" value="1"/>
        </operand>
        <operator type="mod"/>
        <operand type="literal" value="8"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
          <operator type="and"/>
          <operand type="signal" idRef="X"/>
          <operator type="less-or-equal"/>
          <operand type="signal" idRef="In"/>
        </operand>
        <text>(StartY / 32 + 1) MOD 8 WHEN (Y &gt; StartY AND Y &lt; StartY + 10 AND X &lt;= In)</text>
      </expression>
      <expression>
        <operand type="literal" value="7"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="Y"/>
          <operator type="more"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="and"/>
          <operand type="signal" idRef="Y"/>
          <operator type="less"/>
          <operand type="signal" idRef="StartY"/>
          <operator type="add"/>
          <operand type="literal" value="10"/>
        </operand>
        <text>7 WHEN (Y &gt; StartY AND Y &lt; StartY + 10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="InCol"/>
        <text>InCol OTHERWISE</text>
      </expression>
    </output>
    <output name="OutY" id="o027.OutY" type="range" min="-32768" max="32767" frac="0" off_x="60" off_y="10">
      <expression>
        <operand type="signal" idRef="StartY"/>
        <operator type="add"/>
        <operand type="literal" value="32"/>
        <text>StartY + 32</text>
      </expression>
    </output>
  </operation>
  <arc id="a029" type="read" source="o023.OutCol" target="o024.InCol"/>
  <arc id="a031" type="read" source="o023.OutY" target="o024.StartY"/>
  <arc id="a033" type="read" source="o024.OutY" target="o025.StartY"/>
  <arc id="a034" type="read" source="o024.OutCol" target="o025.InCol"/>
  <arc id="a035" type="read" source="o025.OutY" target="o026.StartY"/>
  <arc id="a036" type="read" source="o025.OutCol" target="o026.InCol"/>
  <arc id="a037" type="read" source="o026.OutY" target="o027.StartY"/>
  <arc id="a038" type="read" source="o026.OutCol" target="o027.InCol"/>
  <arc id="a039" type="read" source="o019.OutCol" target="o023.InCol" view="symbolic"/>
  <arc id="a040" type="read" source="o019.OutY" target="o023.StartY" view="symbolic"/>
  <arc id="a041" type="read" source="I5" target="o023.In"/>
  <arc id="a042" type="read" source="I6" target="o024.In"/>
  <arc id="a043" type="read" source="I7" target="o025.In"/>
  <arc id="a044" type="read" source="I8" target="o026.In"/>
  <arc id="a049" type="read" source="I9" target="o027.In"/>
  <arc id="a050" type="read" source="o027.OutCol" target="OutCol"/>
  <arc id="a051" type="read" source="Xcntr" target="o002.X" view="symbolic"/>
  <arc id="a052" type="read" source="Xcntr" target="o006.X" view="symbolic"/>
  <arc id="a053" type="read" source="Xcntr" target="o011.X" view="symbolic"/>
  <arc id="a054" type="read" source="Xcntr" target="o023.X" view="symbolic"/>
  <arc id="a055" type="read" source="Xcntr" target="o024.X" view="symbolic"/>
  <arc id="a056" type="read" source="Xcntr" target="o025.X" view="symbolic"/>
  <arc id="a057" type="read" source="Xcntr" target="o026.X" view="symbolic"/>
  <arc id="a058" type="read" source="Xcntr" target="o027.X" view="symbolic"/>
  <arc id="a059" type="read" source="Xcntr" target="o019.X" view="symbolic"/>
  <arc id="a060" type="read" source="Ycntr" target="o002.Y" view="symbolic"/>
  <arc id="a061" type="read" source="Ycntr" target="o006.Y" view="symbolic"/>
  <arc id="a062" type="read" source="Ycntr" target="o011.Y" view="symbolic"/>
  <arc id="a063" type="read" source="Ycntr" target="o019.Y" view="symbolic"/>
  <arc id="a064" type="read" source="Ycntr" target="o023.Y" view="symbolic"/>
  <arc id="a065" type="read" source="Ycntr" target="o024.Y" view="symbolic"/>
  <arc id="a069" type="read" source="Ycntr" target="o025.Y" view="symbolic"/>
  <arc id="a074" type="read" source="Ycntr" target="o026.Y" view="symbolic"/>
  <arc id="a075" type="read" source="Ycntr" target="o027.Y" view="symbolic"/>
</net>
