Hardware-Software Design Methods For Security And Reliability Of Mpsocs