Search code examples
searchvhdl

best way for search in rom


I want compare 32bit reg with rom 1024x32 . best way for this search?

vhdl code


Solution

  • Sounds like you want a content-addressable memory (CAM).

    The basic idea is that a CAM can be searched for values (32-bit word) to get keys (addresses). It does this by having a list of valid addresses per 32-bit word stored in some local memory.

    Check out this application note by Xilinx for a more technical description.