<?xml version="1.0" encoding="UTF-8"?>
<net name="BurstBuffer_Receiver_2Phase" type="iopt-flow">
  <place id="p003" x="770" y="330" init_marking="0">
    <name off_x="-10" off_y="-10" text="Ack"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="t006" x="330" y="185" priority="0">
    <name off_x="-10" off_y="-10" text="t006"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <event id="Delay" x="690" y="95" mode="input"/>
  <signal id="Ack" x="835" y="330" mode="output" type="boolean" min="0" max="1" dynamic="none" frac="0" value="0"/>
  <arc id="a017" type="read" source="p003" target="Ack"/>
  <signal id="Req" x="1055" y="150" mode="input" type="boolean" min="0" max="1"/>
  <signal id="NewData" x="330" y="395" mode="output" type="boolean" min="0" max="1" dynamic="none" frac="0" value="0"/>
  <place id="p038" x="330" y="320" init_marking="0">
    <name off_x="-10" off_y="-10" text="DataReady"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="t040" x="205" y="320" priority="0">
    <name off_x="-10" off_y="-10" text="t040"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <arc id="a042" type="read" source="p038" target="NewData"/>
  <arc id="a046" type="normal" source="p038" target="t040"/>
  <arc id="a047" type="normal" source="t006" target="p038"/>
  <place id="p017" x="270" y="250" init_marking="1">
    <name off_x="-10" off_y="-10" text="DataReady_cmpl"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <arc id="a018" type="normal" source="t040" target="p017"/>
  <arc id="a019" type="normal" source="p017" target="t006"/>
  <operation id="o020" x="960" y="150" rot="-180" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="o020"/>
    <input off_x="16" off_y="0" name="Req" id="o020.Req" type="boolean" min="0" max="1" dynamic="all"/>
    <output off_x="-16" off_y="0" name="out" id="o020.out" 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="sub-expression">
            <operand type="signal" idRef="Req"/>
            <operator type="equal"/>
            <operand type="literal" value="0"/>
            <operator type="and"/>
            <operand type="signal" idRef="Req" delay="1"/>
            <operator type="equal"/>
            <operand type="literal" value="1"/>
          </operand>
          <operator type="or"/>
          <operand type="sub-expression">
            <operand type="signal" idRef="Req"/>
            <operator type="equal"/>
            <operand type="literal" value="1"/>
            <operator type="and"/>
            <operand type="signal" idRef="Req" delay="1"/>
            <operator type="equal"/>
            <operand type="literal" value="0"/>
          </operand>
        </operand>
        <text>1 WHEN ((Req = 0 AND Req[-1] = 1) OR (Req = 1 AND Req[-1] = 0))</text>
      </expression>
      <expression>
        <operand type="literal" value="0"/>
        <text>0 OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="a021" type="read" source="Req" target="o020.Req"/>
  <transition id="t023" x="865" y="150" priority="0">
    <name off_x="-10" off_y="-10" text="t023"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <place id="p024" x="770" y="150" init_marking="0">
    <name off_x="-10" off_y="-10" text="ReqReceived"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <arc id="a025" type="read" source="o020.out" target="t023"/>
  <arc id="a026" type="normal" source="t023" target="p024"/>
  <transition id="t028" x="715" y="255" priority="0">
    <name off_x="-10" off_y="-10" text="t028"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <transition id="t029" x="770" y="220" priority="0">
    <name off_x="-10" off_y="-10" text="t029"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <arc id="a032" type="normal" source="p003" target="t029"/>
  <arc id="a033" type="normal" source="t028" target="p003"/>
  <place id="p035" x="870" y="255" init_marking="1">
    <name off_x="-10" off_y="-10" text="Ack_cmpl"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <arc id="a036" type="normal" source="t029" target="p035"/>
  <arc id="a037" type="normal" source="p035" target="t028"/>
  <transition id="t059" x="690" y="150" priority="0">
    <name off_x="-10" off_y="-10" text="t059"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <arc id="a061" type="normal" source="p024" target="t059"/>
  <arc id="a064" type="read" source="Delay" target="t059"/>
  <arc id="a065" type="read" source="t059" target="t028"/>
  <arc id="a066" type="read" source="t059" target="t029"/>
  <event id="Release" x="205" y="185" mode="input"/>
  <arc id="a020" type="read" source="Release" target="t040"/>
  <signal id="BufferSize" x="465" y="150" mode="input" type="range" min="0" max="255" frac="0" value="0" dynamic="none"/>
  <signal id="Buffer" x="670" y="325" mode="output" type="range" min="0" max="255" dynamic="type" frac="0"/>
  <signal id="IS1" x="620" y="325" mode="internal" type="range" min="0" max="255" frac="0" value="0" dynamic="none"/>
  <operation id="o007" x="530" y="325" rot="0" shape="arrow" size="40">
    <name off_x="-35" off_y="-40" text="o007"/>
    <input off_x="-40" off_y="-24" name="t006" id="o007.t006" type="event" dynamic="all"/>
    <input off_x="-40" off_y="-8" name="t059" id="o007.t059" type="event" dynamic="all"/>
    <input off_x="-40" off_y="8" name="InData" id="o007.InData" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <input off_x="-40" off_y="24" name="IS1" id="o007.IS1" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <output off_x="40" off_y="0" name="out" id="o007.out" type="range" min="0" max="255" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="IS1" delay="1"/>
        <operator type="add"/>
        <operand type="signal" idRef="InData"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="t059" delay="1"/>
          <operator type="and"/>
          <operand type="sub-expression" neg="true">
            <operand type="signal" idRef="t006" delay="1"/>
          </operand>
        </operand>
        <text>IS1[-1] + InData WHEN (t059[-1] AND NOT(t006[-1]))</text>
      </expression>
      <expression>
        <operand type="signal" idRef="IS1" delay="1"/>
        <operator type="add"/>
        <operand type="signal" idRef="InData"/>
        <operator type="sub"/>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="t059" delay="1"/>
          <operator type="and"/>
          <operand type="signal" idRef="t006" delay="1"/>
        </operand>
        <text>IS1[-1] + InData - 1 WHEN (t059[-1] AND t006[-1])</text>
      </expression>
      <expression>
        <operand type="signal" idRef="IS1" delay="1"/>
        <operator type="sub"/>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="sub-expression">
          <operand type="signal" idRef="t006" delay="1"/>
        </operand>
        <text>IS1[-1] - 1 WHEN (t006[-1])</text>
      </expression>
      <expression>
        <operand type="signal" idRef="IS1" delay="1"/>
        <text>IS1[-1]</text>
      </expression>
    </output>
  </operation>
  <signal id="InData" x="415" y="335" mode="input" type="range" min="0" max="255" frac="0" value="0" dynamic="none"/>
  <operation id="o029" x="605" y="150" rot="0" shape="arrow" size="32">
    <name off_x="-27" off_y="-32" text="o029"/>
    <input off_x="-32" off_y="-16" name="Buffer" id="o029.Buffer" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <input off_x="-32" off_y="0" name="BufferSize" id="o029.BufferSize" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <input off_x="-32" off_y="16" name="InData" id="o029.InData" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <output off_x="32" off_y="0" name="out" id="o029.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Buffer"/>
        <operator type="add"/>
        <operand type="signal" idRef="InData"/>
        <operator type="less-or-equal"/>
        <operand type="signal" idRef="BufferSize"/>
        <text>Buffer + InData &lt;= BufferSize</text>
      </expression>
    </output>
  </operation>
  <arc id="a008" type="read" source="o007.out" target="IS1"/>
  <arc id="a009" type="read" source="IS1" target="o007.IS1" view="symbolic"/>
  <arc id="a013" type="read" source="InData" target="o007.InData"/>
  <arc id="a016" type="read" source="IS1" target="Buffer"/>
  <arc id="a076" type="read" source="BufferSize" target="o029.BufferSize"/>
  <arc id="a031" type="read" source="InData" target="o029.InData" view="symbolic"/>
  <arc id="a077" type="read" source="Buffer" target="o029.Buffer" view="symbolic"/>
  <arc id="a078" type="read" source="o029.out" target="t059"/>
  <arc id="a082" type="read" source="t059" target="o007.t059" view="symbolic"/>
  <arc id="a083" type="read" source="t006" target="o007.t006" view="symbolic"/>
  <operation id="o036" x="250" y="125" rot="0" shape="arrow" size="16">
    <name off_x="-11" off_y="-16" text="o036"/>
    <input off_x="-16" off_y="0" name="Buffer" id="o036.Buffer" type="range" min="0" max="255" dynamic="all" frac="0"/>
    <output off_x="16" off_y="0" name="out" id="o036.out" type="boolean" min="0" max="1" dynamic="type" frac="0">
      <expression>
        <operand type="signal" idRef="Buffer"/>
        <operator type="more"/>
        <operand type="literal" value="0"/>
        <text>Buffer &gt; 0</text>
      </expression>
    </output>
  </operation>
  <arc id="a084" type="read" source="o036.out" target="t006" c1_x="19" c1_y="0" c2_x="0" c2_y="-20"/>
  <arc id="a085" type="read" source="Buffer" target="o036.Buffer" view="symbolic"/>
</net>
