Advanced Debug System by Nathan Yawn clone from OpenCores.org