According to one embodiment of the present invention, the CAM device includes
a CAM array that includes a plurality of rows of CAM cells each coupled to a match
line, a priority encoder coupled to the match lines to generate an index, a counter
and compare logic coupled to the counter and the priority encoder to compare the
index and a counter value from the counter.