Scalable algorithms and design for debug hardware for test, validation and security of mixed signal/rf circuits and systems