Reliability Support for On-Chip Memories Using Networks-on-Chip