![]() |
P4C
The P4 Compiler
|
The Tofino backend targets the Tofino 1/2 chip family. It transforms frontend P4 IR into a Tofino-specific pipeline IR and performs resource allocation for the target architecture.
backends/tofino/bf-p4c/README.md: design overview, dependencies, and terminology.backends/tofino/CMakeLists.txt: build targets and options.backends/tofino/bf-p4c/: main compiler logic.backends/tofino/bf-p4c/parde/, mau/, phv/: parser/deparser, match-action, and PHV allocation subsystems.IR::BFN::Pipe.backends/tofino/bf-p4c/README.md for setup and required versions.backends/tofino/ CMake files and bf-p4c/ CMake/CMakelists for custom targets.ctest --test-dir build -j<N> --output-on-failure -R tofino.testdata/.bf-p4c/ and follow the pipeline IR (IR::BFN::*) and subsystem directories (parde/, mau/, phv/).