Driver Memory Usage Estimate - 2025.1 English - UG1308

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Release Date
2025-05-29
Version
2025.1 English
The stack size is dependent on the type of CAM selected to implement a table (see Compiler Table Selection for more information). The stack size required per CAM is shown on the following table:
Table 1. Stack Size Requirements
CAM Type Stack Size
DCAM 4 KB
BCAM 128 KB
STCAM 128 KB
TCAM 1 MB
Tiny BCAM 4 KB
Tiny TCAM 4 KB
HBM/DDR BCAM (with HW Update enabled) 4 KB
HBM/DDR BCAM (with HW Update disabled) (default) 128 KB
The stack size used in an Vitis Networking P4 IP instance should be greater than or equal to the largest stack size of the CAMs present in that instance. For example:
  • If a Vitis Networking P4 IP instance contains a DCAM, stack size is equal to or greater than 4 KB.
  • If a Vitis Networking P4 IP instance contains several DCAMs and a BCAM, stack size is equal to or greater than 128 KB.
  • If a Vitis Networking P4 IP instance contains a BCAM and a TCAM, stack size is equal to or greater than 1 MB.