System-level memory power and performance optimization for system-on-a-chip embedded systems