GithubHelp home page GithubHelp logo

Comments (1)

jafingerhut avatar jafingerhut commented on June 9, 2024

This is related to a question raised by Mahesh Shirshyad's proposal for a PNA IP checksum extern object that could have a method, perhaps called something like add_dependency, where you could have multiple instance of the IP checksum extern object, and make explicit method calls in the P4 source code that declared data dependencies between these objects, e.g. you could do something like this:

    PNA_IPChecksum c1();
    PNA_IPChecksum c2();

    apply {

        // other code here to set up parameters for c1 and c2, e.g. perhaps start offset and length parameters.

        // in the case that the checksum for c1 included the result of checksum calculation for c2 as part of c1's input data
        // we would like to tell the compiler explicitly in code that this was the case, perhaps with a call like this:
        c1.add_dependency(c2);
        // meaning that c2's result should be calculated first, before c1's checksum calculation could finish.

    }

from pna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.