alexforencich/verilog-cam

Feature request: RAM_DEPTH to be less than a power of two

lcapossio opened this issue · 0 comments

RAM_DEPTH is automatically set to 2**ADDR_WIDTH inside the CAM, though there are applications where RAM_DEPTH (the number of entries in the CAM) is not necessarily a power of 2. For example a 96 entries CAM with ADDR_WIDTH = 7, RAM_DEPTH need not be 128, but RAM_DEPTH=96 will suffice. It will make the CAM implementation smaller and faster.

From what I could inspect in the code, it is quite trivial to add as a parameter.