czivar / p4c-behavioral

P4 compiler for the behavioral model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

p4c-behavioral

P4 compiler for the behavioral model (BM) target

Pre-requisites:
Install p4-hlir (https://github.com/barefootnetworks/p4-hlir)

To install:
sudo python setup.py install

To run:
p4c-behavioral <path_to_p4_program> --gen-dir <dir_for_generated_files> [--thrift]

For more info:
p4c-behavioral --help

p4c-bm is an alias for p4c-behavioral

About

P4 compiler for the behavioral model

License:Apache License 2.0


Languages

Language:C 57.7%Language:Python 22.9%Language:C++ 9.6%Language:Objective-C 4.8%Language:Thrift 3.8%Language:Makefile 1.4%