A system and method for testing and/or initializing a Directory Store in a
directory-based coherent memory. In one illustrative embodiment, the
directory-based coherent memory includes a Main Store for storing a
number of data entries, a Directory Store for storing the directory state
for at least some of the data entries in the Main Store, and a next state
block for determining a next directory state for a requested data entry
in response to a memory request. To provide access to the Directory
Store, and in one illustrative embodiment, a selector is provided for
selecting either the next directory state value provided by the next
state block or another predetermined value. The other predetermined value
may be, for example, a fixed data pattern, a variable data pattern, a
specified value, or any other value suitable for initializing and/or
testing the Directory Store. The output of the selector may be written to
the Directory Store.