A plurality of content-addressable-memory sub-arrays simultaneously
performs a parallel comparison between data sequences arranged in a row
direction of memory cells and a search data sequence input from outside,
and outputs a result of the comparison for each data sequence. A first
input pin receives an input of the search data sequence. A second input
pin receives an input of a search data sequence arbitrarily designating a
content-addressable-memory sub-array. Each of the
content-addressable-memory sub-arrays includes an activation control unit
that controls activation of the content-addressable-memory sub-arrays
based on the search data sequence.