Functional tests for content-addressable memories (CAM's) are presented in
this paper. In addition to several traditional functional fault models for
RAM's, we also consider the fault models based on physical defects, such as
shorts between two circuit nodes and transistor stuck-on and stuck-open fa
ults. Accordingly, several functional fault models are proposed. In order t
o make our approach suited to various application-specific CAM's, we propos
e tests which require only three fundamental types of operation (i.e., writ
e, erase, and compare), and the test results can be observed entirely from
the single-bit Hit output. A complete, compact test is also proposed, which
has low complexity and is suitable for modern high-density and large-capac
ity CAMs-it requires only 2N + 3w + 2 compare operations and 8N write opera
tions to cover the functional fault models discussed, where N is the number
of words and w is the word length.