TinyBCAM - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
2022.2 English

The TinyBCAM is a light-weight register-based version of the BCAM for less than 32 entries. The TinyBCAM requires no additional license. The primary characteristic of the TinyBCAM is that the position of the table entry in the table determines its priority.

  • Key width: up to 1024 bits
  • Response width: up to 1024 bits
  • Size: Up to 32 entries
  • Range key match type not supported

Here is an example of how to instantiate a TinyBCAM in a P4 file:

     table forwardIPv4 {
        key             = { hdr.ipv4.src : exact; 
                            hdr.ipv4.dst : exact; }
        actions         = { forwardPacket; 
                            dropPacket; }
        size            = 20;
        default_action  = dropPacket;