Quantification Loss - 2.2 English

Binary CAM Search LogiCORE IP Product Guide (PG317)

Document ID
PG317
Release Date
2021-07-27
Version
2.2 English

When an instance is generated, the total width of an entry is calculated:

Entry Width = KEY_WIDTH + RESPONSE_WIDTH + Valid

The valid bit adds one extra bit to the entry width. The total entry width is then mapped to the required number of block RAMs or URAMs necessary to read the entire entry in parallel. Block RAM and URAM are allocated in data width increments of 64 bits. To minimize quantification losses, it is beneficial if the entry size is close below or on a 64-bit boundary. For example, if the total entry size is 308 bits, the quantification loss is 12 bits per entry:

5*64 - 308 = 12

Quantification loss does not only occur when the entry width does not align to 64-bit boundaries. It also occurs when NUM_ENTRIES does not match the RAM address space perfectly. For example, TDM_FACTOR = 1, MEMORY PRIMITIVE = BLOCK, NUM_ENTRIES = 1500. For this BCAM four block RAMs are required. Four block RAMs provide 2048 *0.95 = 1945 entries. Loss = (1945-1500)/1945 = 23%

The maximum supported entry widths are listed in the following table.

Table 1. Maximum Supported Entry Widths
DEPTH MEMORY_PRIMITIVE ENTRY_WIDTH
512 BLOCK 1536
1024 BLOCK 768 1
2048 BLOCK 3841
2048 ULTRA 2048
4096 ULTRA 1024
8192 ULTRA 512
16384 ULTRA 2561
  1. Not available for RAM_FREQ over 400 MHz.