<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-forward-container"><br>
      <br>
      -------- Továbbított üzenet --------
      <table class="moz-email-headers-table" cellspacing="0"
        cellpadding="0" border="0">
        <tbody>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Tárgy: </th>
            <td>FastReact running on t4p4s now! But I need one more
              feature to fully test.</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Dátum: </th>
            <td>Tue, 9 Apr 2019 15:46:22 +0200</td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Feladó:
            </th>
            <td>Jonathan Vestin <a class="moz-txt-link-rfc2396E" href="mailto:jonathan.vestin@kau.se"><jonathan.vestin@kau.se></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Címzett:
            </th>
            <td>Sándor Laki <a class="moz-txt-link-rfc2396E" href="mailto:lakis@elte.hu"><lakis@elte.hu></a></td>
          </tr>
          <tr>
            <th valign="BASELINE" nowrap="nowrap" align="RIGHT">CC: </th>
            <td>Andreas Kassler <a class="moz-txt-link-rfc2396E" href="mailto:andreas.kassler@kau.se"><andreas.kassler@kau.se></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      Hi Sandor! <br>
      Thank you for your hard work! <br>
      I've after a little bit of work got the FastReact code running,
      and actually sent some traffic through it. However, one of the
      things that I need to completely test FastReact on t4p4s, is to be
      able to either prefill the registers somehow, or access the
      registers from an external userspace application, or be able to
      modify them from the controller. Are any of these things possible?
      If so, how?<br>
      <br>
      /Jonathan<br>
      <br>
      Ps. Here are some things that I encountered, just FYI: * You
      cannot name control block parameters `pkt`, as it conflicts with
      an internal keyword during C compilation. * Ingress pipeline has
      to be named `ingress` otherwise @atomic doesn't compile. At least
      `MyIngress` didn't work. * Registers have to be defined within a
      control block, and not outside, even though p4c accepts this. <br>
      From: Jonathan Vestin <a class="moz-txt-link-rfc2396E" href="mailto:jonathan.vestin@kau.se"><jonathan.vestin@kau.se></a><br>
      To: Andreas Kassler <a class="moz-txt-link-rfc2396E" href="mailto:andreas.kassler@kau.se"><andreas.kassler@kau.se></a><br>
      Cc: Sándor Laki <a class="moz-txt-link-rfc2396E" href="mailto:lakis@elte.hu"><lakis@elte.hu></a><br>
      Bcc:<br>
      Subject: Re: T4P4S<br>
      Reply-To:<br>
      In-Reply-To: <a class="moz-txt-link-rfc2396E" href="mailto:A78031C9-6D12-47F6-85B4-1D635D37F11E@kau.se"><A78031C9-6D12-47F6-85B4-1D635D37F11E@kau.se></a><br>
      <br>
      On Tue, Apr 02, 2019 at 06:37:59PM +0200, Andreas Kassler wrote:<br>
      <blockquote type="cite">Awesome,<br>
        This is exactly what Jonathan needed. Jonathan, please give it a
        try.<br>
        Thank, Andreas<br>
        <br>
        Sent from my iPhone<br>
        <br>
        > On 2 Apr 2019, at 18:20, Sándor Laki <a class="moz-txt-link-rfc2396E" href="mailto:lakis@elte.hu"><lakis@elte.hu></a>
        wrote:<br>
        > > Hi Andreas and Jonathan,<br>
        > > Registers and atomic blocks have recently been added
        to t4p4s. An example for the usage:<br>
        > > //... within a control block...<br>
        > > register<bit<16>>(1) reg1;<br>
        > bit<16> var1;<br>
        > > apply {<br>
        > smac.apply();<br>
        > dmac.apply();<br>
        > @atomic { // this block is guarded by a spinlock (if you
        have multiple atomic blocks in the control, the same spinlock
        object is used...)<br>
        > reg1.read(var1,0);<br>
        > var1 = var1 + 1;<br>
        > reg1.write(0, var1);<br>
        > }<br>
        > }<br>
        > > If you need more or experience strange behavior,
        please let me know and I or someone from our team will dig into
        it. If you can share the p4 code, I can also check it and help
        in figuring out the cause of problem.<br>
        > > Best wishes,<br>
        > Sandor<br>
        > > 2019.03.27. 20:19 keltezéssel, Andreas Kassler írta:<br>
        >> Hi Sandor,<br>
        >> Hope all good. Jonathan checked out yesterday the new
        version of T4P4S which is much improved. Awesome work! For our
        P4 code we need register and atomic. He mentions that still some
        glue parts seem to be missing. Do you know when full support for
        reg read and write is available?<br>
        >> Thanks, Andreas<br>
        >> >> Von meinem iPad gesendet<br>
        > > -- > Sándor Laki, PhD<br>
        > Assistant professor<br>
        > Department of Information Systems<br>
        > Eötvös Loránd University<br>
        > Pázmány Péter stny. 1/C<br>
        > H-1117, Budapest, Hungary<br>
        > Room 2.506<br>
        > Web: <a class="moz-txt-link-freetext" href="http://lakis.web.elte.hu">http://lakis.web.elte.hu</a><br>
        > Phone: +36 1 372 2869 / 8477<br>
        > Cell: +36 70 374 2646<br>
        > > > > ---<br>
        > Ezt az e-mailt az Avast víruskereső szoftver átvizsgálta.<br>
        > <a class="moz-txt-link-freetext" href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a><br>
        > </blockquote>
    </div>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Mentes a vírusoktól. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>            </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>