[P4-dev] p4-validate warning message
andy.fingerhut at gmail.com
Thu Dec 14 12:26:13 EST 2017
If you are willing to share the P4 program that gives this warning, it
would be easier to give a definitive answer.
I am guessing this is a P4_14 program, not P4_16? There are cases in P4_14
programs, especially for the definitions of actions, where because the
action parameters have no defined bit width, the compiler must try to infer
what they ought to be, based upon the operations they are used in within
that action. If there are multiple different widths that could be
inferred, the warning could occur. That, or it could be a compiler bug.
Here is a Github issue that might be related to what you are seeing:
On Thu, Dec 14, 2017 at 7:29 AM, Roshan <sedar at oasis.uclouvain.be> wrote:
> p4-validate gives this warning: "WARNING in route.p4 line 25: Inferred
> conflicting widths for argument 'port_to_send' (9 and 8), using larger
> Any idea what could be the reason.
> Thanks in advance,
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev