EP0872802A2

A method of and an apparatus for searching a contents addressable memory

Abstract

To provide a method of searching a CAM which enables to search an address of matching contents cyclically recorded in a memory array of the CAM with a priority at once, the method of searching a CAM array (2) having first address lines (20), whereof certain are made active when the CAM array (2) is searched with a search key, comprises steps of: obtaining restricted search results by making address lines of the first address lines (20) having addresses lower than a restriction address inactive; selecting logic of third address lines (70) from logic of the restricted search results when any of the restricted search results is active, and from logic of the first address lines (20) as it is, when none of the restricted search results is active; and outputting a searched address by encoding a lowest active address line of the third address lines (70).

EP0872802A2, drawing sheet 1
Sheet 1 of 4

Term

Term ended

Projected expiry passed 15 April 2018, 8.4 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

6 claims: 4 independent, 2 dependent

  1. 1
    A method of searching a CAM (Contents Addressable Memory) array having a plurality of first address lines whereof certain are made active when the CAM array is searched with a search key; said method comprising steps of:obtaining restricted search results (80 i ) by making address lines of the plurality of first address lines (20) having addresses lower than a restriction address inactive;selecting logic of third address lines (70) from logic of the restricted search results when any of the restricted search results (80 i ) is active, and from logic of the plurality of the first address lines (70) as it is, when none of the restricted search results (80 i ) is active;and outputting a searched address by encoding an active address line having a lowest address among the third address lines (70).
  2. 2
    A method of searching a CAM array having a plurality of first address lines whereof certain are made active when the CAM array is searched with a search key; said method comprising steps of:obtaining restricted search results (80 i ) by making address lines of the plurality of first address lines (20) having addresses higher than a restriction address inactive;selecting logic of third address lines (70) from logic of the restricted search results (80 i ) when any of the restricted search results is active, and from logic of the plurality of the first address lines (70) as it is, when none of the restricted search results (80 i ) is active;and outputting a searched address by encoding an active address line having a highest address among the third address lines (70).
  3. 3
    An apparatus for searching a CAM array having a plurality of first address lines whereof certain are made active when the CAM array is searched with a search key; said apparatus comprising:an address decoder (6) for making one of second address lines (60) active according to a restriction address, each of the second address lines (60) corresponding to each of the plurality of first address lines (20) of the CAM array (2);a selective restriction circuits (7) for obtaining restricted search results (80 i ) by making address lines of the plurality of first address lines (20) having addresses higher than a restriction address inactive according to logic of the second address lines (60), and selecting logic of third address lines (70) from logic of the restricted search results (80 i ) when any of the restricted search results (80 i ) is active, and from logic of the plurality of the first address lines as it is when none of the restricted search results (80 i ) is active;and an priority address encoder (13) for outputting a searched address by encoding an active address line having a lowest address among the third address lines (70).
  4. 5
    An apparatus for searching a CAM array having a plurality of first address lines whereof certain are made active when the CAM array is searched with a search key; said apparatus comprising:an address decoder (6) for making one of second address lines (60) active according to a restriction address, each of the second address lines (60) corresponding to each of the plurality of first address lines (20) of the CAM array (2);a selective restriction circuits (7) for obtaining restricted search results (80 i ) by making address lines of the plurality of first address lines (20) having addresses lower than a restriction address inactive according to logic of the second address lines (60), and selecting logic of third address lines (70) from logic of the restricted search results (80 i ) when any of the restricted search results (80 i ) is active, and from logic of the plurality of the first address lines as it is when none of the restricted search results (80 i ) is active;and an priority address encoder (13) for outputting a searched address by encoding an active address line having lowest address among the third address lines (70).