Programmable built-in self-testing of embedded RAM clusters in system-on-chip architectures