Driver Memory Usage Estimate - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Version
2022.2 English
Revision
The stack size is dependent on the type of CAM selected to implement a table (refer to the Compiler Table Selection section of the Target Architecture chapter). 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
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 an Vitis Networking P4 IP instance contains a DCAM, stack size is equal to or greater than 4 KB.
  • If an Vitis Networking P4 IP instance contains several DCAMs and a BCAM, stack size is equal to or greater than 128 KB.
  • If an Vitis Networking P4 IP instance contains a BCAM and a TCAM, stack size is equal to or greater than 1 MB.