An apparatus and method for generating a comparand in a content addressable memory
array. The apparatus includes a content addressable memory (CAM) array and translation
circuitry to receive translation information indicative of translation of a bit
group from an initial position in input data to a different position in a comparand
transmitted to the CAM array. The translation circuitry includes a switch circuit,
one or more storage elements to store the translation information, and one or more
decode circuitry to decode the translation information and establish switch circuit
connections between the initial position and the position in the comparand. The
apparatus also includes program circuitry to provide a bit level programming interface
with the translation circuitry. The apparatus may also include a programming bit
register to store programming information in the form of a binary pattern where
each bit represents a bit group of the input data.