An integrated circuit chip is provided that comprises on-chip memory and
test circuitry. The test circuitry is configured to perform operational
testing of the on-chip memory. The test circuitry comprises a controller
which is configured to perform a selection out of a plurality of test
algorithms to perform the operational testing. The plurality of test
algorithms includes a fault detection test algorithm to perform
operational testing of the on-chip memory in order to detect whether or
not there is a memory fault, without locating the memory fault. The
plurality of test algorithms further includes a fault location test
algorithm to perform operational testing of the on-chip memory in order
to detect and locate a memory fault. Further, a method to perform a
memory built-in self test and an MBIST (Memory Built-In Self Test)
control circuit template are provided.