P4 Coding Styles - 2025.1 English - UG1308

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Release Date
2025-05-29
Version
2025.1 English

In general, it is recommended to avoid heavily nested "if" conditionals and long sequences of "if/else if/else if/…" conditionals. These can increase the design latency and buffering/pipelining resources.