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.2. TCAM Insert Operations

You can use an insert operation to insert a new (key, result) entry into the TCAM database.

To perform an insert operation, follow these steps in the AXI-Lite interface:

  1. Write the key to the Key_N registers.
  2. Write the result to the Mask_N registers.
  3. Write the result to the Result_N registers.
  4. Write the entry ID to the Entry register.
  5. Write to the mgmt_ctrl register, specifying op_type = 0x1.
  6. Poll the mgmt_ctrl register until the busy bit = 0x0.
  7. Check the mgmt_ctrl success bit; a value of 0x1 indicates that the insertion has been completed.
Figure 23. Insert Operation on TCAM
A successful insertion sets the mgmt_ctrl register success bit to 0x1; if the operation fails, mgmt_ctrl is set to 0x0.

If you attempt to insert an entry that already exists, or to fill the table beyond the nominal capacity, the operation will fail. Insert operations are otherwise expected to succeed for all realistic data sets.

  • The address of mgmt_ctrl register is 0x20.
  • The address of key_n register is 0x1000.
  • The address of result_n register is 0x2000.
  • The address of mask_n register is 0x3000.
  • The address of entry ID register is 0x30.