Agilex™ 7 F-Series and I-Series FPGA Memory Subsystem IP User Guide

ID 789389
Date 7/15/2024
Public
Document Table of Contents

6.2.5. TCAM Lookup Operations through the AXI-Lite Interface

You can use a lookup operation to find an entry in the table, based on the key that you provide.

To perform a lookup operation, follow these steps in the AXI-Lite interface:

  1. Write the key to the key_n registers.
  2. Write to the mgmt_ctrl register, specifying op_type = 0x3.
  3. Poll the mgmt_ctrl register until the busy bit = 0x0.
  4. Check the mgmt_ctrl success bit; a value of 0x1 indicates that the lookup has been completed.
Figure 29. Lookup through AXI-Lite Operation on TCAM
A successful lookup operation sets the mgmt_ctrl register success bit to 0x1; if the operation fails, mgmt_ctrl is set to 0x0.

When GEN_PRIO_RESP = 1, the highest matching entry is returned, check Entry register and result_n registers for corresponding entry ID and results. When GEN_PRIO_RESP = 0, all matching entries are returned, check match_n registers.

  • The address of mgmt_ctrl register is 0x20.
  • The address of key_n register is 0x1000.
  • The address of result_n register is 0x2000.