P4 Coding Styles - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Version
2022.2 English
Revision

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.