Protection and safety framework for on-chip communications and Mixed-Critical Cyber-Physical Systems