A method and apparatus for using a binary CAM array to implement Classless
Interdomain Routing (CIDR) Address processing. A binary CAM array is
segmented into a plurality of array groups, each of which includes a
number of rows of binary CAM cells, a group global mask circuit, and a
mask valid bit indicating whether the group global mask circuit stores a
valid group global mask.