A method of testing a memory unit in a digital circuit includes storing a
test pattern on a register of the digital circuit. The register is then
selected by providing an activation signal to a selection unit. The
memory unit is then tested with the test pattern stored in the register.