The Top Level Settings Tab is shown in the following figure.
Figure 1. Top Level Settings Tab
- Packet Rate
- Packet rate in million packets/second. This parameter is relevant to any CAM tables that might be in the user's P4 program. A lower packet rate can result in a lower resource utilization for the CAMs. Vitis Networking P4 applies back-pressure on the s_axis interface if necessary to avoid exceeding the packet rate at the CAMs.
- Packet Data Bus Width
- AXI-Stream Packet Data Bus Width: can be set to 32-bit, 64-bit, 128-bit, 256-bit, 512-bit, or 1024-bit.
- P4 File
- Browse to select a P4 file then click OK. The Vitis Networking P4 IP invokes the P4C-VitisNetP4 compiler, automatically compiling the P4 file once it is selected, and unlocks the other four tabs.
When a P4 file has been selected, two extra buttons are created from the original Vitis Networking P4 main tab as shown in the following figure.
Figure 2. Top Level Settings Tab with P4 File Selected
- P4 Compile
- Re-compiles the P4 for use when the selected P4 file has been edited by the user.
- Calculate Latency
- Calculates the total latency of the Vitis Networking P4 system. This button appears, for convenience, on each tab. See Latency for additional information on the latency calculation.